{"modulePath":"github.com/chunkifydev/chunkify-go","version":"v1.0.3","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package chunkify\n\n## Constants\n\n```go\nconst ChunkifyErrorTypeCancelled = shared.ChunkifyErrorTypeCancelled\n```\nEquals \"cancelled\"\n\n```go\nconst ChunkifyErrorTypeDownload = shared.ChunkifyErrorTypeDownload\n```\nEquals \"download\"\n\n```go\nconst ChunkifyErrorTypeFfmpeg = shared.ChunkifyErrorTypeFfmpeg\n```\nEquals \"ffmpeg\"\n\n```go\nconst ChunkifyErrorTypeIngest = shared.ChunkifyErrorTypeIngest\n```\nEquals \"ingest\"\n\n```go\nconst ChunkifyErrorTypeJob = shared.ChunkifyErrorTypeJob\n```\nEquals \"job\"\n\n```go\nconst ChunkifyErrorTypePermission = shared.ChunkifyErrorTypePermission\n```\nEquals \"permission\"\n\n```go\nconst ChunkifyErrorTypeSetup = shared.ChunkifyErrorTypeSetup\n```\nEquals \"setup\"\n\n```go\nconst ChunkifyErrorTypeSource = shared.ChunkifyErrorTypeSource\n```\nEquals \"source\"\n\n```go\nconst ChunkifyErrorTypeTimeout = shared.ChunkifyErrorTypeTimeout\n```\nEquals \"timeout\"\n\n```go\nconst ChunkifyErrorTypeUnexpected = shared.ChunkifyErrorTypeUnexpected\n```\nEquals \"unexpected\"\n\n```go\nconst ChunkifyErrorTypeUpload = shared.ChunkifyErrorTypeUpload\n```\nEquals \"upload\"\n\n```go\nconst CreatedViaAPI = shared.CreatedViaAPI\n```\nEquals \"api\"\n\n```go\nconst CreatedViaDashboard = shared.CreatedViaDashboard\n```\nEquals \"dashboard\"\n\n```go\nconst CreatedViaMcp = shared.CreatedViaMcp\n```\nEquals \"mcp\"\n\n```go\nconst CreatedViaWorkflow = shared.CreatedViaWorkflow\n```\nEquals \"workflow\"\n\n```go\nconst InstanceType16vCPU = shared.InstanceType16vCPU\n```\nEquals \"16vCPU\"\n\n```go\nconst InstanceType4vCPU = shared.InstanceType4vCPU\n```\nEquals \"4vCPU\"\n\n```go\nconst InstanceType8vCPU = shared.InstanceType8vCPU\n```\nEquals \"8vCPU\"\n\n```go\nconst LogLevelDebug = shared.LogLevelDebug\n```\nEquals \"debug\"\n\n```go\nconst LogLevelError = shared.LogLevelError\n```\nEquals \"error\"\n\n```go\nconst LogLevelInfo = shared.LogLevelInfo\n```\nEquals \"info\"\n\n```go\nconst LogServiceManager = shared.LogServiceManager\n```\nEquals \"manager\"\n\n```go\nconst LogServiceTranscoder = shared.LogServiceTranscoder\n```\nEquals \"transcoder\"\n\n```go\nconst TranscoderStatusStatusCancelled = shared.TranscoderStatusStatusCancelled\n```\nEquals \"cancelled\"\n\n```go\nconst TranscoderStatusStatusCompleted = shared.TranscoderStatusStatusCompleted\n```\nEquals \"completed\"\n\n```go\nconst TranscoderStatusStatusFailed = shared.TranscoderStatusStatusFailed\n```\nEquals \"failed\"\n\n```go\nconst TranscoderStatusStatusPending = shared.TranscoderStatusStatusPending\n```\nEquals \"pending\"\n\n```go\nconst TranscoderStatusStatusStarting = shared.TranscoderStatusStatusStarting\n```\nEquals \"starting\"\n\n```go\nconst TranscoderStatusStatusTranscoding = shared.TranscoderStatusStatusTranscoding\n```\nEquals \"transcoding\"\n\n## Functions\n\n```go\nfunc Bool(b bool) param.Opt[bool]\n```\n\n```go\nfunc BoolPtr(v bool) *bool\n```\n\n```go\nfunc DefaultClientOptions() []option.RequestOption\n```\nDefaultClientOptions read from the environment (CHUNKIFY\\_TOKEN, CHUNKIFY\\_TEAM\\_TOKEN, CHUNKIFY\\_WEBHOOK\\_SECRET, CHUNKIFY\\_BASE\\_URL). This should be used to initialize new clients.\n\n```go\nfunc File(rdr io.Reader, filename string, contentType string) file\n```\n\n```go\nfunc Float(f float64) param.Opt[float64]\n```\n\n```go\nfunc FloatPtr(v float64) *float64\n```\n\n```go\nfunc Int(i int64) param.Opt[int64]\n```\n\n```go\nfunc IntPtr(v int64) *int64\n```\n\n```go\nfunc Opt[T comparable](v T) param.Opt[T]\n```\n\n```go\nfunc Ptr[T any](v T) *T\n```\n\n```go\nfunc String(s string) param.Opt[string]\n```\n\n```go\nfunc StringPtr(v string) *string\n```\n\n```go\nfunc Time(t time.Time) param.Opt[time.Time]\n```\n\n```go\nfunc TimePtr(v time.Time) *time.Time\n```\n\n## Types\n\n```go\ntype AnalyticsConnection struct {\n\t// Id identifies this saved analytics connection.\n\tID string `json:\"id\" api:\"required\"`\n\t// CreatedAt records when this connection was added.\n\tCreatedAt time.Time `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\t// DefaultForDashboard selects this connection for Chunkify dashboard players,\n\t// public previews, the Player page and newly generated snippets. It does not\n\t// change existing external players. At most one connection per project is\n\t// selected.\n\tDefaultForDashboard bool `json:\"default_for_dashboard\" api:\"required\"`\n\t// Endpoint specifies the analytics server base URL. It does not configure the\n\t// player.\n\tEndpoint string `json:\"endpoint\" api:\"required\" format:\"uri\"`\n\t// Name identifies this connection in the dashboard.\n\tName string `json:\"name\" api:\"required\"`\n\t// ProjectId identifies the owning Chunkify project.\n\tProjectID string `json:\"project_id\" api:\"required\"`\n\t// Status indicates whether the connection is ready to read or requires setup\n\t// repair.\n\t//\n\t// Any of \"preparing\", \"ready\", \"failed\".\n\tStatus AnalyticsConnectionStatus `json:\"status\" api:\"required\"`\n\t// Type specifies whether Chunkify manages the analytics project.\n\t//\n\t// Any of \"hosted\", \"custom\".\n\tType AnalyticsConnectionType `json:\"type\" api:\"required\"`\n\t// UpdatedAt records when this connection was last changed.\n\tUpdatedAt time.Time `json:\"updated_at\" api:\"required\" format:\"date-time\"`\n\t// AllowedOrigins lists additional website origins permitted to ingest events for a\n\t// hosted connection. Shared installation origins remain allowed. An empty list\n\t// clears project-specific origins. Custom servers manage origins on their own\n\t// infrastructure.\n\tAllowedOrigins []string `json:\"allowed_origins\"`\n\t// LastCheckedAt records the most recent successful connection check.\n\tLastCheckedAt time.Time `json:\"last_checked_at\" format:\"date-time\"`\n\t// PublicIngestKey is the public browser ingestion key used by Chunkify previews\n\t// and player examples. It cannot read or manage analytics. Hosted connections use\n\t// their primary public key. Omitted when preview tracking is not configured.\n\tPublicIngestKey string `json:\"public_ingest_key\"`\n\t// RetentionSeconds is the last retention applied to a hosted project, in seconds.\n\t// Omitted for custom connections.\n\tRetentionSeconds int64 `json:\"retention_seconds\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID                  respjson.Field\n\t\tCreatedAt           respjson.Field\n\t\tDefaultForDashboard respjson.Field\n\t\tEndpoint            respjson.Field\n\t\tName                respjson.Field\n\t\tProjectID           respjson.Field\n\t\tStatus              respjson.Field\n\t\tType                respjson.Field\n\t\tUpdatedAt           respjson.Field\n\t\tAllowedOrigins      respjson.Field\n\t\tLastCheckedAt       respjson.Field\n\t\tPublicIngestKey     respjson.Field\n\t\tRetentionSeconds    respjson.Field\n\t\tExtraFields         map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA saved source for analytics reports. The dashboard player default is independent of the connection selected in reports. External players keep their own configuration. Only the public ingest key is included; read and management credentials stay private.\n\n```go\nfunc (r AnalyticsConnection) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *AnalyticsConnection) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AnalyticsConnectionStatus string\n```\nStatus indicates whether the connection is ready to read or requires setup repair.\n\n```go\nconst (\n\tAnalyticsConnectionStatusPreparing AnalyticsConnectionStatus = \"preparing\"\n\tAnalyticsConnectionStatusReady     AnalyticsConnectionStatus = \"ready\"\n\tAnalyticsConnectionStatusFailed    AnalyticsConnectionStatus = \"failed\"\n)\n```\n\n```go\ntype AnalyticsConnectionType string\n```\nType specifies whether Chunkify manages the analytics project.\n\n```go\nconst (\n\tAnalyticsConnectionTypeHosted AnalyticsConnectionType = \"hosted\"\n\tAnalyticsConnectionTypeCustom AnalyticsConnectionType = \"custom\"\n)\n```\n\n```go\ntype AnalyticsKey struct {\n\t// Id identifies this key in the collector.\n\tID string `json:\"id\" api:\"required\"`\n\t// Purpose distinguishes player ingestion, read-only API access and a separate\n\t// read-only MCP credential. Read and MCP keys have the same collector permissions.\n\t//\n\t// Any of \"player\", \"read\", \"mcp\".\n\tPurpose AnalyticsKeyPurpose `json:\"purpose\" api:\"required\"`\n\t// PublicKey is the browser ingestion credential for a player key. Omitted for\n\t// read-only API and MCP keys, whose secret values are shown once.\n\tPublicKey string `json:\"public_key\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tPurpose     respjson.Field\n\t\tPublicKey   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nOne key per purpose. Public player values remain available; read and MCP values are returned only on creation or rotation.\n\n```go\nfunc (r AnalyticsKey) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *AnalyticsKey) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AnalyticsKeyPurpose string\n```\nPurpose distinguishes player ingestion, read-only API access and a separate read-only MCP credential. Read and MCP keys have the same collector permissions.\n\n```go\nconst (\n\tAnalyticsKeyPurposePlayer AnalyticsKeyPurpose = \"player\"\n\tAnalyticsKeyPurposeRead   AnalyticsKeyPurpose = \"read\"\n\tAnalyticsKeyPurposeMcp    AnalyticsKeyPurpose = \"mcp\"\n)\n```\n\n```go\ntype Asset struct {\n\t// Unique Asset ID.\n\tID string `json:\"id\" api:\"required\"`\n\t// Whether the Asset can accept new static rendition requests. Creation can still\n\t// fail if the original video is no longer accessible.\n\tCanAddStaticRenditions bool `json:\"can_add_static_renditions\" api:\"required\"`\n\t// When the Asset was created.\n\tCreatedAt time.Time `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\t// Maximum streaming resolution selected at creation. Does not limit static\n\t// renditions.\n\t//\n\t// Any of \"1080p\", \"2160p\".\n\tMaxResolution AssetMaxResolution `json:\"max_resolution\" api:\"required\"`\n\t// String metadata attached to the Asset.\n\tMetadata map[string]string `json:\"metadata\" api:\"required\"`\n\t// Minimum streaming resolution selected at creation. auto means no minimum;\n\t// smaller sources are not upscaled.\n\t//\n\t// Any of \"auto\", \"240p\", \"360p\", \"540p\", \"720p\", \"1080p\", \"1440p\", \"2160p\".\n\tMinResolution AssetMinResolution `json:\"min_resolution\" api:\"required\"`\n\t// Whether HLS playback is available, including while the Asset is preparing.\n\tPlaybackReady bool `json:\"playback_ready\" api:\"required\"`\n\t// Allow public playback without an API token, through the public preview page and\n\t// embeds. Does not control CDN or static download access. Disabling it does not\n\t// revoke signed URLs already issued.\n\tPublicPlayback bool `json:\"public_playback\" api:\"required\"`\n\t// Original media metadata saved at Asset creation and preserved after Source\n\t// deletion.\n\tSourceMetadata AssetSourceMetadata `json:\"source_metadata\" api:\"required\"`\n\t// Status specifies the Asset preparation state. ready means the video is prepared\n\t// for playback, with its poster and timeline previews available. Static renditions\n\t// and captions have independent statuses.\n\t//\n\t// Any of \"preparing\", \"ready\", \"failed\", \"expired\".\n\tStatus AssetStatus `json:\"status\" api:\"required\"`\n\t// ID of the output Storage.\n\tStorageID string `json:\"storage_id\" api:\"required\"`\n\t// Asset title.\n\tTitle string `json:\"title\" api:\"required\"`\n\t// When the Asset was last updated.\n\tUpdatedAt time.Time `json:\"updated_at\" api:\"required\" format:\"date-time\"`\n\t// Selected Workflow ID, or null.\n\tWorkflowID string `json:\"workflow_id\" api:\"required\"`\n\t// Pinned Workflow revision, or null.\n\tWorkflowRevision int64 `json:\"workflow_revision\" api:\"required\"`\n\t// Unsigned CDN URL of the HLS master playlist. Available when playback_ready is\n\t// true and Storage has a CDN URL.\n\tCdnURL string `json:\"cdn_url\" format:\"uri\"`\n\t// CreatedByTokenId specifies the Project token used to create the resource. It\n\t// remains set after the token is revoked. Omitted for dashboard requests, MCP\n\t// OAuth connections, Workflow actions, and unknown creators.\n\tCreatedByTokenID string `json:\"created_by_token_id\"`\n\t// CreatedByUserId specifies the team member who created the resource. Omitted for\n\t// Workflow actions, unknown creators, and deleted accounts.\n\tCreatedByUserID string `json:\"created_by_user_id\"`\n\t// CreatedVia specifies how the resource was created: api for API requests,\n\t// dashboard for the Chunkify dashboard, mcp for MCP clients, and workflow for\n\t// Workflow actions. Omitted when the creator is unknown.\n\t//\n\t// Any of \"api\", \"dashboard\", \"mcp\", \"workflow\".\n\tCreatedVia shared.CreatedVia `json:\"created_via\"`\n\tError      AssetError        `json:\"error\"`\n\t// When managed outputs expire, 24 hours after readiness. Omitted for\n\t// customer-connected Storage.\n\tExpiresAt time.Time `json:\"expires_at\" format:\"date-time\"`\n\t// Path of the HLS master playlist in Storage. Available when playback_ready is\n\t// true.\n\tPlaybackPath string `json:\"playback_path\"`\n\t// When HLS playback first became available.\n\tPlaybackReadyAt time.Time `json:\"playback_ready_at\" format:\"date-time\"`\n\t// Poster image, available once generated.\n\tPoster AssetPoster `json:\"poster\"`\n\t// Public HLS preview URL. Available when playback_ready and public_playback are\n\t// true. No API token is required.\n\tPreviewURL string `json:\"preview_url\" format:\"uri\"`\n\t// When all required Asset outputs finished processing.\n\tReadyAt time.Time `json:\"ready_at\" format:\"date-time\"`\n\t// Size specifies the total bytes of available streaming, playback preview, poster,\n\t// and timeline files. Excludes static renditions. Omitted until the Asset is\n\t// ready.\n\tSize int64 `json:\"size\"`\n\t// Original Source ID. Omitted after Source deletion.\n\tSourceID string `json:\"source_id\"`\n\t// Timeline thumbnails. The WebVTT file maps video timestamps to image URLs and\n\t// crop coordinates.\n\tTimelinePreviews AssetTimelinePreviews `json:\"timeline_previews\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID                     respjson.Field\n\t\tCanAddStaticRenditions respjson.Field\n\t\tCreatedAt              respjson.Field\n\t\tMaxResolution          respjson.Field\n\t\tMetadata               respjson.Field\n\t\tMinResolution          respjson.Field\n\t\tPlaybackReady          respjson.Field\n\t\tPublicPlayback         respjson.Field\n\t\tSourceMetadata         respjson.Field\n\t\tStatus                 respjson.Field\n\t\tStorageID              respjson.Field\n\t\tTitle                  respjson.Field\n\t\tUpdatedAt              respjson.Field\n\t\tWorkflowID             respjson.Field\n\t\tWorkflowRevision       respjson.Field\n\t\tCdnURL                 respjson.Field\n\t\tCreatedByTokenID       respjson.Field\n\t\tCreatedByUserID        respjson.Field\n\t\tCreatedVia             respjson.Field\n\t\tError                  respjson.Field\n\t\tExpiresAt              respjson.Field\n\t\tPlaybackPath           respjson.Field\n\t\tPlaybackReadyAt        respjson.Field\n\t\tPoster                 respjson.Field\n\t\tPreviewURL             respjson.Field\n\t\tReadyAt                respjson.Field\n\t\tSize                   respjson.Field\n\t\tSourceID               respjson.Field\n\t\tTimelinePreviews       respjson.Field\n\t\tExtraFields            map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r Asset) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *Asset) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AssetActionInput struct {\n\t// LanguageCode specifies the target language for the translated subtitle track,\n\t// such as en or fr. The same code appears in the caption and HLS manifest.\n\t//\n\t// Any of \"en\", \"fr\", \"es\", \"de\", \"it\", \"pt\", \"nl\", \"ja\", \"ko\", \"zh\", \"ar\", \"hi\",\n\t// \"ru\", \"tr\", \"pl\", \"sv\".\n\tLanguageCode AssetActionInputLanguageCode `json:\"language_code\"`\n\t// Resolution specifies the H.264 MP4 output resolution. highest selects the\n\t// largest supported output without upscaling. Hobby supports up to 1080p; other\n\t// plans support up to 2160p. Streaming resolution limits do not apply.\n\t//\n\t// Any of \"highest\", \"240p\", \"360p\", \"480p\", \"540p\", \"720p\", \"1080p\", \"1440p\",\n\t// \"2160p\".\n\tResolution AssetActionInputResolution `json:\"resolution\"`\n\t// ID of the original caption to translate. Included only for translation actions.\n\tSourceCaptionID string `json:\"source_caption_id\"`\n\t// Thumbnail settings. Included only for create_thumbnails actions.\n\tThumbnails WorkflowThumbnail `json:\"thumbnails\"`\n\t// TranscriptId specifies the original transcript consumed by caption publication.\n\t// Omitted for actions without a transcript input.\n\tTranscriptID string `json:\"transcript_id\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tLanguageCode    respjson.Field\n\t\tResolution      respjson.Field\n\t\tSourceCaptionID respjson.Field\n\t\tThumbnails      respjson.Field\n\t\tTranscriptID    respjson.Field\n\t\tExtraFields     map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nResolved action inputs. Only fields relevant to the action type are included.\n\n```go\nfunc (r AssetActionInput) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *AssetActionInput) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AssetActionInputLanguageCode string\n```\nLanguageCode specifies the target language for the translated subtitle track, such as en or fr. The same code appears in the caption and HLS manifest.\n\n```go\nconst (\n\tAssetActionInputLanguageCodeEn AssetActionInputLanguageCode = \"en\"\n\tAssetActionInputLanguageCodeFr AssetActionInputLanguageCode = \"fr\"\n\tAssetActionInputLanguageCodeEs AssetActionInputLanguageCode = \"es\"\n\tAssetActionInputLanguageCodeDe AssetActionInputLanguageCode = \"de\"\n\tAssetActionInputLanguageCodeIt AssetActionInputLanguageCode = \"it\"\n\tAssetActionInputLanguageCodePt AssetActionInputLanguageCode = \"pt\"\n\tAssetActionInputLanguageCodeNl AssetActionInputLanguageCode = \"nl\"\n\tAssetActionInputLanguageCodeJa AssetActionInputLanguageCode = \"ja\"\n\tAssetActionInputLanguageCodeKo AssetActionInputLanguageCode = \"ko\"\n\tAssetActionInputLanguageCodeZh AssetActionInputLanguageCode = \"zh\"\n\tAssetActionInputLanguageCodeAr AssetActionInputLanguageCode = \"ar\"\n\tAssetActionInputLanguageCodeHi AssetActionInputLanguageCode = \"hi\"\n\tAssetActionInputLanguageCodeRu AssetActionInputLanguageCode = \"ru\"\n\tAssetActionInputLanguageCodeTr AssetActionInputLanguageCode = \"tr\"\n\tAssetActionInputLanguageCodePl AssetActionInputLanguageCode = \"pl\"\n\tAssetActionInputLanguageCodeSv AssetActionInputLanguageCode = \"sv\"\n)\n```\n\n```go\ntype AssetActionInputResolution string\n```\nResolution specifies the H.264 MP4 output resolution. highest selects the largest supported output without upscaling. Hobby supports up to 1080p; other plans support up to 2160p. Streaming resolution limits do not apply.\n\n```go\nconst (\n\tAssetActionInputResolutionHighest AssetActionInputResolution = \"highest\"\n\tAssetActionInputResolution240p    AssetActionInputResolution = \"240p\"\n\tAssetActionInputResolution360p    AssetActionInputResolution = \"360p\"\n\tAssetActionInputResolution480p    AssetActionInputResolution = \"480p\"\n\tAssetActionInputResolution540p    AssetActionInputResolution = \"540p\"\n\tAssetActionInputResolution720p    AssetActionInputResolution = \"720p\"\n\tAssetActionInputResolution1080p   AssetActionInputResolution = \"1080p\"\n\tAssetActionInputResolution1440p   AssetActionInputResolution = \"1440p\"\n\tAssetActionInputResolution2160p   AssetActionInputResolution = \"2160p\"\n)\n```\n\n```go\ntype AssetActionResult struct {\n\t// ID of the caption, static rendition, or thumbnail request produced by the\n\t// action.\n\tOutputID string `json:\"output_id\" api:\"required\"`\n\t// Type of output referenced by output_id. Caption generation and translation both\n\t// produce caption outputs.\n\t//\n\t// Any of \"caption\", \"static_rendition\", \"thumbnail\", \"transcript\".\n\tOutputType AssetActionResultOutputType `json:\"output_type\" api:\"required\"`\n\t// Whether the action reused an existing output instead of creating one.\n\tReused bool `json:\"reused\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tOutputID    respjson.Field\n\t\tOutputType  respjson.Field\n\t\tReused      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nReference to the output created or reused by a completed action.\n\n```go\nfunc (r AssetActionResult) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *AssetActionResult) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AssetActionResultOutputType string\n```\nType of output referenced by output\\_id. Caption generation and translation both produce caption outputs.\n\n```go\nconst (\n\tAssetActionResultOutputTypeCaption         AssetActionResultOutputType = \"caption\"\n\tAssetActionResultOutputTypeStaticRendition AssetActionResultOutputType = \"static_rendition\"\n\tAssetActionResultOutputTypeThumbnail       AssetActionResultOutputType = \"thumbnail\"\n\tAssetActionResultOutputTypeTranscript      AssetActionResultOutputType = \"transcript\"\n)\n```\n\n```go\ntype AssetActionRun struct {\n\t// Unique action execution ID, prefixed with acr\\_.\n\tID string `json:\"id\" api:\"required\"`\n\t// ID of the Asset processed by this action.\n\tAssetID string `json:\"asset_id\" api:\"required\"`\n\t// When the action completed, failed, was skipped, or was cancelled. Null while\n\t// work remains.\n\tCompletedAt time.Time `json:\"completed_at\" api:\"required\" format:\"date-time\"`\n\t// When the action was accepted.\n\tCreatedAt time.Time `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\t// Resolved parameters and input references for this execution.\n\tInput AssetActionInput `json:\"input\" api:\"required\"`\n\t// Current execution status of the action.\n\t//\n\t// Any of \"pending\", \"running\", \"waiting\", \"completed\", \"failed\", \"skipped\",\n\t// \"cancelled\".\n\tStatus AssetActionStatus `json:\"status\" api:\"required\"`\n\t// Type of action performed.\n\t//\n\t// Any of \"create_static_rendition\", \"create_caption\", \"create_transcript\",\n\t// \"translate_caption\", \"create_thumbnails\".\n\tType AssetActionType `json:\"type\" api:\"required\"`\n\t// When the action was last updated.\n\tUpdatedAt time.Time `json:\"updated_at\" api:\"required\" format:\"date-time\"`\n\t// ID of the Workflow run that started the action. Null for direct output requests.\n\tWorkflowRunID string `json:\"workflow_run_id\" api:\"required\"`\n\t// Action key within the rule. Omitted for direct output requests.\n\tActionID string `json:\"action_id\"`\n\t// Reason the action failed. Omitted when no failure message is available.\n\tError string `json:\"error\"`\n\t// Machine-readable reason for waiting, skipping, failure, or cancellation. Omitted\n\t// when no reason applies.\n\tReason string `json:\"reason\"`\n\t// Output reference and reuse flag. Included when the action completes\n\t// successfully.\n\tResult AssetActionResult `json:\"result\"`\n\t// Rule key from the Workflow definition. Omitted for direct output requests.\n\tRuleID string `json:\"rule_id\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID            respjson.Field\n\t\tAssetID       respjson.Field\n\t\tCompletedAt   respjson.Field\n\t\tCreatedAt     respjson.Field\n\t\tInput         respjson.Field\n\t\tStatus        respjson.Field\n\t\tType          respjson.Field\n\t\tUpdatedAt     respjson.Field\n\t\tWorkflowRunID respjson.Field\n\t\tActionID      respjson.Field\n\t\tError         respjson.Field\n\t\tReason        respjson.Field\n\t\tResult        respjson.Field\n\t\tRuleID        respjson.Field\n\t\tExtraFields   map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nOne execution of an Asset action, started by a Workflow or a direct output request.\n\n```go\nfunc (r AssetActionRun) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *AssetActionRun) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AssetActionStatus string\n```\nCurrent action status. pending means accepted; running means executing; waiting means awaiting Asset readiness or an output. completed, failed, skipped, and cancelled are terminal states.\n\n```go\nconst (\n\tAssetActionStatusPending   AssetActionStatus = \"pending\"\n\tAssetActionStatusRunning   AssetActionStatus = \"running\"\n\tAssetActionStatusWaiting   AssetActionStatus = \"waiting\"\n\tAssetActionStatusCompleted AssetActionStatus = \"completed\"\n\tAssetActionStatusFailed    AssetActionStatus = \"failed\"\n\tAssetActionStatusSkipped   AssetActionStatus = \"skipped\"\n\tAssetActionStatusCancelled AssetActionStatus = \"cancelled\"\n)\n```\n\n```go\ntype AssetActionType string\n```\nThe action performed: create a static rendition, generate an original transcript or captions, translate a caption, or generate thumbnails.\n\n```go\nconst (\n\tAssetActionTypeCreateStaticRendition AssetActionType = \"create_static_rendition\"\n\tAssetActionTypeCreateCaption         AssetActionType = \"create_caption\"\n\tAssetActionTypeCreateTranscript      AssetActionType = \"create_transcript\"\n\tAssetActionTypeTranslateCaption      AssetActionType = \"translate_caption\"\n\tAssetActionTypeCreateThumbnails      AssetActionType = \"create_thumbnails\"\n)\n```\n\n```go\ntype AssetCaption struct {\n\t// Unique Asset output ID, prefixed with aop\\_.\n\tID string `json:\"id\" api:\"required\"`\n\t// Caption processing status.\n\t//\n\t// Any of \"preparing\", \"ready\", \"failed\", \"expired\".\n\tStatus AssetCaptionStatus `json:\"status\" api:\"required\"`\n\t// Time this caption output was requested.\n\tCreatedAt time.Time `json:\"created_at\" format:\"date-time\"`\n\t// Reason caption processing failed.\n\tError shared.AssetOutputError `json:\"error\"`\n\t// Primary language of this subtitle track, such as en or fr. Omitted when no\n\t// speech was detected or processing has not finished.\n\tLanguageCode string `json:\"language_code\"`\n\t// Subtitle media playlist path in Storage. Available when speech was detected.\n\tPlaylistPath string `json:\"playlist_path\"`\n\t// Combined subtitle playlist and WebVTT size in bytes. Available when ready.\n\tSize int64 `json:\"size\"`\n\t// ID of the caption track translated to create this track. Omitted for speech\n\t// transcription.\n\tSourceCaptionID string `json:\"source_caption_id\"`\n\t// TranscriptId identifies the original-language transcript used to generate this\n\t// caption. Omitted for translated captions.\n\tTranscriptID string `json:\"transcript_id\"`\n\t// WebVTT subtitle segment path in Storage. Available when speech was detected.\n\tVttPath string `json:\"vtt_path\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID              respjson.Field\n\t\tStatus          respjson.Field\n\t\tCreatedAt       respjson.Field\n\t\tError           respjson.Field\n\t\tLanguageCode    respjson.Field\n\t\tPlaylistPath    respjson.Field\n\t\tSize            respjson.Field\n\t\tSourceCaptionID respjson.Field\n\t\tTranscriptID    respjson.Field\n\t\tVttPath         respjson.Field\n\t\tExtraFields     map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r AssetCaption) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *AssetCaption) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AssetCaptionOutput struct {\n\t// Id identifies the Asset output, prefixed with aop\\_. The type field identifies\n\t// the output kind.\n\tID string `json:\"id\" api:\"required\"`\n\t// AssetId identifies the owning Asset.\n\tAssetID string `json:\"asset_id\" api:\"required\"`\n\t// Details contains the canonical typed output resource, including its available\n\t// delivery fields.\n\tDetails AssetCaption `json:\"details\" api:\"required\"`\n\t// Status specifies the output processing state. Expired means temporary output\n\t// files are no longer available.\n\t//\n\t// Any of \"preparing\", \"ready\", \"failed\", \"expired\".\n\tStatus AssetOutputStatus `json:\"status\" api:\"required\"`\n\t// Type identifies the output kind.\n\tType constant.Caption `json:\"type\" default:\"caption\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tAssetID     respjson.Field\n\t\tDetails     respjson.Field\n\t\tStatus      respjson.Field\n\t\tType        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nAn Asset-owned caption output and its canonical resource details.\n\n```go\nfunc (r AssetCaptionOutput) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *AssetCaptionOutput) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AssetCaptionOutputCreateParams struct {\n\t// Params specifies the settings for this output type.\n\tParams AssetCaptionOutputParams `json:\"params\" api:\"required\"`\n\t// Type specifies the output kind to create.\n\t//\n\t// This field can be elided, and will marshal its zero value as \"caption\".\n\tType constant.Caption `json:\"type\" default:\"caption\"`\n\t// contains filtered or unexported fields\n}\n```\nCreate an Asset-owned caption output.\n\nThe properties Params, Type are required.\n\n```go\nfunc (r AssetCaptionOutputCreateParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *AssetCaptionOutputCreateParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AssetCaptionOutputParams struct {\n\t// SourceCaptionId specifies the caption on this Asset to translate. Supply\n\t// language_code with this field. Omit both fields to generate original captions.\n\tSourceCaptionID param.Opt[string] `json:\"source_caption_id,omitzero\"`\n\t// LanguageCode specifies the target language for a translated caption. Supply\n\t// source_caption_id with this field. Omit both fields to transcribe the Asset\n\t// audio with automatic language detection.\n\t//\n\t// Any of \"en\", \"fr\", \"es\", \"de\", \"it\", \"pt\", \"nl\", \"ja\", \"ko\", \"zh\", \"ar\", \"hi\",\n\t// \"ru\", \"tr\", \"pl\", \"sv\".\n\tLanguageCode AssetCaptionOutputParamsLanguageCode `json:\"language_code,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nParameters for original captions or a translation of an existing caption on this Asset.\n\n```go\nfunc (r AssetCaptionOutputParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *AssetCaptionOutputParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AssetCaptionOutputParamsLanguageCode string\n```\nLanguageCode specifies the target language for a translated caption. Supply source\\_caption\\_id with this field. Omit both fields to transcribe the Asset audio with automatic language detection.\n\n```go\nconst (\n\tAssetCaptionOutputParamsLanguageCodeEn AssetCaptionOutputParamsLanguageCode = \"en\"\n\tAssetCaptionOutputParamsLanguageCodeFr AssetCaptionOutputParamsLanguageCode = \"fr\"\n\tAssetCaptionOutputParamsLanguageCodeEs AssetCaptionOutputParamsLanguageCode = \"es\"\n\tAssetCaptionOutputParamsLanguageCodeDe AssetCaptionOutputParamsLanguageCode = \"de\"\n\tAssetCaptionOutputParamsLanguageCodeIt AssetCaptionOutputParamsLanguageCode = \"it\"\n\tAssetCaptionOutputParamsLanguageCodePt AssetCaptionOutputParamsLanguageCode = \"pt\"\n\tAssetCaptionOutputParamsLanguageCodeNl AssetCaptionOutputParamsLanguageCode = \"nl\"\n\tAssetCaptionOutputParamsLanguageCodeJa AssetCaptionOutputParamsLanguageCode = \"ja\"\n\tAssetCaptionOutputParamsLanguageCodeKo AssetCaptionOutputParamsLanguageCode = \"ko\"\n\tAssetCaptionOutputParamsLanguageCodeZh AssetCaptionOutputParamsLanguageCode = \"zh\"\n\tAssetCaptionOutputParamsLanguageCodeAr AssetCaptionOutputParamsLanguageCode = \"ar\"\n\tAssetCaptionOutputParamsLanguageCodeHi AssetCaptionOutputParamsLanguageCode = \"hi\"\n\tAssetCaptionOutputParamsLanguageCodeRu AssetCaptionOutputParamsLanguageCode = \"ru\"\n\tAssetCaptionOutputParamsLanguageCodeTr AssetCaptionOutputParamsLanguageCode = \"tr\"\n\tAssetCaptionOutputParamsLanguageCodePl AssetCaptionOutputParamsLanguageCode = \"pl\"\n\tAssetCaptionOutputParamsLanguageCodeSv AssetCaptionOutputParamsLanguageCode = \"sv\"\n)\n```\n\n```go\ntype AssetCaptionStatus string\n```\nCaption processing status.\n\n```go\nconst (\n\tAssetCaptionStatusPreparing AssetCaptionStatus = \"preparing\"\n\tAssetCaptionStatusReady     AssetCaptionStatus = \"ready\"\n\tAssetCaptionStatusFailed    AssetCaptionStatus = \"failed\"\n\tAssetCaptionStatusExpired   AssetCaptionStatus = \"expired\"\n)\n```\n\n```go\ntype AssetCreateStorageParams struct {\n\t// ID of output Storage in this Project. Omit to use the Project default. Applies\n\t// to all outputs, including static renditions added later.\n\tID param.Opt[string] `json:\"id,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r AssetCreateStorageParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *AssetCreateStorageParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AssetDefaults struct {\n\t// Delete generated and partial files from the output Storage when a new Asset\n\t// fails. The Asset record and original Source are preserved. Cleanup is attempted\n\t// once after a delay and requires delete permission on the Storage. Defaults to\n\t// false. Existing Assets are unchanged.\n\tDeleteFilesOnFailure bool `json:\"delete_files_on_failure\"`\n\t// Maximum streaming resolution. Defaults to 1080p on Hobby and 2160p on other\n\t// plans. 2160p requires Starter or above. Smaller sources are not upscaled. Does\n\t// not affect static renditions.\n\t//\n\t// Any of \"1080p\", \"2160p\".\n\tMaxResolution AssetDefaultsMaxResolution `json:\"max_resolution\"`\n\t// Minimum streaming resolution. Defaults to auto, with no minimum. Must not exceed\n\t// max_resolution. Smaller sources are not upscaled. Does not affect static\n\t// renditions.\n\t//\n\t// Any of \"auto\", \"240p\", \"360p\", \"540p\", \"720p\", \"1080p\", \"1440p\", \"2160p\".\n\tMinResolution AssetDefaultsMinResolution `json:\"min_resolution\"`\n\t// PathTemplate specifies the Asset output folder relative to Storage base_prefix.\n\t// Supports {assetID} and case-sensitive {metadata.\u003ckey\u003e}; referenced values must\n\t// be non-empty. Ignored for Chunkify storage, which always uses {assetID}.\n\t// Defaults to {assetID}. Maximum template size: 1024 UTF-8 bytes. Expanded prefix:\n\t// 768 bytes including base_prefix and trailing slash.\n\tPathTemplate string `json:\"path_template\"`\n\t// Allow public playback of new Assets without an API token, through the public\n\t// preview page and embeds. Defaults to true. Existing Assets are unchanged.\n\tPublicPlayback bool `json:\"public_playback\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tDeleteFilesOnFailure respjson.Field\n\t\tMaxResolution        respjson.Field\n\t\tMinResolution        respjson.Field\n\t\tPathTemplate         respjson.Field\n\t\tPublicPlayback       respjson.Field\n\t\tExtraFields          map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r AssetDefaults) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *AssetDefaults) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AssetDefaultsMaxResolution string\n```\n\n```go\nconst (\n\tAssetDefaultsMaxResolution1080p AssetDefaultsMaxResolution = \"1080p\"\n\tAssetDefaultsMaxResolution2160p AssetDefaultsMaxResolution = \"2160p\"\n)\n```\n\n```go\ntype AssetDefaultsMinResolution string\n```\n\n```go\nconst (\n\tAssetDefaultsMinResolutionAuto  AssetDefaultsMinResolution = \"auto\"\n\tAssetDefaultsMinResolution240p  AssetDefaultsMinResolution = \"240p\"\n\tAssetDefaultsMinResolution360p  AssetDefaultsMinResolution = \"360p\"\n\tAssetDefaultsMinResolution540p  AssetDefaultsMinResolution = \"540p\"\n\tAssetDefaultsMinResolution720p  AssetDefaultsMinResolution = \"720p\"\n\tAssetDefaultsMinResolution1080p AssetDefaultsMinResolution = \"1080p\"\n\tAssetDefaultsMinResolution1440p AssetDefaultsMinResolution = \"1440p\"\n\tAssetDefaultsMinResolution2160p AssetDefaultsMinResolution = \"2160p\"\n)\n```\n\n```go\ntype AssetDefaultsParams struct {\n\t// Delete generated and partial files from the output Storage when a new Asset\n\t// fails. The Asset record and original Source are preserved. Cleanup is attempted\n\t// once after a delay and requires delete permission on the Storage. Defaults to\n\t// false. Existing Assets are unchanged.\n\tDeleteFilesOnFailure param.Opt[bool] `json:\"delete_files_on_failure,omitzero\"`\n\t// PathTemplate specifies the Asset output folder relative to Storage base_prefix.\n\t// Supports {assetID} and case-sensitive {metadata.\u003ckey\u003e}; referenced values must\n\t// be non-empty. Ignored for Chunkify storage, which always uses {assetID}.\n\t// Defaults to {assetID}. Maximum template size: 1024 UTF-8 bytes. Expanded prefix:\n\t// 768 bytes including base_prefix and trailing slash.\n\tPathTemplate param.Opt[string] `json:\"path_template,omitzero\"`\n\t// Allow public playback of new Assets without an API token, through the public\n\t// preview page and embeds. Defaults to true. Existing Assets are unchanged.\n\tPublicPlayback param.Opt[bool] `json:\"public_playback,omitzero\"`\n\t// Maximum streaming resolution. Defaults to 1080p on Hobby and 2160p on other\n\t// plans. 2160p requires Starter or above. Smaller sources are not upscaled. Does\n\t// not affect static renditions.\n\t//\n\t// Any of \"1080p\", \"2160p\".\n\tMaxResolution AssetDefaultsMaxResolution `json:\"max_resolution,omitzero\"`\n\t// Minimum streaming resolution. Defaults to auto, with no minimum. Must not exceed\n\t// max_resolution. Smaller sources are not upscaled. Does not affect static\n\t// renditions.\n\t//\n\t// Any of \"auto\", \"240p\", \"360p\", \"540p\", \"720p\", \"1080p\", \"1440p\", \"2160p\".\n\tMinResolution AssetDefaultsMinResolution `json:\"min_resolution,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r AssetDefaultsParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *AssetDefaultsParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AssetDeleteParams struct {\n\t// Also delete all files under the Asset's storage prefix, including streaming and\n\t// static outputs. Other files and the original input are preserved. Defaults to\n\t// false, which preserves published media files. Private transcript text and saved\n\t// subtitle copies are always scheduled for removal. File deletion is irreversible.\n\t// If cleanup fails, records remain for retry, but files may already be deleted.\n\tDeleteFiles param.Opt[bool] `query:\"delete_files,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r AssetDeleteParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [AssetDeleteParams](#AssetDeleteParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype AssetError struct {\n\t// Machine-readable processing error code.\n\tCode string `json:\"code\" api:\"required\"`\n\t// Description of the processing failure.\n\tMessage string `json:\"message\" api:\"required\"`\n\t// Processing stage that failed.\n\t//\n\t// Any of \"ingest\", \"analysis\", \"encoding\", \"packaging\", \"upload\", \"validation\",\n\t// \"cleanup\".\n\tStage AssetErrorStage `json:\"stage\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCode        respjson.Field\n\t\tMessage     respjson.Field\n\t\tStage       respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r AssetError) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *AssetError) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AssetErrorStage string\n```\nProcessing stage that failed.\n\n```go\nconst (\n\tAssetErrorStageIngest     AssetErrorStage = \"ingest\"\n\tAssetErrorStageAnalysis   AssetErrorStage = \"analysis\"\n\tAssetErrorStageEncoding   AssetErrorStage = \"encoding\"\n\tAssetErrorStagePackaging  AssetErrorStage = \"packaging\"\n\tAssetErrorStageUpload     AssetErrorStage = \"upload\"\n\tAssetErrorStageValidation AssetErrorStage = \"validation\"\n\tAssetErrorStageCleanup    AssetErrorStage = \"cleanup\"\n)\n```\n\n```go\ntype AssetGetResponseEnvelope struct {\n\tData   Asset            `json:\"data\" api:\"required\"`\n\tStatus constant.Success `json:\"status\" default:\"success\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tData        respjson.Field\n\t\tStatus      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r AssetGetResponseEnvelope) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *AssetGetResponseEnvelope) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AssetListParams struct {\n\t// Maximum number of Assets to return.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Number of Assets to skip.\n\tOffset param.Opt[int64] `query:\"offset,omitzero\" json:\"-\"`\n\t// Case-insensitive search of Asset IDs and titles.\n\tSearch param.Opt[string] `query:\"search,omitzero\" json:\"-\"`\n\t// Filter Assets linked to this Source. Omit to include Assets from all Sources in\n\t// the Project.\n\tSourceID param.Opt[string] `query:\"source_id,omitzero\" json:\"-\"`\n\t// Filter by output Storage ID.\n\tStorageID param.Opt[string]      `query:\"storage_id,omitzero\" json:\"-\"`\n\tCreated   AssetListParamsCreated `query:\"created,omitzero\" json:\"-\"`\n\t// Filter by metadata. Repeat key:value pairs to match all supplied metadata\n\t// conditions.\n\tMetadata []string `query:\"metadata,omitzero\" json:\"-\"`\n\t// Filter by Asset status.\n\t//\n\t// Any of \"preparing\", \"ready\", \"failed\", \"expired\".\n\tStatus AssetStatus `query:\"status,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r AssetListParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [AssetListParams](#AssetListParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype AssetListParamsCreated struct {\n\t// Created at or after this Unix timestamp in seconds.\n\tGte param.Opt[int64] `query:\"gte,omitzero\" json:\"-\"`\n\t// Created at or before this Unix timestamp in seconds.\n\tLte param.Opt[int64] `query:\"lte,omitzero\" json:\"-\"`\n\t// Creation-time ordering. Defaults to newest first.\n\t//\n\t// Any of \"asc\", \"desc\".\n\tSort string `query:\"sort,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r AssetListParamsCreated) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [AssetListParamsCreated](#AssetListParamsCreated)'s query parameters as \\`url.Values\\`.\n\n```go\ntype AssetMaxResolution string\n```\nMaximum streaming resolution selected at creation. Does not limit static renditions.\n\n```go\nconst (\n\tAssetMaxResolution1080p AssetMaxResolution = \"1080p\"\n\tAssetMaxResolution2160p AssetMaxResolution = \"2160p\"\n)\n```\n\n```go\ntype AssetMinResolution string\n```\nMinimum streaming resolution selected at creation. auto means no minimum; smaller sources are not upscaled.\n\n```go\nconst (\n\tAssetMinResolutionAuto  AssetMinResolution = \"auto\"\n\tAssetMinResolution240p  AssetMinResolution = \"240p\"\n\tAssetMinResolution360p  AssetMinResolution = \"360p\"\n\tAssetMinResolution540p  AssetMinResolution = \"540p\"\n\tAssetMinResolution720p  AssetMinResolution = \"720p\"\n\tAssetMinResolution1080p AssetMinResolution = \"1080p\"\n\tAssetMinResolution1440p AssetMinResolution = \"1440p\"\n\tAssetMinResolution2160p AssetMinResolution = \"2160p\"\n)\n```\n\n```go\ntype AssetNewParams struct {\n\t// ID of the video Source to process.\n\tSourceID string `json:\"source_id\" api:\"required\"`\n\t// WorkflowId specifies the Workflow to select. Omit to use the Project default.\n\t// Set null to disable automatic actions. The current revision is pinned when\n\t// creation is accepted.\n\tWorkflowID param.Opt[string] `json:\"workflow_id,omitzero\"`\n\t// PathTemplate specifies the Asset output folder relative to Storage base_prefix.\n\t// Supports {assetID} and case-sensitive {metadata.\u003ckey\u003e}; referenced values must\n\t// be non-empty. Ignored for Chunkify storage, which always uses {assetID}.\n\t// Overrides the Project default. Defaults to {assetID} when neither is set.\n\t// Maximum template size: 1024 UTF-8 bytes. Expanded prefix: 768 bytes including\n\t// base_prefix and trailing slash.\n\tPathTemplate param.Opt[string] `json:\"path_template,omitzero\"`\n\t// Allow public playback without an API token, through the public preview page and\n\t// embeds. Omit to use the Project default. Does not control CDN or static download\n\t// access.\n\tPublicPlayback param.Opt[bool] `json:\"public_playback,omitzero\"`\n\t// Asset title, up to 256 characters. Defaults to an empty string.\n\tTitle param.Opt[string] `json:\"title,omitzero\"`\n\t// Maximum streaming resolution. Omit to use the Project default, or the plan\n\t// maximum if unset. 2160p requires Starter or above. Smaller sources are not\n\t// upscaled. Does not affect static renditions.\n\t//\n\t// Any of \"1080p\", \"2160p\".\n\tMaxResolution AssetNewParamsMaxResolution `json:\"max_resolution,omitzero\"`\n\t// String metadata with a maximum encoded JSON size of 2048 bytes.\n\tMetadata map[string]string `json:\"metadata,omitzero\"`\n\t// Minimum streaming resolution. Omit to use the Project default; auto removes the\n\t// minimum. Must not exceed max_resolution. Smaller sources are not upscaled. Does\n\t// not affect static renditions.\n\t//\n\t// Any of \"auto\", \"240p\", \"360p\", \"540p\", \"720p\", \"1080p\", \"1440p\", \"2160p\".\n\tMinResolution AssetNewParamsMinResolution `json:\"min_resolution,omitzero\"`\n\t// Output Storage. Omit to use the Project default. The path_template controls the\n\t// folder for generated output paths.\n\tStorage AssetCreateStorageParams `json:\"storage,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r AssetNewParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *AssetNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AssetNewParamsMaxResolution string\n```\nMaximum streaming resolution. Omit to use the Project default, or the plan maximum if unset. 2160p requires Starter or above. Smaller sources are not upscaled. Does not affect static renditions.\n\n```go\nconst (\n\tAssetNewParamsMaxResolution1080p AssetNewParamsMaxResolution = \"1080p\"\n\tAssetNewParamsMaxResolution2160p AssetNewParamsMaxResolution = \"2160p\"\n)\n```\n\n```go\ntype AssetNewParamsMinResolution string\n```\nMinimum streaming resolution. Omit to use the Project default; auto removes the minimum. Must not exceed max\\_resolution. Smaller sources are not upscaled. Does not affect static renditions.\n\n```go\nconst (\n\tAssetNewParamsMinResolutionAuto  AssetNewParamsMinResolution = \"auto\"\n\tAssetNewParamsMinResolution240p  AssetNewParamsMinResolution = \"240p\"\n\tAssetNewParamsMinResolution360p  AssetNewParamsMinResolution = \"360p\"\n\tAssetNewParamsMinResolution540p  AssetNewParamsMinResolution = \"540p\"\n\tAssetNewParamsMinResolution720p  AssetNewParamsMinResolution = \"720p\"\n\tAssetNewParamsMinResolution1080p AssetNewParamsMinResolution = \"1080p\"\n\tAssetNewParamsMinResolution1440p AssetNewParamsMinResolution = \"1440p\"\n\tAssetNewParamsMinResolution2160p AssetNewParamsMinResolution = \"2160p\"\n)\n```\n\n```go\ntype AssetNewResponseEnvelope struct {\n\tData   Asset            `json:\"data\" api:\"required\"`\n\tStatus constant.Success `json:\"status\" default:\"success\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tData        respjson.Field\n\t\tStatus      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r AssetNewResponseEnvelope) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *AssetNewResponseEnvelope) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AssetOutputDeleteParams struct {\n\tAssetID string `path:\"assetId\" api:\"required\" json:\"-\"`\n\t// DeleteFiles specifies whether to remove this output's published media files from\n\t// Storage. Defaults to false, preserving those files. Transcript deletion always\n\t// schedules removal of its private text and saved subtitle copy, regardless of\n\t// this option. The Asset, Source, and other outputs are preserved. File cleanup\n\t// failures retain the output record for retry; files already removed cannot be\n\t// restored.\n\tDeleteFiles param.Opt[bool] `query:\"delete_files,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r AssetOutputDeleteParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [AssetOutputDeleteParams](#AssetOutputDeleteParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype AssetOutputError = shared.AssetOutputError\n```\nA customer-facing Asset output processing failure.\n\nThis is an alias to an internal type.\n\n```go\ntype AssetOutputGetParams struct {\n\tAssetID string `path:\"assetId\" api:\"required\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype AssetOutputGetResponseEnvelope struct {\n\t// A resource produced for an Asset, requested directly or by a Workflow. Its type\n\t// selects the details schema. Output state is independent of Asset playback\n\t// readiness.\n\tData AssetOutputUnion `json:\"data\" api:\"required\"`\n\t// Status is success for a successful request.\n\tStatus constant.Success `json:\"status\" default:\"success\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tData        respjson.Field\n\t\tStatus      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nOne Asset output.\n\n```go\nfunc (r AssetOutputGetResponseEnvelope) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *AssetOutputGetResponseEnvelope) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AssetOutputListParams struct {\n\t// Limit specifies the maximum number of results to return. Accepts 1 to 100.\n\t// Defaults to 100.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Offset specifies the number of matching results to skip. Must be at least 0.\n\t// Defaults to 0.\n\tOffset param.Opt[int64] `query:\"offset,omitzero\" json:\"-\"`\n\t// Status specifies the current output state to include. Omit it to include all\n\t// states.\n\t//\n\t// Any of \"preparing\", \"ready\", \"failed\", \"expired\".\n\tStatus AssetOutputListParamsStatus `query:\"status,omitzero\" json:\"-\"`\n\t// Type specifies the output kind to include. Omit it to include all kinds.\n\t//\n\t// Any of \"caption\", \"transcript\", \"static_rendition\", \"thumbnail\".\n\tType AssetOutputListParamsType `query:\"type,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r AssetOutputListParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [AssetOutputListParams](#AssetOutputListParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype AssetOutputListParamsStatus string\n```\nStatus specifies the current output state to include. Omit it to include all states.\n\n```go\nconst (\n\tAssetOutputListParamsStatusPreparing AssetOutputListParamsStatus = \"preparing\"\n\tAssetOutputListParamsStatusReady     AssetOutputListParamsStatus = \"ready\"\n\tAssetOutputListParamsStatusFailed    AssetOutputListParamsStatus = \"failed\"\n\tAssetOutputListParamsStatusExpired   AssetOutputListParamsStatus = \"expired\"\n)\n```\n\n```go\ntype AssetOutputListParamsType string\n```\nType specifies the output kind to include. Omit it to include all kinds.\n\n```go\nconst (\n\tAssetOutputListParamsTypeCaption         AssetOutputListParamsType = \"caption\"\n\tAssetOutputListParamsTypeTranscript      AssetOutputListParamsType = \"transcript\"\n\tAssetOutputListParamsTypeStaticRendition AssetOutputListParamsType = \"static_rendition\"\n\tAssetOutputListParamsTypeThumbnail       AssetOutputListParamsType = \"thumbnail\"\n)\n```\n\n```go\ntype AssetOutputNewParams struct {\n\n\t// This field is a request body variant, only one variant field can be set. Create\n\t// an Asset-owned caption output.\n\tOfCaption *AssetCaptionOutputCreateParams `json:\",inline\"`\n\t// This field is a request body variant, only one variant field can be set. Create\n\t// an Asset-owned static rendition output.\n\tOfStaticRendition *AssetStaticRenditionOutputCreateParams `json:\",inline\"`\n\t// This field is a request body variant, only one variant field can be set. Create\n\t// an Asset-owned thumbnail output.\n\tOfThumbnail *AssetThumbnailOutputCreateParams `json:\",inline\"`\n\t// This field is a request body variant, only one variant field can be set. Create\n\t// or reuse the original-language transcript for an Asset. Caption generation\n\t// shares this transcript and its speech-recognition charge.\n\tOfTranscript *AssetTranscriptOutputCreateParams `json:\",inline\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (u AssetOutputNewParams) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *AssetOutputNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AssetOutputNewResponseEnvelope struct {\n\t// A resource produced for an Asset, requested directly or by a Workflow. Its type\n\t// selects the details schema. Output state is independent of Asset playback\n\t// readiness.\n\tData AssetOutputUnion `json:\"data\" api:\"required\"`\n\t// Status is success for a successful request.\n\tStatus constant.Success `json:\"status\" default:\"success\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tData        respjson.Field\n\t\tStatus      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nOne Asset output.\n\n```go\nfunc (r AssetOutputNewResponseEnvelope) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *AssetOutputNewResponseEnvelope) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AssetOutputService struct {\n\tOptions []option.RequestOption\n}\n```\nAutomatic video-on-demand Assets and independent H.264 MP4 static renditions.\n\nAssetOutputService contains methods and other services that help with interacting with the chunkify API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewAssetOutputService](#NewAssetOutputService) method instead.\n\n```go\nfunc NewAssetOutputService(opts ...option.RequestOption) (r AssetOutputService)\n```\nNewAssetOutputService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *AssetOutputService) Delete(ctx context.Context, outputID string, params AssetOutputDeleteParams, opts ...option.RequestOption) (err error)\n```\nDelete one output belonging to this Asset and Project. Its type is resolved from the output ID. Type-specific processing and dependency restrictions still apply.\n\n```go\nfunc (r *AssetOutputService) Get(ctx context.Context, outputID string, query AssetOutputGetParams, opts ...option.RequestOption) (res *AssetOutputUnion, err error)\n```\nRetrieve one output belonging to the specified Asset and authenticated Project. Delivery URLs follow the output resource retention and expiry rules.\n\n```go\nfunc (r *AssetOutputService) List(ctx context.Context, assetID string, query AssetOutputListParams, opts ...option.RequestOption) (res *pagination.PaginatedResults[AssetOutputUnion], err error)\n```\nList outputs requested directly or by a Workflow. Results are ordered by creation date, newest first, with descending output ID as a tie-breaker. Pagination and total apply after type and status filters. Core playback, poster and default timeline previews remain on the Asset.\n\n```go\nfunc (r *AssetOutputService) ListAutoPaging(ctx context.Context, assetID string, query AssetOutputListParams, opts ...option.RequestOption) *pagination.PaginatedResultsAutoPager[AssetOutputUnion]\n```\nList outputs requested directly or by a Workflow. Results are ordered by creation date, newest first, with descending output ID as a tie-breaker. Pagination and total apply after type and status filters. Core playback, poster and default timeline previews remain on the Asset.\n\n```go\nfunc (r *AssetOutputService) New(ctx context.Context, assetID string, body AssetOutputNewParams, opts ...option.RequestOption) (res *AssetOutputUnion, err error)\n```\nCreate one caption, static rendition or additional thumbnail output. The accepted output processes asynchronously and is returned in the same envelope as output reads.\n\n```go\ntype AssetOutputStatus string\n```\nStatus specifies the output processing state. Expired means temporary output files are no longer available.\n\n```go\nconst (\n\tAssetOutputStatusPreparing AssetOutputStatus = \"preparing\"\n\tAssetOutputStatusReady     AssetOutputStatus = \"ready\"\n\tAssetOutputStatusFailed    AssetOutputStatus = \"failed\"\n\tAssetOutputStatusExpired   AssetOutputStatus = \"expired\"\n)\n```\n\n```go\ntype AssetOutputUnion struct {\n\tID      string `json:\"id\"`\n\tAssetID string `json:\"asset_id\"`\n\t// This field is a union of [AssetCaption], [AssetStaticRendition], [Thumbnail],\n\t// [AssetTranscript]\n\tDetails AssetOutputUnionDetails `json:\"details\"`\n\t// This field is from variant [AssetCaptionOutput].\n\tStatus AssetOutputStatus `json:\"status\"`\n\t// Any of \"caption\", \"static_rendition\", \"thumbnail\", \"transcript\".\n\tType string `json:\"type\"`\n\tJSON struct {\n\t\tID      respjson.Field\n\t\tAssetID respjson.Field\n\t\tDetails respjson.Field\n\t\tStatus  respjson.Field\n\t\tType    respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nAssetOutputUnion contains all possible properties and values from [AssetCaptionOutput](#AssetCaptionOutput), [AssetStaticRenditionOutput](#AssetStaticRenditionOutput), [AssetThumbnailOutput](#AssetThumbnailOutput), [AssetTranscriptOutput](#AssetTranscriptOutput).\n\nUse the [AssetOutputUnion.AsAny](#AssetOutputUnion.AsAny) method to switch on the variant.\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\n```go\nfunc (u AssetOutputUnion) AsAny() anyAssetOutput\n```\nUse the following switch statement to find the correct variant\n\n\tswitch variant := AssetOutputUnion.AsAny().(type) {\n\tcase chunkify.AssetCaptionOutput:\n\tcase chunkify.AssetStaticRenditionOutput:\n\tcase chunkify.AssetThumbnailOutput:\n\tcase chunkify.AssetTranscriptOutput:\n\tdefault:\n\t  fmt.Errorf(\"no variant present\")\n\t}\n\n```go\nfunc (u AssetOutputUnion) AsCaption() (v AssetCaptionOutput)\n```\n\n```go\nfunc (u AssetOutputUnion) AsStaticRendition() (v AssetStaticRenditionOutput)\n```\n\n```go\nfunc (u AssetOutputUnion) AsThumbnail() (v AssetThumbnailOutput)\n```\n\n```go\nfunc (u AssetOutputUnion) AsTranscript() (v AssetTranscriptOutput)\n```\n\n```go\nfunc (u AssetOutputUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *AssetOutputUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AssetOutputUnionDetails struct {\n\tID        string    `json:\"id\"`\n\tStatus    string    `json:\"status\"`\n\tCreatedAt time.Time `json:\"created_at\"`\n\t// This field is a union of [shared.AssetOutputError], [ThumbnailError]\n\tError        AssetOutputUnionDetailsError `json:\"error\"`\n\tLanguageCode string                       `json:\"language_code\"`\n\t// This field is from variant [AssetCaption].\n\tPlaylistPath string `json:\"playlist_path\"`\n\tSize         int64  `json:\"size\"`\n\t// This field is from variant [AssetCaption].\n\tSourceCaptionID string `json:\"source_caption_id\"`\n\t// This field is from variant [AssetCaption].\n\tTranscriptID string `json:\"transcript_id\"`\n\t// This field is from variant [AssetCaption].\n\tVttPath string `json:\"vtt_path\"`\n\tAssetID string `json:\"asset_id\"`\n\t// This field is from variant [AssetStaticRendition].\n\tContainer constant.MP4 `json:\"container\"`\n\t// This field is from variant [AssetStaticRendition].\n\tHeight int64 `json:\"height\"`\n\t// This field is from variant [AssetStaticRendition].\n\tPath string `json:\"path\"`\n\t// This field is from variant [AssetStaticRendition].\n\tRequestedResolution AssetStaticRenditionRequestedResolution `json:\"requested_resolution\"`\n\t// This field is from variant [AssetStaticRendition].\n\tResolution string    `json:\"resolution\"`\n\tStorageID  string    `json:\"storage_id\"`\n\tUpdatedAt  time.Time `json:\"updated_at\"`\n\t// This field is from variant [AssetStaticRendition].\n\tVideoCodec constant.H264 `json:\"video_codec\"`\n\t// This field is from variant [AssetStaticRendition].\n\tWidth int64 `json:\"width\"`\n\t// This field is from variant [AssetStaticRendition].\n\tAudioBitrate int64 `json:\"audio_bitrate\"`\n\t// This field is from variant [AssetStaticRendition].\n\tAudioCodec string `json:\"audio_codec\"`\n\t// This field is from variant [AssetStaticRendition].\n\tAudioSamplerate int64 `json:\"audio_samplerate\"`\n\t// This field is from variant [AssetStaticRendition].\n\tCdnURL string `json:\"cdn_url\"`\n\t// This field is from variant [AssetStaticRendition].\n\tDuration float64 `json:\"duration\"`\n\t// This field is from variant [AssetStaticRendition].\n\tProgress AssetRenditionProgress `json:\"progress\"`\n\tReadyAt  time.Time              `json:\"ready_at\"`\n\t// This field is from variant [AssetStaticRendition].\n\tURL string `json:\"url\"`\n\t// This field is from variant [AssetStaticRendition].\n\tVideoBitrate int64 `json:\"video_bitrate\"`\n\t// This field is from variant [AssetStaticRendition].\n\tVideoFramerate float64 `json:\"video_framerate\"`\n\t// This field is from variant [Thumbnail].\n\tFiles []ThumbnailFile `json:\"files\"`\n\t// This field is from variant [Thumbnail].\n\tMetadata map[string]string `json:\"metadata\"`\n\t// This field is from variant [Thumbnail].\n\tSamples []ThumbnailSample `json:\"samples\"`\n\t// This field is from variant [Thumbnail].\n\tSettings ThumbnailSettings `json:\"settings\"`\n\t// This field is from variant [Thumbnail].\n\tSourceID string `json:\"source_id\"`\n\t// This field is from variant [Thumbnail].\n\tStoragePath string `json:\"storage_path\"`\n\t// This field is from variant [Thumbnail].\n\tStoragePrefix string `json:\"storage_prefix\"`\n\t// This field is from variant [Thumbnail].\n\tCreatedByTokenID string `json:\"created_by_token_id\"`\n\t// This field is from variant [Thumbnail].\n\tCreatedByUserID string `json:\"created_by_user_id\"`\n\t// This field is from variant [Thumbnail].\n\tCreatedVia shared.CreatedVia `json:\"created_via\"`\n\t// This field is from variant [Thumbnail].\n\tDeleteAt time.Time `json:\"delete_at\"`\n\t// This field is from variant [Thumbnail].\n\tExpiresAt time.Time `json:\"expires_at\"`\n\t// This field is from variant [AssetTranscript].\n\tContent AssetTranscriptContent `json:\"content\"`\n\tJSON    struct {\n\t\tID                  respjson.Field\n\t\tStatus              respjson.Field\n\t\tCreatedAt           respjson.Field\n\t\tError               respjson.Field\n\t\tLanguageCode        respjson.Field\n\t\tPlaylistPath        respjson.Field\n\t\tSize                respjson.Field\n\t\tSourceCaptionID     respjson.Field\n\t\tTranscriptID        respjson.Field\n\t\tVttPath             respjson.Field\n\t\tAssetID             respjson.Field\n\t\tContainer           respjson.Field\n\t\tHeight              respjson.Field\n\t\tPath                respjson.Field\n\t\tRequestedResolution respjson.Field\n\t\tResolution          respjson.Field\n\t\tStorageID           respjson.Field\n\t\tUpdatedAt           respjson.Field\n\t\tVideoCodec          respjson.Field\n\t\tWidth               respjson.Field\n\t\tAudioBitrate        respjson.Field\n\t\tAudioCodec          respjson.Field\n\t\tAudioSamplerate     respjson.Field\n\t\tCdnURL              respjson.Field\n\t\tDuration            respjson.Field\n\t\tProgress            respjson.Field\n\t\tReadyAt             respjson.Field\n\t\tURL                 respjson.Field\n\t\tVideoBitrate        respjson.Field\n\t\tVideoFramerate      respjson.Field\n\t\tFiles               respjson.Field\n\t\tMetadata            respjson.Field\n\t\tSamples             respjson.Field\n\t\tSettings            respjson.Field\n\t\tSourceID            respjson.Field\n\t\tStoragePath         respjson.Field\n\t\tStoragePrefix       respjson.Field\n\t\tCreatedByTokenID    respjson.Field\n\t\tCreatedByUserID     respjson.Field\n\t\tCreatedVia          respjson.Field\n\t\tDeleteAt            respjson.Field\n\t\tExpiresAt           respjson.Field\n\t\tContent             respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nAssetOutputUnionDetails is an implicit subunion of [AssetOutputUnion](#AssetOutputUnion). AssetOutputUnionDetails provides convenient access to the sub-properties of the union.\n\nFor type safety it is recommended to directly use a variant of the [AssetOutputUnion](#AssetOutputUnion).\n\n```go\nfunc (r *AssetOutputUnionDetails) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AssetOutputUnionDetailsError struct {\n\tCode    string `json:\"code\"`\n\tMessage string `json:\"message\"`\n\tJSON    struct {\n\t\tCode    respjson.Field\n\t\tMessage respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nAssetOutputUnionDetailsError is an implicit subunion of [AssetOutputUnion](#AssetOutputUnion). AssetOutputUnionDetailsError provides convenient access to the sub-properties of the union.\n\nFor type safety it is recommended to directly use a variant of the [AssetOutputUnion](#AssetOutputUnion).\n\n```go\nfunc (r *AssetOutputUnionDetailsError) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AssetPoster struct {\n\t// Image height in pixels.\n\tHeight int64 `json:\"height\" api:\"required\"`\n\t// Image path in Storage.\n\tPath string `json:\"path\" api:\"required\"`\n\t// Image width in pixels.\n\tWidth int64 `json:\"width\" api:\"required\"`\n\t// Unsigned image CDN URL. Available once the poster exists and Storage has a CDN\n\t// URL.\n\tCdnURL string `json:\"cdn_url\" format:\"uri\"`\n\t// Public poster preview URL. Available when the Asset is ready and public_playback\n\t// is true.\n\tPreviewURL string `json:\"preview_url\" format:\"uri\"`\n\t// Image size in bytes.\n\tSize int64 `json:\"size\"`\n\t// Position of the selected frame in seconds.\n\tTimeSeconds float64 `json:\"time_seconds\"`\n\t// Signed image URL, valid for up to ten minutes. Available once the poster exists,\n\t// regardless of public_playback.\n\tURL string `json:\"url\" format:\"uri\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tHeight      respjson.Field\n\t\tPath        respjson.Field\n\t\tWidth       respjson.Field\n\t\tCdnURL      respjson.Field\n\t\tPreviewURL  respjson.Field\n\t\tSize        respjson.Field\n\t\tTimeSeconds respjson.Field\n\t\tURL         respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r AssetPoster) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *AssetPoster) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AssetRenditionProgress struct {\n\t// Stage specifies the current preparation activity. Finalization and streaming\n\t// publication can overlap encoding; finalizing is shown once encoding has\n\t// completed.\n\t//\n\t// Any of \"queued\", \"starting\", \"encoding\", \"finalizing\", \"uploading\".\n\tStage AssetRenditionProgressStage `json:\"stage\" api:\"required\"`\n\t// Percent specifies the percentage of the video encoded so far. Present only\n\t// during encoding when video duration is known. It may decrease if processing\n\t// restarts. It does not estimate total preparation time.\n\tPercent float64 `json:\"percent\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tStage       respjson.Field\n\t\tPercent     respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nCurrent rendition preparation progress. Encoding progress measures processed video duration, not elapsed time or playback availability.\n\n```go\nfunc (r AssetRenditionProgress) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *AssetRenditionProgress) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AssetRenditionProgressStage string\n```\nStage specifies the current preparation activity. Finalization and streaming publication can overlap encoding; finalizing is shown once encoding has completed.\n\n```go\nconst (\n\tAssetRenditionProgressStageQueued     AssetRenditionProgressStage = \"queued\"\n\tAssetRenditionProgressStageStarting   AssetRenditionProgressStage = \"starting\"\n\tAssetRenditionProgressStageEncoding   AssetRenditionProgressStage = \"encoding\"\n\tAssetRenditionProgressStageFinalizing AssetRenditionProgressStage = \"finalizing\"\n\tAssetRenditionProgressStageUploading  AssetRenditionProgressStage = \"uploading\"\n)\n```\n\n```go\ntype AssetService struct {\n\tOptions []option.RequestOption\n\t// Automatic video-on-demand Assets and independent H.264 MP4 static renditions.\n\tOutputs AssetOutputService\n\t// Automatic video-on-demand Assets and independent H.264 MP4 static renditions.\n\tWorkflow AssetWorkflowService\n}\n```\nAutomatic video-on-demand Assets and independent H.264 MP4 static renditions.\n\nAssetService contains methods and other services that help with interacting with the chunkify API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewAssetService](#NewAssetService) method instead.\n\n```go\nfunc NewAssetService(opts ...option.RequestOption) (r AssetService)\n```\nNewAssetService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *AssetService) Delete(ctx context.Context, assetID string, body AssetDeleteParams, opts ...option.RequestOption) (err error)\n```\nDelete an Asset after all processing finishes. Its streaming and static files remain in your Storage unless delete\\_files is true.\n\n```go\nfunc (r *AssetService) Get(ctx context.Context, assetID string, opts ...option.RequestOption) (res *Asset, err error)\n```\nRetrieve an Asset with its status, source metadata, and its streaming, static, poster, and timeline outputs, including their delivery URLs.\n\n```go\nfunc (r *AssetService) List(ctx context.Context, query AssetListParams, opts ...option.RequestOption) (res *pagination.PaginatedResults[Asset], err error)\n```\nList Assets in the Project, newest first by default. Filter by status, Source, Storage, metadata, or creation date, and search by ID or title.\n\n```go\nfunc (r *AssetService) ListAutoPaging(ctx context.Context, query AssetListParams, opts ...option.RequestOption) *pagination.PaginatedResultsAutoPager[Asset]\n```\nList Assets in the Project, newest first by default. Filter by status, Source, Storage, metadata, or creation date, and search by ID or title.\n\n```go\nfunc (r *AssetService) New(ctx context.Context, body AssetNewParams, opts ...option.RequestOption) (res *Asset, err error)\n```\nCreate an Asset from a video Source to prepare it for streaming. Processing starts asynchronously, and the Asset is returned while it is preparing.\n\n```go\nfunc (r *AssetService) Update(ctx context.Context, assetID string, body AssetUpdateParams, opts ...option.RequestOption) (err error)\n```\nUpdate an Asset's title, metadata, or whether its preview can be watched without an API token. Omitted fields remain unchanged.\n\n```go\ntype AssetSourceMetadata struct {\n\t// Original audio bitrate in bits per second, or zero when unavailable.\n\tAudioBitrate int64 `json:\"audio_bitrate\" api:\"required\"`\n\t// Original audio codec, or an empty string when there is no audio.\n\tAudioCodec string `json:\"audio_codec\" api:\"required\"`\n\t// Original audio sample rate in Hz, or zero when unavailable.\n\tAudioSamplerate int64 `json:\"audio_samplerate\" api:\"required\"`\n\t// Original duration in seconds.\n\tDuration float64 `json:\"duration\" api:\"required\"`\n\t// Original video height in pixels.\n\tHeight int64 `json:\"height\" api:\"required\"`\n\t// Original file size in bytes.\n\tSize int64 `json:\"size\" api:\"required\"`\n\t// Original video bitrate in bits per second, or zero when unknown.\n\tVideoBitrate int64 `json:\"video_bitrate\" api:\"required\"`\n\t// Original video codec.\n\tVideoCodec string `json:\"video_codec\" api:\"required\"`\n\t// Original video frame rate in frames per second.\n\tVideoFramerate float64 `json:\"video_framerate\" api:\"required\"`\n\t// Original video width in pixels.\n\tWidth int64 `json:\"width\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAudioBitrate    respjson.Field\n\t\tAudioCodec      respjson.Field\n\t\tAudioSamplerate respjson.Field\n\t\tDuration        respjson.Field\n\t\tHeight          respjson.Field\n\t\tSize            respjson.Field\n\t\tVideoBitrate    respjson.Field\n\t\tVideoCodec      respjson.Field\n\t\tVideoFramerate  respjson.Field\n\t\tWidth           respjson.Field\n\t\tExtraFields     map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nOriginal media metadata saved at Asset creation and preserved after Source deletion.\n\n```go\nfunc (r AssetSourceMetadata) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *AssetSourceMetadata) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AssetStaticRendition struct {\n\t// Unique Asset output ID, prefixed with aop\\_.\n\tID string `json:\"id\" api:\"required\"`\n\t// Parent Asset ID.\n\tAssetID string `json:\"asset_id\" api:\"required\"`\n\t// Media container.\n\tContainer constant.MP4 `json:\"container\" default:\"mp4\"`\n\t// When the rendition was created.\n\tCreatedAt time.Time `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\t// Output height in pixels.\n\tHeight int64 `json:\"height\" api:\"required\"`\n\t// MP4 path in Storage. Recreating the same resolution reuses this path and\n\t// overwrites any retained file.\n\tPath string `json:\"path\" api:\"required\"`\n\t// Requested resolution selector.\n\t//\n\t// Any of \"highest\", \"240p\", \"360p\", \"480p\", \"540p\", \"720p\", \"1080p\", \"1440p\",\n\t// \"2160p\".\n\tRequestedResolution AssetStaticRenditionRequestedResolution `json:\"requested_resolution\" api:\"required\"`\n\t// Selected output resolution. May be smaller than 240p for small sources. Use\n\t// width and height for pixel dimensions.\n\tResolution string `json:\"resolution\" api:\"required\"`\n\t// Processing status of this MP4, independent of streaming outputs.\n\t//\n\t// Any of \"preparing\", \"ready\", \"failed\", \"expired\".\n\tStatus AssetStaticRenditionStatus `json:\"status\" api:\"required\"`\n\t// Storage containing this rendition, inherited from its Asset.\n\tStorageID string `json:\"storage_id\" api:\"required\"`\n\t// When the rendition was last updated.\n\tUpdatedAt time.Time `json:\"updated_at\" api:\"required\" format:\"date-time\"`\n\t// Video codec.\n\tVideoCodec constant.H264 `json:\"video_codec\" default:\"h264\"`\n\t// Output width in pixels.\n\tWidth int64 `json:\"width\" api:\"required\"`\n\t// Measured audio bitrate in bits per second. Omitted until known or when there is\n\t// no audio.\n\tAudioBitrate int64 `json:\"audio_bitrate\"`\n\t// Measured audio codec. Omitted until known or when there is no audio.\n\tAudioCodec string `json:\"audio_codec\"`\n\t// Measured audio sample rate in Hz. Omitted until known or when there is no audio.\n\tAudioSamplerate int64 `json:\"audio_samplerate\"`\n\t// Unsigned MP4 CDN URL. Available when ready and unexpired and Storage has a CDN\n\t// URL.\n\tCdnURL string `json:\"cdn_url\" format:\"uri\"`\n\t// Output duration in seconds. Omitted until ready.\n\tDuration float64 `json:\"duration\"`\n\t// A customer-facing Asset output processing failure.\n\tError shared.AssetOutputError `json:\"error\"`\n\t// Progress specifies the current processing stage and encoding percentage. Omitted\n\t// after processing ends.\n\tProgress AssetRenditionProgress `json:\"progress\"`\n\t// When the MP4 became available.\n\tReadyAt time.Time `json:\"ready_at\" format:\"date-time\"`\n\t// File size in bytes. Omitted until ready.\n\tSize int64 `json:\"size\"`\n\t// Signed MP4 download URL, available when ready and unexpired. Valid for up to ten\n\t// minutes. Retrieve the output to refresh it. Independent of public_playback.\n\tURL string `json:\"url\" format:\"uri\"`\n\t// Measured video bitrate in bits per second. Omitted until ready.\n\tVideoBitrate int64 `json:\"video_bitrate\"`\n\t// Measured video frame rate in frames per second. Omitted until known.\n\tVideoFramerate float64 `json:\"video_framerate\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID                  respjson.Field\n\t\tAssetID             respjson.Field\n\t\tContainer           respjson.Field\n\t\tCreatedAt           respjson.Field\n\t\tHeight              respjson.Field\n\t\tPath                respjson.Field\n\t\tRequestedResolution respjson.Field\n\t\tResolution          respjson.Field\n\t\tStatus              respjson.Field\n\t\tStorageID           respjson.Field\n\t\tUpdatedAt           respjson.Field\n\t\tVideoCodec          respjson.Field\n\t\tWidth               respjson.Field\n\t\tAudioBitrate        respjson.Field\n\t\tAudioCodec          respjson.Field\n\t\tAudioSamplerate     respjson.Field\n\t\tCdnURL              respjson.Field\n\t\tDuration            respjson.Field\n\t\tError               respjson.Field\n\t\tProgress            respjson.Field\n\t\tReadyAt             respjson.Field\n\t\tSize                respjson.Field\n\t\tURL                 respjson.Field\n\t\tVideoBitrate        respjson.Field\n\t\tVideoFramerate      respjson.Field\n\t\tExtraFields         map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r AssetStaticRendition) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *AssetStaticRendition) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AssetStaticRenditionCreateParams struct {\n\t// H.264 MP4 resolution. highest selects the largest supported output without\n\t// upscaling. Hobby supports up to 1080p; other plans support up to 2160p.\n\t// Independent of the streaming resolution limits.\n\t//\n\t// Any of \"highest\", \"240p\", \"360p\", \"480p\", \"540p\", \"720p\", \"1080p\", \"1440p\",\n\t// \"2160p\".\n\tResolution AssetStaticRenditionCreateParamsResolution `json:\"resolution,omitzero\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nParameters for an independently processed H.264 MP4 rendition.\n\nThe property Resolution is required.\n\n```go\nfunc (r AssetStaticRenditionCreateParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *AssetStaticRenditionCreateParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AssetStaticRenditionCreateParamsResolution string\n```\nH.264 MP4 resolution. highest selects the largest supported output without upscaling. Hobby supports up to 1080p; other plans support up to 2160p. Independent of the streaming resolution limits.\n\n```go\nconst (\n\tAssetStaticRenditionCreateParamsResolutionHighest AssetStaticRenditionCreateParamsResolution = \"highest\"\n\tAssetStaticRenditionCreateParamsResolution240p    AssetStaticRenditionCreateParamsResolution = \"240p\"\n\tAssetStaticRenditionCreateParamsResolution360p    AssetStaticRenditionCreateParamsResolution = \"360p\"\n\tAssetStaticRenditionCreateParamsResolution480p    AssetStaticRenditionCreateParamsResolution = \"480p\"\n\tAssetStaticRenditionCreateParamsResolution540p    AssetStaticRenditionCreateParamsResolution = \"540p\"\n\tAssetStaticRenditionCreateParamsResolution720p    AssetStaticRenditionCreateParamsResolution = \"720p\"\n\tAssetStaticRenditionCreateParamsResolution1080p   AssetStaticRenditionCreateParamsResolution = \"1080p\"\n\tAssetStaticRenditionCreateParamsResolution1440p   AssetStaticRenditionCreateParamsResolution = \"1440p\"\n\tAssetStaticRenditionCreateParamsResolution2160p   AssetStaticRenditionCreateParamsResolution = \"2160p\"\n)\n```\n\n```go\ntype AssetStaticRenditionOutput struct {\n\t// Id identifies the Asset output, prefixed with aop\\_. The type field identifies\n\t// the output kind.\n\tID string `json:\"id\" api:\"required\"`\n\t// AssetId identifies the owning Asset.\n\tAssetID string `json:\"asset_id\" api:\"required\"`\n\t// Details contains the canonical typed output resource, including its available\n\t// delivery fields.\n\tDetails AssetStaticRendition `json:\"details\" api:\"required\"`\n\t// Status specifies the output processing state. Expired means temporary output\n\t// files are no longer available.\n\t//\n\t// Any of \"preparing\", \"ready\", \"failed\", \"expired\".\n\tStatus AssetOutputStatus `json:\"status\" api:\"required\"`\n\t// Type identifies the output kind.\n\tType constant.StaticRendition `json:\"type\" default:\"static_rendition\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tAssetID     respjson.Field\n\t\tDetails     respjson.Field\n\t\tStatus      respjson.Field\n\t\tType        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nAn Asset-owned static rendition output and its canonical resource details.\n\n```go\nfunc (r AssetStaticRenditionOutput) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *AssetStaticRenditionOutput) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AssetStaticRenditionOutputCreateParams struct {\n\t// Params specifies the settings for this output type.\n\tParams AssetStaticRenditionCreateParams `json:\"params,omitzero\" api:\"required\"`\n\t// Type specifies the output kind to create.\n\t//\n\t// This field can be elided, and will marshal its zero value as \"static_rendition\".\n\tType constant.StaticRendition `json:\"type\" default:\"static_rendition\"`\n\t// contains filtered or unexported fields\n}\n```\nCreate an Asset-owned static rendition output.\n\nThe properties Params, Type are required.\n\n```go\nfunc (r AssetStaticRenditionOutputCreateParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *AssetStaticRenditionOutputCreateParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AssetStaticRenditionRequestedResolution string\n```\nRequested resolution selector.\n\n```go\nconst (\n\tAssetStaticRenditionRequestedResolutionHighest AssetStaticRenditionRequestedResolution = \"highest\"\n\tAssetStaticRenditionRequestedResolution240p    AssetStaticRenditionRequestedResolution = \"240p\"\n\tAssetStaticRenditionRequestedResolution360p    AssetStaticRenditionRequestedResolution = \"360p\"\n\tAssetStaticRenditionRequestedResolution480p    AssetStaticRenditionRequestedResolution = \"480p\"\n\tAssetStaticRenditionRequestedResolution540p    AssetStaticRenditionRequestedResolution = \"540p\"\n\tAssetStaticRenditionRequestedResolution720p    AssetStaticRenditionRequestedResolution = \"720p\"\n\tAssetStaticRenditionRequestedResolution1080p   AssetStaticRenditionRequestedResolution = \"1080p\"\n\tAssetStaticRenditionRequestedResolution1440p   AssetStaticRenditionRequestedResolution = \"1440p\"\n\tAssetStaticRenditionRequestedResolution2160p   AssetStaticRenditionRequestedResolution = \"2160p\"\n)\n```\n\n```go\ntype AssetStaticRenditionStatus string\n```\nProcessing status of this MP4, independent of streaming outputs.\n\n```go\nconst (\n\tAssetStaticRenditionStatusPreparing AssetStaticRenditionStatus = \"preparing\"\n\tAssetStaticRenditionStatusReady     AssetStaticRenditionStatus = \"ready\"\n\tAssetStaticRenditionStatusFailed    AssetStaticRenditionStatus = \"failed\"\n\tAssetStaticRenditionStatusExpired   AssetStaticRenditionStatus = \"expired\"\n)\n```\n\n```go\ntype AssetStatus string\n```\n\n```go\nconst (\n\tAssetStatusPreparing AssetStatus = \"preparing\"\n\tAssetStatusReady     AssetStatus = \"ready\"\n\tAssetStatusFailed    AssetStatus = \"failed\"\n\tAssetStatusExpired   AssetStatus = \"expired\"\n)\n```\n\n```go\ntype AssetThumbnailCreateParams struct {\n\t// Count specifies 1 to 100 thumbnails at the middle of equal sections of the\n\t// selected range.\n\tCount param.Opt[int64] `json:\"count,omitzero\"`\n\t// Size specifies the maximum image or tile edge in pixels, from 64 to 1920.\n\t// Defaults to 320. Odd sizes are supported. Preserves display aspect ratio without\n\t// cropping or upscaling.\n\tSize param.Opt[int64] `json:\"size,omitzero\"`\n\t// Format selects JPEG or WebP. Defaults to JPEG.\n\t//\n\t// Any of \"jpeg\", \"webp\".\n\tFormat ThumbnailFormat `json:\"format,omitzero\"`\n\t// Metadata attaches string values to this request. The serialized object may\n\t// contain at most 2048 bytes.\n\tMetadata map[string]string `json:\"metadata,omitzero\"`\n\t// Output selects images or sprites. Defaults to images.\n\t//\n\t// Any of \"images\", \"sprites\".\n\tOutput ThumbnailOutput `json:\"output,omitzero\"`\n\t// Range limits sampling to part of the Source. Defaults to the whole Source\n\t// duration.\n\tRange ThumbnailRangeParams `json:\"range,omitzero\"`\n\t// Timestamps specifies 1 to 100 Source-relative target times in seconds. Every\n\t// timestamp must be within the selected range, including its start and excluding\n\t// its end. Repeated targets produce separate outputs.\n\tTimestamps []float64 `json:\"timestamps,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nGenerate additional thumbnails from a ready Asset using its retained input, folder and Storage. Specify exactly one of timestamps or count. Each layout, format and size combination can be requested once.\n\n```go\nfunc (r AssetThumbnailCreateParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *AssetThumbnailCreateParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AssetThumbnailOutput struct {\n\t// Id identifies the Asset output, prefixed with aop\\_. The type field identifies\n\t// the output kind.\n\tID string `json:\"id\" api:\"required\"`\n\t// AssetId identifies the owning Asset.\n\tAssetID string `json:\"asset_id\" api:\"required\"`\n\t// Details contains the canonical typed output resource, including its available\n\t// delivery fields.\n\tDetails Thumbnail `json:\"details\" api:\"required\"`\n\t// Status specifies the output processing state. Expired means temporary output\n\t// files are no longer available.\n\t//\n\t// Any of \"preparing\", \"ready\", \"failed\", \"expired\".\n\tStatus AssetOutputStatus `json:\"status\" api:\"required\"`\n\t// Type identifies the output kind.\n\tType constant.Thumbnail `json:\"type\" default:\"thumbnail\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tAssetID     respjson.Field\n\t\tDetails     respjson.Field\n\t\tStatus      respjson.Field\n\t\tType        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nAn Asset-owned thumbnail output and its canonical resource details.\n\n```go\nfunc (r AssetThumbnailOutput) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *AssetThumbnailOutput) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AssetThumbnailOutputCreateParams struct {\n\t// Params specifies the settings for this output type.\n\tParams AssetThumbnailCreateParams `json:\"params\" api:\"required\"`\n\t// Type specifies the output kind to create.\n\t//\n\t// This field can be elided, and will marshal its zero value as \"thumbnail\".\n\tType constant.Thumbnail `json:\"type\" default:\"thumbnail\"`\n\t// contains filtered or unexported fields\n}\n```\nCreate an Asset-owned thumbnail output.\n\nThe properties Params, Type are required.\n\n```go\nfunc (r AssetThumbnailOutputCreateParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *AssetThumbnailOutputCreateParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AssetTimelinePreviews struct {\n\t// Thumbnail image layout.\n\tFormat constant.Sprite `json:\"format\" default:\"sprite\"`\n\t// WebVTT file path in Storage.\n\tVttPath string `json:\"vtt_path\" api:\"required\"`\n\t// Unsigned WebVTT CDN URL. Available when the Asset is ready and Storage has a CDN\n\t// URL.\n\tCdnURL string `json:\"cdn_url\" format:\"uri\"`\n\t// Number of thumbnails.\n\tImageCount int64 `json:\"image_count\"`\n\t// Target thumbnail sampling interval in seconds. The WebVTT file provides actual\n\t// cue timestamps.\n\tIntervalSeconds float64 `json:\"interval_seconds\"`\n\t// Public WebVTT preview URL with signed image references. Available when the Asset\n\t// is ready and public_playback is true.\n\tPreviewURL string `json:\"preview_url\" format:\"uri\"`\n\t// Combined WebVTT and sprite image size in bytes.\n\tSize int64 `json:\"size\"`\n\t// Number of sprite images containing the thumbnails.\n\tSpriteCount int64 `json:\"sprite_count\"`\n\t// Thumbnail height in pixels.\n\tThumbnailHeight int64 `json:\"thumbnail_height\"`\n\t// Thumbnail width in pixels.\n\tThumbnailWidth int64 `json:\"thumbnail_width\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tFormat          respjson.Field\n\t\tVttPath         respjson.Field\n\t\tCdnURL          respjson.Field\n\t\tImageCount      respjson.Field\n\t\tIntervalSeconds respjson.Field\n\t\tPreviewURL      respjson.Field\n\t\tSize            respjson.Field\n\t\tSpriteCount     respjson.Field\n\t\tThumbnailHeight respjson.Field\n\t\tThumbnailWidth  respjson.Field\n\t\tExtraFields     map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r AssetTimelinePreviews) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *AssetTimelinePreviews) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AssetTranscript struct {\n\t// Id identifies the Asset output, prefixed with aop\\_.\n\tID string `json:\"id\" api:\"required\"`\n\t// Status specifies the output processing state. Expired means temporary output\n\t// files are no longer available.\n\t//\n\t// Any of \"preparing\", \"ready\", \"failed\", \"expired\".\n\tStatus AssetOutputStatus `json:\"status\" api:\"required\"`\n\t// Content contains the complete text and timed segments. Included when ready;\n\t// omitted while preparing, failed or expired.\n\tContent AssetTranscriptContent `json:\"content\"`\n\t// A customer-facing Asset output processing failure.\n\tError shared.AssetOutputError `json:\"error\"`\n\t// LanguageCode identifies the detected primary language, such as en. Omitted\n\t// before recognition or when no speech is detected.\n\tLanguageCode string `json:\"language_code\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID           respjson.Field\n\t\tStatus       respjson.Field\n\t\tContent      respjson.Field\n\t\tError        respjson.Field\n\t\tLanguageCode respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nAn original-language transcript. Content is included in ready output responses and lifecycle event snapshots. Transcripts have no download or CDN URL.\n\n```go\nfunc (r AssetTranscript) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *AssetTranscript) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AssetTranscriptContent struct {\n\t// Segments contains timed passages in chronological order. Individual word\n\t// timestamps are not included.\n\tSegments []AssetTranscriptSegment `json:\"segments\" api:\"required\"`\n\t// Text contains the complete recognized speech in the original language.\n\tText string `json:\"text\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tSegments    respjson.Field\n\t\tText        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nThe complete transcript and its timed passages. An audio track without speech produces empty text and an empty segments array.\n\n```go\nfunc (r AssetTranscriptContent) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *AssetTranscriptContent) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AssetTranscriptOutput struct {\n\t// Id identifies the Asset output, prefixed with aop\\_.\n\tID string `json:\"id\" api:\"required\"`\n\t// AssetId identifies the owning Asset.\n\tAssetID string `json:\"asset_id\" api:\"required\"`\n\t// An original-language transcript. Content is included in ready output responses\n\t// and lifecycle event snapshots. Transcripts have no download or CDN URL.\n\tDetails AssetTranscript `json:\"details\" api:\"required\"`\n\t// Status specifies the output processing state. Expired means temporary output\n\t// files are no longer available.\n\t//\n\t// Any of \"preparing\", \"ready\", \"failed\", \"expired\".\n\tStatus AssetOutputStatus `json:\"status\" api:\"required\"`\n\t// Type identifies the output kind.\n\tType constant.Transcript `json:\"type\" default:\"transcript\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tAssetID     respjson.Field\n\t\tDetails     respjson.Field\n\t\tStatus      respjson.Field\n\t\tType        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nAn Asset-owned transcript output and its content.\n\n```go\nfunc (r AssetTranscriptOutput) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *AssetTranscriptOutput) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AssetTranscriptOutputCreateParams struct {\n\t// Parameters for an original-language transcript. Pass an empty object; the spoken\n\t// language is detected automatically.\n\tParams AssetTranscriptOutputParams `json:\"params\" api:\"required\"`\n\t// Type specifies the output kind.\n\t//\n\t// This field can be elided, and will marshal its zero value as \"transcript\".\n\tType constant.Transcript `json:\"type\" default:\"transcript\"`\n\t// contains filtered or unexported fields\n}\n```\nCreate or reuse the original-language transcript for an Asset. Caption generation shares this transcript and its speech-recognition charge.\n\nThe properties Params, Type are required.\n\n```go\nfunc (r AssetTranscriptOutputCreateParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *AssetTranscriptOutputCreateParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AssetTranscriptOutputParams struct {\n\t// contains filtered or unexported fields\n}\n```\nParameters for an original-language transcript. Pass an empty object; the spoken language is detected automatically.\n\n```go\nfunc (r AssetTranscriptOutputParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *AssetTranscriptOutputParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AssetTranscriptSegment struct {\n\t// End specifies the passage end time in seconds.\n\tEnd float64 `json:\"end\" api:\"required\"`\n\t// Start specifies the passage start time in seconds.\n\tStart float64 `json:\"start\" api:\"required\"`\n\t// Text contains the recognized passage, including punctuation.\n\tText string `json:\"text\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tEnd         respjson.Field\n\t\tStart       respjson.Field\n\t\tText        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA timed passage of recognized speech. Times are seconds from the start of the Asset.\n\n```go\nfunc (r AssetTranscriptSegment) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *AssetTranscriptSegment) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AssetUpdateParams struct {\n\t// Allow public playback without an API token, through the public preview page and\n\t// embeds. Does not control CDN or static download access. Disabling it does not\n\t// revoke signed URLs already issued.\n\tPublicPlayback param.Opt[bool] `json:\"public_playback,omitzero\"`\n\t// Asset title, up to 256 characters. Send an empty string to clear it; omit to\n\t// leave unchanged.\n\tTitle param.Opt[string] `json:\"title,omitzero\"`\n\t// Replaces all metadata. Send {} to clear it; omit to leave unchanged. Maximum\n\t// encoded JSON size: 2,048 bytes.\n\tMetadata map[string]string `json:\"metadata,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r AssetUpdateParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *AssetUpdateParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AssetWorkflowActionListParams struct {\n\t// LatestPerAction specifies whether to return only the latest execution of each\n\t// rule and action on the Asset. Defaults to false. Pagination and total count\n\t// apply after this selection.\n\tLatestPerAction param.Opt[bool] `query:\"latest_per_action,omitzero\" json:\"-\"`\n\t// Limit specifies the maximum number of results to return. Accepts 1 to 100.\n\t// Defaults to 100.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Offset specifies the number of matching results to skip. Must be at least 0.\n\t// Defaults to 0.\n\tOffset param.Opt[int64] `query:\"offset,omitzero\" json:\"-\"`\n\t// Revision specifies the Workflow revision to filter by. Omit it to include all\n\t// revisions.\n\tRevision param.Opt[int64]                     `query:\"revision,omitzero\" json:\"-\"`\n\tCreated  AssetWorkflowActionListParamsCreated `query:\"created,omitzero\" json:\"-\"`\n\t// Status specifies the action status to filter by. Omit it to include all\n\t// statuses.\n\t//\n\t// Any of \"pending\", \"running\", \"waiting\", \"completed\", \"failed\", \"skipped\",\n\t// \"cancelled\".\n\tStatus AssetWorkflowActionListParamsStatus `query:\"status,omitzero\" json:\"-\"`\n\t// Type specifies the action type to filter by. Omit it to include all action\n\t// types.\n\t//\n\t// Any of \"create_static_rendition\", \"create_caption\", \"create_transcript\",\n\t// \"translate_caption\".\n\tType AssetWorkflowActionListParamsType `query:\"type,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r AssetWorkflowActionListParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [AssetWorkflowActionListParams](#AssetWorkflowActionListParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype AssetWorkflowActionListParamsCreated struct {\n\t// Created at or after this Unix timestamp in seconds.\n\tGte param.Opt[int64] `query:\"gte,omitzero\" json:\"-\"`\n\t// Created at or before this Unix timestamp in seconds.\n\tLte param.Opt[int64] `query:\"lte,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r AssetWorkflowActionListParamsCreated) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [AssetWorkflowActionListParamsCreated](#AssetWorkflowActionListParamsCreated)'s query parameters as \\`url.Values\\`.\n\n```go\ntype AssetWorkflowActionListParamsStatus string\n```\nStatus specifies the action status to filter by. Omit it to include all statuses.\n\n```go\nconst (\n\tAssetWorkflowActionListParamsStatusPending   AssetWorkflowActionListParamsStatus = \"pending\"\n\tAssetWorkflowActionListParamsStatusRunning   AssetWorkflowActionListParamsStatus = \"running\"\n\tAssetWorkflowActionListParamsStatusWaiting   AssetWorkflowActionListParamsStatus = \"waiting\"\n\tAssetWorkflowActionListParamsStatusCompleted AssetWorkflowActionListParamsStatus = \"completed\"\n\tAssetWorkflowActionListParamsStatusFailed    AssetWorkflowActionListParamsStatus = \"failed\"\n\tAssetWorkflowActionListParamsStatusSkipped   AssetWorkflowActionListParamsStatus = \"skipped\"\n\tAssetWorkflowActionListParamsStatusCancelled AssetWorkflowActionListParamsStatus = \"cancelled\"\n)\n```\n\n```go\ntype AssetWorkflowActionListParamsType string\n```\nType specifies the action type to filter by. Omit it to include all action types.\n\n```go\nconst (\n\tAssetWorkflowActionListParamsTypeCreateStaticRendition AssetWorkflowActionListParamsType = \"create_static_rendition\"\n\tAssetWorkflowActionListParamsTypeCreateCaption         AssetWorkflowActionListParamsType = \"create_caption\"\n\tAssetWorkflowActionListParamsTypeCreateTranscript      AssetWorkflowActionListParamsType = \"create_transcript\"\n\tAssetWorkflowActionListParamsTypeTranslateCaption      AssetWorkflowActionListParamsType = \"translate_caption\"\n)\n```\n\n```go\ntype AssetWorkflowActionService struct {\n\tOptions []option.RequestOption\n}\n```\nAutomatic video-on-demand Assets and independent H.264 MP4 static renditions.\n\nAssetWorkflowActionService contains methods and other services that help with interacting with the chunkify API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewAssetWorkflowActionService](#NewAssetWorkflowActionService) method instead.\n\n```go\nfunc NewAssetWorkflowActionService(opts ...option.RequestOption) (r AssetWorkflowActionService)\n```\nNewAssetWorkflowActionService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *AssetWorkflowActionService) List(ctx context.Context, assetID string, query AssetWorkflowActionListParams, opts ...option.RequestOption) (res *pagination.PaginatedResults[AssetActionRun], err error)\n```\nList the retained Workflow actions for an Asset, newest first, with status, type, and date filters. Direct output requests are excluded.\n\n```go\nfunc (r *AssetWorkflowActionService) ListAutoPaging(ctx context.Context, assetID string, query AssetWorkflowActionListParams, opts ...option.RequestOption) *pagination.PaginatedResultsAutoPager[AssetActionRun]\n```\nList the retained Workflow actions for an Asset, newest first, with status, type, and date filters. Direct output requests are excluded.\n\n```go\ntype AssetWorkflowService struct {\n\tOptions []option.RequestOption\n\t// Automatic video-on-demand Assets and independent H.264 MP4 static renditions.\n\tActions AssetWorkflowActionService\n}\n```\nAutomatic video-on-demand Assets and independent H.264 MP4 static renditions.\n\nAssetWorkflowService contains methods and other services that help with interacting with the chunkify API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewAssetWorkflowService](#NewAssetWorkflowService) method instead.\n\n```go\nfunc NewAssetWorkflowService(opts ...option.RequestOption) (r AssetWorkflowService)\n```\nNewAssetWorkflowService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *AssetWorkflowService) Update(ctx context.Context, assetID string, opts ...option.RequestOption) (res *WorkflowRun, err error)\n```\nUpdate a ready Asset to the latest revision of its selected Workflow. Existing outputs are preserved and missing outputs are created.\n\n```go\ntype AssetWorkflowUpdateResponseEnvelope struct {\n\t// The requested Workflow run.\n\tData WorkflowRun `json:\"data\" api:\"required\"`\n\t// Status of the API request. Always success for this response.\n\tStatus constant.Success `json:\"status\" default:\"success\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tData        respjson.Field\n\t\tStatus      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nResponse containing one Workflow run.\n\n```go\nfunc (r AssetWorkflowUpdateResponseEnvelope) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *AssetWorkflowUpdateResponseEnvelope) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AwsRegion string\n```\nRegion specifies the region of the storage provider.\n\n```go\nconst (\n\tAwsRegionUsEast1      AwsRegion = \"us-east-1\"\n\tAwsRegionUsEast2      AwsRegion = \"us-east-2\"\n\tAwsRegionUsCentral1   AwsRegion = \"us-central-1\"\n\tAwsRegionUsWest1      AwsRegion = \"us-west-1\"\n\tAwsRegionUsWest2      AwsRegion = \"us-west-2\"\n\tAwsRegionEuWest1      AwsRegion = \"eu-west-1\"\n\tAwsRegionEuWest2      AwsRegion = \"eu-west-2\"\n\tAwsRegionEuWest3      AwsRegion = \"eu-west-3\"\n\tAwsRegionEuCentral1   AwsRegion = \"eu-central-1\"\n\tAwsRegionEuNorth1     AwsRegion = \"eu-north-1\"\n\tAwsRegionApEast1      AwsRegion = \"ap-east-1\"\n\tAwsRegionApEast2      AwsRegion = \"ap-east-2\"\n\tAwsRegionApNortheast1 AwsRegion = \"ap-northeast-1\"\n\tAwsRegionApNortheast2 AwsRegion = \"ap-northeast-2\"\n\tAwsRegionApSouth1     AwsRegion = \"ap-south-1\"\n\tAwsRegionApSoutheast1 AwsRegion = \"ap-southeast-1\"\n\tAwsRegionApSoutheast2 AwsRegion = \"ap-southeast-2\"\n)\n```\n\n```go\ntype ChunkifyError = shared.ChunkifyError\n```\nThis is an alias to an internal type.\n\n```go\ntype ChunkifyErrorType = shared.ChunkifyErrorType\n```\nType of error\n\nThis is an alias to an internal type.\n\n```go\ntype ChunkifyRegion string\n```\nChunkify available regions.\n\n```go\nconst (\n\tChunkifyRegionUsEast1      ChunkifyRegion = \"us-east-1\"\n\tChunkifyRegionUsEast2      ChunkifyRegion = \"us-east-2\"\n\tChunkifyRegionUsWest1      ChunkifyRegion = \"us-west-1\"\n\tChunkifyRegionUsWest2      ChunkifyRegion = \"us-west-2\"\n\tChunkifyRegionEuWest1      ChunkifyRegion = \"eu-west-1\"\n\tChunkifyRegionEuWest2      ChunkifyRegion = \"eu-west-2\"\n\tChunkifyRegionApNortheast1 ChunkifyRegion = \"ap-northeast-1\"\n\tChunkifyRegionApSoutheast1 ChunkifyRegion = \"ap-southeast-1\"\n)\n```\n\n```go\ntype Client struct {\n\tOptions []option.RequestOption\n\t// Automatic video-on-demand Assets and independent H.264 MP4 static renditions.\n\tAssets        AssetService\n\tEvents        EventService\n\tFiles         FileService\n\tJobs          JobService\n\tMetrics       MetricService\n\tNotifications NotificationService\n\tProjects      ProjectService\n\tSources       SourceService\n\tStorages      StorageService\n\tThumbnails    ThumbnailService\n\tTokens        TokenService\n\tTranscodings  TranscodingService\n\tUploads       UploadService\n\tWebhooks      WebhookService\n\tWorkflows     WorkflowService\n}\n```\nClient creates a struct with services and top level methods that help with interacting with the chunkify API. You should not instantiate this client directly, and instead use the [NewClient](#NewClient) method instead.\n\n```go\nfunc NewClient(opts ...option.RequestOption) (r Client)\n```\nNewClient generates a new client with the default option read from the environment (CHUNKIFY\\_TOKEN, CHUNKIFY\\_TEAM\\_TOKEN, CHUNKIFY\\_WEBHOOK\\_SECRET, CHUNKIFY\\_BASE\\_URL). The option passed in as arguments are applied after these default arguments, and all option will be passed down to the services and requests that this client makes.\n\n```go\nfunc (r *Client) Delete(ctx context.Context, path string, params any, res any, opts ...option.RequestOption) error\n```\nDelete makes a DELETE request with the given URL, params, and optionally deserializes to a response. See \\[Execute] documentation on the params and response.\n\n```go\nfunc (r *Client) Execute(ctx context.Context, method string, path string, params any, res any, opts ...option.RequestOption) error\n```\nExecute makes a request with the given context, method, URL, request params, response, and request options. This is useful for hitting undocumented endpoints while retaining the base URL, auth, retries, and other options from the client.\n\nIf a byte slice or an [io.Reader](/io#Reader) is supplied to params, it will be used as-is for the request body.\n\nThe params is by default serialized into the body using [encoding/json](/encoding/json). If your type implements a MarshalJSON function, it will be used instead to serialize the request. If a URLQuery method is implemented, the returned [url.Values](/net/url#Values) will be used as query strings to the url.\n\nIf your params struct uses [param.Field](/github.com/chunkifydev/chunkify-go/packages/param#Field), you must provide either \\[MarshalJSON], \\[URLQuery], and/or \\[MarshalForm] functions. It is undefined behavior to use a struct uses [param.Field](/github.com/chunkifydev/chunkify-go/packages/param#Field) without specifying how it is serialized.\n\nAny \"…Params\" object defined in this library can be used as the request argument. Note that 'path' arguments will not be forwarded into the url.\n\nThe response body will be deserialized into the res variable, depending on its type:\n\n  - A pointer to a [\\*http.Response](/net/http#Response) is populated by the raw response.\n  - A pointer to a byte array will be populated with the contents of the request body.\n  - A pointer to any other type uses this library's default JSON decoding, which respects UnmarshalJSON if it is defined on the type.\n  - A nil value will not read the response body.\n\nFor even greater flexibility, see [option.WithResponseInto](/github.com/chunkifydev/chunkify-go/option#WithResponseInto) and [option.WithResponseBodyInto](/github.com/chunkifydev/chunkify-go/option#WithResponseBodyInto).\n\n```go\nfunc (r *Client) Get(ctx context.Context, path string, params any, res any, opts ...option.RequestOption) error\n```\nGet makes a GET request with the given URL, params, and optionally deserializes to a response. See \\[Execute] documentation on the params and response.\n\n```go\nfunc (r *Client) Patch(ctx context.Context, path string, params any, res any, opts ...option.RequestOption) error\n```\nPatch makes a PATCH request with the given URL, params, and optionally deserializes to a response. See \\[Execute] documentation on the params and response.\n\n```go\nfunc (r *Client) Post(ctx context.Context, path string, params any, res any, opts ...option.RequestOption) error\n```\nPost makes a POST request with the given URL, params, and optionally deserializes to a response. See \\[Execute] documentation on the params and response.\n\n```go\nfunc (r *Client) Put(ctx context.Context, path string, params any, res any, opts ...option.RequestOption) error\n```\nPut makes a PUT request with the given URL, params, and optionally deserializes to a response. See \\[Execute] documentation on the params and response.\n\n```go\ntype CreatedVia = shared.CreatedVia\n```\nCreatedVia specifies how the resource was created: api for API requests, dashboard for the Chunkify dashboard, mcp for MCP clients, and workflow for Workflow actions. Omitted when the creator is unknown.\n\nThis is an alias to an internal type.\n\n```go\ntype Error = apierror.Error\n```\n\n```go\ntype Event struct {\n\t// Unique event ID.\n\tID string `json:\"id\" api:\"required\"`\n\t// Time the event occurred.\n\tCreatedAt time.Time `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\t// Number of retained webhook delivery attempts.\n\tDeliveryCount int64 `json:\"delivery_count\" api:\"required\"`\n\t// Summary of the latest retained attempt for each webhook. none means no retained\n\t// attempts; pending means at least one latest attempt is awaiting delivery; failed\n\t// means at least one latest attempt failed and none are pending; delivered means\n\t// all latest attempts succeeded. Earlier failures superseded by successful retries\n\t// do not mark the event failed.\n\t//\n\t// Any of \"none\", \"pending\", \"delivered\", \"failed\".\n\tDeliveryStatus EventDeliveryStatus `json:\"delivery_status\" api:\"required\"`\n\t// Any of \"job.created\", \"job.completed\", \"job.failed\", \"job.cancelled\",\n\t// \"source.created\", \"source.deleted\", \"upload.created\", \"upload.completed\",\n\t// \"upload.failed\", \"upload.expired\", \"asset.created\", \"asset.ready\",\n\t// \"asset.playback_ready\", \"asset.failed\", \"asset.expired\", \"asset.deleted\",\n\t// \"asset.output.created\", \"asset.output.ready\", \"asset.output.failed\",\n\t// \"asset.output.deleted\", \"workflow_run.created\", \"workflow_run.completed\",\n\t// \"workflow_run.failed\", \"workflow_run.cancelled\", \"transcoding.created\",\n\t// \"transcoding.ready\", \"transcoding.failed\", \"transcoding.cancelled\",\n\t// \"transcoding.expired\", \"transcoding.deleted\", \"thumbnail.created\",\n\t// \"thumbnail.ready\", \"thumbnail.failed\", \"thumbnail.expired\", \"thumbnail.deleted\".\n\tEvent WebhookEvent `json:\"event\" api:\"required\"`\n\t// Retention deadline set from the project team plan when the event was recorded.\n\t// Deliveries and retries share this deadline.\n\tExpiresAt time.Time `json:\"expires_at\" api:\"required\" format:\"date-time\"`\n\t// ID of the resource that caused this event.\n\tObjectID string `json:\"object_id\" api:\"required\"`\n\t// Immutable JSON event envelope. Its ID is the event ID; webhook delivery\n\t// envelopes retain their notification IDs. Signed links in historical snapshots\n\t// may have expired.\n\tPayload string `json:\"payload\" api:\"required\"`\n\t// Related resource IDs retained independently of resource deletion.\n\tRelatedObjectIDs []string `json:\"related_object_ids\" api:\"required\"`\n\t// First 100 delivery attempts, oldest first; included on retrieval. List\n\t// notifications with event_id to paginate all attempts.\n\tDeliveries []Notification `json:\"deliveries\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID               respjson.Field\n\t\tCreatedAt        respjson.Field\n\t\tDeliveryCount    respjson.Field\n\t\tDeliveryStatus   respjson.Field\n\t\tEvent            respjson.Field\n\t\tExpiresAt        respjson.Field\n\t\tObjectID         respjson.Field\n\t\tPayload          respjson.Field\n\t\tRelatedObjectIDs respjson.Field\n\t\tDeliveries       respjson.Field\n\t\tExtraFields      map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA retained lifecycle event, recorded independently of webhook subscriptions. The payload is an immutable JSON snapshot.\n\n```go\nfunc (r Event) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *Event) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype EventDeliveryStatus string\n```\nSummary of the latest retained attempt for each webhook. none means no retained attempts; pending means at least one latest attempt is awaiting delivery; failed means at least one latest attempt failed and none are pending; delivered means all latest attempts succeeded. Earlier failures superseded by successful retries do not mark the event failed.\n\n```go\nconst (\n\tEventDeliveryStatusNone      EventDeliveryStatus = \"none\"\n\tEventDeliveryStatusPending   EventDeliveryStatus = \"pending\"\n\tEventDeliveryStatusDelivered EventDeliveryStatus = \"delivered\"\n\tEventDeliveryStatusFailed    EventDeliveryStatus = \"failed\"\n)\n```\n\n```go\ntype EventGetResponseEnvelope struct {\n\t// A retained lifecycle event, recorded independently of webhook subscriptions. The\n\t// payload is an immutable JSON snapshot.\n\tData Event `json:\"data\" api:\"required\"`\n\t// Status indicates the response status \"success\"\n\tStatus constant.Success `json:\"status\" default:\"success\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tData        respjson.Field\n\t\tStatus      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r EventGetResponseEnvelope) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *EventGetResponseEnvelope) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype EventListParams struct {\n\t// Pagination limit (max 100)\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Filter by the primary or a related resource ID, including retained associations\n\t// after resource deletion.\n\tObjectID param.Opt[string] `query:\"object_id,omitzero\" json:\"-\"`\n\t// Pagination offset\n\tOffset  param.Opt[int64]       `query:\"offset,omitzero\" json:\"-\"`\n\tCreated EventListParamsCreated `query:\"created,omitzero\" json:\"-\"`\n\t// Filter by events\n\tEvents []WebhookEvent `query:\"events,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r EventListParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [EventListParams](#EventListParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype EventListParamsCreated struct {\n\t// Filter by creation date greater than or equal (UNIX epoch time)\n\tGte param.Opt[int64] `query:\"gte,omitzero\" format:\"epoch\" json:\"-\"`\n\t// Filter by creation date less than or equal (UNIX epoch time)\n\tLte param.Opt[int64] `query:\"lte,omitzero\" format:\"epoch\" json:\"-\"`\n\t// Sort by creation date (asc/desc)\n\t//\n\t// Any of \"asc\", \"desc\".\n\tSort string `query:\"sort,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r EventListParamsCreated) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [EventListParamsCreated](#EventListParamsCreated)'s query parameters as \\`url.Values\\`.\n\n```go\ntype EventService struct {\n\tOptions []option.RequestOption\n}\n```\nEventService contains methods and other services that help with interacting with the chunkify API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewEventService](#NewEventService) method instead.\n\n```go\nfunc NewEventService(opts ...option.RequestOption) (r EventService)\n```\nNewEventService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *EventService) Get(ctx context.Context, eventID string, opts ...option.RequestOption) (res *Event, err error)\n```\nRetrieve a retained event, its frozen payload, related resources, and up to 100 delivery attempts. No webhook configuration is required.\n\n```go\nfunc (r *EventService) List(ctx context.Context, query EventListParams, opts ...option.RequestOption) (res *pagination.PaginatedResults[Event], err error)\n```\nList lifecycle events recorded with or without webhooks. Events and their deliveries expire according to the plan retention deadline. Historical notifications recorded before the event log remain available through Notifications.\n\n```go\nfunc (r *EventService) ListAutoPaging(ctx context.Context, query EventListParams, opts ...option.RequestOption) *pagination.PaginatedResultsAutoPager[Event]\n```\nList lifecycle events recorded with or without webhooks. Events and their deliveries expire according to the plan retention deadline. Historical notifications recorded before the event log remain available through Notifications.\n\n```go\ntype FileGetResponseEnvelope struct {\n\t// Data contains the response object\n\tData JobFile `json:\"data\" api:\"required\"`\n\t// Status indicates the response status \"success\"\n\tStatus constant.Success `json:\"status\" default:\"success\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tData        respjson.Field\n\t\tStatus      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nSuccessful response\n\n```go\nfunc (r FileGetResponseEnvelope) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *FileGetResponseEnvelope) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype FileListParams struct {\n\t// Filter by file ID\n\tID param.Opt[string] `query:\"id,omitzero\" json:\"-\"`\n\t// Filter by audio codec\n\tAudioCodec param.Opt[string] `query:\"audio_codec,omitzero\" json:\"-\"`\n\t// Filter by job ID\n\tJobID param.Opt[string] `query:\"job_id,omitzero\" json:\"-\"`\n\t// Pagination limit (max 100)\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Filter by mime type\n\tMimeType param.Opt[string] `query:\"mime_type,omitzero\" json:\"-\"`\n\t// Pagination offset\n\tOffset param.Opt[int64] `query:\"offset,omitzero\" json:\"-\"`\n\t// Filter by storage ID\n\tStorageID param.Opt[string] `query:\"storage_id,omitzero\" json:\"-\"`\n\t// Filter by video codec\n\tVideoCodec param.Opt[string]      `query:\"video_codec,omitzero\" json:\"-\"`\n\tCreated    FileListParamsCreated  `query:\"created,omitzero\" json:\"-\"`\n\tDuration   FileListParamsDuration `query:\"duration,omitzero\" json:\"-\"`\n\tHeight     FileListParamsHeight   `query:\"height,omitzero\" json:\"-\"`\n\tPath       FileListParamsPath     `query:\"path,omitzero\" json:\"-\"`\n\tSize       FileListParamsSize     `query:\"size,omitzero\" json:\"-\"`\n\tWidth      FileListParamsWidth    `query:\"width,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r FileListParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [FileListParams](#FileListParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype FileListParamsCreated struct {\n\t// Filter by creation date greater than or equal (UNIX epoch time)\n\tGte param.Opt[int64] `query:\"gte,omitzero\" format:\"epoch\" json:\"-\"`\n\t// Filter by creation date less than or equal (UNIX epoch time)\n\tLte param.Opt[int64] `query:\"lte,omitzero\" format:\"epoch\" json:\"-\"`\n\t// Sort by creation date (asc/desc)\n\t//\n\t// Any of \"asc\", \"desc\".\n\tSort string `query:\"sort,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r FileListParamsCreated) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [FileListParamsCreated](#FileListParamsCreated)'s query parameters as \\`url.Values\\`.\n\n```go\ntype FileListParamsDuration struct {\n\t// Filter by exact duration\n\tEq param.Opt[float64] `query:\"eq,omitzero\" json:\"-\"`\n\t// Filter by duration greater than\n\tGt param.Opt[float64] `query:\"gt,omitzero\" json:\"-\"`\n\t// Filter by duration greater than or equal\n\tGte param.Opt[float64] `query:\"gte,omitzero\" json:\"-\"`\n\t// Filter by duration less than\n\tLt param.Opt[float64] `query:\"lt,omitzero\" json:\"-\"`\n\t// Filter by duration less than or equal\n\tLte param.Opt[float64] `query:\"lte,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r FileListParamsDuration) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [FileListParamsDuration](#FileListParamsDuration)'s query parameters as \\`url.Values\\`.\n\n```go\ntype FileListParamsHeight struct {\n\t// Filter by exact height\n\tEq param.Opt[int64] `query:\"eq,omitzero\" json:\"-\"`\n\t// Filter by height greater than\n\tGt param.Opt[int64] `query:\"gt,omitzero\" json:\"-\"`\n\t// Filter by height greater than or equal\n\tGte param.Opt[int64] `query:\"gte,omitzero\" json:\"-\"`\n\t// Filter by height less than\n\tLt param.Opt[int64] `query:\"lt,omitzero\" json:\"-\"`\n\t// Filter by height less than or equal\n\tLte param.Opt[int64] `query:\"lte,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r FileListParamsHeight) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [FileListParamsHeight](#FileListParamsHeight)'s query parameters as \\`url.Values\\`.\n\n```go\ntype FileListParamsPath struct {\n\t// Filter by path\n\tEq param.Opt[string] `query:\"eq,omitzero\" json:\"-\"`\n\t// Filter by path (case insensitive)\n\tIlike param.Opt[string] `query:\"ilike,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r FileListParamsPath) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [FileListParamsPath](#FileListParamsPath)'s query parameters as \\`url.Values\\`.\n\n```go\ntype FileListParamsSize struct {\n\t// Filter by exact file size\n\tEq param.Opt[int64] `query:\"eq,omitzero\" json:\"-\"`\n\t// Filter by file size greater than\n\tGt param.Opt[int64] `query:\"gt,omitzero\" json:\"-\"`\n\t// Filter by file size greater than or equal\n\tGte param.Opt[int64] `query:\"gte,omitzero\" json:\"-\"`\n\t// Filter by file size less than\n\tLt param.Opt[int64] `query:\"lt,omitzero\" json:\"-\"`\n\t// Filter by file size less than or equal\n\tLte param.Opt[int64] `query:\"lte,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r FileListParamsSize) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [FileListParamsSize](#FileListParamsSize)'s query parameters as \\`url.Values\\`.\n\n```go\ntype FileListParamsWidth struct {\n\t// Filter by exact width\n\tEq param.Opt[int64] `query:\"eq,omitzero\" json:\"-\"`\n\t// Filter by width greater than\n\tGt param.Opt[int64] `query:\"gt,omitzero\" json:\"-\"`\n\t// Filter by width greater than or equal\n\tGte param.Opt[int64] `query:\"gte,omitzero\" json:\"-\"`\n\t// Filter by width less than\n\tLt param.Opt[int64] `query:\"lt,omitzero\" json:\"-\"`\n\t// Filter by width less than or equal\n\tLte param.Opt[int64] `query:\"lte,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r FileListParamsWidth) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [FileListParamsWidth](#FileListParamsWidth)'s query parameters as \\`url.Values\\`.\n\n```go\ntype FileService struct {\n\tOptions []option.RequestOption\n}\n```\nFileService contains methods and other services that help with interacting with the chunkify API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewFileService](#NewFileService) method instead.\n\n```go\nfunc NewFileService(opts ...option.RequestOption) (r FileService)\n```\nNewFileService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *FileService) Delete(ctx context.Context, fileID string, opts ...option.RequestOption) (err error)\n```\nDelete a file. It will fail if there are processing jobs using this file. Deprecated: Files are a legacy resource. Transcodings and Thumbnails include their output files, and List Asset outputs returns an Asset's outputs.\n\nDeprecated: deprecated\n\n```go\nfunc (r *FileService) Get(ctx context.Context, fileID string, opts ...option.RequestOption) (res *JobFile, err error)\n```\nRetrieve details of a specific file by its ID, including metadata, media properties, and associated jobs. Deprecated: Files are a legacy resource. Transcodings and Thumbnails include their output files, and List Asset outputs returns an Asset's outputs.\n\nDeprecated: deprecated\n\n```go\nfunc (r *FileService) List(ctx context.Context, query FileListParams, opts ...option.RequestOption) (res *pagination.PaginatedResults[JobFile], err error)\n```\nRetrieve a list of files with optional filtering and pagination. Deprecated: Files are a legacy resource. Transcodings and Thumbnails include their output files, and List Asset outputs returns an Asset's outputs.\n\nDeprecated: deprecated\n\n```go\nfunc (r *FileService) ListAutoPaging(ctx context.Context, query FileListParams, opts ...option.RequestOption) *pagination.PaginatedResultsAutoPager[JobFile]\n```\nRetrieve a list of files with optional filtering and pagination. Deprecated: Files are a legacy resource. Transcodings and Thumbnails include their output files, and List Asset outputs returns an Asset's outputs.\n\nDeprecated: deprecated\n\n```go\ntype HlsAv1 struct {\n\tID constant.HlsAv1 `json:\"id\" default:\"hls_av1\"`\n\t// AudioBitrate specifies the audio bitrate in bits per second. Must be between\n\t// 32Kbps and 512Kbps.\n\tAudioBitrate int64 `json:\"audio_bitrate\"`\n\t// Bufsize specifies the video buffer size in bits. Must be between 100Kbps and\n\t// 50Mbps.\n\tBufsize int64 `json:\"bufsize\"`\n\t// Channels specifies the number of audio channels. Valid values: 1 (mono), 2\n\t// (stereo), 5 (5.1), 7 (7.1)\n\t//\n\t// Any of 1, 2, 5, 7.\n\tChannels int64 `json:\"channels\"`\n\t// Crf (Constant Rate Factor) controls the quality of the output video. Lower\n\t// values mean better quality but larger file size. Range: 16 to 63. Recommended\n\t// values: 16-35 for high quality, 35-45 for good quality, 45-63 for acceptable\n\t// quality.\n\tCrf int64 `json:\"crf\"`\n\t// DisableAudio indicates whether to disable audio processing.\n\tDisableAudio bool `json:\"disable_audio\"`\n\t// DisableVideo indicates whether to disable video processing.\n\tDisableVideo bool `json:\"disable_video\"`\n\t// Duration specifies the duration to process in seconds. Must be a positive value.\n\tDuration int64 `json:\"duration\"`\n\t// Framerate specifies the output video frame rate. Must be greater than zero and\n\t// at most 240 fps.\n\tFramerate float64 `json:\"framerate\"`\n\t// Gop specifies the Group of Pictures (GOP) size. Must be between 1 and 960\n\t// frames.\n\tGop int64 `json:\"gop\"`\n\t// Height specifies the output video height in pixels. Must be between -2 and 7680.\n\t// Use -2 for automatic calculation while maintaining aspect ratio.\n\tHeight int64 `json:\"height\"`\n\t// HlsEnc enables encryption for HLS segments when set to true.\n\tHlsEnc bool `json:\"hls_enc\"`\n\t// HlsEncIv specifies the initialization vector for encryption. Maximum length: 64\n\t// characters. Required when HlsEnc is true.\n\tHlsEncIv string `json:\"hls_enc_iv\"`\n\t// HlsEncKey specifies the encryption key for HLS segments. Maximum length: 64\n\t// characters. Required when HlsEnc is true.\n\tHlsEncKey string `json:\"hls_enc_key\"`\n\t// HlsEncKeyUrl specifies the URL where clients can fetch the encryption key.\n\t// Required when HlsEnc is true.\n\tHlsEncKeyURL string `json:\"hls_enc_key_url\"`\n\t// HlsSegmentType specifies the type of HLS segments. Valid values:\n\t//\n\t// - mpegts: Traditional MPEG-TS segments, better compatibility\n\t// - fmp4: Fragmented MP4 segments, better efficiency\n\t//\n\t// Any of \"mpegts\", \"fmp4\".\n\tHlsSegmentType HlsAv1HlsSegmentType `json:\"hls_segment_type\"`\n\t// HlsSingleFile specifies whether to store HLS segments in one file using byte\n\t// ranges. Defaults to true. Set to false to create separate segment files.\n\tHlsSingleFile bool `json:\"hls_single_file\"`\n\t// HlsTime specifies the duration of each HLS segment in seconds. Range: 1 to 10.\n\t// Shorter segments provide faster startup but more overhead, longer segments are\n\t// more efficient.\n\tHlsTime int64 `json:\"hls_time\"`\n\t// Level specifies the AV1 profile level. Valid values: 30-31 (main), 41 (main10).\n\t// Higher levels support higher resolutions and bitrates but require more\n\t// processing power.\n\t//\n\t// Any of 30, 31, 41.\n\tLevel int64 `json:\"level\"`\n\t// Maxrate specifies the maximum video bitrate in bits per second. Must be between\n\t// 100Kbps and 50Mbps.\n\tMaxrate int64 `json:\"maxrate\"`\n\t// Minrate specifies the minimum video bitrate in bits per second. Must be between\n\t// 100Kbps and 50Mbps.\n\tMinrate  int64  `json:\"minrate\"`\n\tMovflags string `json:\"movflags\"`\n\t// Enables per-title optimization. Disabled by default. Set it to true to let\n\t// Chunkify select rate control automatically. When enabled, explicit rate-control\n\t// fields cannot be provided. For HLS outputs, either audio_bitrate or\n\t// video_bitrate is required when per-title optimization is disabled or omitted.\n\tPerTitle bool `json:\"per_title\"`\n\t// PixFmt specifies the pixel format. Valid value: yuv420p\n\t//\n\t// Any of \"yuv410p\", \"yuv411p\", \"yuv420p\", \"yuv422p\", \"yuv440p\", \"yuv444p\",\n\t// \"yuvJ411p\", \"yuvJ420p\", \"yuvJ422p\", \"yuvJ440p\", \"yuvJ444p\", \"yuv420p10le\",\n\t// \"yuv422p10le\", \"yuv440p10le\", \"yuv444p10le\", \"yuv420p12le\", \"yuv422p12le\",\n\t// \"yuv440p12le\", \"yuv444p12le\", \"yuv420p10be\", \"yuv422p10be\", \"yuv440p10be\",\n\t// \"yuv444p10be\", \"yuv420p12be\", \"yuv422p12be\", \"yuv440p12be\", \"yuv444p12be\".\n\tPixfmt HlsAv1Pixfmt `json:\"pixfmt\"`\n\t// Preset controls the encoding efficiency and processing intensity. Lower presets\n\t// use more optimization features, creating smaller files with better quality but\n\t// requiring more compute time. Higher presets encode faster but produce larger\n\t// files.\n\t//\n\t// Preset ranges:\n\t//\n\t// - 6-7: Fast encoding for real-time applications (smaller files)\n\t// - 8-10: Balanced efficiency and speed for general use\n\t// - 11-13: Fastest encoding for real-time applications (larger files)\n\t//\n\t// Any of \"6\", \"7\", \"8\", \"9\", \"10\", \"11\", \"12\", \"13\".\n\tPreset HlsAv1Preset `json:\"preset\"`\n\t// Profilev specifies the AV1 profile. Valid values:\n\t//\n\t// - main: Main profile, good for most applications\n\t// - main10: Main 10-bit profile, supports 10-bit color\n\t// - mainstillpicture: Still picture profile, optimized for single images\n\t//\n\t// Any of \"main\", \"main10\", \"mainstillpicture\".\n\tProfilev HlsAv1Profilev `json:\"profilev\"`\n\t// Seek specifies the timestamp to start processing from (in seconds). Must be a\n\t// positive value.\n\tSeek int64 `json:\"seek\"`\n\t// VideoBitrate specifies the video bitrate in bits per second. Must be between 1\n\t// bps and 100 Mbps.\n\tVideoBitrate int64 `json:\"video_bitrate\"`\n\t// Width specifies the output video width in pixels. Must be between -2 and 7680.\n\t// Use -2 for automatic calculation while maintaining aspect ratio.\n\tWidth int64 `json:\"width\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID             respjson.Field\n\t\tAudioBitrate   respjson.Field\n\t\tBufsize        respjson.Field\n\t\tChannels       respjson.Field\n\t\tCrf            respjson.Field\n\t\tDisableAudio   respjson.Field\n\t\tDisableVideo   respjson.Field\n\t\tDuration       respjson.Field\n\t\tFramerate      respjson.Field\n\t\tGop            respjson.Field\n\t\tHeight         respjson.Field\n\t\tHlsEnc         respjson.Field\n\t\tHlsEncIv       respjson.Field\n\t\tHlsEncKey      respjson.Field\n\t\tHlsEncKeyURL   respjson.Field\n\t\tHlsSegmentType respjson.Field\n\t\tHlsSingleFile  respjson.Field\n\t\tHlsTime        respjson.Field\n\t\tLevel          respjson.Field\n\t\tMaxrate        respjson.Field\n\t\tMinrate        respjson.Field\n\t\tMovflags       respjson.Field\n\t\tPerTitle       respjson.Field\n\t\tPixfmt         respjson.Field\n\t\tPreset         respjson.Field\n\t\tProfilev       respjson.Field\n\t\tSeek           respjson.Field\n\t\tVideoBitrate   respjson.Field\n\t\tWidth          respjson.Field\n\t\tExtraFields    map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r HlsAv1) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r HlsAv1) ToParam() HlsAv1Param\n```\nToParam converts this HlsAv1 to a HlsAv1Param.\n\nWarning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with HlsAv1Param.Overrides()\n\n```go\nfunc (r *HlsAv1) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype HlsAv1HlsSegmentType string\n```\nHlsSegmentType specifies the type of HLS segments. Valid values:\n\n\\- mpegts: Traditional MPEG-TS segments, better compatibility - fmp4: Fragmented MP4 segments, better efficiency\n\n```go\nconst (\n\tHlsAv1HlsSegmentTypeMpegts HlsAv1HlsSegmentType = \"mpegts\"\n\tHlsAv1HlsSegmentTypeFmp4   HlsAv1HlsSegmentType = \"fmp4\"\n)\n```\n\n```go\ntype HlsAv1Param struct {\n\t// AudioBitrate specifies the audio bitrate in bits per second. Must be between\n\t// 32Kbps and 512Kbps.\n\tAudioBitrate param.Opt[int64] `json:\"audio_bitrate,omitzero\"`\n\t// Bufsize specifies the video buffer size in bits. Must be between 100Kbps and\n\t// 50Mbps.\n\tBufsize param.Opt[int64] `json:\"bufsize,omitzero\"`\n\t// Crf (Constant Rate Factor) controls the quality of the output video. Lower\n\t// values mean better quality but larger file size. Range: 16 to 63. Recommended\n\t// values: 16-35 for high quality, 35-45 for good quality, 45-63 for acceptable\n\t// quality.\n\tCrf param.Opt[int64] `json:\"crf,omitzero\"`\n\t// DisableAudio indicates whether to disable audio processing.\n\tDisableAudio param.Opt[bool] `json:\"disable_audio,omitzero\"`\n\t// DisableVideo indicates whether to disable video processing.\n\tDisableVideo param.Opt[bool] `json:\"disable_video,omitzero\"`\n\t// Duration specifies the duration to process in seconds. Must be a positive value.\n\tDuration param.Opt[int64] `json:\"duration,omitzero\"`\n\t// Framerate specifies the output video frame rate. Must be greater than zero and\n\t// at most 240 fps.\n\tFramerate param.Opt[float64] `json:\"framerate,omitzero\"`\n\t// Gop specifies the Group of Pictures (GOP) size. Must be between 1 and 960\n\t// frames.\n\tGop param.Opt[int64] `json:\"gop,omitzero\"`\n\t// Height specifies the output video height in pixels. Must be between -2 and 7680.\n\t// Use -2 for automatic calculation while maintaining aspect ratio.\n\tHeight param.Opt[int64] `json:\"height,omitzero\"`\n\t// HlsEnc enables encryption for HLS segments when set to true.\n\tHlsEnc param.Opt[bool] `json:\"hls_enc,omitzero\"`\n\t// HlsEncIv specifies the initialization vector for encryption. Maximum length: 64\n\t// characters. Required when HlsEnc is true.\n\tHlsEncIv param.Opt[string] `json:\"hls_enc_iv,omitzero\"`\n\t// HlsEncKey specifies the encryption key for HLS segments. Maximum length: 64\n\t// characters. Required when HlsEnc is true.\n\tHlsEncKey param.Opt[string] `json:\"hls_enc_key,omitzero\"`\n\t// HlsEncKeyUrl specifies the URL where clients can fetch the encryption key.\n\t// Required when HlsEnc is true.\n\tHlsEncKeyURL param.Opt[string] `json:\"hls_enc_key_url,omitzero\"`\n\t// HlsSingleFile specifies whether to store HLS segments in one file using byte\n\t// ranges. Defaults to true. Set to false to create separate segment files.\n\tHlsSingleFile param.Opt[bool] `json:\"hls_single_file,omitzero\"`\n\t// HlsTime specifies the duration of each HLS segment in seconds. Range: 1 to 10.\n\t// Shorter segments provide faster startup but more overhead, longer segments are\n\t// more efficient.\n\tHlsTime param.Opt[int64] `json:\"hls_time,omitzero\"`\n\t// Maxrate specifies the maximum video bitrate in bits per second. Must be between\n\t// 100Kbps and 50Mbps.\n\tMaxrate param.Opt[int64] `json:\"maxrate,omitzero\"`\n\t// Minrate specifies the minimum video bitrate in bits per second. Must be between\n\t// 100Kbps and 50Mbps.\n\tMinrate  param.Opt[int64]  `json:\"minrate,omitzero\"`\n\tMovflags param.Opt[string] `json:\"movflags,omitzero\"`\n\t// Enables per-title optimization. Disabled by default. Set it to true to let\n\t// Chunkify select rate control automatically. When enabled, explicit rate-control\n\t// fields cannot be provided. For HLS outputs, either audio_bitrate or\n\t// video_bitrate is required when per-title optimization is disabled or omitted.\n\tPerTitle param.Opt[bool] `json:\"per_title,omitzero\"`\n\t// Seek specifies the timestamp to start processing from (in seconds). Must be a\n\t// positive value.\n\tSeek param.Opt[int64] `json:\"seek,omitzero\"`\n\t// VideoBitrate specifies the video bitrate in bits per second. Must be between 1\n\t// bps and 100 Mbps.\n\tVideoBitrate param.Opt[int64] `json:\"video_bitrate,omitzero\"`\n\t// Width specifies the output video width in pixels. Must be between -2 and 7680.\n\t// Use -2 for automatic calculation while maintaining aspect ratio.\n\tWidth param.Opt[int64] `json:\"width,omitzero\"`\n\t// Channels specifies the number of audio channels. Valid values: 1 (mono), 2\n\t// (stereo), 5 (5.1), 7 (7.1)\n\t//\n\t// Any of 1, 2, 5, 7.\n\tChannels int64 `json:\"channels,omitzero\"`\n\t// HlsSegmentType specifies the type of HLS segments. Valid values:\n\t//\n\t// - mpegts: Traditional MPEG-TS segments, better compatibility\n\t// - fmp4: Fragmented MP4 segments, better efficiency\n\t//\n\t// Any of \"mpegts\", \"fmp4\".\n\tHlsSegmentType HlsAv1HlsSegmentType `json:\"hls_segment_type,omitzero\"`\n\t// Level specifies the AV1 profile level. Valid values: 30-31 (main), 41 (main10).\n\t// Higher levels support higher resolutions and bitrates but require more\n\t// processing power.\n\t//\n\t// Any of 30, 31, 41.\n\tLevel int64 `json:\"level,omitzero\"`\n\t// PixFmt specifies the pixel format. Valid value: yuv420p\n\t//\n\t// Any of \"yuv410p\", \"yuv411p\", \"yuv420p\", \"yuv422p\", \"yuv440p\", \"yuv444p\",\n\t// \"yuvJ411p\", \"yuvJ420p\", \"yuvJ422p\", \"yuvJ440p\", \"yuvJ444p\", \"yuv420p10le\",\n\t// \"yuv422p10le\", \"yuv440p10le\", \"yuv444p10le\", \"yuv420p12le\", \"yuv422p12le\",\n\t// \"yuv440p12le\", \"yuv444p12le\", \"yuv420p10be\", \"yuv422p10be\", \"yuv440p10be\",\n\t// \"yuv444p10be\", \"yuv420p12be\", \"yuv422p12be\", \"yuv440p12be\", \"yuv444p12be\".\n\tPixfmt HlsAv1Pixfmt `json:\"pixfmt,omitzero\"`\n\t// Preset controls the encoding efficiency and processing intensity. Lower presets\n\t// use more optimization features, creating smaller files with better quality but\n\t// requiring more compute time. Higher presets encode faster but produce larger\n\t// files.\n\t//\n\t// Preset ranges:\n\t//\n\t// - 6-7: Fast encoding for real-time applications (smaller files)\n\t// - 8-10: Balanced efficiency and speed for general use\n\t// - 11-13: Fastest encoding for real-time applications (larger files)\n\t//\n\t// Any of \"6\", \"7\", \"8\", \"9\", \"10\", \"11\", \"12\", \"13\".\n\tPreset HlsAv1Preset `json:\"preset,omitzero\"`\n\t// Profilev specifies the AV1 profile. Valid values:\n\t//\n\t// - main: Main profile, good for most applications\n\t// - main10: Main 10-bit profile, supports 10-bit color\n\t// - mainstillpicture: Still picture profile, optimized for single images\n\t//\n\t// Any of \"main\", \"main10\", \"mainstillpicture\".\n\tProfilev HlsAv1Profilev `json:\"profilev,omitzero\"`\n\t// This field can be elided, and will marshal its zero value as \"hls_av1\".\n\tID constant.HlsAv1 `json:\"id\" default:\"hls_av1\"`\n\t// contains filtered or unexported fields\n}\n```\nThe property ID is required.\n\n```go\nfunc (r HlsAv1Param) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *HlsAv1Param) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype HlsAv1Pixfmt string\n```\nPixFmt specifies the pixel format. Valid value: yuv420p\n\n```go\nconst (\n\tHlsAv1PixfmtYuv410p     HlsAv1Pixfmt = \"yuv410p\"\n\tHlsAv1PixfmtYuv411p     HlsAv1Pixfmt = \"yuv411p\"\n\tHlsAv1PixfmtYuv420p     HlsAv1Pixfmt = \"yuv420p\"\n\tHlsAv1PixfmtYuv422p     HlsAv1Pixfmt = \"yuv422p\"\n\tHlsAv1PixfmtYuv440p     HlsAv1Pixfmt = \"yuv440p\"\n\tHlsAv1PixfmtYuv444p     HlsAv1Pixfmt = \"yuv444p\"\n\tHlsAv1PixfmtYuvJ411p    HlsAv1Pixfmt = \"yuvJ411p\"\n\tHlsAv1PixfmtYuvJ420p    HlsAv1Pixfmt = \"yuvJ420p\"\n\tHlsAv1PixfmtYuvJ422p    HlsAv1Pixfmt = \"yuvJ422p\"\n\tHlsAv1PixfmtYuvJ440p    HlsAv1Pixfmt = \"yuvJ440p\"\n\tHlsAv1PixfmtYuvJ444p    HlsAv1Pixfmt = \"yuvJ444p\"\n\tHlsAv1PixfmtYuv420p10le HlsAv1Pixfmt = \"yuv420p10le\"\n\tHlsAv1PixfmtYuv422p10le HlsAv1Pixfmt = \"yuv422p10le\"\n\tHlsAv1PixfmtYuv440p10le HlsAv1Pixfmt = \"yuv440p10le\"\n\tHlsAv1PixfmtYuv444p10le HlsAv1Pixfmt = \"yuv444p10le\"\n\tHlsAv1PixfmtYuv420p12le HlsAv1Pixfmt = \"yuv420p12le\"\n\tHlsAv1PixfmtYuv422p12le HlsAv1Pixfmt = \"yuv422p12le\"\n\tHlsAv1PixfmtYuv440p12le HlsAv1Pixfmt = \"yuv440p12le\"\n\tHlsAv1PixfmtYuv444p12le HlsAv1Pixfmt = \"yuv444p12le\"\n\tHlsAv1PixfmtYuv420p10be HlsAv1Pixfmt = \"yuv420p10be\"\n\tHlsAv1PixfmtYuv422p10be HlsAv1Pixfmt = \"yuv422p10be\"\n\tHlsAv1PixfmtYuv440p10be HlsAv1Pixfmt = \"yuv440p10be\"\n\tHlsAv1PixfmtYuv444p10be HlsAv1Pixfmt = \"yuv444p10be\"\n\tHlsAv1PixfmtYuv420p12be HlsAv1Pixfmt = \"yuv420p12be\"\n\tHlsAv1PixfmtYuv422p12be HlsAv1Pixfmt = \"yuv422p12be\"\n\tHlsAv1PixfmtYuv440p12be HlsAv1Pixfmt = \"yuv440p12be\"\n\tHlsAv1PixfmtYuv444p12be HlsAv1Pixfmt = \"yuv444p12be\"\n)\n```\n\n```go\ntype HlsAv1Preset string\n```\nPreset controls the encoding efficiency and processing intensity. Lower presets use more optimization features, creating smaller files with better quality but requiring more compute time. Higher presets encode faster but produce larger files.\n\nPreset ranges:\n\n\\- 6-7: Fast encoding for real-time applications (smaller files) - 8-10: Balanced efficiency and speed for general use - 11-13: Fastest encoding for real-time applications (larger files)\n\n```go\nconst (\n\tHlsAv1Preset6  HlsAv1Preset = \"6\"\n\tHlsAv1Preset7  HlsAv1Preset = \"7\"\n\tHlsAv1Preset8  HlsAv1Preset = \"8\"\n\tHlsAv1Preset9  HlsAv1Preset = \"9\"\n\tHlsAv1Preset10 HlsAv1Preset = \"10\"\n\tHlsAv1Preset11 HlsAv1Preset = \"11\"\n\tHlsAv1Preset12 HlsAv1Preset = \"12\"\n\tHlsAv1Preset13 HlsAv1Preset = \"13\"\n)\n```\n\n```go\ntype HlsAv1Profilev string\n```\nProfilev specifies the AV1 profile. Valid values:\n\n\\- main: Main profile, good for most applications - main10: Main 10-bit profile, supports 10-bit color - mainstillpicture: Still picture profile, optimized for single images\n\n```go\nconst (\n\tHlsAv1ProfilevMain             HlsAv1Profilev = \"main\"\n\tHlsAv1ProfilevMain10           HlsAv1Profilev = \"main10\"\n\tHlsAv1ProfilevMainstillpicture HlsAv1Profilev = \"mainstillpicture\"\n)\n```\n\n```go\ntype HlsH264 struct {\n\tID constant.HlsH264 `json:\"id\" default:\"hls_h264\"`\n\t// AudioBitrate specifies the audio bitrate in bits per second. Must be between\n\t// 32Kbps and 512Kbps.\n\tAudioBitrate int64 `json:\"audio_bitrate\"`\n\t// Bufsize specifies the video buffer size in bits. Must be between 100Kbps and\n\t// 50Mbps.\n\tBufsize int64 `json:\"bufsize\"`\n\t// Channels specifies the number of audio channels. Valid values: 1 (mono), 2\n\t// (stereo), 5 (5.1), 7 (7.1)\n\t//\n\t// Any of 1, 2, 5, 7.\n\tChannels int64 `json:\"channels\"`\n\t// Crf (Constant Rate Factor) controls the quality of the output video. Lower\n\t// values mean better quality but larger file size. Range: 16 to 35. Recommended\n\t// values: 18-28 for high quality, 23-28 for good quality, 28-35 for acceptable\n\t// quality.\n\tCrf int64 `json:\"crf\"`\n\t// DisableAudio indicates whether to disable audio processing.\n\tDisableAudio bool `json:\"disable_audio\"`\n\t// DisableVideo indicates whether to disable video processing.\n\tDisableVideo bool `json:\"disable_video\"`\n\t// Duration specifies the duration to process in seconds. Must be a positive value.\n\tDuration int64 `json:\"duration\"`\n\t// Framerate specifies the output video frame rate. Must be greater than zero and\n\t// at most 240 fps.\n\tFramerate float64 `json:\"framerate\"`\n\t// Gop specifies the Group of Pictures (GOP) size. Must be between 1 and 960\n\t// frames.\n\tGop int64 `json:\"gop\"`\n\t// Height specifies the output video height in pixels. Must be between -2 and 7680.\n\t// Use -2 for automatic calculation while maintaining aspect ratio.\n\tHeight int64 `json:\"height\"`\n\t// HlsEnc enables encryption for HLS segments when set to true.\n\tHlsEnc bool `json:\"hls_enc\"`\n\t// HlsEncIv specifies the initialization vector for encryption. Maximum length: 64\n\t// characters. Required when HlsEnc is true.\n\tHlsEncIv string `json:\"hls_enc_iv\"`\n\t// HlsEncKey specifies the encryption key for HLS segments. Maximum length: 64\n\t// characters. Required when HlsEnc is true.\n\tHlsEncKey string `json:\"hls_enc_key\"`\n\t// HlsEncKeyUrl specifies the URL where clients can fetch the encryption key.\n\t// Required when HlsEnc is true.\n\tHlsEncKeyURL string `json:\"hls_enc_key_url\"`\n\t// HlsSegmentType specifies the type of HLS segments. Valid values:\n\t//\n\t// - mpegts: Traditional MPEG-TS segments, better compatibility\n\t// - fmp4: Fragmented MP4 segments, better efficiency\n\t//\n\t// Any of \"mpegts\", \"fmp4\".\n\tHlsSegmentType HlsH264HlsSegmentType `json:\"hls_segment_type\"`\n\t// HlsSingleFile specifies whether to store HLS segments in one file using byte\n\t// ranges. Defaults to true. Set to false to create separate segment files.\n\tHlsSingleFile bool `json:\"hls_single_file\"`\n\t// HlsTime specifies the duration of each HLS segment in seconds. Range: 1 to 10.\n\t// Shorter segments provide faster startup but more overhead, longer segments are\n\t// more efficient.\n\tHlsTime int64 `json:\"hls_time\"`\n\t// Level specifies the H.264 profile level. Valid values: 10-13 (baseline), 20-22\n\t// (main), 30-32 (high), 40-42 (high), 50-51 (high). Higher levels support higher\n\t// resolutions and bitrates but require more processing power.\n\t//\n\t// Any of 10, 11, 12, 13, 20, 21, 22, 30, 31, 32, 40, 41, 42, 50, 51.\n\tLevel int64 `json:\"level\"`\n\t// Maxrate specifies the maximum video bitrate in bits per second. Must be between\n\t// 100Kbps and 50Mbps.\n\tMaxrate int64 `json:\"maxrate\"`\n\t// Minrate specifies the minimum video bitrate in bits per second. Must be between\n\t// 100Kbps and 50Mbps.\n\tMinrate  int64  `json:\"minrate\"`\n\tMovflags string `json:\"movflags\"`\n\t// Enables per-title optimization. Disabled by default. Set it to true to let\n\t// Chunkify select rate control automatically. When enabled, explicit rate-control\n\t// fields cannot be provided. For HLS outputs, either audio_bitrate or\n\t// video_bitrate is required when per-title optimization is disabled or omitted.\n\tPerTitle bool `json:\"per_title\"`\n\t// PixFmt specifies the pixel format. Valid value: yuv420p\n\t//\n\t// Any of \"yuv410p\", \"yuv411p\", \"yuv420p\", \"yuv422p\", \"yuv440p\", \"yuv444p\",\n\t// \"yuvJ411p\", \"yuvJ420p\", \"yuvJ422p\", \"yuvJ440p\", \"yuvJ444p\", \"yuv420p10le\",\n\t// \"yuv422p10le\", \"yuv440p10le\", \"yuv444p10le\", \"yuv420p12le\", \"yuv422p12le\",\n\t// \"yuv440p12le\", \"yuv444p12le\", \"yuv420p10be\", \"yuv422p10be\", \"yuv440p10be\",\n\t// \"yuv444p10be\", \"yuv420p12be\", \"yuv422p12be\", \"yuv440p12be\", \"yuv444p12be\".\n\tPixfmt HlsH264Pixfmt `json:\"pixfmt\"`\n\t// Preset specifies the encoding speed preset. Valid values (from fastest to\n\t// slowest):\n\t//\n\t// - ultrafast: Fastest encoding, lowest quality\n\t// - superfast: Very fast encoding, lower quality\n\t// - veryfast: Fast encoding, moderate quality\n\t// - faster: Faster encoding, good quality\n\t// - fast: Fast encoding, better quality\n\t// - medium: Balanced preset, best quality\n\t//\n\t// Any of \"ultrafast\", \"superfast\", \"veryfast\", \"faster\", \"fast\", \"medium\".\n\tPreset HlsH264Preset `json:\"preset\"`\n\t// Profilev specifies the H.264 profile. Valid values:\n\t//\n\t// - baseline: Basic profile, good for mobile devices\n\t// - main: Main profile, good for most applications\n\t// - high: High profile, best quality but requires more processing\n\t// - high10: High 10-bit profile, supports 10-bit color\n\t// - high422: High 4:2:2 profile, supports 4:2:2 color sampling\n\t// - high444: High 4:4:4 profile, supports 4:4:4 color sampling\n\t//\n\t// Any of \"baseline\", \"main\", \"high\", \"high10\", \"high422\", \"high444\".\n\tProfilev HlsH264Profilev `json:\"profilev\"`\n\t// Seek specifies the timestamp to start processing from (in seconds). Must be a\n\t// positive value.\n\tSeek int64 `json:\"seek\"`\n\t// VideoBitrate specifies the video bitrate in bits per second. Must be between 1\n\t// bps and 100 Mbps.\n\tVideoBitrate int64 `json:\"video_bitrate\"`\n\t// Width specifies the output video width in pixels. Must be between -2 and 7680.\n\t// Use -2 for automatic calculation while maintaining aspect ratio.\n\tWidth int64 `json:\"width\"`\n\t// X264KeyInt specifies the maximum number of frames between keyframes for H.264\n\t// encoding. Range: 1 to 960. Higher values can improve compression but may affect\n\t// seeking.\n\tX264Keyint int64 `json:\"x264_keyint\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID             respjson.Field\n\t\tAudioBitrate   respjson.Field\n\t\tBufsize        respjson.Field\n\t\tChannels       respjson.Field\n\t\tCrf            respjson.Field\n\t\tDisableAudio   respjson.Field\n\t\tDisableVideo   respjson.Field\n\t\tDuration       respjson.Field\n\t\tFramerate      respjson.Field\n\t\tGop            respjson.Field\n\t\tHeight         respjson.Field\n\t\tHlsEnc         respjson.Field\n\t\tHlsEncIv       respjson.Field\n\t\tHlsEncKey      respjson.Field\n\t\tHlsEncKeyURL   respjson.Field\n\t\tHlsSegmentType respjson.Field\n\t\tHlsSingleFile  respjson.Field\n\t\tHlsTime        respjson.Field\n\t\tLevel          respjson.Field\n\t\tMaxrate        respjson.Field\n\t\tMinrate        respjson.Field\n\t\tMovflags       respjson.Field\n\t\tPerTitle       respjson.Field\n\t\tPixfmt         respjson.Field\n\t\tPreset         respjson.Field\n\t\tProfilev       respjson.Field\n\t\tSeek           respjson.Field\n\t\tVideoBitrate   respjson.Field\n\t\tWidth          respjson.Field\n\t\tX264Keyint     respjson.Field\n\t\tExtraFields    map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r HlsH264) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r HlsH264) ToParam() HlsH264Param\n```\nToParam converts this HlsH264 to a HlsH264Param.\n\nWarning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with HlsH264Param.Overrides()\n\n```go\nfunc (r *HlsH264) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype HlsH264HlsSegmentType string\n```\nHlsSegmentType specifies the type of HLS segments. Valid values:\n\n\\- mpegts: Traditional MPEG-TS segments, better compatibility - fmp4: Fragmented MP4 segments, better efficiency\n\n```go\nconst (\n\tHlsH264HlsSegmentTypeMpegts HlsH264HlsSegmentType = \"mpegts\"\n\tHlsH264HlsSegmentTypeFmp4   HlsH264HlsSegmentType = \"fmp4\"\n)\n```\n\n```go\ntype HlsH264Param struct {\n\t// AudioBitrate specifies the audio bitrate in bits per second. Must be between\n\t// 32Kbps and 512Kbps.\n\tAudioBitrate param.Opt[int64] `json:\"audio_bitrate,omitzero\"`\n\t// Bufsize specifies the video buffer size in bits. Must be between 100Kbps and\n\t// 50Mbps.\n\tBufsize param.Opt[int64] `json:\"bufsize,omitzero\"`\n\t// Crf (Constant Rate Factor) controls the quality of the output video. Lower\n\t// values mean better quality but larger file size. Range: 16 to 35. Recommended\n\t// values: 18-28 for high quality, 23-28 for good quality, 28-35 for acceptable\n\t// quality.\n\tCrf param.Opt[int64] `json:\"crf,omitzero\"`\n\t// DisableAudio indicates whether to disable audio processing.\n\tDisableAudio param.Opt[bool] `json:\"disable_audio,omitzero\"`\n\t// DisableVideo indicates whether to disable video processing.\n\tDisableVideo param.Opt[bool] `json:\"disable_video,omitzero\"`\n\t// Duration specifies the duration to process in seconds. Must be a positive value.\n\tDuration param.Opt[int64] `json:\"duration,omitzero\"`\n\t// Framerate specifies the output video frame rate. Must be greater than zero and\n\t// at most 240 fps.\n\tFramerate param.Opt[float64] `json:\"framerate,omitzero\"`\n\t// Gop specifies the Group of Pictures (GOP) size. Must be between 1 and 960\n\t// frames.\n\tGop param.Opt[int64] `json:\"gop,omitzero\"`\n\t// Height specifies the output video height in pixels. Must be between -2 and 7680.\n\t// Use -2 for automatic calculation while maintaining aspect ratio.\n\tHeight param.Opt[int64] `json:\"height,omitzero\"`\n\t// HlsEnc enables encryption for HLS segments when set to true.\n\tHlsEnc param.Opt[bool] `json:\"hls_enc,omitzero\"`\n\t// HlsEncIv specifies the initialization vector for encryption. Maximum length: 64\n\t// characters. Required when HlsEnc is true.\n\tHlsEncIv param.Opt[string] `json:\"hls_enc_iv,omitzero\"`\n\t// HlsEncKey specifies the encryption key for HLS segments. Maximum length: 64\n\t// characters. Required when HlsEnc is true.\n\tHlsEncKey param.Opt[string] `json:\"hls_enc_key,omitzero\"`\n\t// HlsEncKeyUrl specifies the URL where clients can fetch the encryption key.\n\t// Required when HlsEnc is true.\n\tHlsEncKeyURL param.Opt[string] `json:\"hls_enc_key_url,omitzero\"`\n\t// HlsSingleFile specifies whether to store HLS segments in one file using byte\n\t// ranges. Defaults to true. Set to false to create separate segment files.\n\tHlsSingleFile param.Opt[bool] `json:\"hls_single_file,omitzero\"`\n\t// HlsTime specifies the duration of each HLS segment in seconds. Range: 1 to 10.\n\t// Shorter segments provide faster startup but more overhead, longer segments are\n\t// more efficient.\n\tHlsTime param.Opt[int64] `json:\"hls_time,omitzero\"`\n\t// Maxrate specifies the maximum video bitrate in bits per second. Must be between\n\t// 100Kbps and 50Mbps.\n\tMaxrate param.Opt[int64] `json:\"maxrate,omitzero\"`\n\t// Minrate specifies the minimum video bitrate in bits per second. Must be between\n\t// 100Kbps and 50Mbps.\n\tMinrate  param.Opt[int64]  `json:\"minrate,omitzero\"`\n\tMovflags param.Opt[string] `json:\"movflags,omitzero\"`\n\t// Enables per-title optimization. Disabled by default. Set it to true to let\n\t// Chunkify select rate control automatically. When enabled, explicit rate-control\n\t// fields cannot be provided. For HLS outputs, either audio_bitrate or\n\t// video_bitrate is required when per-title optimization is disabled or omitted.\n\tPerTitle param.Opt[bool] `json:\"per_title,omitzero\"`\n\t// Seek specifies the timestamp to start processing from (in seconds). Must be a\n\t// positive value.\n\tSeek param.Opt[int64] `json:\"seek,omitzero\"`\n\t// VideoBitrate specifies the video bitrate in bits per second. Must be between 1\n\t// bps and 100 Mbps.\n\tVideoBitrate param.Opt[int64] `json:\"video_bitrate,omitzero\"`\n\t// Width specifies the output video width in pixels. Must be between -2 and 7680.\n\t// Use -2 for automatic calculation while maintaining aspect ratio.\n\tWidth param.Opt[int64] `json:\"width,omitzero\"`\n\t// X264KeyInt specifies the maximum number of frames between keyframes for H.264\n\t// encoding. Range: 1 to 960. Higher values can improve compression but may affect\n\t// seeking.\n\tX264Keyint param.Opt[int64] `json:\"x264_keyint,omitzero\"`\n\t// Channels specifies the number of audio channels. Valid values: 1 (mono), 2\n\t// (stereo), 5 (5.1), 7 (7.1)\n\t//\n\t// Any of 1, 2, 5, 7.\n\tChannels int64 `json:\"channels,omitzero\"`\n\t// HlsSegmentType specifies the type of HLS segments. Valid values:\n\t//\n\t// - mpegts: Traditional MPEG-TS segments, better compatibility\n\t// - fmp4: Fragmented MP4 segments, better efficiency\n\t//\n\t// Any of \"mpegts\", \"fmp4\".\n\tHlsSegmentType HlsH264HlsSegmentType `json:\"hls_segment_type,omitzero\"`\n\t// Level specifies the H.264 profile level. Valid values: 10-13 (baseline), 20-22\n\t// (main), 30-32 (high), 40-42 (high), 50-51 (high). Higher levels support higher\n\t// resolutions and bitrates but require more processing power.\n\t//\n\t// Any of 10, 11, 12, 13, 20, 21, 22, 30, 31, 32, 40, 41, 42, 50, 51.\n\tLevel int64 `json:\"level,omitzero\"`\n\t// PixFmt specifies the pixel format. Valid value: yuv420p\n\t//\n\t// Any of \"yuv410p\", \"yuv411p\", \"yuv420p\", \"yuv422p\", \"yuv440p\", \"yuv444p\",\n\t// \"yuvJ411p\", \"yuvJ420p\", \"yuvJ422p\", \"yuvJ440p\", \"yuvJ444p\", \"yuv420p10le\",\n\t// \"yuv422p10le\", \"yuv440p10le\", \"yuv444p10le\", \"yuv420p12le\", \"yuv422p12le\",\n\t// \"yuv440p12le\", \"yuv444p12le\", \"yuv420p10be\", \"yuv422p10be\", \"yuv440p10be\",\n\t// \"yuv444p10be\", \"yuv420p12be\", \"yuv422p12be\", \"yuv440p12be\", \"yuv444p12be\".\n\tPixfmt HlsH264Pixfmt `json:\"pixfmt,omitzero\"`\n\t// Preset specifies the encoding speed preset. Valid values (from fastest to\n\t// slowest):\n\t//\n\t// - ultrafast: Fastest encoding, lowest quality\n\t// - superfast: Very fast encoding, lower quality\n\t// - veryfast: Fast encoding, moderate quality\n\t// - faster: Faster encoding, good quality\n\t// - fast: Fast encoding, better quality\n\t// - medium: Balanced preset, best quality\n\t//\n\t// Any of \"ultrafast\", \"superfast\", \"veryfast\", \"faster\", \"fast\", \"medium\".\n\tPreset HlsH264Preset `json:\"preset,omitzero\"`\n\t// Profilev specifies the H.264 profile. Valid values:\n\t//\n\t// - baseline: Basic profile, good for mobile devices\n\t// - main: Main profile, good for most applications\n\t// - high: High profile, best quality but requires more processing\n\t// - high10: High 10-bit profile, supports 10-bit color\n\t// - high422: High 4:2:2 profile, supports 4:2:2 color sampling\n\t// - high444: High 4:4:4 profile, supports 4:4:4 color sampling\n\t//\n\t// Any of \"baseline\", \"main\", \"high\", \"high10\", \"high422\", \"high444\".\n\tProfilev HlsH264Profilev `json:\"profilev,omitzero\"`\n\t// This field can be elided, and will marshal its zero value as \"hls_h264\".\n\tID constant.HlsH264 `json:\"id\" default:\"hls_h264\"`\n\t// contains filtered or unexported fields\n}\n```\nThe property ID is required.\n\n```go\nfunc (r HlsH264Param) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *HlsH264Param) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype HlsH264Pixfmt string\n```\nPixFmt specifies the pixel format. Valid value: yuv420p\n\n```go\nconst (\n\tHlsH264PixfmtYuv410p     HlsH264Pixfmt = \"yuv410p\"\n\tHlsH264PixfmtYuv411p     HlsH264Pixfmt = \"yuv411p\"\n\tHlsH264PixfmtYuv420p     HlsH264Pixfmt = \"yuv420p\"\n\tHlsH264PixfmtYuv422p     HlsH264Pixfmt = \"yuv422p\"\n\tHlsH264PixfmtYuv440p     HlsH264Pixfmt = \"yuv440p\"\n\tHlsH264PixfmtYuv444p     HlsH264Pixfmt = \"yuv444p\"\n\tHlsH264PixfmtYuvJ411p    HlsH264Pixfmt = \"yuvJ411p\"\n\tHlsH264PixfmtYuvJ420p    HlsH264Pixfmt = \"yuvJ420p\"\n\tHlsH264PixfmtYuvJ422p    HlsH264Pixfmt = \"yuvJ422p\"\n\tHlsH264PixfmtYuvJ440p    HlsH264Pixfmt = \"yuvJ440p\"\n\tHlsH264PixfmtYuvJ444p    HlsH264Pixfmt = \"yuvJ444p\"\n\tHlsH264PixfmtYuv420p10le HlsH264Pixfmt = \"yuv420p10le\"\n\tHlsH264PixfmtYuv422p10le HlsH264Pixfmt = \"yuv422p10le\"\n\tHlsH264PixfmtYuv440p10le HlsH264Pixfmt = \"yuv440p10le\"\n\tHlsH264PixfmtYuv444p10le HlsH264Pixfmt = \"yuv444p10le\"\n\tHlsH264PixfmtYuv420p12le HlsH264Pixfmt = \"yuv420p12le\"\n\tHlsH264PixfmtYuv422p12le HlsH264Pixfmt = \"yuv422p12le\"\n\tHlsH264PixfmtYuv440p12le HlsH264Pixfmt = \"yuv440p12le\"\n\tHlsH264PixfmtYuv444p12le HlsH264Pixfmt = \"yuv444p12le\"\n\tHlsH264PixfmtYuv420p10be HlsH264Pixfmt = \"yuv420p10be\"\n\tHlsH264PixfmtYuv422p10be HlsH264Pixfmt = \"yuv422p10be\"\n\tHlsH264PixfmtYuv440p10be HlsH264Pixfmt = \"yuv440p10be\"\n\tHlsH264PixfmtYuv444p10be HlsH264Pixfmt = \"yuv444p10be\"\n\tHlsH264PixfmtYuv420p12be HlsH264Pixfmt = \"yuv420p12be\"\n\tHlsH264PixfmtYuv422p12be HlsH264Pixfmt = \"yuv422p12be\"\n\tHlsH264PixfmtYuv440p12be HlsH264Pixfmt = \"yuv440p12be\"\n\tHlsH264PixfmtYuv444p12be HlsH264Pixfmt = \"yuv444p12be\"\n)\n```\n\n```go\ntype HlsH264Preset string\n```\nPreset specifies the encoding speed preset. Valid values (from fastest to slowest):\n\n\\- ultrafast: Fastest encoding, lowest quality - superfast: Very fast encoding, lower quality - veryfast: Fast encoding, moderate quality - faster: Faster encoding, good quality - fast: Fast encoding, better quality - medium: Balanced preset, best quality\n\n```go\nconst (\n\tHlsH264PresetUltrafast HlsH264Preset = \"ultrafast\"\n\tHlsH264PresetSuperfast HlsH264Preset = \"superfast\"\n\tHlsH264PresetVeryfast  HlsH264Preset = \"veryfast\"\n\tHlsH264PresetFaster    HlsH264Preset = \"faster\"\n\tHlsH264PresetFast      HlsH264Preset = \"fast\"\n\tHlsH264PresetMedium    HlsH264Preset = \"medium\"\n)\n```\n\n```go\ntype HlsH264Profilev string\n```\nProfilev specifies the H.264 profile. Valid values:\n\n\\- baseline: Basic profile, good for mobile devices - main: Main profile, good for most applications - high: High profile, best quality but requires more processing - high10: High 10-bit profile, supports 10-bit color - high422: High 4:2:2 profile, supports 4:2:2 color sampling - high444: High 4:4:4 profile, supports 4:4:4 color sampling\n\n```go\nconst (\n\tHlsH264ProfilevBaseline HlsH264Profilev = \"baseline\"\n\tHlsH264ProfilevMain     HlsH264Profilev = \"main\"\n\tHlsH264ProfilevHigh     HlsH264Profilev = \"high\"\n\tHlsH264ProfilevHigh10   HlsH264Profilev = \"high10\"\n\tHlsH264ProfilevHigh422  HlsH264Profilev = \"high422\"\n\tHlsH264ProfilevHigh444  HlsH264Profilev = \"high444\"\n)\n```\n\n```go\ntype HlsH265 struct {\n\tID constant.HlsH265 `json:\"id\" default:\"hls_h265\"`\n\t// AudioBitrate specifies the audio bitrate in bits per second. Must be between\n\t// 32Kbps and 512Kbps.\n\tAudioBitrate int64 `json:\"audio_bitrate\"`\n\t// Bufsize specifies the video buffer size in bits. Must be between 100Kbps and\n\t// 50Mbps.\n\tBufsize int64 `json:\"bufsize\"`\n\t// Channels specifies the number of audio channels. Valid values: 1 (mono), 2\n\t// (stereo), 5 (5.1), 7 (7.1)\n\t//\n\t// Any of 1, 2, 5, 7.\n\tChannels int64 `json:\"channels\"`\n\t// Crf (Constant Rate Factor) controls the quality of the output video. Lower\n\t// values mean better quality but larger file size. Range: 16 to 35. Recommended\n\t// values: 18-28 for high quality, 23-28 for good quality, 28-35 for acceptable\n\t// quality.\n\tCrf int64 `json:\"crf\"`\n\t// DisableAudio indicates whether to disable audio processing.\n\tDisableAudio bool `json:\"disable_audio\"`\n\t// DisableVideo indicates whether to disable video processing.\n\tDisableVideo bool `json:\"disable_video\"`\n\t// Duration specifies the duration to process in seconds. Must be a positive value.\n\tDuration int64 `json:\"duration\"`\n\t// Framerate specifies the output video frame rate. Must be greater than zero and\n\t// at most 240 fps.\n\tFramerate float64 `json:\"framerate\"`\n\t// Gop specifies the Group of Pictures (GOP) size. Must be between 1 and 960\n\t// frames.\n\tGop int64 `json:\"gop\"`\n\t// Height specifies the output video height in pixels. Must be between -2 and 7680.\n\t// Use -2 for automatic calculation while maintaining aspect ratio.\n\tHeight int64 `json:\"height\"`\n\t// HlsEnc enables encryption for HLS segments when set to true.\n\tHlsEnc bool `json:\"hls_enc\"`\n\t// HlsEncIv specifies the initialization vector for encryption. Maximum length: 64\n\t// characters. Required when HlsEnc is true.\n\tHlsEncIv string `json:\"hls_enc_iv\"`\n\t// HlsEncKey specifies the encryption key for HLS segments. Maximum length: 64\n\t// characters. Required when HlsEnc is true.\n\tHlsEncKey string `json:\"hls_enc_key\"`\n\t// HlsEncKeyUrl specifies the URL where clients can fetch the encryption key.\n\t// Required when HlsEnc is true.\n\tHlsEncKeyURL string `json:\"hls_enc_key_url\"`\n\t// HlsSegmentType specifies the type of HLS segments. Valid values:\n\t//\n\t// - mpegts: Traditional MPEG-TS segments, better compatibility\n\t// - fmp4: Fragmented MP4 segments, better efficiency\n\t//\n\t// Any of \"mpegts\", \"fmp4\".\n\tHlsSegmentType HlsH265HlsSegmentType `json:\"hls_segment_type\"`\n\t// HlsSingleFile specifies whether to store HLS segments in one file using byte\n\t// ranges. Defaults to true. Set to false to create separate segment files.\n\tHlsSingleFile bool `json:\"hls_single_file\"`\n\t// HlsTime specifies the duration of each HLS segment in seconds. Range: 1 to 10.\n\t// Shorter segments provide faster startup but more overhead, longer segments are\n\t// more efficient.\n\tHlsTime int64 `json:\"hls_time\"`\n\t// Level specifies the H.265 profile level. Valid values: 30-31 (main), 41\n\t// (main10). Higher levels support higher resolutions and bitrates but require more\n\t// processing power.\n\t//\n\t// Any of 30, 31, 41.\n\tLevel int64 `json:\"level\"`\n\t// Maxrate specifies the maximum video bitrate in bits per second. Must be between\n\t// 100Kbps and 50Mbps.\n\tMaxrate int64 `json:\"maxrate\"`\n\t// Minrate specifies the minimum video bitrate in bits per second. Must be between\n\t// 100Kbps and 50Mbps.\n\tMinrate  int64  `json:\"minrate\"`\n\tMovflags string `json:\"movflags\"`\n\t// Enables per-title optimization. Disabled by default. Set it to true to let\n\t// Chunkify select rate control automatically. When enabled, explicit rate-control\n\t// fields cannot be provided. For HLS outputs, either audio_bitrate or\n\t// video_bitrate is required when per-title optimization is disabled or omitted.\n\tPerTitle bool `json:\"per_title\"`\n\t// PixFmt specifies the pixel format. Valid value: yuv420p\n\t//\n\t// Any of \"yuv410p\", \"yuv411p\", \"yuv420p\", \"yuv422p\", \"yuv440p\", \"yuv444p\",\n\t// \"yuvJ411p\", \"yuvJ420p\", \"yuvJ422p\", \"yuvJ440p\", \"yuvJ444p\", \"yuv420p10le\",\n\t// \"yuv422p10le\", \"yuv440p10le\", \"yuv444p10le\", \"yuv420p12le\", \"yuv422p12le\",\n\t// \"yuv440p12le\", \"yuv444p12le\", \"yuv420p10be\", \"yuv422p10be\", \"yuv440p10be\",\n\t// \"yuv444p10be\", \"yuv420p12be\", \"yuv422p12be\", \"yuv440p12be\", \"yuv444p12be\".\n\tPixfmt HlsH265Pixfmt `json:\"pixfmt\"`\n\t// Preset specifies the encoding speed preset. Valid values (from fastest to\n\t// slowest):\n\t//\n\t// - ultrafast: Fastest encoding, lowest quality\n\t// - superfast: Very fast encoding, lower quality\n\t// - veryfast: Fast encoding, moderate quality\n\t// - faster: Faster encoding, good quality\n\t// - fast: Fast encoding, better quality\n\t// - medium: Balanced preset, best quality\n\t//\n\t// Any of \"ultrafast\", \"superfast\", \"veryfast\", \"faster\", \"fast\", \"medium\".\n\tPreset HlsH265Preset `json:\"preset\"`\n\t// Profilev specifies the H.265 profile. Valid values:\n\t//\n\t// - main: Main profile, good for most applications\n\t// - main10: Main 10-bit profile, supports 10-bit color\n\t// - mainstillpicture: Still picture profile, optimized for single images\n\t//\n\t// Any of \"main\", \"main10\", \"mainstillpicture\".\n\tProfilev HlsH265Profilev `json:\"profilev\"`\n\t// Seek specifies the timestamp to start processing from (in seconds). Must be a\n\t// positive value.\n\tSeek int64 `json:\"seek\"`\n\t// VideoBitrate specifies the video bitrate in bits per second. Must be between 1\n\t// bps and 100 Mbps.\n\tVideoBitrate int64 `json:\"video_bitrate\"`\n\t// Width specifies the output video width in pixels. Must be between -2 and 7680.\n\t// Use -2 for automatic calculation while maintaining aspect ratio.\n\tWidth int64 `json:\"width\"`\n\t// X265KeyInt specifies the maximum number of frames between keyframes for H.265\n\t// encoding. Range: 1 to 300. Higher values can improve compression but may affect\n\t// seeking.\n\tX265Keyint int64 `json:\"x265_keyint\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID             respjson.Field\n\t\tAudioBitrate   respjson.Field\n\t\tBufsize        respjson.Field\n\t\tChannels       respjson.Field\n\t\tCrf            respjson.Field\n\t\tDisableAudio   respjson.Field\n\t\tDisableVideo   respjson.Field\n\t\tDuration       respjson.Field\n\t\tFramerate      respjson.Field\n\t\tGop            respjson.Field\n\t\tHeight         respjson.Field\n\t\tHlsEnc         respjson.Field\n\t\tHlsEncIv       respjson.Field\n\t\tHlsEncKey      respjson.Field\n\t\tHlsEncKeyURL   respjson.Field\n\t\tHlsSegmentType respjson.Field\n\t\tHlsSingleFile  respjson.Field\n\t\tHlsTime        respjson.Field\n\t\tLevel          respjson.Field\n\t\tMaxrate        respjson.Field\n\t\tMinrate        respjson.Field\n\t\tMovflags       respjson.Field\n\t\tPerTitle       respjson.Field\n\t\tPixfmt         respjson.Field\n\t\tPreset         respjson.Field\n\t\tProfilev       respjson.Field\n\t\tSeek           respjson.Field\n\t\tVideoBitrate   respjson.Field\n\t\tWidth          respjson.Field\n\t\tX265Keyint     respjson.Field\n\t\tExtraFields    map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r HlsH265) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r HlsH265) ToParam() HlsH265Param\n```\nToParam converts this HlsH265 to a HlsH265Param.\n\nWarning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with HlsH265Param.Overrides()\n\n```go\nfunc (r *HlsH265) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype HlsH265HlsSegmentType string\n```\nHlsSegmentType specifies the type of HLS segments. Valid values:\n\n\\- mpegts: Traditional MPEG-TS segments, better compatibility - fmp4: Fragmented MP4 segments, better efficiency\n\n```go\nconst (\n\tHlsH265HlsSegmentTypeMpegts HlsH265HlsSegmentType = \"mpegts\"\n\tHlsH265HlsSegmentTypeFmp4   HlsH265HlsSegmentType = \"fmp4\"\n)\n```\n\n```go\ntype HlsH265Param struct {\n\t// AudioBitrate specifies the audio bitrate in bits per second. Must be between\n\t// 32Kbps and 512Kbps.\n\tAudioBitrate param.Opt[int64] `json:\"audio_bitrate,omitzero\"`\n\t// Bufsize specifies the video buffer size in bits. Must be between 100Kbps and\n\t// 50Mbps.\n\tBufsize param.Opt[int64] `json:\"bufsize,omitzero\"`\n\t// Crf (Constant Rate Factor) controls the quality of the output video. Lower\n\t// values mean better quality but larger file size. Range: 16 to 35. Recommended\n\t// values: 18-28 for high quality, 23-28 for good quality, 28-35 for acceptable\n\t// quality.\n\tCrf param.Opt[int64] `json:\"crf,omitzero\"`\n\t// DisableAudio indicates whether to disable audio processing.\n\tDisableAudio param.Opt[bool] `json:\"disable_audio,omitzero\"`\n\t// DisableVideo indicates whether to disable video processing.\n\tDisableVideo param.Opt[bool] `json:\"disable_video,omitzero\"`\n\t// Duration specifies the duration to process in seconds. Must be a positive value.\n\tDuration param.Opt[int64] `json:\"duration,omitzero\"`\n\t// Framerate specifies the output video frame rate. Must be greater than zero and\n\t// at most 240 fps.\n\tFramerate param.Opt[float64] `json:\"framerate,omitzero\"`\n\t// Gop specifies the Group of Pictures (GOP) size. Must be between 1 and 960\n\t// frames.\n\tGop param.Opt[int64] `json:\"gop,omitzero\"`\n\t// Height specifies the output video height in pixels. Must be between -2 and 7680.\n\t// Use -2 for automatic calculation while maintaining aspect ratio.\n\tHeight param.Opt[int64] `json:\"height,omitzero\"`\n\t// HlsEnc enables encryption for HLS segments when set to true.\n\tHlsEnc param.Opt[bool] `json:\"hls_enc,omitzero\"`\n\t// HlsEncIv specifies the initialization vector for encryption. Maximum length: 64\n\t// characters. Required when HlsEnc is true.\n\tHlsEncIv param.Opt[string] `json:\"hls_enc_iv,omitzero\"`\n\t// HlsEncKey specifies the encryption key for HLS segments. Maximum length: 64\n\t// characters. Required when HlsEnc is true.\n\tHlsEncKey param.Opt[string] `json:\"hls_enc_key,omitzero\"`\n\t// HlsEncKeyUrl specifies the URL where clients can fetch the encryption key.\n\t// Required when HlsEnc is true.\n\tHlsEncKeyURL param.Opt[string] `json:\"hls_enc_key_url,omitzero\"`\n\t// HlsSingleFile specifies whether to store HLS segments in one file using byte\n\t// ranges. Defaults to true. Set to false to create separate segment files.\n\tHlsSingleFile param.Opt[bool] `json:\"hls_single_file,omitzero\"`\n\t// HlsTime specifies the duration of each HLS segment in seconds. Range: 1 to 10.\n\t// Shorter segments provide faster startup but more overhead, longer segments are\n\t// more efficient.\n\tHlsTime param.Opt[int64] `json:\"hls_time,omitzero\"`\n\t// Maxrate specifies the maximum video bitrate in bits per second. Must be between\n\t// 100Kbps and 50Mbps.\n\tMaxrate param.Opt[int64] `json:\"maxrate,omitzero\"`\n\t// Minrate specifies the minimum video bitrate in bits per second. Must be between\n\t// 100Kbps and 50Mbps.\n\tMinrate  param.Opt[int64]  `json:\"minrate,omitzero\"`\n\tMovflags param.Opt[string] `json:\"movflags,omitzero\"`\n\t// Enables per-title optimization. Disabled by default. Set it to true to let\n\t// Chunkify select rate control automatically. When enabled, explicit rate-control\n\t// fields cannot be provided. For HLS outputs, either audio_bitrate or\n\t// video_bitrate is required when per-title optimization is disabled or omitted.\n\tPerTitle param.Opt[bool] `json:\"per_title,omitzero\"`\n\t// Seek specifies the timestamp to start processing from (in seconds). Must be a\n\t// positive value.\n\tSeek param.Opt[int64] `json:\"seek,omitzero\"`\n\t// VideoBitrate specifies the video bitrate in bits per second. Must be between 1\n\t// bps and 100 Mbps.\n\tVideoBitrate param.Opt[int64] `json:\"video_bitrate,omitzero\"`\n\t// Width specifies the output video width in pixels. Must be between -2 and 7680.\n\t// Use -2 for automatic calculation while maintaining aspect ratio.\n\tWidth param.Opt[int64] `json:\"width,omitzero\"`\n\t// X265KeyInt specifies the maximum number of frames between keyframes for H.265\n\t// encoding. Range: 1 to 300. Higher values can improve compression but may affect\n\t// seeking.\n\tX265Keyint param.Opt[int64] `json:\"x265_keyint,omitzero\"`\n\t// Channels specifies the number of audio channels. Valid values: 1 (mono), 2\n\t// (stereo), 5 (5.1), 7 (7.1)\n\t//\n\t// Any of 1, 2, 5, 7.\n\tChannels int64 `json:\"channels,omitzero\"`\n\t// HlsSegmentType specifies the type of HLS segments. Valid values:\n\t//\n\t// - mpegts: Traditional MPEG-TS segments, better compatibility\n\t// - fmp4: Fragmented MP4 segments, better efficiency\n\t//\n\t// Any of \"mpegts\", \"fmp4\".\n\tHlsSegmentType HlsH265HlsSegmentType `json:\"hls_segment_type,omitzero\"`\n\t// Level specifies the H.265 profile level. Valid values: 30-31 (main), 41\n\t// (main10). Higher levels support higher resolutions and bitrates but require more\n\t// processing power.\n\t//\n\t// Any of 30, 31, 41.\n\tLevel int64 `json:\"level,omitzero\"`\n\t// PixFmt specifies the pixel format. Valid value: yuv420p\n\t//\n\t// Any of \"yuv410p\", \"yuv411p\", \"yuv420p\", \"yuv422p\", \"yuv440p\", \"yuv444p\",\n\t// \"yuvJ411p\", \"yuvJ420p\", \"yuvJ422p\", \"yuvJ440p\", \"yuvJ444p\", \"yuv420p10le\",\n\t// \"yuv422p10le\", \"yuv440p10le\", \"yuv444p10le\", \"yuv420p12le\", \"yuv422p12le\",\n\t// \"yuv440p12le\", \"yuv444p12le\", \"yuv420p10be\", \"yuv422p10be\", \"yuv440p10be\",\n\t// \"yuv444p10be\", \"yuv420p12be\", \"yuv422p12be\", \"yuv440p12be\", \"yuv444p12be\".\n\tPixfmt HlsH265Pixfmt `json:\"pixfmt,omitzero\"`\n\t// Preset specifies the encoding speed preset. Valid values (from fastest to\n\t// slowest):\n\t//\n\t// - ultrafast: Fastest encoding, lowest quality\n\t// - superfast: Very fast encoding, lower quality\n\t// - veryfast: Fast encoding, moderate quality\n\t// - faster: Faster encoding, good quality\n\t// - fast: Fast encoding, better quality\n\t// - medium: Balanced preset, best quality\n\t//\n\t// Any of \"ultrafast\", \"superfast\", \"veryfast\", \"faster\", \"fast\", \"medium\".\n\tPreset HlsH265Preset `json:\"preset,omitzero\"`\n\t// Profilev specifies the H.265 profile. Valid values:\n\t//\n\t// - main: Main profile, good for most applications\n\t// - main10: Main 10-bit profile, supports 10-bit color\n\t// - mainstillpicture: Still picture profile, optimized for single images\n\t//\n\t// Any of \"main\", \"main10\", \"mainstillpicture\".\n\tProfilev HlsH265Profilev `json:\"profilev,omitzero\"`\n\t// This field can be elided, and will marshal its zero value as \"hls_h265\".\n\tID constant.HlsH265 `json:\"id\" default:\"hls_h265\"`\n\t// contains filtered or unexported fields\n}\n```\nThe property ID is required.\n\n```go\nfunc (r HlsH265Param) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *HlsH265Param) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype HlsH265Pixfmt string\n```\nPixFmt specifies the pixel format. Valid value: yuv420p\n\n```go\nconst (\n\tHlsH265PixfmtYuv410p     HlsH265Pixfmt = \"yuv410p\"\n\tHlsH265PixfmtYuv411p     HlsH265Pixfmt = \"yuv411p\"\n\tHlsH265PixfmtYuv420p     HlsH265Pixfmt = \"yuv420p\"\n\tHlsH265PixfmtYuv422p     HlsH265Pixfmt = \"yuv422p\"\n\tHlsH265PixfmtYuv440p     HlsH265Pixfmt = \"yuv440p\"\n\tHlsH265PixfmtYuv444p     HlsH265Pixfmt = \"yuv444p\"\n\tHlsH265PixfmtYuvJ411p    HlsH265Pixfmt = \"yuvJ411p\"\n\tHlsH265PixfmtYuvJ420p    HlsH265Pixfmt = \"yuvJ420p\"\n\tHlsH265PixfmtYuvJ422p    HlsH265Pixfmt = \"yuvJ422p\"\n\tHlsH265PixfmtYuvJ440p    HlsH265Pixfmt = \"yuvJ440p\"\n\tHlsH265PixfmtYuvJ444p    HlsH265Pixfmt = \"yuvJ444p\"\n\tHlsH265PixfmtYuv420p10le HlsH265Pixfmt = \"yuv420p10le\"\n\tHlsH265PixfmtYuv422p10le HlsH265Pixfmt = \"yuv422p10le\"\n\tHlsH265PixfmtYuv440p10le HlsH265Pixfmt = \"yuv440p10le\"\n\tHlsH265PixfmtYuv444p10le HlsH265Pixfmt = \"yuv444p10le\"\n\tHlsH265PixfmtYuv420p12le HlsH265Pixfmt = \"yuv420p12le\"\n\tHlsH265PixfmtYuv422p12le HlsH265Pixfmt = \"yuv422p12le\"\n\tHlsH265PixfmtYuv440p12le HlsH265Pixfmt = \"yuv440p12le\"\n\tHlsH265PixfmtYuv444p12le HlsH265Pixfmt = \"yuv444p12le\"\n\tHlsH265PixfmtYuv420p10be HlsH265Pixfmt = \"yuv420p10be\"\n\tHlsH265PixfmtYuv422p10be HlsH265Pixfmt = \"yuv422p10be\"\n\tHlsH265PixfmtYuv440p10be HlsH265Pixfmt = \"yuv440p10be\"\n\tHlsH265PixfmtYuv444p10be HlsH265Pixfmt = \"yuv444p10be\"\n\tHlsH265PixfmtYuv420p12be HlsH265Pixfmt = \"yuv420p12be\"\n\tHlsH265PixfmtYuv422p12be HlsH265Pixfmt = \"yuv422p12be\"\n\tHlsH265PixfmtYuv440p12be HlsH265Pixfmt = \"yuv440p12be\"\n\tHlsH265PixfmtYuv444p12be HlsH265Pixfmt = \"yuv444p12be\"\n)\n```\n\n```go\ntype HlsH265Preset string\n```\nPreset specifies the encoding speed preset. Valid values (from fastest to slowest):\n\n\\- ultrafast: Fastest encoding, lowest quality - superfast: Very fast encoding, lower quality - veryfast: Fast encoding, moderate quality - faster: Faster encoding, good quality - fast: Fast encoding, better quality - medium: Balanced preset, best quality\n\n```go\nconst (\n\tHlsH265PresetUltrafast HlsH265Preset = \"ultrafast\"\n\tHlsH265PresetSuperfast HlsH265Preset = \"superfast\"\n\tHlsH265PresetVeryfast  HlsH265Preset = \"veryfast\"\n\tHlsH265PresetFaster    HlsH265Preset = \"faster\"\n\tHlsH265PresetFast      HlsH265Preset = \"fast\"\n\tHlsH265PresetMedium    HlsH265Preset = \"medium\"\n)\n```\n\n```go\ntype HlsH265Profilev string\n```\nProfilev specifies the H.265 profile. Valid values:\n\n\\- main: Main profile, good for most applications - main10: Main 10-bit profile, supports 10-bit color - mainstillpicture: Still picture profile, optimized for single images\n\n```go\nconst (\n\tHlsH265ProfilevMain             HlsH265Profilev = \"main\"\n\tHlsH265ProfilevMain10           HlsH265Profilev = \"main10\"\n\tHlsH265ProfilevMainstillpicture HlsH265Profilev = \"mainstillpicture\"\n)\n```\n\n```go\ntype InstanceType = shared.InstanceType\n```\nThis is an alias to an internal type.\n\n```go\ntype Job struct {\n\t// Unique identifier for the job\n\tID string `json:\"id\" api:\"required\"`\n\t// Billable time in seconds\n\tBillableTime int64 `json:\"billable_time\" api:\"required\"`\n\t// Creation timestamp\n\tCreatedAt time.Time `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\t// The format parameters and settings for a job\n\tFormat JobFormatUnion `json:\"format\" api:\"required\"`\n\t// Progress percentage of the job (0-100)\n\tProgress float64 `json:\"progress\" api:\"required\"`\n\t// ID of the source media being processed\n\tSourceID string `json:\"source_id\" api:\"required\"`\n\t// Current status of the job.\n\t//\n\t// Any of \"pending\", \"queued\", \"ingesting\", \"transcoding\", \"downloading\",\n\t// \"merging\", \"uploading\", \"failed\", \"completed\", \"cancelled\", \"merged\",\n\t// \"downloaded\", \"transcoded\", \"waiting\".\n\tStatus JobStatus `json:\"status\" api:\"required\"`\n\t// Storage settings for where the job output will be saved\n\tStorage JobStorage `json:\"storage\" api:\"required\"`\n\t// Last update timestamp\n\tUpdatedAt time.Time `json:\"updated_at\" api:\"required\" format:\"date-time\"`\n\t// Error message for the job\n\tError shared.ChunkifyError `json:\"error\"`\n\t// HLS manifest ID\n\tHlsManifestID string `json:\"hls_manifest_id\"`\n\t// Additional metadata for the job\n\tMetadata map[string]string `json:\"metadata\"`\n\t// When the job started processing\n\tStartedAt time.Time `json:\"started_at\" format:\"date-time\"`\n\t// The transcoder configuration for a job\n\tTranscoder JobTranscoder `json:\"transcoder\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID            respjson.Field\n\t\tBillableTime  respjson.Field\n\t\tCreatedAt     respjson.Field\n\t\tFormat        respjson.Field\n\t\tProgress      respjson.Field\n\t\tSourceID      respjson.Field\n\t\tStatus        respjson.Field\n\t\tStorage       respjson.Field\n\t\tUpdatedAt     respjson.Field\n\t\tError         respjson.Field\n\t\tHlsManifestID respjson.Field\n\t\tMetadata      respjson.Field\n\t\tStartedAt     respjson.Field\n\t\tTranscoder    respjson.Field\n\t\tExtraFields   map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r Job) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *Job) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype JobCreateFormatParamsUnion struct {\n\tOfMP4Av1  *MP4Av1Param  `json:\",omitzero,inline\"`\n\tOfMP4H264 *MP4H264Param `json:\",omitzero,inline\"`\n\tOfMP4H265 *MP4H265Param `json:\",omitzero,inline\"`\n\tOfWebmVp9 *WebmVp9Param `json:\",omitzero,inline\"`\n\tOfHlsAv1  *HlsAv1Param  `json:\",omitzero,inline\"`\n\tOfHlsH264 *HlsH264Param `json:\",omitzero,inline\"`\n\tOfHlsH265 *HlsH265Param `json:\",omitzero,inline\"`\n\tOfJpg     *JpgParam     `json:\",omitzero,inline\"`\n\t// contains filtered or unexported fields\n}\n```\nOnly one field can be non-zero.\n\nUse [param.IsOmitted](/github.com/chunkifydev/chunkify-go/packages/param#IsOmitted) to confirm if a field is set.\n\n```go\nfunc JobCreateFormatParamsOfJpg(interval int64) JobCreateFormatParamsUnion\n```\n\n```go\nfunc (u JobCreateFormatParamsUnion) GetAudioBitrate() *int64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u JobCreateFormatParamsUnion) GetBufsize() *int64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u JobCreateFormatParamsUnion) GetCPUUsed() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u JobCreateFormatParamsUnion) GetChannels() *int64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u JobCreateFormatParamsUnion) GetChunkDuration() *int64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u JobCreateFormatParamsUnion) GetCrf() *int64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u JobCreateFormatParamsUnion) GetDisableAudio() *bool\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u JobCreateFormatParamsUnion) GetDisableVideo() *bool\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u JobCreateFormatParamsUnion) GetDuration() *int64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u JobCreateFormatParamsUnion) GetFramerate() *float64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u JobCreateFormatParamsUnion) GetFrames() *int64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u JobCreateFormatParamsUnion) GetGop() *int64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u JobCreateFormatParamsUnion) GetHeight() *int64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u JobCreateFormatParamsUnion) GetHlsEnc() *bool\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u JobCreateFormatParamsUnion) GetHlsEncIv() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u JobCreateFormatParamsUnion) GetHlsEncKey() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u JobCreateFormatParamsUnion) GetHlsEncKeyURL() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u JobCreateFormatParamsUnion) GetHlsSegmentType() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u JobCreateFormatParamsUnion) GetHlsSingleFile() *bool\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u JobCreateFormatParamsUnion) GetHlsTime() *int64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u JobCreateFormatParamsUnion) GetID() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u JobCreateFormatParamsUnion) GetInterval() *int64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u JobCreateFormatParamsUnion) GetLevel() *int64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u JobCreateFormatParamsUnion) GetMaxrate() *int64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u JobCreateFormatParamsUnion) GetMinrate() *int64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u JobCreateFormatParamsUnion) GetMovflags() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u JobCreateFormatParamsUnion) GetPerTitle() *bool\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u JobCreateFormatParamsUnion) GetPixfmt() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u JobCreateFormatParamsUnion) GetPreset() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u JobCreateFormatParamsUnion) GetProfilev() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u JobCreateFormatParamsUnion) GetQuality() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u JobCreateFormatParamsUnion) GetSeek() *int64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u JobCreateFormatParamsUnion) GetSprite() *bool\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u JobCreateFormatParamsUnion) GetVideoBitrate() *int64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u JobCreateFormatParamsUnion) GetWidth() *int64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u JobCreateFormatParamsUnion) GetX264Keyint() *int64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u JobCreateFormatParamsUnion) GetX265Keyint() *int64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u JobCreateFormatParamsUnion) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (u *JobCreateFormatParamsUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype JobCreateStorageParams struct {\n\t// Storage Id specifies the storage configuration to use from pre-configured\n\t// storage options. Must be 4-64 characters long and contain only alphanumeric\n\t// characters, underscores and hyphens. Optional if Storage Path is provided.\n\tID param.Opt[string] `json:\"id,omitzero\"`\n\t// Storage Path specifies an object path relative to the selected storage\n\t// connection's base_prefix. Do not include the base_prefix. Leading slashes are\n\t// accepted for compatibility and removed before the path is stored. The\n\t// base_prefix and normalized path may contain at most 1024 bytes combined.\n\t// Optional if Storage Id is provided.\n\tPath param.Opt[string] `json:\"path,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r JobCreateStorageParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *JobCreateStorageParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype JobCreateTranscoderParams struct {\n\t// Quantity specifies the number of transcoder instances. Required if Type is set.\n\tQuantity param.Opt[int64] `json:\"quantity,omitzero\"`\n\t// Type specifies the CPU configuration for each transcoder instance. Required if\n\t// Quantity is set.\n\t//\n\t// Any of \"4vCPU\", \"8vCPU\", \"16vCPU\".\n\tType shared.InstanceType `json:\"type,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r JobCreateTranscoderParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *JobCreateTranscoderParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype JobFile struct {\n\t// Unique identifier of the file\n\tID string `json:\"id\" api:\"required\"`\n\t// Audio bitrate in bits per second\n\tAudioBitrate int64 `json:\"audio_bitrate\" api:\"required\"`\n\t// Audio codec used\n\tAudioCodec string `json:\"audio_codec\" api:\"required\"`\n\t// Timestamp when the file was created\n\tCreatedAt time.Time `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\t// Duration of the video in seconds\n\tDuration int64 `json:\"duration\" api:\"required\"`\n\t// Height of the video in pixels\n\tHeight int64 `json:\"height\" api:\"required\"`\n\t// ID of the job that created this file\n\tJobID string `json:\"job_id\" api:\"required\"`\n\t// MIME type of the file\n\tMimeType string `json:\"mime_type\" api:\"required\"`\n\t// Path to the file in storage\n\tPath string `json:\"path\" api:\"required\"`\n\t// Size of the object at this File's path in bytes\n\tSize int64 `json:\"size\" api:\"required\"`\n\t// StorageId identifier where the file is stored\n\tStorageID string `json:\"storage_id\" api:\"required\"`\n\t// Pre-signed URL to directly access the file (only included when available)\n\tURL string `json:\"url\" api:\"required\"`\n\t// Video bitrate in bits per second\n\tVideoBitrate int64 `json:\"video_bitrate\" api:\"required\"`\n\t// Video codec used\n\tVideoCodec string `json:\"video_codec\" api:\"required\"`\n\t// Video framerate in frames per second\n\tVideoFramerate float64 `json:\"video_framerate\" api:\"required\"`\n\t// Width of the video in pixels\n\tWidth int64 `json:\"width\" api:\"required\"`\n\t// Stable, unsigned CDN delivery URL derived from the file's current storage\n\t// configuration. Omitted when no CDN base URL is configured.\n\tCdnURL string `json:\"cdn_url\" api:\"nullable\" format:\"uri\"`\n\t// PackageSize specifies the media playlist and every media object it references in\n\t// bytes. Present only for HLS video media playlists; it excludes the shared master\n\t// playlist.\n\tPackageSize int64 `json:\"package_size\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID             respjson.Field\n\t\tAudioBitrate   respjson.Field\n\t\tAudioCodec     respjson.Field\n\t\tCreatedAt      respjson.Field\n\t\tDuration       respjson.Field\n\t\tHeight         respjson.Field\n\t\tJobID          respjson.Field\n\t\tMimeType       respjson.Field\n\t\tPath           respjson.Field\n\t\tSize           respjson.Field\n\t\tStorageID      respjson.Field\n\t\tURL            respjson.Field\n\t\tVideoBitrate   respjson.Field\n\t\tVideoCodec     respjson.Field\n\t\tVideoFramerate respjson.Field\n\t\tWidth          respjson.Field\n\t\tCdnURL         respjson.Field\n\t\tPackageSize    respjson.Field\n\t\tExtraFields    map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r JobFile) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *JobFile) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype JobFileListResponse struct {\n\tData []JobFile `json:\"data\" api:\"required\"`\n\t// Status indicates the response status \"success\"\n\tStatus constant.Success `json:\"status\" default:\"success\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tData        respjson.Field\n\t\tStatus      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nResponse containing a list of files for a job\n\n```go\nfunc (r JobFileListResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *JobFileListResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype JobFileService struct {\n\tOptions []option.RequestOption\n}\n```\nJobFileService contains methods and other services that help with interacting with the chunkify API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewJobFileService](#NewJobFileService) method instead.\n\n```go\nfunc NewJobFileService(opts ...option.RequestOption) (r JobFileService)\n```\nNewJobFileService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *JobFileService) List(ctx context.Context, jobID string, opts ...option.RequestOption) (res *JobFileListResponse, err error)\n```\nRetrieve all files associated with a specific job. Deprecated: Job files are a legacy resource. Transcodings and Thumbnails include their output files, and List Asset outputs returns an Asset's outputs.\n\nDeprecated: deprecated\n\n```go\ntype JobFormatHlsAv1 struct {\n\t// The format ID\n\t//\n\t// Any of \"mp4_h264\", \"mp4_h265\", \"mp4_av1\", \"webm_vp9\", \"hls_h264\", \"hls_h265\",\n\t// \"hls_av1\", \"jpg\".\n\tID JobFormatID `json:\"id\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n\tHlsAv1\n}\n```\nFFmpeg encoding parameters specific to HLS with AV1 encoding. When per-title optimization is disabled, either audio\\_bitrate or video\\_bitrate is required.\n\n```go\nfunc (r JobFormatHlsAv1) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *JobFormatHlsAv1) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype JobFormatHlsH264 struct {\n\t// The format ID\n\t//\n\t// Any of \"mp4_h264\", \"mp4_h265\", \"mp4_av1\", \"webm_vp9\", \"hls_h264\", \"hls_h265\",\n\t// \"hls_av1\", \"jpg\".\n\tID JobFormatID `json:\"id\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n\tHlsH264\n}\n```\nFFmpeg encoding parameters specific to HLS with H.264 encoding. When per-title optimization is disabled, either audio\\_bitrate or video\\_bitrate is required.\n\n```go\nfunc (r JobFormatHlsH264) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *JobFormatHlsH264) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype JobFormatHlsH265 struct {\n\t// The format ID\n\t//\n\t// Any of \"mp4_h264\", \"mp4_h265\", \"mp4_av1\", \"webm_vp9\", \"hls_h264\", \"hls_h265\",\n\t// \"hls_av1\", \"jpg\".\n\tID JobFormatID `json:\"id\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n\tHlsH265\n}\n```\nFFmpeg encoding parameters specific to HLS with H.265 encoding. When per-title optimization is disabled, either audio\\_bitrate or video\\_bitrate is required.\n\n```go\nfunc (r JobFormatHlsH265) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *JobFormatHlsH265) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype JobFormatID string\n```\n\n```go\nconst (\n\tJobFormatIDMP4H264 JobFormatID = \"mp4_h264\"\n\tJobFormatIDMP4H265 JobFormatID = \"mp4_h265\"\n\tJobFormatIDMP4Av1  JobFormatID = \"mp4_av1\"\n\tJobFormatIDWebmVp9 JobFormatID = \"webm_vp9\"\n\tJobFormatIDHlsH264 JobFormatID = \"hls_h264\"\n\tJobFormatIDHlsH265 JobFormatID = \"hls_h265\"\n\tJobFormatIDHlsAv1  JobFormatID = \"hls_av1\"\n\tJobFormatIDJpg     JobFormatID = \"jpg\"\n)\n```\n\n```go\ntype JobFormatJpg struct {\n\t// The format ID\n\t//\n\t// Any of \"mp4_h264\", \"mp4_h265\", \"mp4_av1\", \"webm_vp9\", \"hls_h264\", \"hls_h265\",\n\t// \"hls_av1\", \"jpg\".\n\tID JobFormatID `json:\"id\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n\tJpg\n}\n```\nFFmpeg encoding parameters specific to JPEG image extraction.\n\n```go\nfunc (r JobFormatJpg) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *JobFormatJpg) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype JobFormatMP4Av1 struct {\n\t// The format ID\n\t//\n\t// Any of \"mp4_h264\", \"mp4_h265\", \"mp4_av1\", \"webm_vp9\", \"hls_h264\", \"hls_h265\",\n\t// \"hls_av1\", \"jpg\".\n\tID JobFormatID `json:\"id\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n\tMP4Av1\n}\n```\nFFmpeg encoding parameters specific to MP4 with AV1 encoding.\n\n```go\nfunc (r JobFormatMP4Av1) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *JobFormatMP4Av1) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype JobFormatMP4H264 struct {\n\t// The format ID\n\t//\n\t// Any of \"mp4_h264\", \"mp4_h265\", \"mp4_av1\", \"webm_vp9\", \"hls_h264\", \"hls_h265\",\n\t// \"hls_av1\", \"jpg\".\n\tID JobFormatID `json:\"id\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n\tMP4H264\n}\n```\nFFmpeg encoding parameters specific to MP4 with H.264 encoding.\n\n```go\nfunc (r JobFormatMP4H264) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *JobFormatMP4H264) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype JobFormatMP4H265 struct {\n\t// The format ID\n\t//\n\t// Any of \"mp4_h264\", \"mp4_h265\", \"mp4_av1\", \"webm_vp9\", \"hls_h264\", \"hls_h265\",\n\t// \"hls_av1\", \"jpg\".\n\tID JobFormatID `json:\"id\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n\tMP4H265\n}\n```\nFFmpeg encoding parameters specific to MP4 with H.265 encoding.\n\n```go\nfunc (r JobFormatMP4H265) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *JobFormatMP4H265) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype JobFormatUnion struct {\n\t// Any of \"mp4_av1\", \"mp4_h264\", \"mp4_h265\", \"webm_vp9\", \"hls_av1\", \"hls_h264\",\n\t// \"hls_h265\", \"jpg\".\n\tID           string  `json:\"id\"`\n\tAudioBitrate int64   `json:\"audio_bitrate\"`\n\tBufsize      int64   `json:\"bufsize\"`\n\tChannels     int64   `json:\"channels\"`\n\tCrf          int64   `json:\"crf\"`\n\tDisableAudio bool    `json:\"disable_audio\"`\n\tDisableVideo bool    `json:\"disable_video\"`\n\tDuration     int64   `json:\"duration\"`\n\tFramerate    float64 `json:\"framerate\"`\n\tGop          int64   `json:\"gop\"`\n\tHeight       int64   `json:\"height\"`\n\tLevel        int64   `json:\"level\"`\n\tMaxrate      int64   `json:\"maxrate\"`\n\tMinrate      int64   `json:\"minrate\"`\n\tMovflags     string  `json:\"movflags\"`\n\tPerTitle     bool    `json:\"per_title\"`\n\tPixfmt       string  `json:\"pixfmt\"`\n\tPreset       string  `json:\"preset\"`\n\tProfilev     string  `json:\"profilev\"`\n\tSeek         int64   `json:\"seek\"`\n\tVideoBitrate int64   `json:\"video_bitrate\"`\n\tWidth        int64   `json:\"width\"`\n\tX264Keyint   int64   `json:\"x264_keyint\"`\n\tX265Keyint   int64   `json:\"x265_keyint\"`\n\t// This field is from variant [JobFormatWebmVp9].\n\tCPUUsed WebmVp9CPUUsed `json:\"cpu_used\"`\n\t// This field is from variant [JobFormatWebmVp9].\n\tQuality        WebmVp9Quality `json:\"quality\"`\n\tHlsEnc         bool           `json:\"hls_enc\"`\n\tHlsEncIv       string         `json:\"hls_enc_iv\"`\n\tHlsEncKey      string         `json:\"hls_enc_key\"`\n\tHlsEncKeyURL   string         `json:\"hls_enc_key_url\"`\n\tHlsSegmentType string         `json:\"hls_segment_type\"`\n\tHlsSingleFile  bool           `json:\"hls_single_file\"`\n\tHlsTime        int64          `json:\"hls_time\"`\n\t// This field is from variant [JobFormatJpg].\n\tInterval int64 `json:\"interval\"`\n\t// This field is from variant [JobFormatJpg].\n\tChunkDuration int64 `json:\"chunk_duration\"`\n\t// This field is from variant [JobFormatJpg].\n\tFrames int64 `json:\"frames\"`\n\t// This field is from variant [JobFormatJpg].\n\tSprite bool `json:\"sprite\"`\n\tJSON   struct {\n\t\tID             respjson.Field\n\t\tAudioBitrate   respjson.Field\n\t\tBufsize        respjson.Field\n\t\tChannels       respjson.Field\n\t\tCrf            respjson.Field\n\t\tDisableAudio   respjson.Field\n\t\tDisableVideo   respjson.Field\n\t\tDuration       respjson.Field\n\t\tFramerate      respjson.Field\n\t\tGop            respjson.Field\n\t\tHeight         respjson.Field\n\t\tLevel          respjson.Field\n\t\tMaxrate        respjson.Field\n\t\tMinrate        respjson.Field\n\t\tMovflags       respjson.Field\n\t\tPerTitle       respjson.Field\n\t\tPixfmt         respjson.Field\n\t\tPreset         respjson.Field\n\t\tProfilev       respjson.Field\n\t\tSeek           respjson.Field\n\t\tVideoBitrate   respjson.Field\n\t\tWidth          respjson.Field\n\t\tX264Keyint     respjson.Field\n\t\tX265Keyint     respjson.Field\n\t\tCPUUsed        respjson.Field\n\t\tQuality        respjson.Field\n\t\tHlsEnc         respjson.Field\n\t\tHlsEncIv       respjson.Field\n\t\tHlsEncKey      respjson.Field\n\t\tHlsEncKeyURL   respjson.Field\n\t\tHlsSegmentType respjson.Field\n\t\tHlsSingleFile  respjson.Field\n\t\tHlsTime        respjson.Field\n\t\tInterval       respjson.Field\n\t\tChunkDuration  respjson.Field\n\t\tFrames         respjson.Field\n\t\tSprite         respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nJobFormatUnion contains all possible properties and values from [JobFormatMP4Av1](#JobFormatMP4Av1), [JobFormatMP4H264](#JobFormatMP4H264), [JobFormatMP4H265](#JobFormatMP4H265), [JobFormatWebmVp9](#JobFormatWebmVp9), [JobFormatHlsAv1](#JobFormatHlsAv1), [JobFormatHlsH264](#JobFormatHlsH264), [JobFormatHlsH265](#JobFormatHlsH265), [JobFormatJpg](#JobFormatJpg).\n\nUse the [JobFormatUnion.AsAny](#JobFormatUnion.AsAny) method to switch on the variant.\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\n```go\nfunc (u JobFormatUnion) AsAny() anyJobFormat\n```\nUse the following switch statement to find the correct variant\n\n\tswitch variant := JobFormatUnion.AsAny().(type) {\n\tcase chunkify.JobFormatMP4Av1:\n\tcase chunkify.JobFormatMP4H264:\n\tcase chunkify.JobFormatMP4H265:\n\tcase chunkify.JobFormatWebmVp9:\n\tcase chunkify.JobFormatHlsAv1:\n\tcase chunkify.JobFormatHlsH264:\n\tcase chunkify.JobFormatHlsH265:\n\tcase chunkify.JobFormatJpg:\n\tdefault:\n\t  fmt.Errorf(\"no variant present\")\n\t}\n\n```go\nfunc (u JobFormatUnion) AsHlsAv1() (v JobFormatHlsAv1)\n```\n\n```go\nfunc (u JobFormatUnion) AsHlsH264() (v JobFormatHlsH264)\n```\n\n```go\nfunc (u JobFormatUnion) AsHlsH265() (v JobFormatHlsH265)\n```\n\n```go\nfunc (u JobFormatUnion) AsJpg() (v JobFormatJpg)\n```\n\n```go\nfunc (u JobFormatUnion) AsMP4Av1() (v JobFormatMP4Av1)\n```\n\n```go\nfunc (u JobFormatUnion) AsMP4H264() (v JobFormatMP4H264)\n```\n\n```go\nfunc (u JobFormatUnion) AsMP4H265() (v JobFormatMP4H265)\n```\n\n```go\nfunc (u JobFormatUnion) AsWebmVp9() (v JobFormatWebmVp9)\n```\n\n```go\nfunc (u JobFormatUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *JobFormatUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype JobFormatWebmVp9 struct {\n\t// The format ID\n\t//\n\t// Any of \"mp4_h264\", \"mp4_h265\", \"mp4_av1\", \"webm_vp9\", \"hls_h264\", \"hls_h265\",\n\t// \"hls_av1\", \"jpg\".\n\tID JobFormatID `json:\"id\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n\tWebmVp9\n}\n```\nFFmpeg encoding parameters specific to WebM with VP9 encoding.\n\n```go\nfunc (r JobFormatWebmVp9) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *JobFormatWebmVp9) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype JobGetResponseEnvelope struct {\n\t// Data contains the response object\n\tData Job `json:\"data\" api:\"required\"`\n\t// Status indicates the response status \"success\"\n\tStatus constant.Success `json:\"status\" default:\"success\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tData        respjson.Field\n\t\tStatus      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r JobGetResponseEnvelope) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *JobGetResponseEnvelope) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype JobListParams struct {\n\t// Filter by job ID\n\tID param.Opt[string] `query:\"id,omitzero\" json:\"-\"`\n\t// Filter by hls manifest ID\n\tHlsManifestID param.Opt[string] `query:\"hls_manifest_id,omitzero\" json:\"-\"`\n\t// Pagination limit\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Pagination offset\n\tOffset param.Opt[int64] `query:\"offset,omitzero\" json:\"-\"`\n\t// Filter by source ID\n\tSourceID param.Opt[string]    `query:\"source_id,omitzero\" json:\"-\"`\n\tCreated  JobListParamsCreated `query:\"created,omitzero\" json:\"-\"`\n\t// Filter by format id\n\t//\n\t// Any of \"mp4_h264\", \"mp4_h265\", \"mp4_av1\", \"webm_vp9\", \"hls_h264\", \"hls_h265\",\n\t// \"hls_av1\", \"jpg\".\n\tFormatID JobFormatID `query:\"format_id,omitzero\" json:\"-\"`\n\t// Filter by metadata\n\tMetadata [][]string `query:\"metadata,omitzero\" json:\"-\"`\n\t// Filter by job status\n\t//\n\t// Any of \"completed\", \"processing\", \"failed\", \"cancelled\", \"queued\", \"pending\".\n\tStatus JobListParamsStatus `query:\"status,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r JobListParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [JobListParams](#JobListParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype JobListParamsCreated struct {\n\t// Filter by creation date greater than or equal\n\tGte param.Opt[int64] `query:\"gte,omitzero\" format:\"epoch\" json:\"-\"`\n\t// Filter by creation date less than or equal\n\tLte param.Opt[int64] `query:\"lte,omitzero\" format:\"epoch\" json:\"-\"`\n\t// Sort by creation date (asc/desc)\n\t//\n\t// Any of \"asc\", \"desc\".\n\tSort string `query:\"sort,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r JobListParamsCreated) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [JobListParamsCreated](#JobListParamsCreated)'s query parameters as \\`url.Values\\`.\n\n```go\ntype JobListParamsStatus string\n```\nFilter by job status\n\n```go\nconst (\n\tJobListParamsStatusCompleted  JobListParamsStatus = \"completed\"\n\tJobListParamsStatusProcessing JobListParamsStatus = \"processing\"\n\tJobListParamsStatusFailed     JobListParamsStatus = \"failed\"\n\tJobListParamsStatusCancelled  JobListParamsStatus = \"cancelled\"\n\tJobListParamsStatusQueued     JobListParamsStatus = \"queued\"\n\tJobListParamsStatusPending    JobListParamsStatus = \"pending\"\n)\n```\n\n```go\ntype JobLogListParams struct {\n\t// Service type (transcoder or manager)\n\t//\n\t// Any of \"transcoder\", \"manager\".\n\tService JobLogListParamsService `query:\"service,omitzero\" api:\"required\" json:\"-\"`\n\t// Transcoder ID (required if service is transcoder)\n\tTranscoderID param.Opt[int64] `query:\"transcoder_id,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r JobLogListParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [JobLogListParams](#JobLogListParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype JobLogListParamsService string\n```\nService type (transcoder or manager)\n\n```go\nconst (\n\tJobLogListParamsServiceTranscoder JobLogListParamsService = \"transcoder\"\n\tJobLogListParamsServiceManager    JobLogListParamsService = \"manager\"\n)\n```\n\n```go\ntype JobLogListResponse struct {\n\tData []shared.Log `json:\"data\" api:\"required\"`\n\t// Status indicates the response status \"success\"\n\tStatus constant.Success `json:\"status\" default:\"success\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tData        respjson.Field\n\t\tStatus      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nResponse containing a list of logs for a job\n\n```go\nfunc (r JobLogListResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *JobLogListResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype JobLogService struct {\n\tOptions []option.RequestOption\n}\n```\nJobLogService contains methods and other services that help with interacting with the chunkify API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewJobLogService](#NewJobLogService) method instead.\n\n```go\nfunc NewJobLogService(opts ...option.RequestOption) (r JobLogService)\n```\nNewJobLogService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *JobLogService) List(ctx context.Context, jobID string, query JobLogListParams, opts ...option.RequestOption) (res *JobLogListResponse, err error)\n```\nRetrieve logs for a specific job, either from the transcoder or manager service. Deprecated: Jobs are a legacy resource. Use Assets, Transcodings or Thumbnails instead.\n\nDeprecated: deprecated\n\n```go\ntype JobNewParams struct {\n\t// Required format configuration, one and only one valid format configuration must\n\t// be provided. If you want to use a format without specifying any configuration,\n\t// use an empty object in the corresponding field.\n\tFormat JobCreateFormatParamsUnion `json:\"format,omitzero\" api:\"required\"`\n\t// The ID of the source file to transcode\n\tSourceID string `json:\"source_id\" api:\"required\"`\n\t// Optional HLS manifest configuration Use the same hls manifest ID to group\n\t// multiple jobs into a single HLS manifest By default, it's automatically\n\t// generated if no set for HLS jobs\n\tHlsManifestID param.Opt[string] `json:\"hls_manifest_id,omitzero\"`\n\t// Optional metadata to attach to the job, the maximum size allowed is 2048 bytes\n\tMetadata map[string]string `json:\"metadata,omitzero\"`\n\t// Optional storage configuration\n\tStorage JobCreateStorageParams `json:\"storage,omitzero\"`\n\t// Optional transcoder configuration. If not provided, the system will\n\t// automatically calculate the optimal quantity and CPU type based on the source\n\t// file specifications and output requirements. This auto-scaling ensures efficient\n\t// resource utilization.\n\tTranscoder JobCreateTranscoderParams `json:\"transcoder,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r JobNewParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *JobNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype JobNewResponseEnvelope struct {\n\t// Data contains the response object\n\tData Job `json:\"data\" api:\"required\"`\n\t// Status indicates the response status \"success\"\n\tStatus constant.Success `json:\"status\" default:\"success\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tData        respjson.Field\n\t\tStatus      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r JobNewResponseEnvelope) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *JobNewResponseEnvelope) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype JobService struct {\n\tOptions     []option.RequestOption\n\tFiles       JobFileService\n\tLogs        JobLogService\n\tTranscoders JobTranscoderService\n}\n```\nJobService contains methods and other services that help with interacting with the chunkify API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewJobService](#NewJobService) method instead.\n\n```go\nfunc NewJobService(opts ...option.RequestOption) (r JobService)\n```\nNewJobService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *JobService) Cancel(ctx context.Context, jobID string, opts ...option.RequestOption) (err error)\n```\nCancel a job. Deprecated: Jobs are a legacy resource. Use Assets, Transcodings or Thumbnails instead.\n\nDeprecated: deprecated\n\n```go\nfunc (r *JobService) Delete(ctx context.Context, jobID string, opts ...option.RequestOption) (err error)\n```\nDelete a job. Deprecated: Jobs are a legacy resource. Use Assets, Transcodings or Thumbnails instead.\n\nDeprecated: deprecated\n\n```go\nfunc (r *JobService) Get(ctx context.Context, jobID string, opts ...option.RequestOption) (res *Job, err error)\n```\nRetrieve details of a specific job. Deprecated: Jobs are a legacy resource. Use Assets, Transcodings or Thumbnails instead.\n\nDeprecated: deprecated\n\n```go\nfunc (r *JobService) List(ctx context.Context, query JobListParams, opts ...option.RequestOption) (res *pagination.PaginatedResults[Job], err error)\n```\nRetrieve a list of jobs with optional filtering and pagination. Deprecated: Jobs are a legacy resource. Use Assets, Transcodings or Thumbnails instead.\n\nDeprecated: deprecated\n\n```go\nfunc (r *JobService) ListAutoPaging(ctx context.Context, query JobListParams, opts ...option.RequestOption) *pagination.PaginatedResultsAutoPager[Job]\n```\nRetrieve a list of jobs with optional filtering and pagination. Deprecated: Jobs are a legacy resource. Use Assets, Transcodings or Thumbnails instead.\n\nDeprecated: deprecated\n\n```go\nfunc (r *JobService) New(ctx context.Context, body JobNewParams, opts ...option.RequestOption) (res *Job, err error)\n```\nCreate a new video processing job with specified parameters. The job is created with pending status and waits for scheduler admission before processing. Pending jobs are admitted oldest first across all projects in the team as vCPU capacity becomes available. Deprecated: Jobs are a legacy resource. Use Assets, Transcodings or Thumbnails instead.\n\nDeprecated: deprecated\n\n```go\ntype JobStatus string\n```\nCurrent status of the job.\n\n```go\nconst (\n\tJobStatusPending     JobStatus = \"pending\"\n\tJobStatusQueued      JobStatus = \"queued\"\n\tJobStatusIngesting   JobStatus = \"ingesting\"\n\tJobStatusTranscoding JobStatus = \"transcoding\"\n\tJobStatusDownloading JobStatus = \"downloading\"\n\tJobStatusMerging     JobStatus = \"merging\"\n\tJobStatusUploading   JobStatus = \"uploading\"\n\tJobStatusFailed      JobStatus = \"failed\"\n\tJobStatusCompleted   JobStatus = \"completed\"\n\tJobStatusCancelled   JobStatus = \"cancelled\"\n\tJobStatusMerged      JobStatus = \"merged\"\n\tJobStatusDownloaded  JobStatus = \"downloaded\"\n\tJobStatusTranscoded  JobStatus = \"transcoded\"\n\tJobStatusWaiting     JobStatus = \"waiting\"\n)\n```\n\n```go\ntype JobStorage struct {\n\t// ID of the storage\n\tID string `json:\"id\" api:\"required\"`\n\t// Path where the output will be stored\n\tPath string `json:\"path\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tPath        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nStorage settings for where the job output will be saved\n\n```go\nfunc (r JobStorage) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *JobStorage) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype JobTranscoder struct {\n\t// Whether the transcoder configuration is automatically set by Chunkify\n\tAuto bool `json:\"auto\" api:\"required\"`\n\t// Number of instances allocated\n\tQuantity int64 `json:\"quantity\" api:\"required\"`\n\t// Type of transcoder instance\n\t//\n\t// Any of \"4vCPU\", \"8vCPU\", \"16vCPU\".\n\tType shared.InstanceType `json:\"type\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAuto        respjson.Field\n\t\tQuantity    respjson.Field\n\t\tType        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nThe transcoder configuration for a job\n\n```go\nfunc (r JobTranscoder) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *JobTranscoder) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype JobTranscoderListResponse struct {\n\tData []shared.TranscoderStatus `json:\"data\" api:\"required\"`\n\t// Status indicates the response status \"success\"\n\tStatus constant.Success `json:\"status\" default:\"success\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tData        respjson.Field\n\t\tStatus      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nResponse containing a list of transcoders for a job\n\n```go\nfunc (r JobTranscoderListResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *JobTranscoderListResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype JobTranscoderService struct {\n\tOptions []option.RequestOption\n}\n```\nJobTranscoderService contains methods and other services that help with interacting with the chunkify API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewJobTranscoderService](#NewJobTranscoderService) method instead.\n\n```go\nfunc NewJobTranscoderService(opts ...option.RequestOption) (r JobTranscoderService)\n```\nNewJobTranscoderService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *JobTranscoderService) List(ctx context.Context, jobID string, opts ...option.RequestOption) (res *JobTranscoderListResponse, err error)\n```\nRetrieve all the transcoders statuses for a specific job. Deprecated: Jobs are a legacy resource. Use Assets, Transcodings or Thumbnails instead.\n\nDeprecated: deprecated\n\n```go\ntype Jpg struct {\n\tID constant.Jpg `json:\"id\" default:\"jpg\"`\n\t// Time interval in seconds at which frames are extracted from the video (e.g.,\n\t// interval=10 extracts frames at 0s, 10s, 20s, etc.). Must be between 1 and 3600\n\t// seconds.\n\tInterval      int64 `json:\"interval\" api:\"required\"`\n\tChunkDuration int64 `json:\"chunk_duration\"`\n\t// Duration specifies the duration to process in seconds. Must be a positive value.\n\tDuration int64 `json:\"duration\"`\n\tFrames   int64 `json:\"frames\"`\n\tHeight   int64 `json:\"height\"`\n\t// Seek specifies the timestamp to start processing from (in seconds). Must be a\n\t// positive value.\n\tSeek   int64 `json:\"seek\"`\n\tSprite bool  `json:\"sprite\"`\n\tWidth  int64 `json:\"width\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID            respjson.Field\n\t\tInterval      respjson.Field\n\t\tChunkDuration respjson.Field\n\t\tDuration      respjson.Field\n\t\tFrames        respjson.Field\n\t\tHeight        respjson.Field\n\t\tSeek          respjson.Field\n\t\tSprite        respjson.Field\n\t\tWidth         respjson.Field\n\t\tExtraFields   map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nFFmpeg encoding parameters specific to JPEG image extraction.\n\n```go\nfunc (r Jpg) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r Jpg) ToParam() JpgParam\n```\nToParam converts this Jpg to a JpgParam.\n\nWarning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with JpgParam.Overrides()\n\n```go\nfunc (r *Jpg) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype JpgParam struct {\n\t// Time interval in seconds at which frames are extracted from the video (e.g.,\n\t// interval=10 extracts frames at 0s, 10s, 20s, etc.). Must be between 1 and 3600\n\t// seconds.\n\tInterval      int64            `json:\"interval\" api:\"required\"`\n\tChunkDuration param.Opt[int64] `json:\"chunk_duration,omitzero\"`\n\t// Duration specifies the duration to process in seconds. Must be a positive value.\n\tDuration param.Opt[int64] `json:\"duration,omitzero\"`\n\tFrames   param.Opt[int64] `json:\"frames,omitzero\"`\n\tHeight   param.Opt[int64] `json:\"height,omitzero\"`\n\t// Seek specifies the timestamp to start processing from (in seconds). Must be a\n\t// positive value.\n\tSeek   param.Opt[int64] `json:\"seek,omitzero\"`\n\tSprite param.Opt[bool]  `json:\"sprite,omitzero\"`\n\tWidth  param.Opt[int64] `json:\"width,omitzero\"`\n\t// This field can be elided, and will marshal its zero value as \"jpg\".\n\tID constant.Jpg `json:\"id\" default:\"jpg\"`\n\t// contains filtered or unexported fields\n}\n```\nFFmpeg encoding parameters specific to JPEG image extraction.\n\nThe properties ID, Interval are required.\n\n```go\nfunc (r JpgParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *JpgParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype Log = shared.Log\n```\nThis is an alias to an internal type.\n\n```go\ntype LogLevel = shared.LogLevel\n```\nLog level\n\nThis is an alias to an internal type.\n\n```go\ntype LogService = shared.LogService\n```\nName of the service that generated the log\n\nThis is an alias to an internal type.\n\n```go\ntype MP4Av1 struct {\n\tID constant.MP4Av1 `json:\"id\" default:\"mp4_av1\"`\n\t// AudioBitrate specifies the audio bitrate in bits per second. Must be between\n\t// 32Kbps and 512Kbps.\n\tAudioBitrate int64 `json:\"audio_bitrate\"`\n\t// Bufsize specifies the video buffer size in bits. Must be between 100Kbps and\n\t// 50Mbps.\n\tBufsize int64 `json:\"bufsize\"`\n\t// Channels specifies the number of audio channels. Valid values: 1 (mono), 2\n\t// (stereo), 5 (5.1), 7 (7.1)\n\t//\n\t// Any of 1, 2, 5, 7.\n\tChannels int64 `json:\"channels\"`\n\t// Crf (Constant Rate Factor) controls the quality of the output video. Lower\n\t// values mean better quality but larger file size. Range: 16 to 63. Recommended\n\t// values: 16-35 for high quality, 35-45 for good quality, 45-63 for acceptable\n\t// quality.\n\tCrf int64 `json:\"crf\"`\n\t// DisableAudio indicates whether to disable audio processing.\n\tDisableAudio bool `json:\"disable_audio\"`\n\t// DisableVideo indicates whether to disable video processing.\n\tDisableVideo bool `json:\"disable_video\"`\n\t// Duration specifies the duration to process in seconds. Must be a positive value.\n\tDuration int64 `json:\"duration\"`\n\t// Framerate specifies the output video frame rate. Must be greater than zero and\n\t// at most 240 fps.\n\tFramerate float64 `json:\"framerate\"`\n\t// Gop specifies the Group of Pictures (GOP) size. Must be between 1 and 960\n\t// frames.\n\tGop int64 `json:\"gop\"`\n\t// Height specifies the output video height in pixels. Must be between -2 and 7680.\n\t// Use -2 for automatic calculation while maintaining aspect ratio.\n\tHeight int64 `json:\"height\"`\n\t// Level specifies the AV1 profile level. Valid values: 30-31 (main), 41 (main10).\n\t// Higher levels support higher resolutions and bitrates but require more\n\t// processing power.\n\t//\n\t// Any of 30, 31, 41.\n\tLevel int64 `json:\"level\"`\n\t// Maxrate specifies the maximum video bitrate in bits per second. Must be between\n\t// 100Kbps and 50Mbps.\n\tMaxrate int64 `json:\"maxrate\"`\n\t// Minrate specifies the minimum video bitrate in bits per second. Must be between\n\t// 100Kbps and 50Mbps.\n\tMinrate  int64  `json:\"minrate\"`\n\tMovflags string `json:\"movflags\"`\n\t// Enables per-title optimization. Disabled by default. Set it to true to let\n\t// Chunkify select rate control automatically. When enabled, explicit rate-control\n\t// fields cannot be provided. For HLS outputs, either audio_bitrate or\n\t// video_bitrate is required when per-title optimization is disabled or omitted.\n\tPerTitle bool `json:\"per_title\"`\n\t// PixFmt specifies the pixel format. Valid value: yuv420p\n\t//\n\t// Any of \"yuv410p\", \"yuv411p\", \"yuv420p\", \"yuv422p\", \"yuv440p\", \"yuv444p\",\n\t// \"yuvJ411p\", \"yuvJ420p\", \"yuvJ422p\", \"yuvJ440p\", \"yuvJ444p\", \"yuv420p10le\",\n\t// \"yuv422p10le\", \"yuv440p10le\", \"yuv444p10le\", \"yuv420p12le\", \"yuv422p12le\",\n\t// \"yuv440p12le\", \"yuv444p12le\", \"yuv420p10be\", \"yuv422p10be\", \"yuv440p10be\",\n\t// \"yuv444p10be\", \"yuv420p12be\", \"yuv422p12be\", \"yuv440p12be\", \"yuv444p12be\".\n\tPixfmt MP4Av1Pixfmt `json:\"pixfmt\"`\n\t// Preset controls the encoding efficiency and processing intensity. Lower presets\n\t// use more optimization features, creating smaller files with better quality but\n\t// requiring more compute time. Higher presets encode faster but produce larger\n\t// files.\n\t//\n\t// Preset ranges:\n\t//\n\t// - 6-7: Fast encoding for real-time applications (smaller files)\n\t// - 8-10: Balanced efficiency and speed for general use\n\t// - 11-13: Fastest encoding for real-time applications (larger files)\n\t//\n\t// Any of \"6\", \"7\", \"8\", \"9\", \"10\", \"11\", \"12\", \"13\".\n\tPreset MP4Av1Preset `json:\"preset\"`\n\t// Profilev specifies the AV1 profile. Valid values:\n\t//\n\t// - main: Main profile, good for most applications\n\t// - main10: Main 10-bit profile, supports 10-bit color\n\t// - mainstillpicture: Still picture profile, optimized for single images\n\t//\n\t// Any of \"main\", \"main10\", \"mainstillpicture\".\n\tProfilev MP4Av1Profilev `json:\"profilev\"`\n\t// Seek specifies the timestamp to start processing from (in seconds). Must be a\n\t// positive value.\n\tSeek int64 `json:\"seek\"`\n\t// VideoBitrate specifies the video bitrate in bits per second. Must be between 1\n\t// bps and 100 Mbps.\n\tVideoBitrate int64 `json:\"video_bitrate\"`\n\t// Width specifies the output video width in pixels. Must be between -2 and 7680.\n\t// Use -2 for automatic calculation while maintaining aspect ratio.\n\tWidth int64 `json:\"width\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID           respjson.Field\n\t\tAudioBitrate respjson.Field\n\t\tBufsize      respjson.Field\n\t\tChannels     respjson.Field\n\t\tCrf          respjson.Field\n\t\tDisableAudio respjson.Field\n\t\tDisableVideo respjson.Field\n\t\tDuration     respjson.Field\n\t\tFramerate    respjson.Field\n\t\tGop          respjson.Field\n\t\tHeight       respjson.Field\n\t\tLevel        respjson.Field\n\t\tMaxrate      respjson.Field\n\t\tMinrate      respjson.Field\n\t\tMovflags     respjson.Field\n\t\tPerTitle     respjson.Field\n\t\tPixfmt       respjson.Field\n\t\tPreset       respjson.Field\n\t\tProfilev     respjson.Field\n\t\tSeek         respjson.Field\n\t\tVideoBitrate respjson.Field\n\t\tWidth        respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r MP4Av1) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r MP4Av1) ToParam() MP4Av1Param\n```\nToParam converts this MP4Av1 to a MP4Av1Param.\n\nWarning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with MP4Av1Param.Overrides()\n\n```go\nfunc (r *MP4Av1) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype MP4Av1Param struct {\n\t// AudioBitrate specifies the audio bitrate in bits per second. Must be between\n\t// 32Kbps and 512Kbps.\n\tAudioBitrate param.Opt[int64] `json:\"audio_bitrate,omitzero\"`\n\t// Bufsize specifies the video buffer size in bits. Must be between 100Kbps and\n\t// 50Mbps.\n\tBufsize param.Opt[int64] `json:\"bufsize,omitzero\"`\n\t// Crf (Constant Rate Factor) controls the quality of the output video. Lower\n\t// values mean better quality but larger file size. Range: 16 to 63. Recommended\n\t// values: 16-35 for high quality, 35-45 for good quality, 45-63 for acceptable\n\t// quality.\n\tCrf param.Opt[int64] `json:\"crf,omitzero\"`\n\t// DisableAudio indicates whether to disable audio processing.\n\tDisableAudio param.Opt[bool] `json:\"disable_audio,omitzero\"`\n\t// DisableVideo indicates whether to disable video processing.\n\tDisableVideo param.Opt[bool] `json:\"disable_video,omitzero\"`\n\t// Duration specifies the duration to process in seconds. Must be a positive value.\n\tDuration param.Opt[int64] `json:\"duration,omitzero\"`\n\t// Framerate specifies the output video frame rate. Must be greater than zero and\n\t// at most 240 fps.\n\tFramerate param.Opt[float64] `json:\"framerate,omitzero\"`\n\t// Gop specifies the Group of Pictures (GOP) size. Must be between 1 and 960\n\t// frames.\n\tGop param.Opt[int64] `json:\"gop,omitzero\"`\n\t// Height specifies the output video height in pixels. Must be between -2 and 7680.\n\t// Use -2 for automatic calculation while maintaining aspect ratio.\n\tHeight param.Opt[int64] `json:\"height,omitzero\"`\n\t// Maxrate specifies the maximum video bitrate in bits per second. Must be between\n\t// 100Kbps and 50Mbps.\n\tMaxrate param.Opt[int64] `json:\"maxrate,omitzero\"`\n\t// Minrate specifies the minimum video bitrate in bits per second. Must be between\n\t// 100Kbps and 50Mbps.\n\tMinrate  param.Opt[int64]  `json:\"minrate,omitzero\"`\n\tMovflags param.Opt[string] `json:\"movflags,omitzero\"`\n\t// Enables per-title optimization. Disabled by default. Set it to true to let\n\t// Chunkify select rate control automatically. When enabled, explicit rate-control\n\t// fields cannot be provided. For HLS outputs, either audio_bitrate or\n\t// video_bitrate is required when per-title optimization is disabled or omitted.\n\tPerTitle param.Opt[bool] `json:\"per_title,omitzero\"`\n\t// Seek specifies the timestamp to start processing from (in seconds). Must be a\n\t// positive value.\n\tSeek param.Opt[int64] `json:\"seek,omitzero\"`\n\t// VideoBitrate specifies the video bitrate in bits per second. Must be between 1\n\t// bps and 100 Mbps.\n\tVideoBitrate param.Opt[int64] `json:\"video_bitrate,omitzero\"`\n\t// Width specifies the output video width in pixels. Must be between -2 and 7680.\n\t// Use -2 for automatic calculation while maintaining aspect ratio.\n\tWidth param.Opt[int64] `json:\"width,omitzero\"`\n\t// Channels specifies the number of audio channels. Valid values: 1 (mono), 2\n\t// (stereo), 5 (5.1), 7 (7.1)\n\t//\n\t// Any of 1, 2, 5, 7.\n\tChannels int64 `json:\"channels,omitzero\"`\n\t// Level specifies the AV1 profile level. Valid values: 30-31 (main), 41 (main10).\n\t// Higher levels support higher resolutions and bitrates but require more\n\t// processing power.\n\t//\n\t// Any of 30, 31, 41.\n\tLevel int64 `json:\"level,omitzero\"`\n\t// PixFmt specifies the pixel format. Valid value: yuv420p\n\t//\n\t// Any of \"yuv410p\", \"yuv411p\", \"yuv420p\", \"yuv422p\", \"yuv440p\", \"yuv444p\",\n\t// \"yuvJ411p\", \"yuvJ420p\", \"yuvJ422p\", \"yuvJ440p\", \"yuvJ444p\", \"yuv420p10le\",\n\t// \"yuv422p10le\", \"yuv440p10le\", \"yuv444p10le\", \"yuv420p12le\", \"yuv422p12le\",\n\t// \"yuv440p12le\", \"yuv444p12le\", \"yuv420p10be\", \"yuv422p10be\", \"yuv440p10be\",\n\t// \"yuv444p10be\", \"yuv420p12be\", \"yuv422p12be\", \"yuv440p12be\", \"yuv444p12be\".\n\tPixfmt MP4Av1Pixfmt `json:\"pixfmt,omitzero\"`\n\t// Preset controls the encoding efficiency and processing intensity. Lower presets\n\t// use more optimization features, creating smaller files with better quality but\n\t// requiring more compute time. Higher presets encode faster but produce larger\n\t// files.\n\t//\n\t// Preset ranges:\n\t//\n\t// - 6-7: Fast encoding for real-time applications (smaller files)\n\t// - 8-10: Balanced efficiency and speed for general use\n\t// - 11-13: Fastest encoding for real-time applications (larger files)\n\t//\n\t// Any of \"6\", \"7\", \"8\", \"9\", \"10\", \"11\", \"12\", \"13\".\n\tPreset MP4Av1Preset `json:\"preset,omitzero\"`\n\t// Profilev specifies the AV1 profile. Valid values:\n\t//\n\t// - main: Main profile, good for most applications\n\t// - main10: Main 10-bit profile, supports 10-bit color\n\t// - mainstillpicture: Still picture profile, optimized for single images\n\t//\n\t// Any of \"main\", \"main10\", \"mainstillpicture\".\n\tProfilev MP4Av1Profilev `json:\"profilev,omitzero\"`\n\t// This field can be elided, and will marshal its zero value as \"mp4_av1\".\n\tID constant.MP4Av1 `json:\"id\" default:\"mp4_av1\"`\n\t// contains filtered or unexported fields\n}\n```\nThe property ID is required.\n\n```go\nfunc (r MP4Av1Param) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *MP4Av1Param) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype MP4Av1Pixfmt string\n```\nPixFmt specifies the pixel format. Valid value: yuv420p\n\n```go\nconst (\n\tMP4Av1PixfmtYuv410p     MP4Av1Pixfmt = \"yuv410p\"\n\tMP4Av1PixfmtYuv411p     MP4Av1Pixfmt = \"yuv411p\"\n\tMP4Av1PixfmtYuv420p     MP4Av1Pixfmt = \"yuv420p\"\n\tMP4Av1PixfmtYuv422p     MP4Av1Pixfmt = \"yuv422p\"\n\tMP4Av1PixfmtYuv440p     MP4Av1Pixfmt = \"yuv440p\"\n\tMP4Av1PixfmtYuv444p     MP4Av1Pixfmt = \"yuv444p\"\n\tMP4Av1PixfmtYuvJ411p    MP4Av1Pixfmt = \"yuvJ411p\"\n\tMP4Av1PixfmtYuvJ420p    MP4Av1Pixfmt = \"yuvJ420p\"\n\tMP4Av1PixfmtYuvJ422p    MP4Av1Pixfmt = \"yuvJ422p\"\n\tMP4Av1PixfmtYuvJ440p    MP4Av1Pixfmt = \"yuvJ440p\"\n\tMP4Av1PixfmtYuvJ444p    MP4Av1Pixfmt = \"yuvJ444p\"\n\tMP4Av1PixfmtYuv420p10le MP4Av1Pixfmt = \"yuv420p10le\"\n\tMP4Av1PixfmtYuv422p10le MP4Av1Pixfmt = \"yuv422p10le\"\n\tMP4Av1PixfmtYuv440p10le MP4Av1Pixfmt = \"yuv440p10le\"\n\tMP4Av1PixfmtYuv444p10le MP4Av1Pixfmt = \"yuv444p10le\"\n\tMP4Av1PixfmtYuv420p12le MP4Av1Pixfmt = \"yuv420p12le\"\n\tMP4Av1PixfmtYuv422p12le MP4Av1Pixfmt = \"yuv422p12le\"\n\tMP4Av1PixfmtYuv440p12le MP4Av1Pixfmt = \"yuv440p12le\"\n\tMP4Av1PixfmtYuv444p12le MP4Av1Pixfmt = \"yuv444p12le\"\n\tMP4Av1PixfmtYuv420p10be MP4Av1Pixfmt = \"yuv420p10be\"\n\tMP4Av1PixfmtYuv422p10be MP4Av1Pixfmt = \"yuv422p10be\"\n\tMP4Av1PixfmtYuv440p10be MP4Av1Pixfmt = \"yuv440p10be\"\n\tMP4Av1PixfmtYuv444p10be MP4Av1Pixfmt = \"yuv444p10be\"\n\tMP4Av1PixfmtYuv420p12be MP4Av1Pixfmt = \"yuv420p12be\"\n\tMP4Av1PixfmtYuv422p12be MP4Av1Pixfmt = \"yuv422p12be\"\n\tMP4Av1PixfmtYuv440p12be MP4Av1Pixfmt = \"yuv440p12be\"\n\tMP4Av1PixfmtYuv444p12be MP4Av1Pixfmt = \"yuv444p12be\"\n)\n```\n\n```go\ntype MP4Av1Preset string\n```\nPreset controls the encoding efficiency and processing intensity. Lower presets use more optimization features, creating smaller files with better quality but requiring more compute time. Higher presets encode faster but produce larger files.\n\nPreset ranges:\n\n\\- 6-7: Fast encoding for real-time applications (smaller files) - 8-10: Balanced efficiency and speed for general use - 11-13: Fastest encoding for real-time applications (larger files)\n\n```go\nconst (\n\tMP4Av1Preset6  MP4Av1Preset = \"6\"\n\tMP4Av1Preset7  MP4Av1Preset = \"7\"\n\tMP4Av1Preset8  MP4Av1Preset = \"8\"\n\tMP4Av1Preset9  MP4Av1Preset = \"9\"\n\tMP4Av1Preset10 MP4Av1Preset = \"10\"\n\tMP4Av1Preset11 MP4Av1Preset = \"11\"\n\tMP4Av1Preset12 MP4Av1Preset = \"12\"\n\tMP4Av1Preset13 MP4Av1Preset = \"13\"\n)\n```\n\n```go\ntype MP4Av1Profilev string\n```\nProfilev specifies the AV1 profile. Valid values:\n\n\\- main: Main profile, good for most applications - main10: Main 10-bit profile, supports 10-bit color - mainstillpicture: Still picture profile, optimized for single images\n\n```go\nconst (\n\tMP4Av1ProfilevMain             MP4Av1Profilev = \"main\"\n\tMP4Av1ProfilevMain10           MP4Av1Profilev = \"main10\"\n\tMP4Av1ProfilevMainstillpicture MP4Av1Profilev = \"mainstillpicture\"\n)\n```\n\n```go\ntype MP4H264 struct {\n\tID constant.MP4H264 `json:\"id\" default:\"mp4_h264\"`\n\t// AudioBitrate specifies the audio bitrate in bits per second. Must be between\n\t// 32Kbps and 512Kbps.\n\tAudioBitrate int64 `json:\"audio_bitrate\"`\n\t// Bufsize specifies the video buffer size in bits. Must be between 100Kbps and\n\t// 50Mbps.\n\tBufsize int64 `json:\"bufsize\"`\n\t// Channels specifies the number of audio channels. Valid values: 1 (mono), 2\n\t// (stereo), 5 (5.1), 7 (7.1)\n\t//\n\t// Any of 1, 2, 5, 7.\n\tChannels int64 `json:\"channels\"`\n\t// Crf (Constant Rate Factor) controls the quality of the output video. Lower\n\t// values mean better quality but larger file size. Range: 16 to 35. Recommended\n\t// values: 18-28 for high quality, 23-28 for good quality, 28-35 for acceptable\n\t// quality.\n\tCrf int64 `json:\"crf\"`\n\t// DisableAudio indicates whether to disable audio processing.\n\tDisableAudio bool `json:\"disable_audio\"`\n\t// DisableVideo indicates whether to disable video processing.\n\tDisableVideo bool `json:\"disable_video\"`\n\t// Duration specifies the duration to process in seconds. Must be a positive value.\n\tDuration int64 `json:\"duration\"`\n\t// Framerate specifies the output video frame rate. Must be greater than zero and\n\t// at most 240 fps.\n\tFramerate float64 `json:\"framerate\"`\n\t// Gop specifies the Group of Pictures (GOP) size. Must be between 1 and 960\n\t// frames.\n\tGop int64 `json:\"gop\"`\n\t// Height specifies the output video height in pixels. Must be between -2 and 7680.\n\t// Use -2 for automatic calculation while maintaining aspect ratio.\n\tHeight int64 `json:\"height\"`\n\t// Level specifies the H.264 profile level. Valid values: 10-13 (baseline), 20-22\n\t// (main), 30-32 (high), 40-42 (high), 50-51 (high). Higher levels support higher\n\t// resolutions and bitrates but require more processing power.\n\t//\n\t// Any of 10, 11, 12, 13, 20, 21, 22, 30, 31, 32, 40, 41, 42, 50, 51.\n\tLevel int64 `json:\"level\"`\n\t// Maxrate specifies the maximum video bitrate in bits per second. Must be between\n\t// 100Kbps and 50Mbps.\n\tMaxrate int64 `json:\"maxrate\"`\n\t// Minrate specifies the minimum video bitrate in bits per second. Must be between\n\t// 100Kbps and 50Mbps.\n\tMinrate  int64  `json:\"minrate\"`\n\tMovflags string `json:\"movflags\"`\n\t// Enables per-title optimization. Disabled by default. Set it to true to let\n\t// Chunkify select rate control automatically. When enabled, explicit rate-control\n\t// fields cannot be provided. For HLS outputs, either audio_bitrate or\n\t// video_bitrate is required when per-title optimization is disabled or omitted.\n\tPerTitle bool `json:\"per_title\"`\n\t// PixFmt specifies the pixel format. Valid value: yuv420p\n\t//\n\t// Any of \"yuv410p\", \"yuv411p\", \"yuv420p\", \"yuv422p\", \"yuv440p\", \"yuv444p\",\n\t// \"yuvJ411p\", \"yuvJ420p\", \"yuvJ422p\", \"yuvJ440p\", \"yuvJ444p\", \"yuv420p10le\",\n\t// \"yuv422p10le\", \"yuv440p10le\", \"yuv444p10le\", \"yuv420p12le\", \"yuv422p12le\",\n\t// \"yuv440p12le\", \"yuv444p12le\", \"yuv420p10be\", \"yuv422p10be\", \"yuv440p10be\",\n\t// \"yuv444p10be\", \"yuv420p12be\", \"yuv422p12be\", \"yuv440p12be\", \"yuv444p12be\".\n\tPixfmt MP4H264Pixfmt `json:\"pixfmt\"`\n\t// Preset specifies the encoding speed preset. Valid values (from fastest to\n\t// slowest):\n\t//\n\t// - ultrafast: Fastest encoding, lowest quality\n\t// - superfast: Very fast encoding, lower quality\n\t// - veryfast: Fast encoding, moderate quality\n\t// - faster: Faster encoding, good quality\n\t// - fast: Fast encoding, better quality\n\t// - medium: Balanced preset, best quality\n\t//\n\t// Any of \"ultrafast\", \"superfast\", \"veryfast\", \"faster\", \"fast\", \"medium\".\n\tPreset MP4H264Preset `json:\"preset\"`\n\t// Profilev specifies the H.264 profile. Valid values:\n\t//\n\t// - baseline: Basic profile, good for mobile devices\n\t// - main: Main profile, good for most applications\n\t// - high: High profile, best quality but requires more processing\n\t// - high10: High 10-bit profile, supports 10-bit color\n\t// - high422: High 4:2:2 profile, supports 4:2:2 color sampling\n\t// - high444: High 4:4:4 profile, supports 4:4:4 color sampling\n\t//\n\t// Any of \"baseline\", \"main\", \"high\", \"high10\", \"high422\", \"high444\".\n\tProfilev MP4H264Profilev `json:\"profilev\"`\n\t// Seek specifies the timestamp to start processing from (in seconds). Must be a\n\t// positive value.\n\tSeek int64 `json:\"seek\"`\n\t// VideoBitrate specifies the video bitrate in bits per second. Must be between 1\n\t// bps and 100 Mbps.\n\tVideoBitrate int64 `json:\"video_bitrate\"`\n\t// Width specifies the output video width in pixels. Must be between -2 and 7680.\n\t// Use -2 for automatic calculation while maintaining aspect ratio.\n\tWidth int64 `json:\"width\"`\n\t// X264KeyInt specifies the maximum number of frames between keyframes for H.264\n\t// encoding. Range: 1 to 960. Higher values can improve compression but may affect\n\t// seeking.\n\tX264Keyint int64 `json:\"x264_keyint\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID           respjson.Field\n\t\tAudioBitrate respjson.Field\n\t\tBufsize      respjson.Field\n\t\tChannels     respjson.Field\n\t\tCrf          respjson.Field\n\t\tDisableAudio respjson.Field\n\t\tDisableVideo respjson.Field\n\t\tDuration     respjson.Field\n\t\tFramerate    respjson.Field\n\t\tGop          respjson.Field\n\t\tHeight       respjson.Field\n\t\tLevel        respjson.Field\n\t\tMaxrate      respjson.Field\n\t\tMinrate      respjson.Field\n\t\tMovflags     respjson.Field\n\t\tPerTitle     respjson.Field\n\t\tPixfmt       respjson.Field\n\t\tPreset       respjson.Field\n\t\tProfilev     respjson.Field\n\t\tSeek         respjson.Field\n\t\tVideoBitrate respjson.Field\n\t\tWidth        respjson.Field\n\t\tX264Keyint   respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r MP4H264) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r MP4H264) ToParam() MP4H264Param\n```\nToParam converts this MP4H264 to a MP4H264Param.\n\nWarning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with MP4H264Param.Overrides()\n\n```go\nfunc (r *MP4H264) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype MP4H264Param struct {\n\t// AudioBitrate specifies the audio bitrate in bits per second. Must be between\n\t// 32Kbps and 512Kbps.\n\tAudioBitrate param.Opt[int64] `json:\"audio_bitrate,omitzero\"`\n\t// Bufsize specifies the video buffer size in bits. Must be between 100Kbps and\n\t// 50Mbps.\n\tBufsize param.Opt[int64] `json:\"bufsize,omitzero\"`\n\t// Crf (Constant Rate Factor) controls the quality of the output video. Lower\n\t// values mean better quality but larger file size. Range: 16 to 35. Recommended\n\t// values: 18-28 for high quality, 23-28 for good quality, 28-35 for acceptable\n\t// quality.\n\tCrf param.Opt[int64] `json:\"crf,omitzero\"`\n\t// DisableAudio indicates whether to disable audio processing.\n\tDisableAudio param.Opt[bool] `json:\"disable_audio,omitzero\"`\n\t// DisableVideo indicates whether to disable video processing.\n\tDisableVideo param.Opt[bool] `json:\"disable_video,omitzero\"`\n\t// Duration specifies the duration to process in seconds. Must be a positive value.\n\tDuration param.Opt[int64] `json:\"duration,omitzero\"`\n\t// Framerate specifies the output video frame rate. Must be greater than zero and\n\t// at most 240 fps.\n\tFramerate param.Opt[float64] `json:\"framerate,omitzero\"`\n\t// Gop specifies the Group of Pictures (GOP) size. Must be between 1 and 960\n\t// frames.\n\tGop param.Opt[int64] `json:\"gop,omitzero\"`\n\t// Height specifies the output video height in pixels. Must be between -2 and 7680.\n\t// Use -2 for automatic calculation while maintaining aspect ratio.\n\tHeight param.Opt[int64] `json:\"height,omitzero\"`\n\t// Maxrate specifies the maximum video bitrate in bits per second. Must be between\n\t// 100Kbps and 50Mbps.\n\tMaxrate param.Opt[int64] `json:\"maxrate,omitzero\"`\n\t// Minrate specifies the minimum video bitrate in bits per second. Must be between\n\t// 100Kbps and 50Mbps.\n\tMinrate  param.Opt[int64]  `json:\"minrate,omitzero\"`\n\tMovflags param.Opt[string] `json:\"movflags,omitzero\"`\n\t// Enables per-title optimization. Disabled by default. Set it to true to let\n\t// Chunkify select rate control automatically. When enabled, explicit rate-control\n\t// fields cannot be provided. For HLS outputs, either audio_bitrate or\n\t// video_bitrate is required when per-title optimization is disabled or omitted.\n\tPerTitle param.Opt[bool] `json:\"per_title,omitzero\"`\n\t// Seek specifies the timestamp to start processing from (in seconds). Must be a\n\t// positive value.\n\tSeek param.Opt[int64] `json:\"seek,omitzero\"`\n\t// VideoBitrate specifies the video bitrate in bits per second. Must be between 1\n\t// bps and 100 Mbps.\n\tVideoBitrate param.Opt[int64] `json:\"video_bitrate,omitzero\"`\n\t// Width specifies the output video width in pixels. Must be between -2 and 7680.\n\t// Use -2 for automatic calculation while maintaining aspect ratio.\n\tWidth param.Opt[int64] `json:\"width,omitzero\"`\n\t// X264KeyInt specifies the maximum number of frames between keyframes for H.264\n\t// encoding. Range: 1 to 960. Higher values can improve compression but may affect\n\t// seeking.\n\tX264Keyint param.Opt[int64] `json:\"x264_keyint,omitzero\"`\n\t// Channels specifies the number of audio channels. Valid values: 1 (mono), 2\n\t// (stereo), 5 (5.1), 7 (7.1)\n\t//\n\t// Any of 1, 2, 5, 7.\n\tChannels int64 `json:\"channels,omitzero\"`\n\t// Level specifies the H.264 profile level. Valid values: 10-13 (baseline), 20-22\n\t// (main), 30-32 (high), 40-42 (high), 50-51 (high). Higher levels support higher\n\t// resolutions and bitrates but require more processing power.\n\t//\n\t// Any of 10, 11, 12, 13, 20, 21, 22, 30, 31, 32, 40, 41, 42, 50, 51.\n\tLevel int64 `json:\"level,omitzero\"`\n\t// PixFmt specifies the pixel format. Valid value: yuv420p\n\t//\n\t// Any of \"yuv410p\", \"yuv411p\", \"yuv420p\", \"yuv422p\", \"yuv440p\", \"yuv444p\",\n\t// \"yuvJ411p\", \"yuvJ420p\", \"yuvJ422p\", \"yuvJ440p\", \"yuvJ444p\", \"yuv420p10le\",\n\t// \"yuv422p10le\", \"yuv440p10le\", \"yuv444p10le\", \"yuv420p12le\", \"yuv422p12le\",\n\t// \"yuv440p12le\", \"yuv444p12le\", \"yuv420p10be\", \"yuv422p10be\", \"yuv440p10be\",\n\t// \"yuv444p10be\", \"yuv420p12be\", \"yuv422p12be\", \"yuv440p12be\", \"yuv444p12be\".\n\tPixfmt MP4H264Pixfmt `json:\"pixfmt,omitzero\"`\n\t// Preset specifies the encoding speed preset. Valid values (from fastest to\n\t// slowest):\n\t//\n\t// - ultrafast: Fastest encoding, lowest quality\n\t// - superfast: Very fast encoding, lower quality\n\t// - veryfast: Fast encoding, moderate quality\n\t// - faster: Faster encoding, good quality\n\t// - fast: Fast encoding, better quality\n\t// - medium: Balanced preset, best quality\n\t//\n\t// Any of \"ultrafast\", \"superfast\", \"veryfast\", \"faster\", \"fast\", \"medium\".\n\tPreset MP4H264Preset `json:\"preset,omitzero\"`\n\t// Profilev specifies the H.264 profile. Valid values:\n\t//\n\t// - baseline: Basic profile, good for mobile devices\n\t// - main: Main profile, good for most applications\n\t// - high: High profile, best quality but requires more processing\n\t// - high10: High 10-bit profile, supports 10-bit color\n\t// - high422: High 4:2:2 profile, supports 4:2:2 color sampling\n\t// - high444: High 4:4:4 profile, supports 4:4:4 color sampling\n\t//\n\t// Any of \"baseline\", \"main\", \"high\", \"high10\", \"high422\", \"high444\".\n\tProfilev MP4H264Profilev `json:\"profilev,omitzero\"`\n\t// This field can be elided, and will marshal its zero value as \"mp4_h264\".\n\tID constant.MP4H264 `json:\"id\" default:\"mp4_h264\"`\n\t// contains filtered or unexported fields\n}\n```\nThe property ID is required.\n\n```go\nfunc (r MP4H264Param) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *MP4H264Param) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype MP4H264Pixfmt string\n```\nPixFmt specifies the pixel format. Valid value: yuv420p\n\n```go\nconst (\n\tMP4H264PixfmtYuv410p     MP4H264Pixfmt = \"yuv410p\"\n\tMP4H264PixfmtYuv411p     MP4H264Pixfmt = \"yuv411p\"\n\tMP4H264PixfmtYuv420p     MP4H264Pixfmt = \"yuv420p\"\n\tMP4H264PixfmtYuv422p     MP4H264Pixfmt = \"yuv422p\"\n\tMP4H264PixfmtYuv440p     MP4H264Pixfmt = \"yuv440p\"\n\tMP4H264PixfmtYuv444p     MP4H264Pixfmt = \"yuv444p\"\n\tMP4H264PixfmtYuvJ411p    MP4H264Pixfmt = \"yuvJ411p\"\n\tMP4H264PixfmtYuvJ420p    MP4H264Pixfmt = \"yuvJ420p\"\n\tMP4H264PixfmtYuvJ422p    MP4H264Pixfmt = \"yuvJ422p\"\n\tMP4H264PixfmtYuvJ440p    MP4H264Pixfmt = \"yuvJ440p\"\n\tMP4H264PixfmtYuvJ444p    MP4H264Pixfmt = \"yuvJ444p\"\n\tMP4H264PixfmtYuv420p10le MP4H264Pixfmt = \"yuv420p10le\"\n\tMP4H264PixfmtYuv422p10le MP4H264Pixfmt = \"yuv422p10le\"\n\tMP4H264PixfmtYuv440p10le MP4H264Pixfmt = \"yuv440p10le\"\n\tMP4H264PixfmtYuv444p10le MP4H264Pixfmt = \"yuv444p10le\"\n\tMP4H264PixfmtYuv420p12le MP4H264Pixfmt = \"yuv420p12le\"\n\tMP4H264PixfmtYuv422p12le MP4H264Pixfmt = \"yuv422p12le\"\n\tMP4H264PixfmtYuv440p12le MP4H264Pixfmt = \"yuv440p12le\"\n\tMP4H264PixfmtYuv444p12le MP4H264Pixfmt = \"yuv444p12le\"\n\tMP4H264PixfmtYuv420p10be MP4H264Pixfmt = \"yuv420p10be\"\n\tMP4H264PixfmtYuv422p10be MP4H264Pixfmt = \"yuv422p10be\"\n\tMP4H264PixfmtYuv440p10be MP4H264Pixfmt = \"yuv440p10be\"\n\tMP4H264PixfmtYuv444p10be MP4H264Pixfmt = \"yuv444p10be\"\n\tMP4H264PixfmtYuv420p12be MP4H264Pixfmt = \"yuv420p12be\"\n\tMP4H264PixfmtYuv422p12be MP4H264Pixfmt = \"yuv422p12be\"\n\tMP4H264PixfmtYuv440p12be MP4H264Pixfmt = \"yuv440p12be\"\n\tMP4H264PixfmtYuv444p12be MP4H264Pixfmt = \"yuv444p12be\"\n)\n```\n\n```go\ntype MP4H264Preset string\n```\nPreset specifies the encoding speed preset. Valid values (from fastest to slowest):\n\n\\- ultrafast: Fastest encoding, lowest quality - superfast: Very fast encoding, lower quality - veryfast: Fast encoding, moderate quality - faster: Faster encoding, good quality - fast: Fast encoding, better quality - medium: Balanced preset, best quality\n\n```go\nconst (\n\tMP4H264PresetUltrafast MP4H264Preset = \"ultrafast\"\n\tMP4H264PresetSuperfast MP4H264Preset = \"superfast\"\n\tMP4H264PresetVeryfast  MP4H264Preset = \"veryfast\"\n\tMP4H264PresetFaster    MP4H264Preset = \"faster\"\n\tMP4H264PresetFast      MP4H264Preset = \"fast\"\n\tMP4H264PresetMedium    MP4H264Preset = \"medium\"\n)\n```\n\n```go\ntype MP4H264Profilev string\n```\nProfilev specifies the H.264 profile. Valid values:\n\n\\- baseline: Basic profile, good for mobile devices - main: Main profile, good for most applications - high: High profile, best quality but requires more processing - high10: High 10-bit profile, supports 10-bit color - high422: High 4:2:2 profile, supports 4:2:2 color sampling - high444: High 4:4:4 profile, supports 4:4:4 color sampling\n\n```go\nconst (\n\tMP4H264ProfilevBaseline MP4H264Profilev = \"baseline\"\n\tMP4H264ProfilevMain     MP4H264Profilev = \"main\"\n\tMP4H264ProfilevHigh     MP4H264Profilev = \"high\"\n\tMP4H264ProfilevHigh10   MP4H264Profilev = \"high10\"\n\tMP4H264ProfilevHigh422  MP4H264Profilev = \"high422\"\n\tMP4H264ProfilevHigh444  MP4H264Profilev = \"high444\"\n)\n```\n\n```go\ntype MP4H265 struct {\n\tID constant.MP4H265 `json:\"id\" default:\"mp4_h265\"`\n\t// AudioBitrate specifies the audio bitrate in bits per second. Must be between\n\t// 32Kbps and 512Kbps.\n\tAudioBitrate int64 `json:\"audio_bitrate\"`\n\t// Bufsize specifies the video buffer size in bits. Must be between 100Kbps and\n\t// 50Mbps.\n\tBufsize int64 `json:\"bufsize\"`\n\t// Channels specifies the number of audio channels. Valid values: 1 (mono), 2\n\t// (stereo), 5 (5.1), 7 (7.1)\n\t//\n\t// Any of 1, 2, 5, 7.\n\tChannels int64 `json:\"channels\"`\n\t// Crf (Constant Rate Factor) controls the quality of the output video. Lower\n\t// values mean better quality but larger file size. Range: 16 to 35. Recommended\n\t// values: 18-28 for high quality, 23-28 for good quality, 28-35 for acceptable\n\t// quality.\n\tCrf int64 `json:\"crf\"`\n\t// DisableAudio indicates whether to disable audio processing.\n\tDisableAudio bool `json:\"disable_audio\"`\n\t// DisableVideo indicates whether to disable video processing.\n\tDisableVideo bool `json:\"disable_video\"`\n\t// Duration specifies the duration to process in seconds. Must be a positive value.\n\tDuration int64 `json:\"duration\"`\n\t// Framerate specifies the output video frame rate. Must be greater than zero and\n\t// at most 240 fps.\n\tFramerate float64 `json:\"framerate\"`\n\t// Gop specifies the Group of Pictures (GOP) size. Must be between 1 and 960\n\t// frames.\n\tGop int64 `json:\"gop\"`\n\t// Height specifies the output video height in pixels. Must be between -2 and 7680.\n\t// Use -2 for automatic calculation while maintaining aspect ratio.\n\tHeight int64 `json:\"height\"`\n\t// Level specifies the H.265 profile level. Valid values: 30-31 (main), 41\n\t// (main10). Higher levels support higher resolutions and bitrates but require more\n\t// processing power.\n\t//\n\t// Any of 30, 31, 41.\n\tLevel int64 `json:\"level\"`\n\t// Maxrate specifies the maximum video bitrate in bits per second. Must be between\n\t// 100Kbps and 50Mbps.\n\tMaxrate int64 `json:\"maxrate\"`\n\t// Minrate specifies the minimum video bitrate in bits per second. Must be between\n\t// 100Kbps and 50Mbps.\n\tMinrate  int64  `json:\"minrate\"`\n\tMovflags string `json:\"movflags\"`\n\t// Enables per-title optimization. Disabled by default. Set it to true to let\n\t// Chunkify select rate control automatically. When enabled, explicit rate-control\n\t// fields cannot be provided. For HLS outputs, either audio_bitrate or\n\t// video_bitrate is required when per-title optimization is disabled or omitted.\n\tPerTitle bool `json:\"per_title\"`\n\t// PixFmt specifies the pixel format. Valid value: yuv420p\n\t//\n\t// Any of \"yuv410p\", \"yuv411p\", \"yuv420p\", \"yuv422p\", \"yuv440p\", \"yuv444p\",\n\t// \"yuvJ411p\", \"yuvJ420p\", \"yuvJ422p\", \"yuvJ440p\", \"yuvJ444p\", \"yuv420p10le\",\n\t// \"yuv422p10le\", \"yuv440p10le\", \"yuv444p10le\", \"yuv420p12le\", \"yuv422p12le\",\n\t// \"yuv440p12le\", \"yuv444p12le\", \"yuv420p10be\", \"yuv422p10be\", \"yuv440p10be\",\n\t// \"yuv444p10be\", \"yuv420p12be\", \"yuv422p12be\", \"yuv440p12be\", \"yuv444p12be\".\n\tPixfmt MP4H265Pixfmt `json:\"pixfmt\"`\n\t// Preset specifies the encoding speed preset. Valid values (from fastest to\n\t// slowest):\n\t//\n\t// - ultrafast: Fastest encoding, lowest quality\n\t// - superfast: Very fast encoding, lower quality\n\t// - veryfast: Fast encoding, moderate quality\n\t// - faster: Faster encoding, good quality\n\t// - fast: Fast encoding, better quality\n\t// - medium: Balanced preset, best quality\n\t//\n\t// Any of \"ultrafast\", \"superfast\", \"veryfast\", \"faster\", \"fast\", \"medium\".\n\tPreset MP4H265Preset `json:\"preset\"`\n\t// Profilev specifies the H.265 profile. Valid values:\n\t//\n\t// - main: Main profile, good for most applications\n\t// - main10: Main 10-bit profile, supports 10-bit color\n\t// - mainstillpicture: Still picture profile, optimized for single images\n\t//\n\t// Any of \"main\", \"main10\", \"mainstillpicture\".\n\tProfilev MP4H265Profilev `json:\"profilev\"`\n\t// Seek specifies the timestamp to start processing from (in seconds). Must be a\n\t// positive value.\n\tSeek int64 `json:\"seek\"`\n\t// VideoBitrate specifies the video bitrate in bits per second. Must be between 1\n\t// bps and 100 Mbps.\n\tVideoBitrate int64 `json:\"video_bitrate\"`\n\t// Width specifies the output video width in pixels. Must be between -2 and 7680.\n\t// Use -2 for automatic calculation while maintaining aspect ratio.\n\tWidth int64 `json:\"width\"`\n\t// X265KeyInt specifies the maximum number of frames between keyframes for H.265\n\t// encoding. Range: 1 to 300. Higher values can improve compression but may affect\n\t// seeking.\n\tX265Keyint int64 `json:\"x265_keyint\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID           respjson.Field\n\t\tAudioBitrate respjson.Field\n\t\tBufsize      respjson.Field\n\t\tChannels     respjson.Field\n\t\tCrf          respjson.Field\n\t\tDisableAudio respjson.Field\n\t\tDisableVideo respjson.Field\n\t\tDuration     respjson.Field\n\t\tFramerate    respjson.Field\n\t\tGop          respjson.Field\n\t\tHeight       respjson.Field\n\t\tLevel        respjson.Field\n\t\tMaxrate      respjson.Field\n\t\tMinrate      respjson.Field\n\t\tMovflags     respjson.Field\n\t\tPerTitle     respjson.Field\n\t\tPixfmt       respjson.Field\n\t\tPreset       respjson.Field\n\t\tProfilev     respjson.Field\n\t\tSeek         respjson.Field\n\t\tVideoBitrate respjson.Field\n\t\tWidth        respjson.Field\n\t\tX265Keyint   respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r MP4H265) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r MP4H265) ToParam() MP4H265Param\n```\nToParam converts this MP4H265 to a MP4H265Param.\n\nWarning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with MP4H265Param.Overrides()\n\n```go\nfunc (r *MP4H265) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype MP4H265Param struct {\n\t// AudioBitrate specifies the audio bitrate in bits per second. Must be between\n\t// 32Kbps and 512Kbps.\n\tAudioBitrate param.Opt[int64] `json:\"audio_bitrate,omitzero\"`\n\t// Bufsize specifies the video buffer size in bits. Must be between 100Kbps and\n\t// 50Mbps.\n\tBufsize param.Opt[int64] `json:\"bufsize,omitzero\"`\n\t// Crf (Constant Rate Factor) controls the quality of the output video. Lower\n\t// values mean better quality but larger file size. Range: 16 to 35. Recommended\n\t// values: 18-28 for high quality, 23-28 for good quality, 28-35 for acceptable\n\t// quality.\n\tCrf param.Opt[int64] `json:\"crf,omitzero\"`\n\t// DisableAudio indicates whether to disable audio processing.\n\tDisableAudio param.Opt[bool] `json:\"disable_audio,omitzero\"`\n\t// DisableVideo indicates whether to disable video processing.\n\tDisableVideo param.Opt[bool] `json:\"disable_video,omitzero\"`\n\t// Duration specifies the duration to process in seconds. Must be a positive value.\n\tDuration param.Opt[int64] `json:\"duration,omitzero\"`\n\t// Framerate specifies the output video frame rate. Must be greater than zero and\n\t// at most 240 fps.\n\tFramerate param.Opt[float64] `json:\"framerate,omitzero\"`\n\t// Gop specifies the Group of Pictures (GOP) size. Must be between 1 and 960\n\t// frames.\n\tGop param.Opt[int64] `json:\"gop,omitzero\"`\n\t// Height specifies the output video height in pixels. Must be between -2 and 7680.\n\t// Use -2 for automatic calculation while maintaining aspect ratio.\n\tHeight param.Opt[int64] `json:\"height,omitzero\"`\n\t// Maxrate specifies the maximum video bitrate in bits per second. Must be between\n\t// 100Kbps and 50Mbps.\n\tMaxrate param.Opt[int64] `json:\"maxrate,omitzero\"`\n\t// Minrate specifies the minimum video bitrate in bits per second. Must be between\n\t// 100Kbps and 50Mbps.\n\tMinrate  param.Opt[int64]  `json:\"minrate,omitzero\"`\n\tMovflags param.Opt[string] `json:\"movflags,omitzero\"`\n\t// Enables per-title optimization. Disabled by default. Set it to true to let\n\t// Chunkify select rate control automatically. When enabled, explicit rate-control\n\t// fields cannot be provided. For HLS outputs, either audio_bitrate or\n\t// video_bitrate is required when per-title optimization is disabled or omitted.\n\tPerTitle param.Opt[bool] `json:\"per_title,omitzero\"`\n\t// Seek specifies the timestamp to start processing from (in seconds). Must be a\n\t// positive value.\n\tSeek param.Opt[int64] `json:\"seek,omitzero\"`\n\t// VideoBitrate specifies the video bitrate in bits per second. Must be between 1\n\t// bps and 100 Mbps.\n\tVideoBitrate param.Opt[int64] `json:\"video_bitrate,omitzero\"`\n\t// Width specifies the output video width in pixels. Must be between -2 and 7680.\n\t// Use -2 for automatic calculation while maintaining aspect ratio.\n\tWidth param.Opt[int64] `json:\"width,omitzero\"`\n\t// X265KeyInt specifies the maximum number of frames between keyframes for H.265\n\t// encoding. Range: 1 to 300. Higher values can improve compression but may affect\n\t// seeking.\n\tX265Keyint param.Opt[int64] `json:\"x265_keyint,omitzero\"`\n\t// Channels specifies the number of audio channels. Valid values: 1 (mono), 2\n\t// (stereo), 5 (5.1), 7 (7.1)\n\t//\n\t// Any of 1, 2, 5, 7.\n\tChannels int64 `json:\"channels,omitzero\"`\n\t// Level specifies the H.265 profile level. Valid values: 30-31 (main), 41\n\t// (main10). Higher levels support higher resolutions and bitrates but require more\n\t// processing power.\n\t//\n\t// Any of 30, 31, 41.\n\tLevel int64 `json:\"level,omitzero\"`\n\t// PixFmt specifies the pixel format. Valid value: yuv420p\n\t//\n\t// Any of \"yuv410p\", \"yuv411p\", \"yuv420p\", \"yuv422p\", \"yuv440p\", \"yuv444p\",\n\t// \"yuvJ411p\", \"yuvJ420p\", \"yuvJ422p\", \"yuvJ440p\", \"yuvJ444p\", \"yuv420p10le\",\n\t// \"yuv422p10le\", \"yuv440p10le\", \"yuv444p10le\", \"yuv420p12le\", \"yuv422p12le\",\n\t// \"yuv440p12le\", \"yuv444p12le\", \"yuv420p10be\", \"yuv422p10be\", \"yuv440p10be\",\n\t// \"yuv444p10be\", \"yuv420p12be\", \"yuv422p12be\", \"yuv440p12be\", \"yuv444p12be\".\n\tPixfmt MP4H265Pixfmt `json:\"pixfmt,omitzero\"`\n\t// Preset specifies the encoding speed preset. Valid values (from fastest to\n\t// slowest):\n\t//\n\t// - ultrafast: Fastest encoding, lowest quality\n\t// - superfast: Very fast encoding, lower quality\n\t// - veryfast: Fast encoding, moderate quality\n\t// - faster: Faster encoding, good quality\n\t// - fast: Fast encoding, better quality\n\t// - medium: Balanced preset, best quality\n\t//\n\t// Any of \"ultrafast\", \"superfast\", \"veryfast\", \"faster\", \"fast\", \"medium\".\n\tPreset MP4H265Preset `json:\"preset,omitzero\"`\n\t// Profilev specifies the H.265 profile. Valid values:\n\t//\n\t// - main: Main profile, good for most applications\n\t// - main10: Main 10-bit profile, supports 10-bit color\n\t// - mainstillpicture: Still picture profile, optimized for single images\n\t//\n\t// Any of \"main\", \"main10\", \"mainstillpicture\".\n\tProfilev MP4H265Profilev `json:\"profilev,omitzero\"`\n\t// This field can be elided, and will marshal its zero value as \"mp4_h265\".\n\tID constant.MP4H265 `json:\"id\" default:\"mp4_h265\"`\n\t// contains filtered or unexported fields\n}\n```\nThe property ID is required.\n\n```go\nfunc (r MP4H265Param) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *MP4H265Param) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype MP4H265Pixfmt string\n```\nPixFmt specifies the pixel format. Valid value: yuv420p\n\n```go\nconst (\n\tMP4H265PixfmtYuv410p     MP4H265Pixfmt = \"yuv410p\"\n\tMP4H265PixfmtYuv411p     MP4H265Pixfmt = \"yuv411p\"\n\tMP4H265PixfmtYuv420p     MP4H265Pixfmt = \"yuv420p\"\n\tMP4H265PixfmtYuv422p     MP4H265Pixfmt = \"yuv422p\"\n\tMP4H265PixfmtYuv440p     MP4H265Pixfmt = \"yuv440p\"\n\tMP4H265PixfmtYuv444p     MP4H265Pixfmt = \"yuv444p\"\n\tMP4H265PixfmtYuvJ411p    MP4H265Pixfmt = \"yuvJ411p\"\n\tMP4H265PixfmtYuvJ420p    MP4H265Pixfmt = \"yuvJ420p\"\n\tMP4H265PixfmtYuvJ422p    MP4H265Pixfmt = \"yuvJ422p\"\n\tMP4H265PixfmtYuvJ440p    MP4H265Pixfmt = \"yuvJ440p\"\n\tMP4H265PixfmtYuvJ444p    MP4H265Pixfmt = \"yuvJ444p\"\n\tMP4H265PixfmtYuv420p10le MP4H265Pixfmt = \"yuv420p10le\"\n\tMP4H265PixfmtYuv422p10le MP4H265Pixfmt = \"yuv422p10le\"\n\tMP4H265PixfmtYuv440p10le MP4H265Pixfmt = \"yuv440p10le\"\n\tMP4H265PixfmtYuv444p10le MP4H265Pixfmt = \"yuv444p10le\"\n\tMP4H265PixfmtYuv420p12le MP4H265Pixfmt = \"yuv420p12le\"\n\tMP4H265PixfmtYuv422p12le MP4H265Pixfmt = \"yuv422p12le\"\n\tMP4H265PixfmtYuv440p12le MP4H265Pixfmt = \"yuv440p12le\"\n\tMP4H265PixfmtYuv444p12le MP4H265Pixfmt = \"yuv444p12le\"\n\tMP4H265PixfmtYuv420p10be MP4H265Pixfmt = \"yuv420p10be\"\n\tMP4H265PixfmtYuv422p10be MP4H265Pixfmt = \"yuv422p10be\"\n\tMP4H265PixfmtYuv440p10be MP4H265Pixfmt = \"yuv440p10be\"\n\tMP4H265PixfmtYuv444p10be MP4H265Pixfmt = \"yuv444p10be\"\n\tMP4H265PixfmtYuv420p12be MP4H265Pixfmt = \"yuv420p12be\"\n\tMP4H265PixfmtYuv422p12be MP4H265Pixfmt = \"yuv422p12be\"\n\tMP4H265PixfmtYuv440p12be MP4H265Pixfmt = \"yuv440p12be\"\n\tMP4H265PixfmtYuv444p12be MP4H265Pixfmt = \"yuv444p12be\"\n)\n```\n\n```go\ntype MP4H265Preset string\n```\nPreset specifies the encoding speed preset. Valid values (from fastest to slowest):\n\n\\- ultrafast: Fastest encoding, lowest quality - superfast: Very fast encoding, lower quality - veryfast: Fast encoding, moderate quality - faster: Faster encoding, good quality - fast: Fast encoding, better quality - medium: Balanced preset, best quality\n\n```go\nconst (\n\tMP4H265PresetUltrafast MP4H265Preset = \"ultrafast\"\n\tMP4H265PresetSuperfast MP4H265Preset = \"superfast\"\n\tMP4H265PresetVeryfast  MP4H265Preset = \"veryfast\"\n\tMP4H265PresetFaster    MP4H265Preset = \"faster\"\n\tMP4H265PresetFast      MP4H265Preset = \"fast\"\n\tMP4H265PresetMedium    MP4H265Preset = \"medium\"\n)\n```\n\n```go\ntype MP4H265Profilev string\n```\nProfilev specifies the H.265 profile. Valid values:\n\n\\- main: Main profile, good for most applications - main10: Main 10-bit profile, supports 10-bit color - mainstillpicture: Still picture profile, optimized for single images\n\n```go\nconst (\n\tMP4H265ProfilevMain             MP4H265Profilev = \"main\"\n\tMP4H265ProfilevMain10           MP4H265Profilev = \"main10\"\n\tMP4H265ProfilevMainstillpicture MP4H265Profilev = \"mainstillpicture\"\n)\n```\n\n```go\ntype MetricAssetsParams struct {\n\t// Inclusive UTC start date, YYYY-MM-DD. Supply both dates for a custom range of at\n\t// most 366 days. Omit both for the past 7 UTC calendar days including today.\n\tFrom param.Opt[string] `query:\"from,omitzero\" json:\"-\"`\n\t// Exclusive UTC end date, YYYY-MM-DD. Must be after from and at most 366 days\n\t// later.\n\tTo param.Opt[string] `query:\"to,omitzero\" json:\"-\"`\n\t// Response format. Defaults to JSON unless Accept requests CSV. Overrides Accept\n\t// when supplied; errors remain JSON.\n\t//\n\t// Any of \"json\", \"csv\".\n\tFormat MetricAssetsParamsFormat `query:\"format,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r MetricAssetsParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [MetricAssetsParams](#MetricAssetsParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype MetricAssetsParamsFormat string\n```\nResponse format. Defaults to JSON unless Accept requests CSV. Overrides Accept when supplied; errors remain JSON.\n\n```go\nconst (\n\tMetricAssetsParamsFormatJson MetricAssetsParamsFormat = \"json\"\n\tMetricAssetsParamsFormatCsv  MetricAssetsParamsFormat = \"csv\"\n)\n```\n\n```go\ntype MetricAssetsResponseEnvelope struct {\n\t// Data contains the requested report.\n\tData MetricsAssets `json:\"data\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tData        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nSuccessful metrics response.\n\n```go\nfunc (r MetricAssetsResponseEnvelope) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *MetricAssetsResponseEnvelope) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype MetricService struct {\n\tOptions []option.RequestOption\n}\n```\nMetricService contains methods and other services that help with interacting with the chunkify API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewMetricService](#NewMetricService) method instead.\n\n```go\nfunc NewMetricService(opts ...option.RequestOption) (r MetricService)\n```\nNewMetricService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *MetricService) Assets(ctx context.Context, query MetricAssetsParams, opts ...option.RequestOption) (res *MetricsAssets, err error)\n```\nRetrieve Asset outcomes, processing timings, output sizes, and source profiles by UTC creation date, as JSON or CSV, for the past 7 days by default.\n\n```go\nfunc (r *MetricService) Storage(ctx context.Context, query MetricStorageParams, opts ...option.RequestOption) (res *MetricsStorage, err error)\n```\nRetrieve recorded additions and successful removals by storage and UTC date. Historical coverage depends on event retention.\n\n```go\nfunc (r *MetricService) Usage(ctx context.Context, query MetricUsageParams, opts ...option.RequestOption) (res *MetricsUsage, err error)\n```\nRetrieve the Project's usage totals and daily values for a UTC date range, as JSON or CSV. Without dates, it covers the past 7 UTC calendar days.\n\n```go\ntype MetricStorageParams struct {\n\t// Inclusive UTC start date, YYYY-MM-DD. Supply both dates for a custom range of at\n\t// most 366 days. Omit both for the past 7 UTC calendar days including today.\n\tFrom param.Opt[string] `query:\"from,omitzero\" json:\"-\"`\n\t// Filter to one persistent storage configuration in the authenticated project.\n\tStorageID param.Opt[string] `query:\"storage_id,omitzero\" json:\"-\"`\n\t// Exclusive UTC end date, YYYY-MM-DD. Must be after from and at most 366 days\n\t// later.\n\tTo param.Opt[string] `query:\"to,omitzero\" json:\"-\"`\n\t// Response format. Defaults to JSON unless Accept requests CSV. Overrides Accept\n\t// when supplied; errors remain JSON.\n\t//\n\t// Any of \"json\", \"csv\".\n\tFormat MetricStorageParamsFormat `query:\"format,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r MetricStorageParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [MetricStorageParams](#MetricStorageParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype MetricStorageParamsFormat string\n```\nResponse format. Defaults to JSON unless Accept requests CSV. Overrides Accept when supplied; errors remain JSON.\n\n```go\nconst (\n\tMetricStorageParamsFormatJson MetricStorageParamsFormat = \"json\"\n\tMetricStorageParamsFormatCsv  MetricStorageParamsFormat = \"csv\"\n)\n```\n\n```go\ntype MetricStorageResponseEnvelope struct {\n\t// Data contains the requested report.\n\tData MetricsStorage `json:\"data\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tData        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nSuccessful metrics response.\n\n```go\nfunc (r MetricStorageResponseEnvelope) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *MetricStorageResponseEnvelope) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype MetricUsageParams struct {\n\t// Inclusive UTC start date, YYYY-MM-DD. Supply both dates for a custom range of at\n\t// most 366 days. Omit both for the past 7 UTC calendar days including today.\n\tFrom param.Opt[string] `query:\"from,omitzero\" json:\"-\"`\n\t// Exclusive UTC end date, YYYY-MM-DD. Must be after from and at most 366 days\n\t// later.\n\tTo param.Opt[string] `query:\"to,omitzero\" json:\"-\"`\n\t// Response format. Defaults to JSON unless Accept requests CSV. Overrides Accept\n\t// when supplied; errors remain JSON.\n\t//\n\t// Any of \"json\", \"csv\".\n\tFormat MetricUsageParamsFormat `query:\"format,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r MetricUsageParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [MetricUsageParams](#MetricUsageParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype MetricUsageParamsFormat string\n```\nResponse format. Defaults to JSON unless Accept requests CSV. Overrides Accept when supplied; errors remain JSON.\n\n```go\nconst (\n\tMetricUsageParamsFormatJson MetricUsageParamsFormat = \"json\"\n\tMetricUsageParamsFormatCsv  MetricUsageParamsFormat = \"csv\"\n)\n```\n\n```go\ntype MetricUsageResponseEnvelope struct {\n\t// Data contains the requested report.\n\tData MetricsUsage `json:\"data\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tData        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nSuccessful metrics response.\n\n```go\nfunc (r MetricUsageResponseEnvelope) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *MetricUsageResponseEnvelope) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype MetricsAssetCounts struct {\n\t// Completed specifies Assets with a recorded ready timestamp.\n\tCompleted int64 `json:\"completed\" api:\"required\"`\n\t// Failed specifies retained Assets currently in failed status.\n\tFailed int64 `json:\"failed\" api:\"required\"`\n\t// ProcessedSeconds specifies measured media duration of completed Assets,\n\t// preserving fractional seconds.\n\tProcessedSeconds float64 `json:\"processed_seconds\" api:\"required\"`\n\t// Saved specifies retained Assets created in the period.\n\tSaved int64 `json:\"saved\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCompleted        respjson.Field\n\t\tFailed           respjson.Field\n\t\tProcessedSeconds respjson.Field\n\t\tSaved            respjson.Field\n\t\tExtraFields      map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nAsset outcomes grouped by Asset creation date.\n\n```go\nfunc (r MetricsAssetCounts) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *MetricsAssetCounts) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype MetricsAssetDay struct {\n\t// Date specifies the UTC Asset creation day.\n\tDate string `json:\"date\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tDate        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n\tMetricsAssetValues\n}\n```\nAsset measurements grouped by creation day.\n\n```go\nfunc (r MetricsAssetDay) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *MetricsAssetDay) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype MetricsAssetOutputs struct {\n\t// MeasuredAssetCount specifies completed Assets with at least one measured\n\t// rendition.\n\tMeasuredAssetCount int64 `json:\"measured_asset_count\" api:\"required\"`\n\t// StaticBytes specifies the sum of measured ready static rendition sizes. Null\n\t// when no measurements exist.\n\tStaticBytes int64 `json:\"static_bytes\" api:\"required\"`\n\t// StaticSampleCount specifies ready static renditions with measured sizes.\n\tStaticSampleCount int64 `json:\"static_sample_count\" api:\"required\"`\n\t// StreamingBytes specifies the sum of measured streaming rendition sizes. Null\n\t// when no measurements exist.\n\tStreamingBytes int64 `json:\"streaming_bytes\" api:\"required\"`\n\t// StreamingSampleCount specifies streaming renditions with measured sizes.\n\tStreamingSampleCount int64 `json:\"streaming_sample_count\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tMeasuredAssetCount   respjson.Field\n\t\tStaticBytes          respjson.Field\n\t\tStaticSampleCount    respjson.Field\n\t\tStreamingBytes       respjson.Field\n\t\tStreamingSampleCount respjson.Field\n\t\tExtraFields          map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nMeasured output sizes for completed Assets. Sample counts describe measurement coverage.\n\n```go\nfunc (r MetricsAssetOutputs) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *MetricsAssetOutputs) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype MetricsAssetSources struct {\n\t// AssetsByCodec specifies Asset counts by normalized source video codec, including\n\t// unknown. All recorded codecs are returned.\n\tAssetsByCodec map[string]int64 `json:\"assets_by_codec\" api:\"required\"`\n\t// AssetsByDuration specifies Asset counts by source duration. Keys are under_1m,\n\t// 1_to_5m, 5_to_10m, 10_to_30m, 30_to_60m, over_60m and unknown. Boundaries are\n\t// 60, 300, 600, 1800 and 3600 seconds; exactly 3600 belongs to 30_to_60m.\n\tAssetsByDuration map[string]int64 `json:\"assets_by_duration\" api:\"required\"`\n\t// AssetsByResolution specifies Asset counts by source resolution. Keys are\n\t// up_to_576, 577_to_720, 721_to_1080, 1081_to_2159, 2160_plus and unknown, using\n\t// the shorter pixel edge.\n\tAssetsByResolution map[string]int64 `json:\"assets_by_resolution\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAssetsByCodec      respjson.Field\n\t\tAssetsByDuration   respjson.Field\n\t\tAssetsByResolution respjson.Field\n\t\tExtraFields        map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nSource profiles count Assets, not unique Sources.\n\n```go\nfunc (r MetricsAssetSources) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *MetricsAssetSources) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype MetricsAssetStreaming struct {\n\t// AssetCount specifies completed Assets, including those with no streaming\n\t// renditions.\n\tAssetCount int64 `json:\"asset_count\" api:\"required\"`\n\t// AssetsByHighestResolution specifies counts by highest measured streaming\n\t// resolution. Keys are up_to_576, 577_to_720, 721_to_1080, 1081_to_2159, 2160_plus\n\t// and unknown, using the shorter pixel edge.\n\tAssetsByHighestResolution map[string]int64 `json:\"assets_by_highest_resolution\" api:\"required\"`\n\t// RenditionCount specifies streaming renditions on completed Assets.\n\tRenditionCount int64 `json:\"rendition_count\" api:\"required\"`\n\t// RenditionsPerAsset specifies rendition_count divided by asset_count. Null when\n\t// no completed Assets exist.\n\tRenditionsPerAsset float64 `json:\"renditions_per_asset\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAssetCount                respjson.Field\n\t\tAssetsByHighestResolution respjson.Field\n\t\tRenditionCount            respjson.Field\n\t\tRenditionsPerAsset        respjson.Field\n\t\tExtraFields               map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nStreaming output distribution on completed Assets.\n\n```go\nfunc (r MetricsAssetStreaming) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *MetricsAssetStreaming) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype MetricsAssetTimings struct {\n\t// CompletionMedianSeconds specifies the median elapsed time from creation to full\n\t// readiness. Null when no samples exist.\n\tCompletionMedianSeconds float64 `json:\"completion_median_seconds\" api:\"required\"`\n\t// CompletionSampleCount specifies Assets with a full readiness measurement.\n\tCompletionSampleCount int64 `json:\"completion_sample_count\" api:\"required\"`\n\t// PlaybackMedianSeconds specifies the median elapsed time from creation to\n\t// playback readiness. Null when no samples exist.\n\tPlaybackMedianSeconds float64 `json:\"playback_median_seconds\" api:\"required\"`\n\t// PlaybackSampleCount specifies Assets with a playback readiness measurement.\n\tPlaybackSampleCount int64 `json:\"playback_sample_count\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCompletionMedianSeconds respjson.Field\n\t\tCompletionSampleCount   respjson.Field\n\t\tPlaybackMedianSeconds   respjson.Field\n\t\tPlaybackSampleCount     respjson.Field\n\t\tExtraFields             map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nLifecycle timing measurements. Period medians use all samples, not averages of daily medians.\n\n```go\nfunc (r MetricsAssetTimings) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *MetricsAssetTimings) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype MetricsAssetValues struct {\n\t// Asset outcomes grouped by Asset creation date.\n\tAssets MetricsAssetCounts `json:\"assets\" api:\"required\"`\n\t// Measured output sizes for completed Assets. Sample counts describe measurement\n\t// coverage.\n\tOutputs MetricsAssetOutputs `json:\"outputs\" api:\"required\"`\n\t// Source profiles count Assets, not unique Sources.\n\tSources MetricsAssetSources `json:\"sources\" api:\"required\"`\n\t// Streaming output distribution on completed Assets.\n\tStreaming MetricsAssetStreaming `json:\"streaming\" api:\"required\"`\n\t// Lifecycle timing measurements. Period medians use all samples, not averages of\n\t// daily medians.\n\tTimings MetricsAssetTimings `json:\"timings\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAssets      respjson.Field\n\t\tOutputs     respjson.Field\n\t\tSources     respjson.Field\n\t\tStreaming   respjson.Field\n\t\tTimings     respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nAsset measurements for a creation-date cohort.\n\n```go\nfunc (r MetricsAssetValues) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *MetricsAssetValues) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype MetricsAssets struct {\n\t// Daily specifies one record for each selected creation day, oldest first.\n\tDaily []MetricsAssetDay `json:\"daily\" api:\"required\"`\n\t// From specifies the inclusive UTC start date.\n\tFrom string `json:\"from\" api:\"required\"`\n\t// Summary specifies the complete creation-date cohort.\n\tSummary MetricsAssetValues `json:\"summary\" api:\"required\"`\n\t// To specifies the exclusive UTC end date.\n\tTo string `json:\"to\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tDaily       respjson.Field\n\t\tFrom        respjson.Field\n\t\tSummary     respjson.Field\n\t\tTo          respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nMeasurements saved on retained Assets. Explicit deletion can change historical results; temporary media cleanup does not erase saved Asset measurements.\n\n```go\nfunc (r MetricsAssets) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *MetricsAssets) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype MetricsCreditsSpent struct {\n\t// Amount specifies settled credits spent on assets. Integer units; 10000 units\n\t// equal USD 1 of credits.\n\tAssets int64 `json:\"assets\" api:\"required\"`\n\t// Amount specifies settled credits spent on egress. Integer units; 10000 units\n\t// equal USD 1 of credits.\n\tEgress int64 `json:\"egress\" api:\"required\"`\n\t// Amount specifies settled credits spent on static renditions. Integer units;\n\t// 10000 units equal USD 1 of credits.\n\tStaticRenditions int64 `json:\"static_renditions\" api:\"required\"`\n\t// Amount specifies settled credits spent on thumbnails. Integer units; 10000 units\n\t// equal USD 1 of credits.\n\tThumbnails int64 `json:\"thumbnails\" api:\"required\"`\n\t// Total specifies the sum of these media-processing and output-egress charges.\n\t// Integer units; 10000 units equal USD 1 of credits.\n\tTotal int64 `json:\"total\" api:\"required\"`\n\t// Amount specifies settled credits spent on transcodings. Integer units; 10000\n\t// units equal USD 1 of credits.\n\tTranscodings int64 `json:\"transcodings\" api:\"required\"`\n\t// Amount specifies settled credits spent on transcription. Integer units; 10000\n\t// units equal USD 1 of credits.\n\tTranscription int64 `json:\"transcription\" api:\"required\"`\n\t// Amount specifies settled credits spent on translation. Integer units; 10000\n\t// units equal USD 1 of credits.\n\tTranslation int64 `json:\"translation\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAssets           respjson.Field\n\t\tEgress           respjson.Field\n\t\tStaticRenditions respjson.Field\n\t\tThumbnails       respjson.Field\n\t\tTotal            respjson.Field\n\t\tTranscodings     respjson.Field\n\t\tTranscription    respjson.Field\n\t\tTranslation      respjson.Field\n\t\tExtraFields      map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nSettled credits in integer units, with 10000 units equal to USD 1 of credits. Category values are parts of total, not additional charges.\n\n```go\nfunc (r MetricsCreditsSpent) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *MetricsCreditsSpent) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype MetricsStorage struct {\n\t// From specifies the inclusive UTC start date.\n\tFrom string `json:\"from\" api:\"required\"`\n\t// Storages specifies persistent project storage configurations, including those\n\t// without recorded activity. Chunkify temporary storage is excluded.\n\tStorages []MetricsStorageEntry `json:\"storages\" api:\"required\"`\n\t// To specifies the exclusive UTC end date.\n\tTo string `json:\"to\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tFrom        respjson.Field\n\t\tStorages    respjson.Field\n\t\tTo          respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nRecorded additions and successful removals within event retention. Excludes external storage changes and does not measure current storage size.\n\n```go\nfunc (r MetricsStorage) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *MetricsStorage) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype MetricsStorageDay struct {\n\t// Date specifies the UTC event day.\n\tDate string `json:\"date\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tDate        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n\tMetricsStorageValues\n}\n```\nRecorded storage activity grouped by event day.\n\n```go\nfunc (r MetricsStorageDay) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *MetricsStorageDay) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype MetricsStorageEntry struct {\n\t// Daily specifies one record for each selected event day, oldest first.\n\tDaily []MetricsStorageDay `json:\"daily\" api:\"required\"`\n\t// StorageId identifies the persistent storage configuration.\n\tStorageID string `json:\"storage_id\" api:\"required\"`\n\t// Summary specifies recorded activity in the selected period.\n\tSummary MetricsStorageValues `json:\"summary\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tDaily       respjson.Field\n\t\tStorageID   respjson.Field\n\t\tSummary     respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nActivity for one persistent storage configuration.\n\n```go\nfunc (r MetricsStorageEntry) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *MetricsStorageEntry) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype MetricsStorageValues struct {\n\t// AssetBytesAdded specifies recorded Asset package additions.\n\tAssetBytesAdded int64 `json:\"asset_bytes_added\" api:\"required\"`\n\t// BytesRemoved specifies recorded successful file removals as a positive amount.\n\tBytesRemoved int64 `json:\"bytes_removed\" api:\"required\"`\n\t// NetBytesChange specifies additions minus successful removals. This may be\n\t// negative and is not bucket occupancy.\n\tNetBytesChange int64 `json:\"net_bytes_change\" api:\"required\"`\n\t// SourceBytesAdded specifies recorded Source additions.\n\tSourceBytesAdded int64 `json:\"source_bytes_added\" api:\"required\"`\n\t// StaticRenditionBytesAdded specifies recorded static rendition additions.\n\tStaticRenditionBytesAdded int64 `json:\"static_rendition_bytes_added\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAssetBytesAdded           respjson.Field\n\t\tBytesRemoved              respjson.Field\n\t\tNetBytesChange            respjson.Field\n\t\tSourceBytesAdded          respjson.Field\n\t\tStaticRenditionBytesAdded respjson.Field\n\t\tExtraFields               map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nRecorded storage activity in bytes.\n\n```go\nfunc (r MetricsStorageValues) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *MetricsStorageValues) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype MetricsUsage struct {\n\t// Daily specifies one record for every selected day, oldest first.\n\tDaily []MetricsUsageDay `json:\"daily\" api:\"required\"`\n\t// From specifies the inclusive UTC start date.\n\tFrom string `json:\"from\" api:\"required\"`\n\t// Summary specifies totals across the selected period.\n\tSummary MetricsUsageValues `json:\"summary\" api:\"required\"`\n\t// To specifies the exclusive UTC end date.\n\tTo string `json:\"to\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tDaily       respjson.Field\n\t\tFrom        respjson.Field\n\t\tSummary     respjson.Field\n\t\tTo          respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nProject usage for the selected UTC accounting period.\n\n```go\nfunc (r MetricsUsage) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *MetricsUsage) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype MetricsUsageAssets struct {\n\t// Failed specifies recorded failed Asset outcomes.\n\tFailed int64 `json:\"failed\" api:\"required\"`\n\t// InputSeconds specifies settled billable Asset input duration.\n\tInputSeconds int64 `json:\"input_seconds\" api:\"required\"`\n\t// Video duration in seconds by pricing resolution tier: sd, hd, 2k and uhd.\n\tInputSecondsByResolution map[string]int64 `json:\"input_seconds_by_resolution\" api:\"required\"`\n\t// Ready specifies recorded successful Asset outcomes.\n\tReady int64 `json:\"ready\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tFailed                   respjson.Field\n\t\tInputSeconds             respjson.Field\n\t\tInputSecondsByResolution respjson.Field\n\t\tReady                    respjson.Field\n\t\tExtraFields              map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nAsset processing usage.\n\n```go\nfunc (r MetricsUsageAssets) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *MetricsUsageAssets) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype MetricsUsageCaptions struct {\n\t// TranscriptionSeconds specifies audio duration transcribed.\n\tTranscriptionSeconds int64 `json:\"transcription_seconds\" api:\"required\"`\n\t// TranslationSeconds specifies caption duration translated, counted once per\n\t// target language.\n\tTranslationSeconds int64 `json:\"translation_seconds\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tTranscriptionSeconds respjson.Field\n\t\tTranslationSeconds   respjson.Field\n\t\tExtraFields          map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nCaption processing usage.\n\n```go\nfunc (r MetricsUsageCaptions) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *MetricsUsageCaptions) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype MetricsUsageDay struct {\n\t// Date specifies the UTC accounting day.\n\tDate string `json:\"date\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tDate        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n\tMetricsUsageValues\n}\n```\nDaily recorded usage. Inactive days contain zero counters.\n\n```go\nfunc (r MetricsUsageDay) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *MetricsUsageDay) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype MetricsUsageEgress struct {\n\t// Bytes specifies tariff-eligible output transfer bytes for Asset preparation.\n\tAssetPreparationBytes int64 `json:\"asset_preparation_bytes\" api:\"required\"`\n\t// Bytes specifies tariff-eligible output transfer bytes for streaming renditions.\n\tAssetRenditionBytes int64 `json:\"asset_rendition_bytes\" api:\"required\"`\n\t// BillableBytes specifies external output bytes charged after the allowance.\n\tBillableBytes int64 `json:\"billable_bytes\" api:\"required\"`\n\t// Bytes specifies tariff-eligible output transfer bytes for captions.\n\tCaptionBytes int64 `json:\"caption_bytes\" api:\"required\"`\n\t// IncludedBytes specifies external output bytes covered by the allowance.\n\tIncludedBytes int64 `json:\"included_bytes\" api:\"required\"`\n\t// Bytes specifies tariff-eligible output transfer bytes for static renditions.\n\tStaticRenditionBytes int64 `json:\"static_rendition_bytes\" api:\"required\"`\n\t// Bytes specifies tariff-eligible output transfer bytes for Thumbnails.\n\tThumbnailBytes int64 `json:\"thumbnail_bytes\" api:\"required\"`\n\t// TotalBytes specifies the sum of tariff-eligible output transfers.\n\tTotalBytes int64 `json:\"total_bytes\" api:\"required\"`\n\t// Bytes specifies tariff-eligible output transfer bytes for Transcodings.\n\tTranscodingBytes int64 `json:\"transcoding_bytes\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAssetPreparationBytes respjson.Field\n\t\tAssetRenditionBytes   respjson.Field\n\t\tBillableBytes         respjson.Field\n\t\tCaptionBytes          respjson.Field\n\t\tIncludedBytes         respjson.Field\n\t\tStaticRenditionBytes  respjson.Field\n\t\tThumbnailBytes        respjson.Field\n\t\tTotalBytes            respjson.Field\n\t\tTranscodingBytes      respjson.Field\n\t\tExtraFields           map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nRecorded output egress eligible for the transfer tariff. Provider-exempt transfers are excluded.\n\n```go\nfunc (r MetricsUsageEgress) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *MetricsUsageEgress) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype MetricsUsageNotifications struct {\n\t// Failed specifies recorded failed webhook delivery attempts.\n\tFailed int64 `json:\"failed\" api:\"required\"`\n\t// Sent specifies recorded successful webhook deliveries.\n\tSent int64 `json:\"sent\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tFailed      respjson.Field\n\t\tSent        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nWebhook delivery activity.\n\n```go\nfunc (r MetricsUsageNotifications) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *MetricsUsageNotifications) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype MetricsUsageSources struct {\n\t// Bytes specifies cumulative ingested Source bytes, not current storage occupancy.\n\tBytes int64 `json:\"bytes\" api:\"required\"`\n\t// Created specifies the number of ingested Sources.\n\tCreated int64 `json:\"created\" api:\"required\"`\n\t// IngestedSeconds specifies ingested media duration in seconds.\n\tIngestedSeconds int64 `json:\"ingested_seconds\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tBytes           respjson.Field\n\t\tCreated         respjson.Field\n\t\tIngestedSeconds respjson.Field\n\t\tExtraFields     map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nSource ingestion activity.\n\n```go\nfunc (r MetricsUsageSources) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *MetricsUsageSources) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype MetricsUsageStaticRenditions struct {\n\t// AudioOutputSeconds specifies the audio-only subset of output_seconds.\n\tAudioOutputSeconds int64 `json:\"audio_output_seconds\" api:\"required\"`\n\t// OutputSeconds specifies settled billable output duration, including audio-only\n\t// output.\n\tOutputSeconds int64 `json:\"output_seconds\" api:\"required\"`\n\t// Video duration in seconds by pricing resolution tier. Contains sd, hd, 2k and\n\t// uhd keys; audio is reported separately.\n\tOutputSecondsByResolution map[string]int64 `json:\"output_seconds_by_resolution\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAudioOutputSeconds        respjson.Field\n\t\tOutputSeconds             respjson.Field\n\t\tOutputSecondsByResolution respjson.Field\n\t\tExtraFields               map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nStatic rendition usage.\n\n```go\nfunc (r MetricsUsageStaticRenditions) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *MetricsUsageStaticRenditions) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype MetricsUsageThumbnails struct {\n\t// ImagesPublished specifies the number of published thumbnail images.\n\tImagesPublished int64 `json:\"images_published\" api:\"required\"`\n\t// SetsFailed specifies recorded failed Thumbnail requests.\n\tSetsFailed int64 `json:\"sets_failed\" api:\"required\"`\n\t// SetsReady specifies recorded successful Thumbnail requests.\n\tSetsReady int64 `json:\"sets_ready\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tImagesPublished respjson.Field\n\t\tSetsFailed      respjson.Field\n\t\tSetsReady       respjson.Field\n\t\tExtraFields     map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nThumbnail processing usage.\n\n```go\nfunc (r MetricsUsageThumbnails) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *MetricsUsageThumbnails) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype MetricsUsageTranscodings struct {\n\t// AudioOutputSeconds specifies the audio-only subset of output_seconds.\n\tAudioOutputSeconds int64 `json:\"audio_output_seconds\" api:\"required\"`\n\t// Failed specifies recorded failed Transcoding outcomes.\n\tFailed int64 `json:\"failed\" api:\"required\"`\n\t// OutputSeconds specifies settled billable output duration, including audio-only\n\t// output.\n\tOutputSeconds int64 `json:\"output_seconds\" api:\"required\"`\n\t// Video duration in seconds by pricing resolution tier. Contains sd, hd, 2k and\n\t// uhd keys; audio is reported separately.\n\tOutputSecondsByResolution map[string]int64 `json:\"output_seconds_by_resolution\" api:\"required\"`\n\t// Ready specifies recorded successful Transcoding outcomes.\n\tReady int64 `json:\"ready\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAudioOutputSeconds        respjson.Field\n\t\tFailed                    respjson.Field\n\t\tOutputSeconds             respjson.Field\n\t\tOutputSecondsByResolution respjson.Field\n\t\tReady                     respjson.Field\n\t\tExtraFields               map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nStandalone Transcoding usage.\n\n```go\nfunc (r MetricsUsageTranscodings) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *MetricsUsageTranscodings) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype MetricsUsageUploads struct {\n\t// Bytes specifies successfully uploaded bytes.\n\tBytes int64 `json:\"bytes\" api:\"required\"`\n\t// Completed specifies successfully completed Uploads.\n\tCompleted int64 `json:\"completed\" api:\"required\"`\n\t// Failed specifies recorded failed Uploads.\n\tFailed int64 `json:\"failed\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tBytes       respjson.Field\n\t\tCompleted   respjson.Field\n\t\tFailed      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nUpload activity.\n\n```go\nfunc (r MetricsUsageUploads) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *MetricsUsageUploads) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype MetricsUsageValues struct {\n\t// Asset processing usage.\n\tAssets MetricsUsageAssets `json:\"assets\" api:\"required\"`\n\t// Caption processing usage.\n\tCaptions MetricsUsageCaptions `json:\"captions\" api:\"required\"`\n\t// Settled credits in integer units, with 10000 units equal to USD 1 of credits.\n\t// Category values are parts of total, not additional charges.\n\tCreditsSpent MetricsCreditsSpent `json:\"credits_spent\" api:\"required\"`\n\t// Recorded output egress eligible for the transfer tariff. Provider-exempt\n\t// transfers are excluded.\n\tEgress MetricsUsageEgress `json:\"egress\" api:\"required\"`\n\t// Webhook delivery activity.\n\tNotifications MetricsUsageNotifications `json:\"notifications\" api:\"required\"`\n\t// Source ingestion activity.\n\tSources MetricsUsageSources `json:\"sources\" api:\"required\"`\n\t// Static rendition usage.\n\tStaticRenditions MetricsUsageStaticRenditions `json:\"static_renditions\" api:\"required\"`\n\t// Thumbnail processing usage.\n\tThumbnails MetricsUsageThumbnails `json:\"thumbnails\" api:\"required\"`\n\t// Standalone Transcoding usage.\n\tTranscodings MetricsUsageTranscodings `json:\"transcodings\" api:\"required\"`\n\t// Upload activity.\n\tUploads MetricsUsageUploads `json:\"uploads\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAssets           respjson.Field\n\t\tCaptions         respjson.Field\n\t\tCreditsSpent     respjson.Field\n\t\tEgress           respjson.Field\n\t\tNotifications    respjson.Field\n\t\tSources          respjson.Field\n\t\tStaticRenditions respjson.Field\n\t\tThumbnails       respjson.Field\n\t\tTranscodings     respjson.Field\n\t\tUploads          respjson.Field\n\t\tExtraFields      map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nRecorded usage for a UTC accounting day or a complete period.\n\n```go\nfunc (r MetricsUsageValues) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *MetricsUsageValues) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype Notification struct {\n\t// Unique identifier of the notification\n\tID string `json:\"id\" api:\"required\"`\n\t// Timestamp when the notification was created\n\tCreatedAt time.Time `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\t// Type of event that triggered this notification\n\t//\n\t// Any of \"job.created\", \"job.completed\", \"job.failed\", \"job.cancelled\",\n\t// \"source.created\", \"source.deleted\", \"upload.created\", \"upload.completed\",\n\t// \"upload.failed\", \"upload.expired\", \"asset.created\", \"asset.ready\",\n\t// \"asset.playback_ready\", \"asset.failed\", \"asset.expired\", \"asset.deleted\",\n\t// \"asset.output.created\", \"asset.output.ready\", \"asset.output.failed\",\n\t// \"asset.output.deleted\", \"workflow_run.created\", \"workflow_run.completed\",\n\t// \"workflow_run.failed\", \"workflow_run.cancelled\", \"transcoding.created\",\n\t// \"transcoding.ready\", \"transcoding.failed\", \"transcoding.cancelled\",\n\t// \"transcoding.expired\", \"transcoding.deleted\", \"thumbnail.created\",\n\t// \"thumbnail.ready\", \"thumbnail.failed\", \"thumbnail.expired\", \"thumbnail.deleted\".\n\tEvent WebhookEvent `json:\"event\" api:\"required\"`\n\t// ID of the object that triggered this notification\n\tObjectID string `json:\"object_id\" api:\"required\"`\n\t// JSON payload that was sent to the webhook endpoint\n\tPayload string `json:\"payload\" api:\"required\"`\n\t// Webhook endpoint configuration that received this notification\n\tWebhook Webhook `json:\"webhook\" api:\"required\"`\n\t// Originating event ID, when recorded by the event log.\n\tEventID string `json:\"event_id\"`\n\t// HTTP status code received from the webhook endpoint\n\tResponseStatusCode int64 `json:\"response_status_code\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID                 respjson.Field\n\t\tCreatedAt          respjson.Field\n\t\tEvent              respjson.Field\n\t\tObjectID           respjson.Field\n\t\tPayload            respjson.Field\n\t\tWebhook            respjson.Field\n\t\tEventID            respjson.Field\n\t\tResponseStatusCode respjson.Field\n\t\tExtraFields        map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r Notification) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *Notification) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype NotificationGetResponseEnvelope struct {\n\t// Data contains the response object\n\tData Notification `json:\"data\" api:\"required\"`\n\t// Status indicates the response status \"success\"\n\tStatus constant.Success `json:\"status\" default:\"success\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tData        respjson.Field\n\t\tStatus      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r NotificationGetResponseEnvelope) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *NotificationGetResponseEnvelope) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype NotificationListParams struct {\n\t// Filter deliveries by their originating event ID.\n\tEventID param.Opt[string] `query:\"event_id,omitzero\" json:\"-\"`\n\t// Pagination limit (max 100)\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Filter by object ID\n\tObjectID param.Opt[string] `query:\"object_id,omitzero\" json:\"-\"`\n\t// Pagination offset\n\tOffset param.Opt[int64] `query:\"offset,omitzero\" json:\"-\"`\n\t// Filter by webhook ID\n\tWebhookID param.Opt[string]             `query:\"webhook_id,omitzero\" json:\"-\"`\n\tCreated   NotificationListParamsCreated `query:\"created,omitzero\" json:\"-\"`\n\t// Filter by events\n\tEvents             []WebhookEvent                           `query:\"events,omitzero\" json:\"-\"`\n\tResponseStatusCode NotificationListParamsResponseStatusCode `query:\"response_status_code,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r NotificationListParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [NotificationListParams](#NotificationListParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype NotificationListParamsCreated struct {\n\t// Filter by creation date greater than or equal (UNIX epoch time)\n\tGte param.Opt[int64] `query:\"gte,omitzero\" format:\"epoch\" json:\"-\"`\n\t// Filter by creation date less than or equal (UNIX epoch time)\n\tLte param.Opt[int64] `query:\"lte,omitzero\" format:\"epoch\" json:\"-\"`\n\t// Sort by creation date (asc/desc)\n\t//\n\t// Any of \"asc\", \"desc\".\n\tSort string `query:\"sort,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r NotificationListParamsCreated) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [NotificationListParamsCreated](#NotificationListParamsCreated)'s query parameters as \\`url.Values\\`.\n\n```go\ntype NotificationListParamsResponseStatusCode struct {\n\t// Filter by exact response status code\n\tEq param.Opt[int64] `query:\"eq,omitzero\" json:\"-\"`\n\t// Filter by response status code greater than or equal\n\tGte param.Opt[int64] `query:\"gte,omitzero\" json:\"-\"`\n\t// Filter by response status code less than or equal\n\tLte param.Opt[int64] `query:\"lte,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r NotificationListParamsResponseStatusCode) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [NotificationListParamsResponseStatusCode](#NotificationListParamsResponseStatusCode)'s query parameters as \\`url.Values\\`.\n\n```go\ntype NotificationNewParams struct {\n\t// Event specifies the type of event that triggered the notification.\n\t//\n\t// Any of \"job.created\", \"job.completed\", \"job.failed\", \"job.cancelled\",\n\t// \"source.created\", \"source.deleted\", \"upload.created\", \"upload.completed\",\n\t// \"upload.failed\", \"upload.expired\", \"asset.created\", \"asset.ready\",\n\t// \"asset.playback_ready\", \"asset.failed\", \"asset.expired\", \"asset.deleted\",\n\t// \"asset.output.created\", \"asset.output.ready\", \"asset.output.failed\",\n\t// \"asset.output.deleted\", \"workflow_run.created\", \"workflow_run.completed\",\n\t// \"workflow_run.failed\", \"workflow_run.cancelled\", \"transcoding.created\",\n\t// \"transcoding.ready\", \"transcoding.failed\", \"transcoding.cancelled\",\n\t// \"transcoding.expired\", \"transcoding.deleted\", \"thumbnail.created\",\n\t// \"thumbnail.ready\", \"thumbnail.failed\", \"thumbnail.expired\", \"thumbnail.deleted\".\n\tEvent WebhookEvent `json:\"event,omitzero\" api:\"required\"`\n\t// ID of the resource that triggered the event. Use the caption, static rendition,\n\t// or thumbnail ID for their Asset child events. Replaying asset events,\n\t// job.created, or source.created requires a retained snapshot. Resource deletion\n\t// does not prevent replay.\n\tObjectID string `json:\"object_id\" api:\"required\"`\n\t// WebhookId specifies the webhook endpoint that will receive the notification.\n\tWebhookID string `json:\"webhook_id\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r NotificationNewParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *NotificationNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype NotificationNewResponseEnvelope struct {\n\t// Data contains the response object\n\tData Notification `json:\"data\" api:\"required\"`\n\t// Status indicates the response status \"success\"\n\tStatus constant.Success `json:\"status\" default:\"success\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tData        respjson.Field\n\t\tStatus      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r NotificationNewResponseEnvelope) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *NotificationNewResponseEnvelope) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype NotificationPayloadAsset struct {\n\t// Unique identifier of the notification\n\tID string `json:\"id\" api:\"required\"`\n\t// Payload for the event named in event. Replays preserve the original data;\n\t// retrieve the resource for current state and fresh signed URLs.\n\tData NotificationPayloadAssetData `json:\"data\" api:\"required\"`\n\t// Timestamp of the event payload.\n\tDate time.Time `json:\"date\" api:\"required\" format:\"date-time\"`\n\t// Type of event that triggered the notification.\n\t//\n\t// Any of \"asset.created\", \"asset.ready\", \"asset.playback_ready\", \"asset.failed\",\n\t// \"asset.expired\".\n\tEvent NotificationPayloadAssetEvent `json:\"event\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tData        respjson.Field\n\t\tDate        respjson.Field\n\t\tEvent       respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nNotification for asset.created, asset.ready, asset.playback\\_ready, asset.failed and asset.expired.\n\n```go\nfunc (r NotificationPayloadAsset) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *NotificationPayloadAsset) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype NotificationPayloadAssetData struct {\n\tAsset Asset `json:\"asset\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAsset       respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r NotificationPayloadAssetData) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *NotificationPayloadAssetData) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype NotificationPayloadAssetDeleted struct {\n\t// Unique identifier of the notification\n\tID string `json:\"id\" api:\"required\"`\n\t// Payload for the event named in event. Replays preserve the original data;\n\t// retrieve the resource for current state and fresh signed URLs.\n\tData NotificationPayloadAssetDeletedData `json:\"data\" api:\"required\"`\n\t// Timestamp of the event payload.\n\tDate time.Time `json:\"date\" api:\"required\" format:\"date-time\"`\n\t// Type of event that triggered the notification.\n\t//\n\t// Any of \"asset.deleted\".\n\tEvent NotificationPayloadAssetDeletedEvent `json:\"event\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tData        respjson.Field\n\t\tDate        respjson.Field\n\t\tEvent       respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nNotification for asset.deleted.\n\n```go\nfunc (r NotificationPayloadAssetDeleted) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *NotificationPayloadAssetDeleted) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype NotificationPayloadAssetDeletedData struct {\n\tAsset Asset `json:\"asset\" api:\"required\"`\n\t// FilesDeleted indicates whether the requested cleanup of the Asset's generated\n\t// files completed without error. Missing files count as successful cleanup. False\n\t// means these files were not removed at event time. Private transcript text and\n\t// saved subtitle copies are always scheduled for asynchronous cleanup.\n\tFilesDeleted bool `json:\"files_deleted\" api:\"required\"`\n\t// DeletedSize specifies the recorded generated-file bytes removed with the Asset,\n\t// including attached outputs. Omitted when cleanup was not requested or the total\n\t// is unavailable. Missing storage objects still contribute their recorded sizes.\n\tDeletedSize int64 `json:\"deleted_size\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAsset        respjson.Field\n\t\tFilesDeleted respjson.Field\n\t\tDeletedSize  respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nPayload for asset.deleted. The Asset snapshot is preserved after record deletion.\n\n```go\nfunc (r NotificationPayloadAssetDeletedData) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *NotificationPayloadAssetDeletedData) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype NotificationPayloadAssetDeletedEvent string\n```\nType of event that triggered the notification.\n\n```go\nconst (\n\tNotificationPayloadAssetDeletedEventAssetDeleted NotificationPayloadAssetDeletedEvent = \"asset.deleted\"\n)\n```\n\n```go\ntype NotificationPayloadAssetEvent string\n```\nType of event that triggered the notification.\n\n```go\nconst (\n\tNotificationPayloadAssetEventAssetCreated       NotificationPayloadAssetEvent = \"asset.created\"\n\tNotificationPayloadAssetEventAssetReady         NotificationPayloadAssetEvent = \"asset.ready\"\n\tNotificationPayloadAssetEventAssetPlaybackReady NotificationPayloadAssetEvent = \"asset.playback_ready\"\n\tNotificationPayloadAssetEventAssetFailed        NotificationPayloadAssetEvent = \"asset.failed\"\n\tNotificationPayloadAssetEventAssetExpired       NotificationPayloadAssetEvent = \"asset.expired\"\n)\n```\n\n```go\ntype NotificationPayloadAssetOutput struct {\n\t// Unique identifier of the notification\n\tID string `json:\"id\" api:\"required\"`\n\t// Payload for the event named in event. Replays preserve the original data;\n\t// retrieve the resource for current state and fresh signed URLs.\n\tData NotificationPayloadAssetOutputData `json:\"data\" api:\"required\"`\n\t// Timestamp of the event payload.\n\tDate time.Time `json:\"date\" api:\"required\" format:\"date-time\"`\n\t// Type of event that triggered the notification.\n\t//\n\t// Any of \"asset.output.created\", \"asset.output.ready\", \"asset.output.failed\".\n\tEvent NotificationPayloadAssetOutputEvent `json:\"event\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tData        respjson.Field\n\t\tDate        respjson.Field\n\t\tEvent       respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nNotification for asset.output.created, asset.output.ready and asset.output.failed.\n\n```go\nfunc (r NotificationPayloadAssetOutput) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *NotificationPayloadAssetOutput) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype NotificationPayloadAssetOutputData struct {\n\t// Output contains the canonical typed output snapshot at the event time, matching\n\t// the output API.\n\tOutput AssetOutputUnion `json:\"output\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tOutput      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nPayload for Asset output creation, readiness, and failure events.\n\n```go\nfunc (r NotificationPayloadAssetOutputData) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *NotificationPayloadAssetOutputData) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype NotificationPayloadAssetOutputDeleted struct {\n\t// Unique identifier of the notification\n\tID string `json:\"id\" api:\"required\"`\n\t// Payload for the event named in event. Replays preserve the original data;\n\t// retrieve the resource for current state and fresh signed URLs.\n\tData NotificationPayloadAssetOutputDeletedData `json:\"data\" api:\"required\"`\n\t// Timestamp of the event payload.\n\tDate time.Time `json:\"date\" api:\"required\" format:\"date-time\"`\n\t// Type of event that triggered the notification.\n\t//\n\t// Any of \"asset.output.deleted\".\n\tEvent NotificationPayloadAssetOutputDeletedEvent `json:\"event\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tData        respjson.Field\n\t\tDate        respjson.Field\n\t\tEvent       respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nNotification for asset.output.deleted.\n\n```go\nfunc (r NotificationPayloadAssetOutputDeleted) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *NotificationPayloadAssetOutputDeleted) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype NotificationPayloadAssetOutputDeletedData struct {\n\t// FilesDeleted indicates whether the requested cleanup of the output files\n\t// completed without error. Missing files count as successful cleanup. False means\n\t// these files were not removed at event time. Private transcript text and saved\n\t// subtitle copies are always scheduled for asynchronous cleanup.\n\tFilesDeleted bool `json:\"files_deleted\" api:\"required\"`\n\t// Output contains the canonical typed output snapshot before removal.\n\tOutput AssetOutputUnion `json:\"output\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tFilesDeleted respjson.Field\n\t\tOutput       respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nPayload for asset.output.deleted. The output snapshot is preserved after removal.\n\n```go\nfunc (r NotificationPayloadAssetOutputDeletedData) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *NotificationPayloadAssetOutputDeletedData) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype NotificationPayloadAssetOutputDeletedEvent string\n```\nType of event that triggered the notification.\n\n```go\nconst (\n\tNotificationPayloadAssetOutputDeletedEventAssetOutputDeleted NotificationPayloadAssetOutputDeletedEvent = \"asset.output.deleted\"\n)\n```\n\n```go\ntype NotificationPayloadAssetOutputEvent string\n```\nType of event that triggered the notification.\n\n```go\nconst (\n\tNotificationPayloadAssetOutputEventAssetOutputCreated NotificationPayloadAssetOutputEvent = \"asset.output.created\"\n\tNotificationPayloadAssetOutputEventAssetOutputReady   NotificationPayloadAssetOutputEvent = \"asset.output.ready\"\n\tNotificationPayloadAssetOutputEventAssetOutputFailed  NotificationPayloadAssetOutputEvent = \"asset.output.failed\"\n)\n```\n\n```go\ntype NotificationPayloadJobCompleted struct {\n\t// Unique identifier of the notification\n\tID string `json:\"id\" api:\"required\"`\n\t// Payload for the event named in event. Replays preserve the original data;\n\t// retrieve the resource for current state and fresh signed URLs.\n\tData NotificationPayloadJobCompletedData `json:\"data\" api:\"required\"`\n\t// Timestamp of the event payload.\n\tDate time.Time `json:\"date\" api:\"required\" format:\"date-time\"`\n\t// Type of event that triggered the notification.\n\t//\n\t// Any of \"job.completed\".\n\tEvent NotificationPayloadJobCompletedEvent `json:\"event\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tData        respjson.Field\n\t\tDate        respjson.Field\n\t\tEvent       respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nNotification for job.completed.\n\n```go\nfunc (r NotificationPayloadJobCompleted) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *NotificationPayloadJobCompleted) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype NotificationPayloadJobCompletedData struct {\n\t// List of files generated by the job\n\tFiles []JobFile `json:\"files\" api:\"required\"`\n\tJob   Job       `json:\"job\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tFiles       respjson.Field\n\t\tJob         respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nPayload data structure for job.completed events\n\n```go\nfunc (r NotificationPayloadJobCompletedData) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *NotificationPayloadJobCompletedData) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype NotificationPayloadJobCompletedEvent string\n```\nType of event that triggered the notification.\n\n```go\nconst (\n\tNotificationPayloadJobCompletedEventJobCompleted NotificationPayloadJobCompletedEvent = \"job.completed\"\n)\n```\n\n```go\ntype NotificationPayloadJobCreated struct {\n\t// Unique identifier of the notification\n\tID string `json:\"id\" api:\"required\"`\n\t// Payload for the event named in event. Replays preserve the original data;\n\t// retrieve the resource for current state and fresh signed URLs.\n\tData NotificationPayloadJobCreatedData `json:\"data\" api:\"required\"`\n\t// Timestamp of the event payload.\n\tDate time.Time `json:\"date\" api:\"required\" format:\"date-time\"`\n\t// Type of event that triggered the notification.\n\t//\n\t// Any of \"job.created\".\n\tEvent NotificationPayloadJobCreatedEvent `json:\"event\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tData        respjson.Field\n\t\tDate        respjson.Field\n\t\tEvent       respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nNotification for job.created.\n\n```go\nfunc (r NotificationPayloadJobCreated) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *NotificationPayloadJobCreated) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype NotificationPayloadJobCreatedData struct {\n\tJob Job `json:\"job\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tJob         respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nPayload for job.created. A standalone Job has been accepted for processing; execution may not have started.\n\n```go\nfunc (r NotificationPayloadJobCreatedData) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *NotificationPayloadJobCreatedData) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype NotificationPayloadJobCreatedEvent string\n```\nType of event that triggered the notification.\n\n```go\nconst (\n\tNotificationPayloadJobCreatedEventJobCreated NotificationPayloadJobCreatedEvent = \"job.created\"\n)\n```\n\n```go\ntype NotificationPayloadJobFailed struct {\n\t// Unique identifier of the notification\n\tID string `json:\"id\" api:\"required\"`\n\t// Payload for the event named in event. Replays preserve the original data;\n\t// retrieve the resource for current state and fresh signed URLs.\n\tData NotificationPayloadJobFailedData `json:\"data\" api:\"required\"`\n\t// Timestamp of the event payload.\n\tDate time.Time `json:\"date\" api:\"required\" format:\"date-time\"`\n\t// Type of event that triggered the notification.\n\t//\n\t// Any of \"job.failed\", \"job.cancelled\".\n\tEvent NotificationPayloadJobFailedEvent `json:\"event\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tData        respjson.Field\n\t\tDate        respjson.Field\n\t\tEvent       respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nNotification for job.failed and job.cancelled.\n\n```go\nfunc (r NotificationPayloadJobFailed) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *NotificationPayloadJobFailed) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype NotificationPayloadJobFailedData struct {\n\tJob Job `json:\"job\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tJob         respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nPayload data structure for job.failed and job.cancelled events\n\n```go\nfunc (r NotificationPayloadJobFailedData) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *NotificationPayloadJobFailedData) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype NotificationPayloadJobFailedEvent string\n```\nType of event that triggered the notification.\n\n```go\nconst (\n\tNotificationPayloadJobFailedEventJobFailed    NotificationPayloadJobFailedEvent = \"job.failed\"\n\tNotificationPayloadJobFailedEventJobCancelled NotificationPayloadJobFailedEvent = \"job.cancelled\"\n)\n```\n\n```go\ntype NotificationPayloadSourceCreated struct {\n\t// Unique identifier of the notification\n\tID string `json:\"id\" api:\"required\"`\n\t// Payload for the event named in event. Replays preserve the original data;\n\t// retrieve the resource for current state and fresh signed URLs.\n\tData NotificationPayloadSourceCreatedData `json:\"data\" api:\"required\"`\n\t// Timestamp of the event payload.\n\tDate time.Time `json:\"date\" api:\"required\" format:\"date-time\"`\n\t// Type of event that triggered the notification.\n\t//\n\t// Any of \"source.created\".\n\tEvent NotificationPayloadSourceCreatedEvent `json:\"event\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tData        respjson.Field\n\t\tDate        respjson.Field\n\t\tEvent       respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nNotification for source.created.\n\n```go\nfunc (r NotificationPayloadSourceCreated) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *NotificationPayloadSourceCreated) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype NotificationPayloadSourceCreatedData struct {\n\tSource Source `json:\"source\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tSource      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nPayload for source.created. The Source has been validated and saved. Thumbnails may still be pending.\n\n```go\nfunc (r NotificationPayloadSourceCreatedData) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *NotificationPayloadSourceCreatedData) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype NotificationPayloadSourceCreatedEvent string\n```\nType of event that triggered the notification.\n\n```go\nconst (\n\tNotificationPayloadSourceCreatedEventSourceCreated NotificationPayloadSourceCreatedEvent = \"source.created\"\n)\n```\n\n```go\ntype NotificationPayloadSourceDeleted struct {\n\t// Unique identifier of the notification\n\tID string `json:\"id\" api:\"required\"`\n\t// Payload for the event named in event. Replays preserve the original data;\n\t// retrieve the resource for current state and fresh signed URLs.\n\tData NotificationPayloadSourceDeletedData `json:\"data\" api:\"required\"`\n\t// Timestamp of the event payload.\n\tDate time.Time `json:\"date\" api:\"required\" format:\"date-time\"`\n\t// Type of event that triggered the notification.\n\t//\n\t// Any of \"source.deleted\".\n\tEvent NotificationPayloadSourceDeletedEvent `json:\"event\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tData        respjson.Field\n\t\tDate        respjson.Field\n\t\tEvent       respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nNotification for source.deleted.\n\n```go\nfunc (r NotificationPayloadSourceDeleted) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *NotificationPayloadSourceDeleted) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype NotificationPayloadSourceDeletedData struct {\n\t// Source contains the last snapshot before deletion.\n\tSource Source `json:\"source\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tSource      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nPayload for source.deleted. The Source was deleted on request or after the team's data retention period. Resources created from it are preserved and no longer report its source\\_id.\n\n```go\nfunc (r NotificationPayloadSourceDeletedData) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *NotificationPayloadSourceDeletedData) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype NotificationPayloadSourceDeletedEvent string\n```\nType of event that triggered the notification.\n\n```go\nconst (\n\tNotificationPayloadSourceDeletedEventSourceDeleted NotificationPayloadSourceDeletedEvent = \"source.deleted\"\n)\n```\n\n```go\ntype NotificationPayloadThumbnail struct {\n\t// Unique identifier of the notification\n\tID string `json:\"id\" api:\"required\"`\n\t// Payload for the event named in event. Replays preserve the original data;\n\t// retrieve the resource for current state and fresh signed URLs.\n\tData NotificationPayloadThumbnailData `json:\"data\" api:\"required\"`\n\t// Timestamp of the event payload.\n\tDate time.Time `json:\"date\" api:\"required\" format:\"date-time\"`\n\t// Type of event that triggered the notification.\n\t//\n\t// Any of \"thumbnail.created\", \"thumbnail.ready\", \"thumbnail.failed\",\n\t// \"thumbnail.expired\", \"thumbnail.deleted\".\n\tEvent NotificationPayloadThumbnailEvent `json:\"event\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tData        respjson.Field\n\t\tDate        respjson.Field\n\t\tEvent       respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nNotification for thumbnail.created, thumbnail.ready, thumbnail.failed, thumbnail.expired and thumbnail.deleted.\n\n```go\nfunc (r NotificationPayloadThumbnail) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *NotificationPayloadThumbnail) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype NotificationPayloadThumbnailData struct {\n\t// Thumbnail contains the resource at the event time.\n\tThumbnail Thumbnail `json:\"thumbnail\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tThumbnail   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA canonical thumbnail snapshot for standalone thumbnail.\\\\\\* events. Asset-owned thumbnails use the Asset output event payload.\n\n```go\nfunc (r NotificationPayloadThumbnailData) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *NotificationPayloadThumbnailData) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype NotificationPayloadThumbnailEvent string\n```\nType of event that triggered the notification.\n\n```go\nconst (\n\tNotificationPayloadThumbnailEventThumbnailCreated NotificationPayloadThumbnailEvent = \"thumbnail.created\"\n\tNotificationPayloadThumbnailEventThumbnailReady   NotificationPayloadThumbnailEvent = \"thumbnail.ready\"\n\tNotificationPayloadThumbnailEventThumbnailFailed  NotificationPayloadThumbnailEvent = \"thumbnail.failed\"\n\tNotificationPayloadThumbnailEventThumbnailExpired NotificationPayloadThumbnailEvent = \"thumbnail.expired\"\n\tNotificationPayloadThumbnailEventThumbnailDeleted NotificationPayloadThumbnailEvent = \"thumbnail.deleted\"\n)\n```\n\n```go\ntype NotificationPayloadTranscoding struct {\n\t// Unique identifier of the notification\n\tID string `json:\"id\" api:\"required\"`\n\t// Payload for the event named in event. Replays preserve the original data;\n\t// retrieve the resource for current state and fresh signed URLs.\n\tData NotificationPayloadTranscodingData `json:\"data\" api:\"required\"`\n\t// Timestamp of the event payload.\n\tDate time.Time `json:\"date\" api:\"required\" format:\"date-time\"`\n\t// Type of event that triggered the notification.\n\t//\n\t// Any of \"transcoding.created\", \"transcoding.ready\", \"transcoding.failed\",\n\t// \"transcoding.cancelled\", \"transcoding.expired\", \"transcoding.deleted\".\n\tEvent NotificationPayloadTranscodingEvent `json:\"event\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tData        respjson.Field\n\t\tDate        respjson.Field\n\t\tEvent       respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nNotification for transcoding.created, transcoding.ready, transcoding.failed, transcoding.cancelled, transcoding.expired and transcoding.deleted.\n\n```go\nfunc (r NotificationPayloadTranscoding) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *NotificationPayloadTranscoding) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype NotificationPayloadTranscodingData struct {\n\t// Transcoding contains the canonical resource snapshot at the event time.\n\tTranscoding Transcoding `json:\"transcoding\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tTranscoding respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nPayload for transcoding.created, transcoding.ready, transcoding.failed, transcoding.cancelled, transcoding.expired and transcoding.deleted events.\n\n```go\nfunc (r NotificationPayloadTranscodingData) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *NotificationPayloadTranscodingData) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype NotificationPayloadTranscodingEvent string\n```\nType of event that triggered the notification.\n\n```go\nconst (\n\tNotificationPayloadTranscodingEventTranscodingCreated   NotificationPayloadTranscodingEvent = \"transcoding.created\"\n\tNotificationPayloadTranscodingEventTranscodingReady     NotificationPayloadTranscodingEvent = \"transcoding.ready\"\n\tNotificationPayloadTranscodingEventTranscodingFailed    NotificationPayloadTranscodingEvent = \"transcoding.failed\"\n\tNotificationPayloadTranscodingEventTranscodingCancelled NotificationPayloadTranscodingEvent = \"transcoding.cancelled\"\n\tNotificationPayloadTranscodingEventTranscodingExpired   NotificationPayloadTranscodingEvent = \"transcoding.expired\"\n\tNotificationPayloadTranscodingEventTranscodingDeleted   NotificationPayloadTranscodingEvent = \"transcoding.deleted\"\n)\n```\n\n```go\ntype NotificationPayloadUploadCompleted struct {\n\t// Unique identifier of the notification\n\tID string `json:\"id\" api:\"required\"`\n\t// Payload for the event named in event. Replays preserve the original data;\n\t// retrieve the resource for current state and fresh signed URLs.\n\tData NotificationPayloadUploadCompletedData `json:\"data\" api:\"required\"`\n\t// Timestamp of the event payload.\n\tDate time.Time `json:\"date\" api:\"required\" format:\"date-time\"`\n\t// Type of event that triggered the notification.\n\t//\n\t// Any of \"upload.completed\".\n\tEvent NotificationPayloadUploadCompletedEvent `json:\"event\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tData        respjson.Field\n\t\tDate        respjson.Field\n\t\tEvent       respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nNotification for upload.completed.\n\n```go\nfunc (r NotificationPayloadUploadCompleted) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *NotificationPayloadUploadCompleted) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype NotificationPayloadUploadCompletedData struct {\n\tSource Source `json:\"source\" api:\"required\"`\n\tUpload Upload `json:\"upload\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tSource      respjson.Field\n\t\tUpload      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nPayload data structure for upload.completed events\n\n```go\nfunc (r NotificationPayloadUploadCompletedData) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *NotificationPayloadUploadCompletedData) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype NotificationPayloadUploadCompletedEvent string\n```\nType of event that triggered the notification.\n\n```go\nconst (\n\tNotificationPayloadUploadCompletedEventUploadCompleted NotificationPayloadUploadCompletedEvent = \"upload.completed\"\n)\n```\n\n```go\ntype NotificationPayloadUploadCreated struct {\n\t// Unique identifier of the notification\n\tID string `json:\"id\" api:\"required\"`\n\t// Payload for the event named in event. Replays preserve the original data;\n\t// retrieve the resource for current state and fresh signed URLs.\n\tData NotificationPayloadUploadCreatedData `json:\"data\" api:\"required\"`\n\t// Timestamp of the event payload.\n\tDate time.Time `json:\"date\" api:\"required\" format:\"date-time\"`\n\t// Type of event that triggered the notification.\n\t//\n\t// Any of \"upload.created\".\n\tEvent NotificationPayloadUploadCreatedEvent `json:\"event\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tData        respjson.Field\n\t\tDate        respjson.Field\n\t\tEvent       respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nNotification for upload.created.\n\n```go\nfunc (r NotificationPayloadUploadCreated) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *NotificationPayloadUploadCreated) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype NotificationPayloadUploadCreatedData struct {\n\tUpload Upload `json:\"upload\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tUpload      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nPayload for upload.created. A waiting upload session has been created; its Source is created only after successful completion. Transfer credentials are not included.\n\n```go\nfunc (r NotificationPayloadUploadCreatedData) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *NotificationPayloadUploadCreatedData) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype NotificationPayloadUploadCreatedEvent string\n```\nType of event that triggered the notification.\n\n```go\nconst (\n\tNotificationPayloadUploadCreatedEventUploadCreated NotificationPayloadUploadCreatedEvent = \"upload.created\"\n)\n```\n\n```go\ntype NotificationPayloadUploadFailed struct {\n\t// Unique identifier of the notification\n\tID string `json:\"id\" api:\"required\"`\n\t// Payload for the event named in event. Replays preserve the original data;\n\t// retrieve the resource for current state and fresh signed URLs.\n\tData NotificationPayloadUploadFailedData `json:\"data\" api:\"required\"`\n\t// Timestamp of the event payload.\n\tDate time.Time `json:\"date\" api:\"required\" format:\"date-time\"`\n\t// Type of event that triggered the notification.\n\t//\n\t// Any of \"upload.failed\", \"upload.expired\".\n\tEvent NotificationPayloadUploadFailedEvent `json:\"event\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tData        respjson.Field\n\t\tDate        respjson.Field\n\t\tEvent       respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nNotification for upload.failed and upload.expired.\n\n```go\nfunc (r NotificationPayloadUploadFailed) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *NotificationPayloadUploadFailed) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype NotificationPayloadUploadFailedData struct {\n\tUpload Upload `json:\"upload\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tUpload      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nPayload data structure for upload.failed and upload.expired events\n\n```go\nfunc (r NotificationPayloadUploadFailedData) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *NotificationPayloadUploadFailedData) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype NotificationPayloadUploadFailedEvent string\n```\nType of event that triggered the notification.\n\n```go\nconst (\n\tNotificationPayloadUploadFailedEventUploadFailed  NotificationPayloadUploadFailedEvent = \"upload.failed\"\n\tNotificationPayloadUploadFailedEventUploadExpired NotificationPayloadUploadFailedEvent = \"upload.expired\"\n)\n```\n\n```go\ntype NotificationPayloadWorkflowRun struct {\n\t// Unique identifier of the notification\n\tID string `json:\"id\" api:\"required\"`\n\t// Payload for the event named in event. Replays preserve the original data;\n\t// retrieve the resource for current state and fresh signed URLs.\n\tData NotificationPayloadWorkflowRunData `json:\"data\" api:\"required\"`\n\t// Timestamp of the event payload.\n\tDate time.Time `json:\"date\" api:\"required\" format:\"date-time\"`\n\t// Type of event that triggered the notification.\n\t//\n\t// Any of \"workflow_run.created\", \"workflow_run.completed\", \"workflow_run.failed\",\n\t// \"workflow_run.cancelled\".\n\tEvent NotificationPayloadWorkflowRunEvent `json:\"event\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tData        respjson.Field\n\t\tDate        respjson.Field\n\t\tEvent       respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nNotification for workflow\\_run.created, workflow\\_run.completed, workflow\\_run.failed and workflow\\_run.cancelled.\n\n```go\nfunc (r NotificationPayloadWorkflowRun) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *NotificationPayloadWorkflowRun) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype NotificationPayloadWorkflowRunData struct {\n\t// ActionRuns specifies every action admitted by this run, including its rule and\n\t// action IDs, type, input, status, output reference, and any skip or failure\n\t// reason. Actions from other runs are excluded.\n\tActionRuns []AssetActionRun `json:\"action_runs\" api:\"required\"`\n\t// Snapshot of the Workflow run when the event was recorded.\n\tWorkflowRun WorkflowRun `json:\"workflow_run\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tActionRuns  respjson.Field\n\t\tWorkflowRun respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nPayload for workflow\\_run.created, workflow\\_run.completed, workflow\\_run.failed, and workflow\\_run.cancelled. The run and its actions are snapshots taken when the event was recorded.\n\n```go\nfunc (r NotificationPayloadWorkflowRunData) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *NotificationPayloadWorkflowRunData) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype NotificationPayloadWorkflowRunEvent string\n```\nType of event that triggered the notification.\n\n```go\nconst (\n\tNotificationPayloadWorkflowRunEventWorkflowRunCreated   NotificationPayloadWorkflowRunEvent = \"workflow_run.created\"\n\tNotificationPayloadWorkflowRunEventWorkflowRunCompleted NotificationPayloadWorkflowRunEvent = \"workflow_run.completed\"\n\tNotificationPayloadWorkflowRunEventWorkflowRunFailed    NotificationPayloadWorkflowRunEvent = \"workflow_run.failed\"\n\tNotificationPayloadWorkflowRunEventWorkflowRunCancelled NotificationPayloadWorkflowRunEvent = \"workflow_run.cancelled\"\n)\n```\n\n```go\ntype NotificationService struct {\n\tOptions []option.RequestOption\n}\n```\nNotificationService contains methods and other services that help with interacting with the chunkify API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewNotificationService](#NewNotificationService) method instead.\n\n```go\nfunc NewNotificationService(opts ...option.RequestOption) (r NotificationService)\n```\nNewNotificationService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *NotificationService) Delete(ctx context.Context, notificationID string, opts ...option.RequestOption) (err error)\n```\nDelete a delivered notification from the Project's history. Notifications still being processed cannot be deleted, and the webhook is unchanged.\n\n```go\nfunc (r *NotificationService) Get(ctx context.Context, notificationID string, opts ...option.RequestOption) (res *Notification, err error)\n```\nRetrieve a notification delivery, including its event, payload, target webhook, and the response status code returned by your endpoint.\n\n```go\nfunc (r *NotificationService) List(ctx context.Context, query NotificationListParams, opts ...option.RequestOption) (res *pagination.PaginatedResults[Notification], err error)\n```\nList webhook notification deliveries in the Project. Filter by event, object, webhook, response status code, or creation date, with pagination.\n\n```go\nfunc (r *NotificationService) ListAutoPaging(ctx context.Context, query NotificationListParams, opts ...option.RequestOption) *pagination.PaginatedResultsAutoPager[Notification]\n```\nList webhook notification deliveries in the Project. Filter by event, object, webhook, response status code, or creation date, with pagination.\n\n```go\nfunc (r *NotificationService) New(ctx context.Context, body NotificationNewParams, opts ...option.RequestOption) (res *Notification, err error)\n```\nSend an event notification to one of the Project's webhook endpoints. Recorded events are replayed with their original payload.\n\n```go\ntype PlayerAppearance struct {\n\t// Dark specifies the player colours in dark mode.\n\tDark PlayerPalette `json:\"dark\" api:\"required\"`\n\t// HiddenControls lists the player buttons to hide. Other buttons appear when the\n\t// browser and video support them.\n\tHiddenControls []PlayerControl `json:\"hidden_controls\" api:\"required\"`\n\t// Light specifies the player colours in light mode.\n\tLight PlayerPalette `json:\"light\" api:\"required\"`\n\t// Mode specifies which palette the player uses. auto follows the viewer's system\n\t// setting.\n\t//\n\t// Any of \"auto\", \"light\", \"dark\".\n\tMode PlayerThemeMode `json:\"mode\" api:\"required\"`\n\t// Brand specifies the logo shown in the control bar. Omitted when the Project has\n\t// none.\n\tBrand PlayerBrand `json:\"brand\"`\n\t// Watermark specifies the logo shown over the video. Omitted when the Project has\n\t// none.\n\tWatermark PlayerWatermark `json:\"watermark\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tDark           respjson.Field\n\t\tHiddenControls respjson.Field\n\t\tLight          respjson.Field\n\t\tMode           respjson.Field\n\t\tBrand          respjson.Field\n\t\tWatermark      respjson.Field\n\t\tExtraFields    map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r PlayerAppearance) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *PlayerAppearance) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype PlayerAppearanceParams struct {\n\t// Brand specifies a logo shown in the control bar. Omit for no logo.\n\tBrand PlayerBrandParams `json:\"brand,omitzero\"`\n\t// Dark specifies the player colours in dark mode. Omit to use the default dark\n\t// colours.\n\tDark PlayerPaletteParams `json:\"dark,omitzero\"`\n\t// HiddenControls lists the player buttons to hide. Defaults to [\"pip\"]. Other\n\t// buttons appear when the browser and video support them.\n\tHiddenControls []PlayerControl `json:\"hidden_controls,omitzero\"`\n\t// Light specifies the player colours in light mode. Omit to use the default light\n\t// colours.\n\tLight PlayerPaletteParams `json:\"light,omitzero\"`\n\t// Mode specifies which palette the player uses. auto follows the viewer's system\n\t// setting. An embed can override it with its theme URL parameter. Defaults to\n\t// auto.\n\t//\n\t// Any of \"auto\", \"light\", \"dark\".\n\tMode PlayerThemeMode `json:\"mode,omitzero\"`\n\t// Watermark specifies a logo shown over the video. Omit for no watermark.\n\tWatermark PlayerWatermarkParams `json:\"watermark,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r PlayerAppearanceParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *PlayerAppearanceParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype PlayerBrand struct {\n\t// ImageUrl specifies the URL of the control-bar logo, served by Chunkify's CDN.\n\tImageURL string `json:\"image_url\" api:\"required\"`\n\t// Label specifies the logo's accessible name. Omitted when not set.\n\tLabel string `json:\"label\"`\n\t// LinkUrl specifies the page the logo opens in a new tab. Omitted when the logo\n\t// has no link.\n\tLinkURL string `json:\"link_url\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tImageURL    respjson.Field\n\t\tLabel       respjson.Field\n\t\tLinkURL     respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r PlayerBrand) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *PlayerBrand) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype PlayerBrandParams struct {\n\t// ImageUrl specifies the control-bar logo. Send a data:image/png, data:image/webp\n\t// or data:image/jpeg base64 URL to upload a new image, up to 256 KB and 2048\n\t// pixels on each side. Send the current image_url to keep the saved image.\n\tImageURL string `json:\"image_url\" api:\"required\"`\n\t// Label specifies the logo's accessible name, such as your company name.\n\tLabel param.Opt[string] `json:\"label,omitzero\"`\n\t// LinkUrl specifies an http or https page the logo opens in a new tab. Omit for a\n\t// logo without a link.\n\tLinkURL param.Opt[string] `json:\"link_url,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nThe property ImageURL is required.\n\n```go\nfunc (r PlayerBrandParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *PlayerBrandParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype PlayerControl string\n```\n\n```go\nconst (\n\tPlayerControlCaptions   PlayerControl = \"captions\"\n\tPlayerControlSettings   PlayerControl = \"settings\"\n\tPlayerControlPip        PlayerControl = \"pip\"\n\tPlayerControlFullscreen PlayerControl = \"fullscreen\"\n\tPlayerControlCast       PlayerControl = \"cast\"\n\tPlayerControlAirplay    PlayerControl = \"airplay\"\n\tPlayerControlMute       PlayerControl = \"mute\"\n)\n```\n\n```go\ntype PlayerPalette struct {\n\t// Accent specifies the colour of progress and active controls.\n\tAccent string `json:\"accent\" api:\"required\"`\n\t// Primary specifies the colour of control icons and text.\n\tPrimary string `json:\"primary\" api:\"required\"`\n\t// Secondary specifies the background colour of player buttons. #00000000 makes the\n\t// buttons transparent.\n\tSecondary string `json:\"secondary\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAccent      respjson.Field\n\t\tPrimary     respjson.Field\n\t\tSecondary   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r PlayerPalette) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *PlayerPalette) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype PlayerPaletteParams struct {\n\t// Accent specifies the colour of progress and active controls, as #rrggbb or\n\t// #rrggbbaa.\n\tAccent string `json:\"accent\" api:\"required\"`\n\t// Primary specifies the colour of control icons and text, as #rrggbb or #rrggbbaa.\n\tPrimary string `json:\"primary\" api:\"required\"`\n\t// Secondary specifies the background colour of player buttons, as #rrggbb or\n\t// #rrggbbaa. Use #00000000 for transparent buttons.\n\tSecondary string `json:\"secondary\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nThe properties Accent, Primary, Secondary are required.\n\n```go\nfunc (r PlayerPaletteParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *PlayerPaletteParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype PlayerThemeMode string\n```\n\n```go\nconst (\n\tPlayerThemeModeAuto  PlayerThemeMode = \"auto\"\n\tPlayerThemeModeLight PlayerThemeMode = \"light\"\n\tPlayerThemeModeDark  PlayerThemeMode = \"dark\"\n)\n```\n\n```go\ntype PlayerWatermark struct {\n\t// Autohide specifies whether the watermark hides with the player controls.\n\tAutohide bool `json:\"autohide\" api:\"required\"`\n\t// ImageUrl specifies the URL of the watermark image, served by Chunkify's CDN.\n\tImageURL string `json:\"image_url\" api:\"required\"`\n\t// Offset specifies the watermark's distance from its corner, as a percentage of\n\t// the player's smaller side.\n\tOffset float64 `json:\"offset\" api:\"required\"`\n\t// Opacity specifies the watermark's opacity, from 0 to 1.\n\tOpacity float64 `json:\"opacity\" api:\"required\"`\n\t// Position specifies the corner that holds the watermark.\n\t//\n\t// Any of \"top-left\", \"top-right\", \"bottom-left\", \"bottom-right\".\n\tPosition PlayerWatermarkPosition `json:\"position\" api:\"required\"`\n\t// Size specifies the watermark's size, as a percentage of its default size.\n\tSize float64 `json:\"size\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAutohide    respjson.Field\n\t\tImageURL    respjson.Field\n\t\tOffset      respjson.Field\n\t\tOpacity     respjson.Field\n\t\tPosition    respjson.Field\n\t\tSize        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r PlayerWatermark) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *PlayerWatermark) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype PlayerWatermarkParams struct {\n\t// ImageUrl specifies the watermark image. Send a data:image/png, data:image/webp\n\t// or data:image/jpeg base64 URL to upload a new image, up to 256 KB and 2048\n\t// pixels on each side. Send the current image_url to keep the saved image.\n\tImageURL string `json:\"image_url\" api:\"required\"`\n\t// Autohide specifies whether the watermark hides with the player controls.\n\t// Defaults to false.\n\tAutohide param.Opt[bool] `json:\"autohide,omitzero\"`\n\t// Offset specifies the watermark's distance from its corner, as a percentage of\n\t// the player's smaller side. From 0 to 20. Defaults to 3.\n\tOffset param.Opt[float64] `json:\"offset,omitzero\"`\n\t// Opacity specifies the watermark's opacity, from 0 (invisible) to 1 (opaque).\n\t// Defaults to 1.\n\tOpacity param.Opt[float64] `json:\"opacity,omitzero\"`\n\t// Size specifies the watermark's size, as a percentage of its default size, which\n\t// is 10% of the player's smaller side. For example, 50 shows it at half size and\n\t// 120 at 120%. From 1 to 300. Defaults to 100.\n\tSize param.Opt[float64] `json:\"size,omitzero\"`\n\t// Position specifies the corner that holds the watermark. Defaults to top-right.\n\t//\n\t// Any of \"top-left\", \"top-right\", \"bottom-left\", \"bottom-right\".\n\tPosition PlayerWatermarkPosition `json:\"position,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nThe property ImageURL is required.\n\n```go\nfunc (r PlayerWatermarkParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *PlayerWatermarkParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype PlayerWatermarkPosition string\n```\n\n```go\nconst (\n\tPlayerWatermarkPositionTopLeft     PlayerWatermarkPosition = \"top-left\"\n\tPlayerWatermarkPositionTopRight    PlayerWatermarkPosition = \"top-right\"\n\tPlayerWatermarkPositionBottomLeft  PlayerWatermarkPosition = \"bottom-left\"\n\tPlayerWatermarkPositionBottomRight PlayerWatermarkPosition = \"bottom-right\"\n)\n```\n\n```go\ntype Project struct {\n\t// Id is the unique identifier for the project.\n\tID string `json:\"id\" api:\"required\"`\n\t// Defaults for new Assets, including Assets created from Uploads.\n\tAssetDefaults AssetDefaults `json:\"asset_defaults\" api:\"required\"`\n\t// Timestamp when the project was created\n\tCreatedAt time.Time `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\t// Name of the project\n\tName string `json:\"name\" api:\"required\"`\n\t// Player colours and controls used by Chunkify-hosted playback pages, such as\n\t// embeds.\n\tPlayerAppearance PlayerAppearance `json:\"player_appearance\" api:\"required\"`\n\t// Slug is the slug for the project.\n\tSlug string `json:\"slug\" api:\"required\"`\n\t// StorageId identifier where project files are stored\n\tStorageID string `json:\"storage_id\" api:\"required\"`\n\t// DefaultWorkflowId specifies the default Workflow for new Assets. Set null to\n\t// clear it.\n\tDefaultWorkflowID string `json:\"default_workflow_id\" api:\"nullable\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID                respjson.Field\n\t\tAssetDefaults     respjson.Field\n\t\tCreatedAt         respjson.Field\n\t\tName              respjson.Field\n\t\tPlayerAppearance  respjson.Field\n\t\tSlug              respjson.Field\n\t\tStorageID         respjson.Field\n\t\tDefaultWorkflowID respjson.Field\n\t\tExtraFields       map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r Project) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *Project) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProjectAnalyticsConnectionDeleteParams struct {\n\tProjectID string `path:\"projectId\" api:\"required\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype ProjectAnalyticsConnectionGetParams struct {\n\tProjectID string `path:\"projectId\" api:\"required\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype ProjectAnalyticsConnectionGetResponseEnvelope struct {\n\t// A saved source for analytics reports. The dashboard player default is\n\t// independent of the connection selected in reports. External players keep their\n\t// own configuration. Only the public ingest key is included; read and management\n\t// credentials stay private.\n\tData   AnalyticsConnection `json:\"data\" api:\"required\"`\n\tStatus constant.Success    `json:\"status\" default:\"success\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tData        respjson.Field\n\t\tStatus      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r ProjectAnalyticsConnectionGetResponseEnvelope) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProjectAnalyticsConnectionGetResponseEnvelope) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProjectAnalyticsConnectionKeyListParams struct {\n\tProjectID string `path:\"projectId\" api:\"required\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype ProjectAnalyticsConnectionKeyListResponse struct {\n\tData   []AnalyticsKey   `json:\"data\" api:\"required\"`\n\tStatus constant.Success `json:\"status\" default:\"success\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tData        respjson.Field\n\t\tStatus      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r ProjectAnalyticsConnectionKeyListResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProjectAnalyticsConnectionKeyListResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProjectAnalyticsConnectionKeyNewParams struct {\n\tProjectID string `path:\"projectId\" api:\"required\" json:\"-\"`\n\t// Purpose distinguishes player ingestion, read-only API access and a separate\n\t// read-only MCP credential. Read and MCP keys have the same collector permissions.\n\t//\n\t// Any of \"player\", \"read\", \"mcp\".\n\tPurpose ProjectAnalyticsConnectionKeyNewParamsPurpose `json:\"purpose,omitzero\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ProjectAnalyticsConnectionKeyNewParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ProjectAnalyticsConnectionKeyNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProjectAnalyticsConnectionKeyNewParamsPurpose string\n```\nPurpose distinguishes player ingestion, read-only API access and a separate read-only MCP credential. Read and MCP keys have the same collector permissions.\n\n```go\nconst (\n\tProjectAnalyticsConnectionKeyNewParamsPurposePlayer ProjectAnalyticsConnectionKeyNewParamsPurpose = \"player\"\n\tProjectAnalyticsConnectionKeyNewParamsPurposeRead   ProjectAnalyticsConnectionKeyNewParamsPurpose = \"read\"\n\tProjectAnalyticsConnectionKeyNewParamsPurposeMcp    ProjectAnalyticsConnectionKeyNewParamsPurpose = \"mcp\"\n)\n```\n\n```go\ntype ProjectAnalyticsConnectionKeyNewResponse struct {\n\t// One key per purpose. Public player values remain available; read and MCP values\n\t// are returned only on creation or rotation.\n\tData AnalyticsKey `json:\"data\" api:\"required\"`\n\t// Key is the new credential. Save read and MCP keys now; later reads omit their\n\t// values. Public keys remain available.\n\tKey    string           `json:\"key\" api:\"required\"`\n\tStatus constant.Success `json:\"status\" default:\"success\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tData        respjson.Field\n\t\tKey         respjson.Field\n\t\tStatus      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r ProjectAnalyticsConnectionKeyNewResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProjectAnalyticsConnectionKeyNewResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProjectAnalyticsConnectionKeyRotateParams struct {\n\tProjectID    string `path:\"projectId\" api:\"required\" json:\"-\"`\n\tConnectionID string `path:\"connectionId\" api:\"required\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype ProjectAnalyticsConnectionKeyRotateResponse struct {\n\t// One key per purpose. Public player values remain available; read and MCP values\n\t// are returned only on creation or rotation.\n\tData AnalyticsKey `json:\"data\" api:\"required\"`\n\t// Key is the new credential. Save read and MCP keys now; later reads omit their\n\t// values. Public keys remain available.\n\tKey    string           `json:\"key\" api:\"required\"`\n\tStatus constant.Success `json:\"status\" default:\"success\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tData        respjson.Field\n\t\tKey         respjson.Field\n\t\tStatus      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r ProjectAnalyticsConnectionKeyRotateResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProjectAnalyticsConnectionKeyRotateResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProjectAnalyticsConnectionKeyService struct {\n\tOptions []option.RequestOption\n}\n```\nProjectAnalyticsConnectionKeyService contains methods and other services that help with interacting with the chunkify API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewProjectAnalyticsConnectionKeyService](#NewProjectAnalyticsConnectionKeyService) method instead.\n\n```go\nfunc NewProjectAnalyticsConnectionKeyService(opts ...option.RequestOption) (r ProjectAnalyticsConnectionKeyService)\n```\nNewProjectAnalyticsConnectionKeyService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *ProjectAnalyticsConnectionKeyService) List(ctx context.Context, connectionID string, query ProjectAnalyticsConnectionKeyListParams, opts ...option.RequestOption) (res *ProjectAnalyticsConnectionKeyListResponse, err error)\n```\nList keys for a hosted Chunkify Analytics server: the public key used by players to send events, and read-only secret key records for dashboard and MCP access. Secret values are not returned. Requires a team owner and a Team Access Key.\n\n```go\nfunc (r *ProjectAnalyticsConnectionKeyService) New(ctx context.Context, connectionID string, params ProjectAnalyticsConnectionKeyNewParams, opts ...option.RequestOption) (res *ProjectAnalyticsConnectionKeyNewResponse, err error)\n```\nGenerate a public key for players to send events, or a read-only secret key for a dashboard or MCP client to query a hosted Chunkify Analytics server. Save secret keys when returned. Requires a team owner and a Team Access Key.\n\n```go\nfunc (r *ProjectAnalyticsConnectionKeyService) Rotate(ctx context.Context, keyID string, body ProjectAnalyticsConnectionKeyRotateParams, opts ...option.RequestOption) (res *ProjectAnalyticsConnectionKeyRotateResponse, err error)\n```\nRotate a public or read-only secret key for a hosted Chunkify Analytics server. Update the player, dashboard, or MCP client with the new key; the old key stops working immediately. Requires a team owner and a Team Access Key.\n\n```go\ntype ProjectAnalyticsConnectionListResponse struct {\n\t// Saved connections in creation order.\n\tData   []AnalyticsConnection `json:\"data\" api:\"required\"`\n\tStatus constant.Success      `json:\"status\" default:\"success\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tData        respjson.Field\n\t\tStatus      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r ProjectAnalyticsConnectionListResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProjectAnalyticsConnectionListResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProjectAnalyticsConnectionNewParams struct {\n\t// Name identifies this connection in the dashboard.\n\tName string `json:\"name\" api:\"required\"`\n\t// Type specifies whether Chunkify manages the analytics project.\n\t//\n\t// Any of \"hosted\", \"custom\".\n\tType ProjectAnalyticsConnectionNewParamsType `json:\"type,omitzero\" api:\"required\"`\n\t// Endpoint specifies the custom server base URL. Required for custom connections\n\t// and omitted for hosted connections.\n\tEndpoint param.Opt[string] `json:\"endpoint,omitzero\"`\n\t// PublicIngestKey optionally enables preview tracking for a custom connection.\n\t// Supply the public ingestion key for the same analytics project as read_key. It\n\t// is returned in connection reads and used in browser code. Omit for hosted\n\t// connections.\n\tPublicIngestKey param.Opt[string] `json:\"public_ingest_key,omitzero\"`\n\t// ReadKey supplies a read-only project credential for a custom connection.\n\t// Required for custom connections and omitted for hosted connections. Stored\n\t// encrypted and never returned.\n\tReadKey param.Opt[string] `json:\"read_key,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ProjectAnalyticsConnectionNewParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ProjectAnalyticsConnectionNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProjectAnalyticsConnectionNewParamsType string\n```\nType specifies whether Chunkify manages the analytics project.\n\n```go\nconst (\n\tProjectAnalyticsConnectionNewParamsTypeHosted ProjectAnalyticsConnectionNewParamsType = \"hosted\"\n\tProjectAnalyticsConnectionNewParamsTypeCustom ProjectAnalyticsConnectionNewParamsType = \"custom\"\n)\n```\n\n```go\ntype ProjectAnalyticsConnectionNewResponse struct {\n\t// A saved source for analytics reports. The dashboard player default is\n\t// independent of the connection selected in reports. External players keep their\n\t// own configuration. Only the public ingest key is included; read and management\n\t// credentials stay private.\n\tData   AnalyticsConnection `json:\"data\" api:\"required\"`\n\tStatus constant.Success    `json:\"status\" default:\"success\"`\n\t// PublicKey is the hosted ingestion key. It remains available as public_ingest_key\n\t// on the connection. Omitted for custom connections.\n\tPublicKey string `json:\"public_key\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tData        respjson.Field\n\t\tStatus      respjson.Field\n\t\tPublicKey   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r ProjectAnalyticsConnectionNewResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProjectAnalyticsConnectionNewResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProjectAnalyticsConnectionService struct {\n\tOptions []option.RequestOption\n\tKeys    ProjectAnalyticsConnectionKeyService\n}\n```\nProjectAnalyticsConnectionService contains methods and other services that help with interacting with the chunkify API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewProjectAnalyticsConnectionService](#NewProjectAnalyticsConnectionService) method instead.\n\n```go\nfunc NewProjectAnalyticsConnectionService(opts ...option.RequestOption) (r ProjectAnalyticsConnectionService)\n```\nNewProjectAnalyticsConnectionService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *ProjectAnalyticsConnectionService) Delete(ctx context.Context, connectionID string, body ProjectAnalyticsConnectionDeleteParams, opts ...option.RequestOption) (err error)\n```\nFor hosted connections, delete the linked analytics project and invalidate its keys before removing the saved connection. Stored events expire under the collector retention policy. For custom connections, remove only the saved credentials and connection; the remote server, project and data remain unchanged. Only team owners can delete connections. An uncertain remote result preserves the connection for reconciliation.\n\n```go\nfunc (r *ProjectAnalyticsConnectionService) Get(ctx context.Context, connectionID string, query ProjectAnalyticsConnectionGetParams, opts ...option.RequestOption) (res *AnalyticsConnection, err error)\n```\nRetrieve one analytics connection in its owning Project, including its type, endpoint, status, and allowed origins. Secret keys are not returned.\n\n```go\nfunc (r *ProjectAnalyticsConnectionService) List(ctx context.Context, projectID string, opts ...option.RequestOption) (res *ProjectAnalyticsConnectionListResponse, err error)\n```\nList the analytics connections saved for a Project, with their type, endpoint, and status. Listing connections does not activate any of them.\n\n```go\nfunc (r *ProjectAnalyticsConnectionService) New(ctx context.Context, projectID string, body ProjectAnalyticsConnectionNewParams, opts ...option.RequestOption) (res *ProjectAnalyticsConnectionNewResponse, err error)\n```\nAdd a hosted connection or validate and save a custom server. Only team owners can create connections. Retry a known failed hosted setup with the same name to resume its saved project; an unknown creation outcome requires operator reconciliation.\n\n```go\nfunc (r *ProjectAnalyticsConnectionService) Update(ctx context.Context, connectionID string, params ProjectAnalyticsConnectionUpdateParams, opts ...option.RequestOption) (res *AnalyticsConnection, err error)\n```\nRename a connection or validate replacement custom credentials. Only team owners can update connections. Existing settings remain unchanged if validation fails.\n\n```go\ntype ProjectAnalyticsConnectionUpdateParams struct {\n\tProjectID string `path:\"projectId\" api:\"required\" json:\"-\"`\n\t// DefaultForDashboard selects this ready connection for Chunkify dashboard\n\t// players, public previews, the Player page and newly generated snippets. Requires\n\t// a public ingest key. Setting true replaces the previous default atomically.\n\t// Setting false disables dashboard tracking if no default remains; another\n\t// connection is not selected automatically. Existing external players keep their\n\t// own configuration.\n\tDefaultForDashboard param.Opt[bool] `json:\"default_for_dashboard,omitzero\"`\n\t// Endpoint specifies a replacement custom server base URL. Supply read_key\n\t// together with it.\n\tEndpoint param.Opt[string] `json:\"endpoint,omitzero\"`\n\t// Name identifies this connection in the dashboard.\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// PublicIngestKey optionally enables preview tracking for a custom connection.\n\t// Supply the public ingestion key for the same analytics project as read_key. It\n\t// is returned in connection reads and used in browser code. Omit for hosted\n\t// connections. An empty string disables preview tracking. A replacement endpoint\n\t// clears the saved public key unless a replacement is supplied.\n\tPublicIngestKey param.Opt[string] `json:\"public_ingest_key,omitzero\"`\n\t// ReadKey replaces the custom connection credential after validation. Its value is\n\t// never returned.\n\tReadKey param.Opt[string] `json:\"read_key,omitzero\"`\n\t// AllowedOrigins lists additional website origins permitted to ingest events for a\n\t// hosted connection. Shared installation origins remain allowed. An empty list\n\t// clears project-specific origins. Custom servers manage origins on their own\n\t// infrastructure.\n\tAllowedOrigins []string `json:\"allowed_origins,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ProjectAnalyticsConnectionUpdateParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ProjectAnalyticsConnectionUpdateParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProjectAnalyticsConnectionUpdateResponseEnvelope struct {\n\t// A saved source for analytics reports. The dashboard player default is\n\t// independent of the connection selected in reports. External players keep their\n\t// own configuration. Only the public ingest key is included; read and management\n\t// credentials stay private.\n\tData   AnalyticsConnection `json:\"data\" api:\"required\"`\n\tStatus constant.Success    `json:\"status\" default:\"success\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tData        respjson.Field\n\t\tStatus      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r ProjectAnalyticsConnectionUpdateResponseEnvelope) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProjectAnalyticsConnectionUpdateResponseEnvelope) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProjectAnalyticsService struct {\n\tOptions     []option.RequestOption\n\tConnections ProjectAnalyticsConnectionService\n}\n```\nProjectAnalyticsService contains methods and other services that help with interacting with the chunkify API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewProjectAnalyticsService](#NewProjectAnalyticsService) method instead.\n\n```go\nfunc NewProjectAnalyticsService(opts ...option.RequestOption) (r ProjectAnalyticsService)\n```\nNewProjectAnalyticsService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\ntype ProjectGetResponseEnvelope struct {\n\t// Data contains the response object\n\tData Project `json:\"data\" api:\"required\"`\n\t// Status indicates the response status \"success\"\n\tStatus constant.Success `json:\"status\" default:\"success\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tData        respjson.Field\n\t\tStatus      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r ProjectGetResponseEnvelope) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProjectGetResponseEnvelope) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProjectListResponse struct {\n\t// Data contains the project items\n\tData []Project `json:\"data\" api:\"required\"`\n\t// Status indicates the response status \"success\"\n\tStatus constant.Success `json:\"status\" default:\"success\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tData        respjson.Field\n\t\tStatus      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nResponse containing the list of projects for a team\n\n```go\nfunc (r ProjectListResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProjectListResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProjectNewParams struct {\n\t// Name is the name of the project, which must be between 4 and 32 characters.\n\tName string `json:\"name\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ProjectNewParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ProjectNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProjectNewResponseEnvelope struct {\n\t// Data contains the response object\n\tData Project `json:\"data\" api:\"required\"`\n\t// Status indicates the response status \"success\"\n\tStatus constant.Success `json:\"status\" default:\"success\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tData        respjson.Field\n\t\tStatus      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r ProjectNewResponseEnvelope) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProjectNewResponseEnvelope) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProjectService struct {\n\tOptions   []option.RequestOption\n\tAnalytics ProjectAnalyticsService\n}\n```\nProjectService contains methods and other services that help with interacting with the chunkify API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewProjectService](#NewProjectService) method instead.\n\n```go\nfunc NewProjectService(opts ...option.RequestOption) (r ProjectService)\n```\nNewProjectService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *ProjectService) Delete(ctx context.Context, projectID string, opts ...option.RequestOption) (err error)\n```\nDelete a project and revoke all associated access tokens. Only team owners can delete projects. Customer output files remain in Storage; managed temporary files retain their original expiry.\n\n```go\nfunc (r *ProjectService) Get(ctx context.Context, projectID string, opts ...option.RequestOption) (res *Project, err error)\n```\nRetrieve a Project in your team by its ID, including its name, slug, default Storage, Asset defaults, and default Workflow.\n\n```go\nfunc (r *ProjectService) List(ctx context.Context, opts ...option.RequestOption) (res *ProjectListResponse, err error)\n```\nList the Projects in the team that owns the access token, with each Project's name, slug, default Storage, and Asset defaults.\n\n```go\nfunc (r *ProjectService) New(ctx context.Context, body ProjectNewParams, opts ...option.RequestOption) (res *Project, err error)\n```\nCreate a Project in your team with a name of 4 to 32 characters. New Projects start with Chunkify storage until you connect your own Storage.\n\n```go\nfunc (r *ProjectService) Update(ctx context.Context, projectID string, body ProjectUpdateParams, opts ...option.RequestOption) (err error)\n```\nUpdate a Project's name, default Storage, Asset defaults, or default Workflow. Only team owners can update Projects, and project names must be unique.\n\n```go\ntype ProjectUpdateParams struct {\n\t// DefaultWorkflowId specifies the default Workflow for new Assets. Set null to\n\t// clear it.\n\tDefaultWorkflowID param.Opt[string] `json:\"default_workflow_id,omitzero\"`\n\t// Project name.\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// ID of this Project's default Storage.\n\tStorageID param.Opt[string] `json:\"storage_id,omitzero\"`\n\t// Defaults for new Assets and automatic Uploads. Replaces the whole object.\n\t// Omitted fields reset to their defaults. Existing Assets are unchanged.\n\tAssetDefaults AssetDefaultsParams `json:\"asset_defaults,omitzero\"`\n\t// Player colours and controls for Chunkify-hosted playback pages, such as embeds.\n\t// Replaces the whole object. Omitted fields reset to their defaults. Existing\n\t// embeds use the new values.\n\tPlayerAppearance PlayerAppearanceParams `json:\"player_appearance,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ProjectUpdateParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ProjectUpdateParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype Source struct {\n\t// Unique identifier of the source\n\tID string `json:\"id\" api:\"required\"`\n\t// Audio bitrate in bits per second\n\tAudioBitrate int64 `json:\"audio_bitrate\" api:\"required\"`\n\t// Audio codec used\n\tAudioCodec string `json:\"audio_codec\" api:\"required\"`\n\t// Timestamp when the source was created\n\tCreatedAt time.Time `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\t// Device used to record the video\n\tDevice string `json:\"device\" api:\"required\"`\n\t// Duration of the video in seconds\n\tDuration int64 `json:\"duration\" api:\"required\"`\n\t// Height of the video in pixels\n\tHeight int64 `json:\"height\" api:\"required\"`\n\t// Additional metadata for the source\n\tMetadata map[string]string `json:\"metadata\" api:\"required\"`\n\t// Size of the source file in bytes\n\tSize int64 `json:\"size\" api:\"required\"`\n\t// Video bitrate in bits per second\n\tVideoBitrate int64 `json:\"video_bitrate\" api:\"required\"`\n\t// Video codec used\n\tVideoCodec string `json:\"video_codec\" api:\"required\"`\n\t// Video framerate in frames per second\n\tVideoFramerate float64 `json:\"video_framerate\" api:\"required\"`\n\t// Width of the video in pixels\n\tWidth int64 `json:\"width\" api:\"required\"`\n\t// Exact object key in the configured bucket, 1 to 1024 UTF-8 bytes. The output\n\t// base_prefix is not added.\n\tPath string `json:\"path\"`\n\t// Connected Storage belonging to this Project.\n\tStorageID string `json:\"storage_id\"`\n\t// URL where the source video can be accessed\n\tURL string `json:\"url\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID             respjson.Field\n\t\tAudioBitrate   respjson.Field\n\t\tAudioCodec     respjson.Field\n\t\tCreatedAt      respjson.Field\n\t\tDevice         respjson.Field\n\t\tDuration       respjson.Field\n\t\tHeight         respjson.Field\n\t\tMetadata       respjson.Field\n\t\tSize           respjson.Field\n\t\tVideoBitrate   respjson.Field\n\t\tVideoCodec     respjson.Field\n\t\tVideoFramerate respjson.Field\n\t\tWidth          respjson.Field\n\t\tPath           respjson.Field\n\t\tStorageID      respjson.Field\n\t\tURL            respjson.Field\n\t\tExtraFields    map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r Source) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *Source) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype SourceCreateStorageParams struct {\n\t// Exact object key in the configured bucket, 1 to 1024 UTF-8 bytes. The output\n\t// base_prefix is not added.\n\tPath string `json:\"path\" api:\"required\"`\n\t// Connected external storage belonging to this project. If omitted, uses the\n\t// project default storage, which must be external. The resolved storage ID is\n\t// saved on the source.\n\tID param.Opt[string] `json:\"id,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nThe property Path is required.\n\n```go\nfunc (r SourceCreateStorageParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *SourceCreateStorageParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype SourceGetResponseEnvelope struct {\n\t// Data contains the response object\n\tData Source `json:\"data\" api:\"required\"`\n\t// Status indicates the response status \"success\"\n\tStatus constant.Success `json:\"status\" default:\"success\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tData        respjson.Field\n\t\tStatus      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r SourceGetResponseEnvelope) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *SourceGetResponseEnvelope) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype SourceListParams struct {\n\t// Filter by source ID\n\tID param.Opt[string] `query:\"id,omitzero\" json:\"-\"`\n\t// Filter by audio codec\n\tAudioCodec param.Opt[string] `query:\"audio_codec,omitzero\" json:\"-\"`\n\t// Pagination limit (max 100)\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Pagination offset\n\tOffset param.Opt[int64] `query:\"offset,omitzero\" json:\"-\"`\n\t// Filter by input Storage ID.\n\tStorageID param.Opt[string] `query:\"storage_id,omitzero\" json:\"-\"`\n\t// Filter by video codec\n\tVideoCodec param.Opt[string]       `query:\"video_codec,omitzero\" json:\"-\"`\n\tCreated    SourceListParamsCreated `query:\"created,omitzero\" json:\"-\"`\n\t// Filter by device (apple/android)\n\t//\n\t// Any of \"apple\", \"android\", \"unknown\".\n\tDevice   SourceListParamsDevice   `query:\"device,omitzero\" json:\"-\"`\n\tDuration SourceListParamsDuration `query:\"duration,omitzero\" json:\"-\"`\n\tHeight   SourceListParamsHeight   `query:\"height,omitzero\" json:\"-\"`\n\t// Filter by metadata. Repeat key:value pairs to match all supplied metadata\n\t// conditions.\n\tMetadata []string              `query:\"metadata,omitzero\" json:\"-\"`\n\tSize     SourceListParamsSize  `query:\"size,omitzero\" json:\"-\"`\n\tWidth    SourceListParamsWidth `query:\"width,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r SourceListParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [SourceListParams](#SourceListParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype SourceListParamsCreated struct {\n\t// Filter by creation date greater than or equal (UNIX epoch time)\n\tGte param.Opt[int64] `query:\"gte,omitzero\" format:\"epoch\" json:\"-\"`\n\t// Filter by creation date less than or equal (UNIX epoch time)\n\tLte param.Opt[int64] `query:\"lte,omitzero\" format:\"epoch\" json:\"-\"`\n\t// Sort by creation date (asc/desc)\n\t//\n\t// Any of \"asc\", \"desc\".\n\tSort string `query:\"sort,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r SourceListParamsCreated) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [SourceListParamsCreated](#SourceListParamsCreated)'s query parameters as \\`url.Values\\`.\n\n```go\ntype SourceListParamsDevice string\n```\nFilter by device (apple/android)\n\n```go\nconst (\n\tSourceListParamsDeviceApple   SourceListParamsDevice = \"apple\"\n\tSourceListParamsDeviceAndroid SourceListParamsDevice = \"android\"\n\tSourceListParamsDeviceUnknown SourceListParamsDevice = \"unknown\"\n)\n```\n\n```go\ntype SourceListParamsDuration struct {\n\t// Filter by exact duration\n\tEq param.Opt[float64] `query:\"eq,omitzero\" json:\"-\"`\n\t// Filter by duration greater than\n\tGt param.Opt[float64] `query:\"gt,omitzero\" json:\"-\"`\n\t// Filter by duration greater than or equal\n\tGte param.Opt[float64] `query:\"gte,omitzero\" json:\"-\"`\n\t// Filter by duration less than\n\tLt param.Opt[float64] `query:\"lt,omitzero\" json:\"-\"`\n\t// Filter by duration less than or equal\n\tLte param.Opt[float64] `query:\"lte,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r SourceListParamsDuration) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [SourceListParamsDuration](#SourceListParamsDuration)'s query parameters as \\`url.Values\\`.\n\n```go\ntype SourceListParamsHeight struct {\n\t// Filter by exact height\n\tEq param.Opt[int64] `query:\"eq,omitzero\" json:\"-\"`\n\t// Filter by height greater than\n\tGt param.Opt[int64] `query:\"gt,omitzero\" json:\"-\"`\n\t// Filter by height greater than or equal\n\tGte param.Opt[int64] `query:\"gte,omitzero\" json:\"-\"`\n\t// Filter by height less than\n\tLt param.Opt[int64] `query:\"lt,omitzero\" json:\"-\"`\n\t// Filter by height less than or equal\n\tLte param.Opt[int64] `query:\"lte,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r SourceListParamsHeight) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [SourceListParamsHeight](#SourceListParamsHeight)'s query parameters as \\`url.Values\\`.\n\n```go\ntype SourceListParamsSize struct {\n\t// Filter by exact file size\n\tEq param.Opt[int64] `query:\"eq,omitzero\" json:\"-\"`\n\t// Filter by file size greater than\n\tGt param.Opt[int64] `query:\"gt,omitzero\" json:\"-\"`\n\t// Filter by file size greater than or equal\n\tGte param.Opt[int64] `query:\"gte,omitzero\" json:\"-\"`\n\t// Filter by file size less than\n\tLt param.Opt[int64] `query:\"lt,omitzero\" json:\"-\"`\n\t// Filter by file size less than or equal\n\tLte param.Opt[int64] `query:\"lte,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r SourceListParamsSize) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [SourceListParamsSize](#SourceListParamsSize)'s query parameters as \\`url.Values\\`.\n\n```go\ntype SourceListParamsWidth struct {\n\t// Filter by exact width\n\tEq param.Opt[int64] `query:\"eq,omitzero\" json:\"-\"`\n\t// Filter by width greater than\n\tGt param.Opt[int64] `query:\"gt,omitzero\" json:\"-\"`\n\t// Filter by width greater than or equal\n\tGte param.Opt[int64] `query:\"gte,omitzero\" json:\"-\"`\n\t// Filter by width less than\n\tLt param.Opt[int64] `query:\"lt,omitzero\" json:\"-\"`\n\t// Filter by width less than or equal\n\tLte param.Opt[int64] `query:\"lte,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r SourceListParamsWidth) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [SourceListParamsWidth](#SourceListParamsWidth)'s query parameters as \\`url.Values\\`.\n\n```go\ntype SourceNewParams struct {\n\t// Url is the URL of the source, which must be a valid HTTP URL.\n\tURL param.Opt[string] `json:\"url,omitzero\" format:\"http-url\"`\n\t// Metadata allows for additional information to be attached to the source, with a\n\t// maximum size of 2048 bytes.\n\tMetadata map[string]string `json:\"metadata,omitzero\"`\n\t// Storage input configuration. Provide this or url, never both.\n\tStorage SourceCreateStorageParams `json:\"storage,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r SourceNewParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *SourceNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype SourceNewResponseEnvelope struct {\n\t// Data contains the response object\n\tData Source `json:\"data\" api:\"required\"`\n\t// Status indicates the response status \"success\"\n\tStatus constant.Success `json:\"status\" default:\"success\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tData        respjson.Field\n\t\tStatus      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r SourceNewResponseEnvelope) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *SourceNewResponseEnvelope) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype SourceService struct {\n\tOptions []option.RequestOption\n}\n```\nSourceService contains methods and other services that help with interacting with the chunkify API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewSourceService](#NewSourceService) method instead.\n\n```go\nfunc NewSourceService(opts ...option.RequestOption) (r SourceService)\n```\nNewSourceService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *SourceService) Delete(ctx context.Context, sourceID string, opts ...option.RequestOption) (err error)\n```\nDelete a Source that no processing still needs and record a source.deleted event. Assets and other outputs created from the Source are preserved.\n\n```go\nfunc (r *SourceService) Get(ctx context.Context, sourceID string, opts ...option.RequestOption) (res *Source, err error)\n```\nRetrieve a Source by its ID, including its Storage location, file size, duration, dimensions, codecs, bitrates, frame rate, and metadata.\n\n```go\nfunc (r *SourceService) List(ctx context.Context, query SourceListParams, opts ...option.RequestOption) (res *pagination.PaginatedResults[Source], err error)\n```\nRetrieve a list of all sources with optional filtering and pagination. Supports filtering by various media properties like duration, dimensions, codecs, etc.\n\n```go\nfunc (r *SourceService) ListAutoPaging(ctx context.Context, query SourceListParams, opts ...option.RequestOption) *pagination.PaginatedResultsAutoPager[Source]\n```\nRetrieve a list of all sources with optional filtering and pagination. Supports filtering by various media properties like duration, dimensions, codecs, etc.\n\n```go\nfunc (r *SourceService) New(ctx context.Context, body SourceNewParams, opts ...option.RequestOption) (res *Source, err error)\n```\nCreate a new source from a media URL. The source will be analyzed to extract metadata and generate a thumbnail. The source will be automatically deleted after the data retention period.\n\n```go\ntype StorageAws struct {\n\t// Unique identifier of the storage configuration\n\tID string `json:\"id\" api:\"required\"`\n\t// Canonical object-key prefix prepended to every final job output in this\n\t// customer-owned storage. An empty string means the bucket root.\n\tBasePrefix string `json:\"base_prefix\" api:\"required\"`\n\t// Bucket is the name of the storage bucket.\n\tBucket string `json:\"bucket\" api:\"required\"`\n\t// Created at timestamp\n\tCreatedAt time.Time `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\t// Provider specifies the storage provider.\n\tProvider constant.Aws `json:\"provider\" default:\"aws\"`\n\t// Public indicates whether the storage is publicly accessible.\n\tPublic bool `json:\"public\" api:\"required\"`\n\t// Region specifies the region of the storage provider.\n\t//\n\t// Any of \"us-east-1\", \"us-east-2\", \"us-central-1\", \"us-west-1\", \"us-west-2\",\n\t// \"eu-west-1\", \"eu-west-2\", \"eu-west-3\", \"eu-central-1\", \"eu-north-1\",\n\t// \"ap-east-1\", \"ap-east-2\", \"ap-northeast-1\", \"ap-northeast-2\", \"ap-south-1\",\n\t// \"ap-southeast-1\", \"ap-southeast-2\".\n\tRegion AwsRegion `json:\"region\" api:\"required\"`\n\t// Unique identifier of the storage configuration\n\tSlug string `json:\"slug\" api:\"required\"`\n\t// Optional customer-managed HTTPS delivery base URL used to build stable CDN URLs\n\t// for objects in this storage.\n\tCdnBaseURL string `json:\"cdn_base_url\" api:\"nullable\" format:\"uri\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tBasePrefix  respjson.Field\n\t\tBucket      respjson.Field\n\t\tCreatedAt   respjson.Field\n\t\tProvider    respjson.Field\n\t\tPublic      respjson.Field\n\t\tRegion      respjson.Field\n\t\tSlug        respjson.Field\n\t\tCdnBaseURL  respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r StorageAws) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *StorageAws) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype StorageAwsCreateParams struct {\n\t// AccessKeyId is the access key for the storage provider. Required if not using\n\t// Chunkify storage.\n\tAccessKeyID string `json:\"access_key_id\" api:\"required\"`\n\t// Bucket is the name of the storage bucket.\n\tBucket string `json:\"bucket\" api:\"required\"`\n\t// Region specifies the region of the storage provider.\n\t//\n\t// Any of \"us-east-1\", \"us-east-2\", \"us-central-1\", \"us-west-1\", \"us-west-2\",\n\t// \"eu-west-1\", \"eu-west-2\", \"eu-west-3\", \"eu-central-1\", \"eu-north-1\",\n\t// \"ap-east-1\", \"ap-east-2\", \"ap-northeast-1\", \"ap-northeast-2\", \"ap-south-1\",\n\t// \"ap-southeast-1\", \"ap-southeast-2\".\n\tRegion AwsRegion `json:\"region,omitzero\" api:\"required\"`\n\t// SecretAccessKey is the secret key for the storage provider. Required if not\n\t// using Chunkify storage.\n\tSecretAccessKey string `json:\"secret_access_key\" api:\"required\"`\n\t// Optional customer-managed HTTPS delivery base URL. Object keys are appended to\n\t// it. It may include a path prefix, but must not contain credentials, a query\n\t// string, or a fragment.\n\tCdnBaseURL param.Opt[string] `json:\"cdn_base_url,omitzero\" format:\"uri\"`\n\t// Object-key prefix for final job outputs. The API normalizes it without a leading\n\t// slash and with one trailing slash. Omit it or send an empty string to use the\n\t// bucket root.\n\tBasePrefix param.Opt[string] `json:\"base_prefix,omitzero\"`\n\t// Public indicates whether the storage is publicly accessible.\n\tPublic param.Opt[bool] `json:\"public,omitzero\"`\n\t// Provider specifies the storage provider.\n\t//\n\t// This field can be elided, and will marshal its zero value as \"aws\".\n\tProvider constant.Aws `json:\"provider\" default:\"aws\"`\n\t// contains filtered or unexported fields\n}\n```\nStorage parameters for AWS S3 storage.\n\nThe properties AccessKeyID, Bucket, Provider, Region, SecretAccessKey are required.\n\n```go\nfunc (r StorageAwsCreateParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *StorageAwsCreateParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype StorageChunkify struct {\n\t// Unique identifier of the storage configuration\n\tID string `json:\"id\" api:\"required\"`\n\t// Created at timestamp\n\tCreatedAt time.Time `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\t// Provider specifies the storage provider.\n\tProvider constant.Chunkify `json:\"provider\" default:\"chunkify\"`\n\t// Region specifies the region of the storage provider.\n\t//\n\t// Any of \"us-east-1\", \"us-east-2\", \"us-west-1\", \"us-west-2\", \"eu-west-1\",\n\t// \"eu-west-2\", \"ap-northeast-1\", \"ap-southeast-1\".\n\tRegion ChunkifyRegion `json:\"region\" api:\"required\"`\n\t// Unique identifier of the storage configuration\n\tSlug string `json:\"slug\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tCreatedAt   respjson.Field\n\t\tProvider    respjson.Field\n\t\tRegion      respjson.Field\n\t\tSlug        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r StorageChunkify) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *StorageChunkify) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype StorageChunkifyCreateParams struct {\n\t// Region specifies the region of the storage provider.\n\t//\n\t// Any of \"us-east-1\", \"us-east-2\", \"us-west-1\", \"us-west-2\", \"eu-west-1\",\n\t// \"eu-west-2\", \"ap-northeast-1\", \"ap-southeast-1\".\n\tRegion ChunkifyRegion `json:\"region,omitzero\" api:\"required\"`\n\t// Unsupported for Chunkify-managed temporary storage. Requests that provide this\n\t// field are rejected.\n\tCdnBaseURL param.Opt[string] `json:\"cdn_base_url,omitzero\" format:\"uri\"`\n\t// Provider specifies the storage provider.\n\t//\n\t// This field can be elided, and will marshal its zero value as \"chunkify\".\n\tProvider constant.Chunkify `json:\"provider\" default:\"chunkify\"`\n\t// contains filtered or unexported fields\n}\n```\nStorage parameters for Chunkify ephemeral storage.\n\nThe properties Provider, Region are required.\n\n```go\nfunc (r StorageChunkifyCreateParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *StorageChunkifyCreateParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype StorageCloudflare struct {\n\t// Unique identifier of the storage configuration\n\tID string `json:\"id\" api:\"required\"`\n\t// Canonical object-key prefix prepended to every final job output in this\n\t// customer-owned storage. An empty string means the bucket root.\n\tBasePrefix string `json:\"base_prefix\" api:\"required\"`\n\t// Bucket is the name of the storage bucket.\n\tBucket string `json:\"bucket\" api:\"required\"`\n\t// Created at timestamp\n\tCreatedAt time.Time `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\t// Endpoint is the endpoint of the storage provider.\n\tEndpoint string `json:\"endpoint\" api:\"required\" format:\"uri\"`\n\t// Location specifies the location of the storage provider.\n\t//\n\t// Any of \"US\", \"EU\", \"ASIA\".\n\tLocation StorageLocation `json:\"location\" api:\"required\"`\n\t// Provider specifies the storage provider.\n\tProvider constant.Cloudflare `json:\"provider\" default:\"cloudflare\"`\n\t// Public indicates whether the storage is publicly accessible.\n\tPublic bool `json:\"public\" api:\"required\"`\n\t// Region specifies the region of the storage provider.\n\tRegion constant.Auto `json:\"region\" default:\"auto\"`\n\t// Unique identifier of the storage configuration\n\tSlug string `json:\"slug\" api:\"required\"`\n\t// Optional customer-managed HTTPS delivery base URL used to build stable CDN URLs\n\t// for objects in this storage.\n\tCdnBaseURL string `json:\"cdn_base_url\" api:\"nullable\" format:\"uri\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tBasePrefix  respjson.Field\n\t\tBucket      respjson.Field\n\t\tCreatedAt   respjson.Field\n\t\tEndpoint    respjson.Field\n\t\tLocation    respjson.Field\n\t\tProvider    respjson.Field\n\t\tPublic      respjson.Field\n\t\tRegion      respjson.Field\n\t\tSlug        respjson.Field\n\t\tCdnBaseURL  respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r StorageCloudflare) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *StorageCloudflare) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype StorageCloudflareCreateParams struct {\n\t// AccessKeyId is the access key for the storage provider.\n\tAccessKeyID string `json:\"access_key_id\" api:\"required\"`\n\t// Bucket is the name of the storage bucket.\n\tBucket string `json:\"bucket\" api:\"required\"`\n\t// Endpoint is the endpoint of the storage provider.\n\tEndpoint string `json:\"endpoint\" api:\"required\" format:\"uri\"`\n\t// Location specifies the location of the storage provider.\n\t//\n\t// Any of \"US\", \"EU\", \"ASIA\".\n\tLocation StorageCloudflareCreateParamsLocation `json:\"location,omitzero\" api:\"required\"`\n\t// SecretAccessKey is the secret key for the storage provider.\n\tSecretAccessKey string `json:\"secret_access_key\" api:\"required\"`\n\t// Optional customer-managed HTTPS delivery base URL. Object keys are appended to\n\t// it. It may include a path prefix, but must not contain credentials, a query\n\t// string, or a fragment.\n\tCdnBaseURL param.Opt[string] `json:\"cdn_base_url,omitzero\" format:\"uri\"`\n\t// Object-key prefix for final job outputs. The API normalizes it without a leading\n\t// slash and with one trailing slash. Omit it or send an empty string to use the\n\t// bucket root.\n\tBasePrefix param.Opt[string] `json:\"base_prefix,omitzero\"`\n\t// Public indicates whether the storage is publicly accessible.\n\tPublic param.Opt[bool] `json:\"public,omitzero\"`\n\t// Provider specifies the storage provider.\n\t//\n\t// This field can be elided, and will marshal its zero value as \"cloudflare\".\n\tProvider constant.Cloudflare `json:\"provider\" default:\"cloudflare\"`\n\t// Region must be set to 'auto'.\n\t//\n\t// This field can be elided, and will marshal its zero value as \"auto\".\n\tRegion constant.Auto `json:\"region\" default:\"auto\"`\n\t// contains filtered or unexported fields\n}\n```\nStorage parameters for Cloudflare R2 storage.\n\nThe properties AccessKeyID, Bucket, Endpoint, Location, Provider, Region, SecretAccessKey are required.\n\n```go\nfunc (r StorageCloudflareCreateParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *StorageCloudflareCreateParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype StorageCloudflareCreateParamsLocation string\n```\nLocation specifies the location of the storage provider.\n\n```go\nconst (\n\tStorageCloudflareCreateParamsLocationUs   StorageCloudflareCreateParamsLocation = \"US\"\n\tStorageCloudflareCreateParamsLocationEu   StorageCloudflareCreateParamsLocation = \"EU\"\n\tStorageCloudflareCreateParamsLocationAsia StorageCloudflareCreateParamsLocation = \"ASIA\"\n)\n```\n\n```go\ntype StorageGetResponseEnvelope struct {\n\t// Data contains the response object\n\tData StorageUnion `json:\"data\" api:\"required\"`\n\t// Status indicates the response status \"success\"\n\tStatus constant.Success `json:\"status\" default:\"success\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tData        respjson.Field\n\t\tStatus      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r StorageGetResponseEnvelope) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *StorageGetResponseEnvelope) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype StorageListResponse struct {\n\t// Data contains the storage items\n\tData []StorageUnion `json:\"data\" api:\"required\"`\n\t// Status indicates the response status \"success\"\n\tStatus constant.Success `json:\"status\" default:\"success\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tData        respjson.Field\n\t\tStatus      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nResponse containing the list of storages configurations for a project\n\n```go\nfunc (r StorageListResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *StorageListResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype StorageLocation string\n```\nLocation specifies the location of the storage provider.\n\n```go\nconst (\n\tStorageLocationUs   StorageLocation = \"US\"\n\tStorageLocationEu   StorageLocation = \"EU\"\n\tStorageLocationAsia StorageLocation = \"ASIA\"\n)\n```\n\n```go\ntype StorageNewParams struct {\n\n\t// This field is a request body variant, only one variant field can be set. Storage\n\t// parameters for AWS S3 storage.\n\tOfAws *StorageAwsCreateParams `json:\",inline\"`\n\t// This field is a request body variant, only one variant field can be set. Storage\n\t// parameters for Chunkify ephemeral storage.\n\tOfChunkify *StorageChunkifyCreateParams `json:\",inline\"`\n\t// This field is a request body variant, only one variant field can be set. Storage\n\t// parameters for Cloudflare R2 storage.\n\tOfCloudflare *StorageCloudflareCreateParams `json:\",inline\"`\n\t// This field is a request body variant, only one variant field can be set. Storage\n\t// parameters for a public S3-compatible service such as MinIO, Wasabi, or\n\t// Backblaze B2.\n\tOfS3Compatible *StorageS3CompatibleCreateParams `json:\",inline\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (u StorageNewParams) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (r *StorageNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype StorageNewResponseEnvelope struct {\n\t// Data contains the response object\n\tData StorageUnion `json:\"data\" api:\"required\"`\n\t// Status indicates the response status \"success\"\n\tStatus constant.Success `json:\"status\" default:\"success\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tData        respjson.Field\n\t\tStatus      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r StorageNewResponseEnvelope) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *StorageNewResponseEnvelope) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype StorageS3Compatible struct {\n\t// Unique identifier of the storage configuration\n\tID string `json:\"id\" api:\"required\"`\n\t// Addressing style detected during connection validation and used for later S3\n\t// operations.\n\t//\n\t// Any of \"virtual\", \"path\".\n\tAddressingStyle StorageS3CompatibleAddressingStyle `json:\"addressing_style\" api:\"required\"`\n\t// Canonical object-key prefix prepended to every final job output in this\n\t// customer-owned storage. An empty string means the bucket root.\n\tBasePrefix string `json:\"base_prefix\" api:\"required\"`\n\t// Bucket is the name of the storage bucket.\n\tBucket string `json:\"bucket\" api:\"required\"`\n\t// Created at timestamp\n\tCreatedAt time.Time `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\t// Public HTTPS URL of the S3-compatible service, including any fixed path prefix\n\t// the service requires. Credentials, queries, fragments, and non-public\n\t// destinations are rejected.\n\tEndpoint string `json:\"endpoint\" api:\"required\" format:\"uri\"`\n\t// Chunkify workload location. This is independent from the provider signing\n\t// region.\n\t//\n\t// Any of \"US\", \"EU\", \"ASIA\".\n\tLocation StorageLocation `json:\"location\" api:\"required\"`\n\t// Stable provider identifier for generic S3-compatible storage.\n\tProvider constant.S3Compatible `json:\"provider\" default:\"s3_compatible\"`\n\t// Public indicates whether the storage is publicly accessible.\n\tPublic bool `json:\"public\" api:\"required\"`\n\t// Provider region used for S3 request signing. This is independent from the\n\t// Chunkify workload location.\n\tRegion string `json:\"region\" api:\"required\"`\n\t// Unique identifier of the storage configuration\n\tSlug string `json:\"slug\" api:\"required\"`\n\t// Optional customer-managed HTTPS delivery base URL used to build stable CDN URLs\n\t// for objects in this storage.\n\tCdnBaseURL string `json:\"cdn_base_url\" api:\"nullable\" format:\"uri\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID              respjson.Field\n\t\tAddressingStyle respjson.Field\n\t\tBasePrefix      respjson.Field\n\t\tBucket          respjson.Field\n\t\tCreatedAt       respjson.Field\n\t\tEndpoint        respjson.Field\n\t\tLocation        respjson.Field\n\t\tProvider        respjson.Field\n\t\tPublic          respjson.Field\n\t\tRegion          respjson.Field\n\t\tSlug            respjson.Field\n\t\tCdnBaseURL      respjson.Field\n\t\tExtraFields     map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA customer-owned storage connection using the standard S3 API.\n\n```go\nfunc (r StorageS3Compatible) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *StorageS3Compatible) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype StorageS3CompatibleAddressingStyle string\n```\nAddressing style detected during connection validation and used for later S3 operations.\n\n```go\nconst (\n\tStorageS3CompatibleAddressingStyleVirtual StorageS3CompatibleAddressingStyle = \"virtual\"\n\tStorageS3CompatibleAddressingStylePath    StorageS3CompatibleAddressingStyle = \"path\"\n)\n```\n\n```go\ntype StorageS3CompatibleCreateParams struct {\n\t// Access key for the storage provider.\n\tAccessKeyID string `json:\"access_key_id\" api:\"required\"`\n\t// Bucket is the name of the storage bucket.\n\tBucket string `json:\"bucket\" api:\"required\"`\n\t// Public HTTPS URL of the S3-compatible service, including any fixed path prefix\n\t// the service requires. Credentials, queries, fragments, and non-public\n\t// destinations are rejected.\n\tEndpoint string `json:\"endpoint\" api:\"required\" format:\"uri\"`\n\t// Chunkify workload location. It controls where Chunkify processes the workload\n\t// and is independent from the provider region.\n\t//\n\t// Any of \"US\", \"EU\", \"ASIA\".\n\tLocation StorageLocation `json:\"location,omitzero\" api:\"required\"`\n\t// Explicit provider region used for S3 request signing. Vendor-specific\n\t// identifiers are accepted.\n\tRegion string `json:\"region\" api:\"required\"`\n\t// Secret key for the storage provider.\n\tSecretAccessKey string `json:\"secret_access_key\" api:\"required\"`\n\t// Optional customer-managed HTTPS delivery base URL. Object keys are appended to\n\t// it. It may include a path prefix, but must not contain credentials, a query\n\t// string, or a fragment.\n\tCdnBaseURL param.Opt[string] `json:\"cdn_base_url,omitzero\" format:\"uri\"`\n\t// Object-key prefix for final job outputs. The API normalizes it without a leading\n\t// slash and with one trailing slash. Omit it or send an empty string to use the\n\t// bucket root.\n\tBasePrefix param.Opt[string] `json:\"base_prefix,omitzero\"`\n\t// Whether the bucket is publicly readable.\n\tPublic param.Opt[bool] `json:\"public,omitzero\"`\n\t// Stable provider identifier for generic S3-compatible storage.\n\t//\n\t// This field can be elided, and will marshal its zero value as \"s3_compatible\".\n\tProvider constant.S3Compatible `json:\"provider\" default:\"s3_compatible\"`\n\t// contains filtered or unexported fields\n}\n```\nStorage parameters for a public S3-compatible service such as MinIO, Wasabi, or Backblaze B2.\n\nThe properties AccessKeyID, Bucket, Endpoint, Location, Provider, Region, SecretAccessKey are required.\n\n```go\nfunc (r StorageS3CompatibleCreateParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *StorageS3CompatibleCreateParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype StorageService struct {\n\tOptions []option.RequestOption\n}\n```\nStorageService contains methods and other services that help with interacting with the chunkify API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewStorageService](#NewStorageService) method instead.\n\n```go\nfunc NewStorageService(opts ...option.RequestOption) (r StorageService)\n```\nNewStorageService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *StorageService) Delete(ctx context.Context, storageID string, opts ...option.RequestOption) (err error)\n```\nDelete a storage configuration. The storage must not be attached to the project or used by an upload, source, asset, transcoding or thumbnail; otherwise the request returns 403.\n\n```go\nfunc (r *StorageService) Get(ctx context.Context, storageID string, opts ...option.RequestOption) (res *StorageUnion, err error)\n```\nRetrieve a Storage in the current Project by its ID, with its provider and region, and for connected buckets, the bucket, base prefix, and CDN base URL.\n\n```go\nfunc (r *StorageService) List(ctx context.Context, opts ...option.RequestOption) (res *StorageListResponse, err error)\n```\nList the Storage configurations in the current Project, with each one's provider and region, and the bucket and CDN base URL for connected buckets.\n\n```go\nfunc (r *StorageService) New(ctx context.Context, body StorageNewParams, opts ...option.RequestOption) (res *StorageUnion, err error)\n```\nCreate a new storage configuration for cloud storage providers like AWS S3, Cloudflare R2, etc. The storage credentials will be validated before saving.\n\n```go\nfunc (r *StorageService) Update(ctx context.Context, storageID string, body StorageUpdateParams, opts ...option.RequestOption) (err error)\n```\nUpdate customer-owned storage settings. Send access\\_key\\_id and secret\\_access\\_key together to rotate credentials for AWS S3, Cloudflare R2, or S3-compatible storage. Both values must be non-empty and non-null. Omitting both preserves the saved pair and skips connection validation. Replacement credentials are checked against the saved bucket, endpoint, region, and addressing style using the creation upload, metadata, and download checks with best-effort probe cleanup. A prefix changed in the same request is used for validation. Both credentials are encrypted and saved atomically with other settings; a failed update preserves the previous values. Credential-only updates keep the Storage ID, resource associations, object paths, and Project default. Subsequent storage lookups use the new pair; running work may retain an existing client or signed URL. Rotation does not renew issued URLs, and revoking old keys can invalidate them. Prefix changes apply to final outputs that have not been uploaded yet. Existing files keep their stored object keys.\n\n```go\ntype StorageUnion struct {\n\tID        string    `json:\"id\"`\n\tCreatedAt time.Time `json:\"created_at\"`\n\t// Any of \"chunkify\", \"cloudflare\", \"aws\", \"s3_compatible\".\n\tProvider   string `json:\"provider\"`\n\tRegion     string `json:\"region\"`\n\tSlug       string `json:\"slug\"`\n\tBasePrefix string `json:\"base_prefix\"`\n\tBucket     string `json:\"bucket\"`\n\tEndpoint   string `json:\"endpoint\"`\n\t// This field is from variant [StorageCloudflare].\n\tLocation   StorageLocation `json:\"location\"`\n\tPublic     bool            `json:\"public\"`\n\tCdnBaseURL string          `json:\"cdn_base_url\"`\n\t// This field is from variant [StorageS3Compatible].\n\tAddressingStyle StorageS3CompatibleAddressingStyle `json:\"addressing_style\"`\n\tJSON            struct {\n\t\tID              respjson.Field\n\t\tCreatedAt       respjson.Field\n\t\tProvider        respjson.Field\n\t\tRegion          respjson.Field\n\t\tSlug            respjson.Field\n\t\tBasePrefix      respjson.Field\n\t\tBucket          respjson.Field\n\t\tEndpoint        respjson.Field\n\t\tLocation        respjson.Field\n\t\tPublic          respjson.Field\n\t\tCdnBaseURL      respjson.Field\n\t\tAddressingStyle respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nStorageUnion contains all possible properties and values from [StorageChunkify](#StorageChunkify), [StorageCloudflare](#StorageCloudflare), [StorageAws](#StorageAws), [StorageS3Compatible](#StorageS3Compatible).\n\nUse the [StorageUnion.AsAny](#StorageUnion.AsAny) method to switch on the variant.\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\n```go\nfunc (u StorageUnion) AsAny() anyStorage\n```\nUse the following switch statement to find the correct variant\n\n\tswitch variant := StorageUnion.AsAny().(type) {\n\tcase chunkify.StorageChunkify:\n\tcase chunkify.StorageCloudflare:\n\tcase chunkify.StorageAws:\n\tcase chunkify.StorageS3Compatible:\n\tdefault:\n\t  fmt.Errorf(\"no variant present\")\n\t}\n\n```go\nfunc (u StorageUnion) AsAws() (v StorageAws)\n```\n\n```go\nfunc (u StorageUnion) AsChunkify() (v StorageChunkify)\n```\n\n```go\nfunc (u StorageUnion) AsCloudflare() (v StorageCloudflare)\n```\n\n```go\nfunc (u StorageUnion) AsS3Compatible() (v StorageS3Compatible)\n```\n\n```go\nfunc (u StorageUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *StorageUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype StorageUpdateParams struct {\n\t// Customer-managed HTTPS delivery base URL, or null to remove the current value.\n\tCdnBaseURL param.Opt[string] `json:\"cdn_base_url,omitzero\" format:\"uri\"`\n\t// Replacement access key ID for customer-managed storage. Send with a non-empty\n\t// secret_access_key. Omit both credential fields to keep the saved pair. Null and\n\t// empty values are rejected. Credentials are validated before either value is\n\t// saved and are never returned.\n\tAccessKeyID param.Opt[string] `json:\"access_key_id,omitzero\"`\n\t// Object-key prefix for future final job outputs. Existing files keep their stored\n\t// object keys. Send an empty string to use the bucket root.\n\tBasePrefix param.Opt[string] `json:\"base_prefix,omitzero\"`\n\t// Replacement secret access key. Required with access_key_id; cannot be null or\n\t// empty. The pair is encrypted and saved atomically only after validation\n\t// succeeds.\n\tSecretAccessKey param.Opt[string] `json:\"secret_access_key,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r StorageUpdateParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *StorageUpdateParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype Thumbnail struct {\n\t// Id identifies this thumbnail request. Standalone requests use thm* IDs;\n\t// Asset-owned outputs use aop* IDs.\n\tID string `json:\"id\" api:\"required\"`\n\t// AssetId identifies the owning Asset for Workflow outputs, or null for standalone\n\t// requests.\n\tAssetID string `json:\"asset_id\" api:\"required\"`\n\t// CreatedAt records when the request was accepted.\n\tCreatedAt time.Time `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\t// Files contains all published images or sheets and the WebVTT index. Empty while\n\t// preparing.\n\tFiles []ThumbnailFile `json:\"files\" api:\"required\"`\n\t// Metadata contains the accepted string metadata.\n\tMetadata map[string]string `json:\"metadata\" api:\"required\"`\n\t// Samples contains published thumbnails ordered by timestamp. Empty while\n\t// preparing. A ready resource may contain fewer samples than requested.\n\tSamples []ThumbnailSample `json:\"samples\" api:\"required\"`\n\t// Settings contains the accepted sampling and output settings.\n\tSettings ThumbnailSettings `json:\"settings\" api:\"required\"`\n\t// SourceId identifies the input Source, or null if it has been deleted.\n\tSourceID string `json:\"source_id\" api:\"required\"`\n\t// Status reports processing or output expiry.\n\t//\n\t// Any of \"preparing\", \"ready\", \"failed\", \"expired\".\n\tStatus ThumbnailStatus `json:\"status\" api:\"required\"`\n\t// StorageId identifies the accepted output Storage.\n\tStorageID string `json:\"storage_id\" api:\"required\"`\n\t// StoragePath specifies the accepted filename template relative to the Storage\n\t// base_prefix, or null when Chunkify generated the file names.\n\tStoragePath string `json:\"storage_path\" api:\"required\"`\n\t// StoragePrefix specifies the complete output folder saved at creation. File and\n\t// sample paths are relative to this folder.\n\tStoragePrefix string `json:\"storage_prefix\" api:\"required\"`\n\t// UpdatedAt records the last lifecycle update.\n\tUpdatedAt time.Time `json:\"updated_at\" api:\"required\" format:\"date-time\"`\n\t// CreatedByTokenId specifies the Project token used to create the resource. It\n\t// remains set after the token is revoked. Omitted for dashboard requests, MCP\n\t// OAuth connections, Workflow actions, and unknown creators.\n\tCreatedByTokenID string `json:\"created_by_token_id\"`\n\t// CreatedByUserId specifies the team member who created the resource. Omitted for\n\t// Workflow actions, unknown creators, and deleted accounts.\n\tCreatedByUserID string `json:\"created_by_user_id\"`\n\t// CreatedVia specifies how the resource was created: api for API requests,\n\t// dashboard for the Chunkify dashboard, mcp for MCP clients, and workflow for\n\t// Workflow actions. Omitted when the creator is unknown.\n\t//\n\t// Any of \"api\", \"dashboard\", \"mcp\", \"workflow\".\n\tCreatedVia shared.CreatedVia `json:\"created_via\"`\n\t// DeleteAt specifies when this standalone request is deleted: three days after its\n\t// temporary output expires, otherwise when the team's data retention period ends,\n\t// counted from when the request was accepted, and no sooner than three days after\n\t// it finished. It does not delete files in customer-owned Storage. Omitted while\n\t// preparing and for Asset-owned thumbnails, which follow their Asset.\n\tDeleteAt time.Time `json:\"delete_at\" format:\"date-time\"`\n\t// Error explains a failed request. Omitted otherwise.\n\tError ThumbnailError `json:\"error\"`\n\t// ExpiresAt specifies when temporary output files expire. Omitted for customer\n\t// output Storage.\n\tExpiresAt time.Time `json:\"expires_at\" format:\"date-time\"`\n\t// ReadyAt records when the complete available set was published. Omitted before\n\t// publication.\n\tReadyAt time.Time `json:\"ready_at\" format:\"date-time\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID               respjson.Field\n\t\tAssetID          respjson.Field\n\t\tCreatedAt        respjson.Field\n\t\tFiles            respjson.Field\n\t\tMetadata         respjson.Field\n\t\tSamples          respjson.Field\n\t\tSettings         respjson.Field\n\t\tSourceID         respjson.Field\n\t\tStatus           respjson.Field\n\t\tStorageID        respjson.Field\n\t\tStoragePath      respjson.Field\n\t\tStoragePrefix    respjson.Field\n\t\tUpdatedAt        respjson.Field\n\t\tCreatedByTokenID respjson.Field\n\t\tCreatedByUserID  respjson.Field\n\t\tCreatedVia       respjson.Field\n\t\tDeleteAt         respjson.Field\n\t\tError            respjson.Field\n\t\tExpiresAt        respjson.Field\n\t\tReadyAt          respjson.Field\n\t\tExtraFields      map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nOne thumbnail generation request. At least one sample and its companion files must be published before the resource is ready.\n\n```go\nfunc (r Thumbnail) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *Thumbnail) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ThumbnailCreateStorageParams struct {\n\t// Id identifies output Storage in this Project. Omit to use the Project default.\n\tID param.Opt[string] `json:\"id,omitzero\"`\n\t// Path specifies the output filename template relative to the selected Storage\n\t// base_prefix. Required for customer storage; generated for Chunkify temporary\n\t// storage. The filename must contain one %05d placeholder, replaced by the image\n\t// or sprite sheet number starting at 1, and end in .jpg for jpeg or .webp for\n\t// webp. The WebVTT file uses the filename without the placeholder and its adjacent\n\t// separator, such as thumb.vtt for thumb-%05d.jpg. The combined path may contain\n\t// at most 1024 bytes.\n\tPath param.Opt[string] `json:\"path,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nOutput Storage selection, independent of Source storage.\n\n```go\nfunc (r ThumbnailCreateStorageParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ThumbnailCreateStorageParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ThumbnailCrop struct {\n\t// X specifies the left edge in pixels.\n\tX int64 `json:\"x\" api:\"required\"`\n\t// Y specifies the top edge in pixels.\n\tY int64 `json:\"y\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tX           respjson.Field\n\t\tY           respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nThe image rectangle within a sprite sheet.\n\n```go\nfunc (r ThumbnailCrop) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ThumbnailCrop) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ThumbnailDeleteParams struct {\n\t// DeleteFiles specifies whether to permanently delete this Thumbnail's owned\n\t// images, sprite sheets, VTT and partial outputs at their saved storage prefix.\n\t// Defaults to false. The Source and unrelated files are preserved. If deletion\n\t// fails, records remain for retry, but some files may already be deleted.\n\t// Temporary outputs still expire when this option is false.\n\tDeleteFiles param.Opt[bool] `query:\"delete_files,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ThumbnailDeleteParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [ThumbnailDeleteParams](#ThumbnailDeleteParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype ThumbnailError struct {\n\t// Code identifies the processing failure.\n\tCode string `json:\"code\" api:\"required\"`\n\t// Message explains the processing failure.\n\tMessage string `json:\"message\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCode        respjson.Field\n\t\tMessage     respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA customer-facing processing failure.\n\n```go\nfunc (r ThumbnailError) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ThumbnailError) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ThumbnailFile struct {\n\t// Kind identifies an individual image, sprite sheet, or WebVTT index.\n\t//\n\t// Any of \"image\", \"sprite\", \"vtt\".\n\tKind ThumbnailFileKind `json:\"kind\" api:\"required\"`\n\t// Path specifies the file relative to storage_prefix.\n\tPath string `json:\"path\" api:\"required\"`\n\t// Size specifies the measured encoded file size in bytes.\n\tSize int64 `json:\"size\" api:\"required\"`\n\t// CdnUrl provides delivery through the configured CDN. Omitted without a CDN or\n\t// after expiry.\n\tCdnURL string `json:\"cdn_url\"`\n\t// Height specifies the measured image or complete sprite canvas height. Omitted\n\t// for WebVTT.\n\tHeight int64 `json:\"height\"`\n\t// Url provides temporary authorized delivery. Omitted after expiry or when\n\t// unavailable.\n\tURL string `json:\"url\"`\n\t// Width specifies the measured image or complete sprite canvas width. Omitted for\n\t// WebVTT.\n\tWidth int64 `json:\"width\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tKind        respjson.Field\n\t\tPath        respjson.Field\n\t\tSize        respjson.Field\n\t\tCdnURL      respjson.Field\n\t\tHeight      respjson.Field\n\t\tURL         respjson.Field\n\t\tWidth       respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nOne published image, sprite sheet, or WebVTT file.\n\n```go\nfunc (r ThumbnailFile) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ThumbnailFile) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ThumbnailFileKind string\n```\nKind identifies an individual image, sprite sheet, or WebVTT index.\n\n```go\nconst (\n\tThumbnailFileKindImage  ThumbnailFileKind = \"image\"\n\tThumbnailFileKindSprite ThumbnailFileKind = \"sprite\"\n\tThumbnailFileKindVtt    ThumbnailFileKind = \"vtt\"\n)\n```\n\n```go\ntype ThumbnailFormat string\n```\nFormat specifies the image encoding.\n\n```go\nconst (\n\tThumbnailFormatJpeg ThumbnailFormat = \"jpeg\"\n\tThumbnailFormatWebp ThumbnailFormat = \"webp\"\n)\n```\n\n```go\ntype ThumbnailGetResponseEnvelope struct {\n\t// Data contains the thumbnail resource.\n\tData Thumbnail `json:\"data\" api:\"required\"`\n\t// Status is success for a successful request.\n\tStatus constant.Success `json:\"status\" default:\"success\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tData        respjson.Field\n\t\tStatus      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA thumbnail resource response.\n\n```go\nfunc (r ThumbnailGetResponseEnvelope) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ThumbnailGetResponseEnvelope) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ThumbnailListParams struct {\n\t// Id filters by an exact Thumbnail ID. Omit to include all matching resources.\n\tID param.Opt[string] `query:\"id,omitzero\" json:\"-\"`\n\t// Maximum number of Thumbnails to return.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Number of Thumbnails to skip.\n\tOffset param.Opt[int64] `query:\"offset,omitzero\" json:\"-\"`\n\t// Filter Thumbnails linked to this Source. Omit to include Thumbnails from all\n\t// Sources in the Project.\n\tSourceID param.Opt[string] `query:\"source_id,omitzero\" json:\"-\"`\n\t// Filter by output Storage ID.\n\tStorageID param.Opt[string]          `query:\"storage_id,omitzero\" json:\"-\"`\n\tCreated   ThumbnailListParamsCreated `query:\"created,omitzero\" json:\"-\"`\n\t// Filter by metadata. Repeat key:value pairs to match all supplied metadata\n\t// conditions.\n\tMetadata []string `query:\"metadata,omitzero\" json:\"-\"`\n\t// Filter by Thumbnail status.\n\t//\n\t// Any of \"preparing\", \"ready\", \"failed\", \"expired\".\n\tStatus ThumbnailStatus `query:\"status,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ThumbnailListParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [ThumbnailListParams](#ThumbnailListParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype ThumbnailListParamsCreated struct {\n\t// Created at or after this Unix timestamp in seconds.\n\tGte param.Opt[int64] `query:\"gte,omitzero\" json:\"-\"`\n\t// Created at or before this Unix timestamp in seconds.\n\tLte param.Opt[int64] `query:\"lte,omitzero\" json:\"-\"`\n\t// Creation-time ordering. Defaults to newest first.\n\t//\n\t// Any of \"asc\", \"desc\".\n\tSort string `query:\"sort,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ThumbnailListParamsCreated) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [ThumbnailListParamsCreated](#ThumbnailListParamsCreated)'s query parameters as \\`url.Values\\`.\n\n```go\ntype ThumbnailNewParams struct {\n\t// SourceId identifies a video Source in this Project.\n\tSourceID string `json:\"source_id\" api:\"required\"`\n\t// Count specifies 1 to 100 thumbnails at the middle of equal sections of the\n\t// selected range.\n\tCount param.Opt[int64] `json:\"count,omitzero\"`\n\t// Size specifies the maximum image or tile edge in pixels, from 64 to 1920.\n\t// Defaults to 320. Odd sizes are supported. Preserves display aspect ratio without\n\t// cropping or upscaling.\n\tSize param.Opt[int64] `json:\"size,omitzero\"`\n\t// Format selects JPEG or WebP. Defaults to JPEG.\n\t//\n\t// Any of \"jpeg\", \"webp\".\n\tFormat ThumbnailFormat `json:\"format,omitzero\"`\n\t// Metadata attaches string values to this request. The serialized object may\n\t// contain at most 2048 bytes.\n\tMetadata map[string]string `json:\"metadata,omitzero\"`\n\t// Output selects images or sprites. Defaults to images.\n\t//\n\t// Any of \"images\", \"sprites\".\n\tOutput ThumbnailOutput `json:\"output,omitzero\"`\n\t// Range limits sampling to part of the Source. Defaults to the whole Source\n\t// duration.\n\tRange ThumbnailRangeParams `json:\"range,omitzero\"`\n\t// Storage overrides the Project output destination and names the output files.\n\t// Source storage remains independent.\n\tStorage ThumbnailCreateStorageParams `json:\"storage,omitzero\"`\n\t// Timestamps specifies 1 to 100 Source-relative target times in seconds. Every\n\t// time must be within the selected range. Repeated targets produce separate\n\t// outputs.\n\tTimestamps []float64 `json:\"timestamps,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ThumbnailNewParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ThumbnailNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ThumbnailNewResponseEnvelope struct {\n\t// Data contains the thumbnail resource.\n\tData Thumbnail `json:\"data\" api:\"required\"`\n\t// Status is success for a successful request.\n\tStatus constant.Success `json:\"status\" default:\"success\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tData        respjson.Field\n\t\tStatus      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA thumbnail resource response.\n\n```go\nfunc (r ThumbnailNewResponseEnvelope) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ThumbnailNewResponseEnvelope) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ThumbnailOutput string\n```\nOutput specifies individual images or automatically arranged sprite sheets.\n\n```go\nconst (\n\tThumbnailOutputImages  ThumbnailOutput = \"images\"\n\tThumbnailOutputSprites ThumbnailOutput = \"sprites\"\n)\n```\n\n```go\ntype ThumbnailRange struct {\n\t// End specifies the exclusive upper bound in seconds.\n\tEnd float64 `json:\"end\" api:\"required\"`\n\t// Start specifies the inclusive lower bound in seconds.\n\tStart float64 `json:\"start\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tEnd         respjson.Field\n\t\tStart       respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nThe resolved Source-relative sampling range.\n\n```go\nfunc (r ThumbnailRange) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ThumbnailRange) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ThumbnailRangeParams struct {\n\t// End specifies the exclusive upper bound in seconds. Defaults to the Source\n\t// duration.\n\tEnd param.Opt[float64] `json:\"end,omitzero\"`\n\t// Start specifies the inclusive lower bound in seconds. Defaults to zero.\n\tStart param.Opt[float64] `json:\"start,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nOptional Source-relative sampling boundaries.\n\n```go\nfunc (r ThumbnailRangeParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ThumbnailRangeParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ThumbnailSample struct {\n\t// Height specifies this image or tile height in pixels.\n\tHeight int64 `json:\"height\" api:\"required\"`\n\t// Path identifies the image or sprite sheet in files.\n\tPath string `json:\"path\" api:\"required\"`\n\t// Timestamp specifies the measured Source-relative presentation time of the\n\t// selected frame in seconds. Compatible cached inputs use millisecond timestamps,\n\t// which can select a neighboring frame compared with the original Source.\n\tTimestamp float64 `json:\"timestamp\" api:\"required\"`\n\t// Width specifies this image or tile width in pixels.\n\tWidth int64 `json:\"width\" api:\"required\"`\n\t// Crop specifies the tile origin in its sprite sheet. Omitted for individual\n\t// images; width and height give the tile dimensions.\n\tCrop ThumbnailCrop `json:\"crop\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tHeight      respjson.Field\n\t\tPath        respjson.Field\n\t\tTimestamp   respjson.Field\n\t\tWidth       respjson.Field\n\t\tCrop        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nOne successfully published requested sample. Repeated samples remain separate entries.\n\n```go\nfunc (r ThumbnailSample) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ThumbnailSample) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ThumbnailService struct {\n\tOptions []option.RequestOption\n}\n```\nThumbnailService contains methods and other services that help with interacting with the chunkify API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewThumbnailService](#NewThumbnailService) method instead.\n\n```go\nfunc NewThumbnailService(opts ...option.RequestOption) (r ThumbnailService)\n```\nNewThumbnailService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *ThumbnailService) Delete(ctx context.Context, thumbnailID string, body ThumbnailDeleteParams, opts ...option.RequestOption) (err error)\n```\nDelete a ready, failed or expired Thumbnail after all workers have stopped. The Source and settled usage are preserved. Files remain unless delete\\_files is true; temporary files retain their original 24-hour expiry. Deletion remains available for inactive teams.\n\n```go\nfunc (r *ThumbnailService) Get(ctx context.Context, thumbnailID string, opts ...option.RequestOption) (res *Thumbnail, err error)\n```\nRetrieve one Thumbnail request with its accepted settings, current status, sampled frames, and published image files with their delivery URLs.\n\n```go\nfunc (r *ThumbnailService) List(ctx context.Context, query ThumbnailListParams, opts ...option.RequestOption) (res *pagination.PaginatedResults[Thumbnail], err error)\n```\nList Thumbnails in the authenticated Project, newest first by default. Filter by status, Source, Storage, metadata, or creation date.\n\n```go\nfunc (r *ThumbnailService) ListAutoPaging(ctx context.Context, query ThumbnailListParams, opts ...option.RequestOption) *pagination.PaginatedResultsAutoPager[Thumbnail]\n```\nList Thumbnails in the authenticated Project, newest first by default. Filter by status, Source, Storage, metadata, or creation date.\n\n```go\nfunc (r *ThumbnailService) New(ctx context.Context, body ThumbnailNewParams, opts ...option.RequestOption) (res *Thumbnail, err error)\n```\nGenerate individual images or sprite sheets from a Source. Each accepted request creates a new resource. Processing continues after the response.\n\n```go\ntype ThumbnailSettings struct {\n\t// Format specifies the accepted image encoding.\n\t//\n\t// Any of \"jpeg\", \"webp\".\n\tFormat ThumbnailFormat `json:\"format\" api:\"required\"`\n\t// Output specifies the accepted output mode.\n\t//\n\t// Any of \"images\", \"sprites\".\n\tOutput ThumbnailOutput `json:\"output\" api:\"required\"`\n\t// Range contains the accepted sampling boundaries.\n\tRange ThumbnailRange `json:\"range\" api:\"required\"`\n\t// Size specifies the accepted maximum image or tile edge in pixels.\n\tSize int64 `json:\"size\" api:\"required\"`\n\t// Count specifies 1 to 100 thumbnails at the middle of equal sections of the\n\t// selected range.\n\tCount int64 `json:\"count\"`\n\t// Timestamps specifies 1 to 100 Source-relative target times in seconds. Every\n\t// time must be within the selected range. Repeated targets produce separate\n\t// outputs.\n\tTimestamps []float64 `json:\"timestamps\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tFormat      respjson.Field\n\t\tOutput      respjson.Field\n\t\tRange       respjson.Field\n\t\tSize        respjson.Field\n\t\tCount       respjson.Field\n\t\tTimestamps  respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nAccepted sampling and output settings, with defaults resolved.\n\n```go\nfunc (r ThumbnailSettings) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ThumbnailSettings) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ThumbnailStatus string\n```\nStatus is ready only after processing and publication finish. Temporary outputs become expired after their retention period.\n\n```go\nconst (\n\tThumbnailStatusPreparing ThumbnailStatus = \"preparing\"\n\tThumbnailStatusReady     ThumbnailStatus = \"ready\"\n\tThumbnailStatusFailed    ThumbnailStatus = \"failed\"\n\tThumbnailStatusExpired   ThumbnailStatus = \"expired\"\n)\n```\n\n```go\ntype Token struct {\n\t// Unique identifier of the token\n\tID string `json:\"id\" api:\"required\"`\n\t// The actual token value (only returned on creation)\n\tToken string `json:\"token\" api:\"required\"`\n\t// Timestamp when the token was created\n\tCreatedAt time.Time `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\t// Name given to the token\n\tName string `json:\"name\" api:\"required\"`\n\t// ID of the project this token belongs to\n\tProjectID string `json:\"project_id\" api:\"required\"`\n\t// Access scope of the token\n\t//\n\t// Any of \"project\", \"team\".\n\tScope TokenScope `json:\"scope\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tToken       respjson.Field\n\t\tCreatedAt   respjson.Field\n\t\tName        respjson.Field\n\t\tProjectID   respjson.Field\n\t\tScope       respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r Token) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *Token) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype TokenListResponse struct {\n\t// Data contains the token items\n\tData []Token `json:\"data\" api:\"required\"`\n\t// Status indicates the response status \"success\"\n\tStatus constant.Success `json:\"status\" default:\"success\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tData        respjson.Field\n\t\tStatus      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nResponse containing the list of all tokens for a team. Including project and team tokens.\n\n```go\nfunc (r TokenListResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *TokenListResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype TokenNewParams struct {\n\t// Scope specifies the scope of the token, which must be either \"team\" or\n\t// \"project\".\n\t//\n\t// Any of \"project\", \"team\".\n\tScope TokenScope `json:\"scope,omitzero\" api:\"required\"`\n\t// Name is the name of the token, which can be up to 64 characters long.\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// ProjectId is required if the scope is set to \"project\".\n\tProjectID param.Opt[string] `json:\"project_id,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r TokenNewParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *TokenNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype TokenNewResponseEnvelope struct {\n\t// Data contains the response object\n\tData Token `json:\"data\" api:\"required\"`\n\t// Status indicates the response status \"success\"\n\tStatus constant.Success `json:\"status\" default:\"success\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tData        respjson.Field\n\t\tStatus      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r TokenNewResponseEnvelope) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *TokenNewResponseEnvelope) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype TokenScope string\n```\n\n```go\nconst (\n\tTokenScopeProject TokenScope = \"project\"\n\tTokenScopeTeam    TokenScope = \"team\"\n)\n```\n\n```go\ntype TokenService struct {\n\tOptions []option.RequestOption\n}\n```\nTokenService contains methods and other services that help with interacting with the chunkify API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewTokenService](#NewTokenService) method instead.\n\n```go\nfunc NewTokenService(opts ...option.RequestOption) (r TokenService)\n```\nNewTokenService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *TokenService) List(ctx context.Context, opts ...option.RequestOption) (res *TokenListResponse, err error)\n```\nRetrieve a list of all API tokens for your account, including both team-scoped and project-scoped tokens. For each token, the response includes its name, scope, creation date, and usage statistics. The token values are not included in the response for security reasons.\n\n```go\nfunc (r *TokenService) New(ctx context.Context, body TokenNewParams, opts ...option.RequestOption) (res *Token, err error)\n```\nCreate a new access token for either account-wide or project-specific access. Project tokens require a valid project slug.\n\n```go\nfunc (r *TokenService) Revoke(ctx context.Context, tokenID string, opts ...option.RequestOption) (err error)\n```\nRevoke an access token by its ID. Revocation is immediate and irreversible, so requests that still use the token are rejected right away.\n\n```go\ntype TranscoderStatus = shared.TranscoderStatus\n```\nThis is an alias to an internal type.\n\n```go\ntype TranscoderStatusStatus = shared.TranscoderStatusStatus\n```\nCurrent status of the transcoder (starting, transcoding, finished, failed)\n\nThis is an alias to an internal type.\n\n```go\ntype Transcoding struct {\n\t// Id uniquely identifies the Transcoding.\n\tID string `json:\"id\" api:\"required\"`\n\t// CreatedAt specifies when the request was accepted.\n\tCreatedAt time.Time `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\t// Files contains the published output files and their measured properties, ordered\n\t// by creation time. Empty until publication. Presigned URLs are refreshed on each\n\t// read and included in lifecycle webhooks when available.\n\tFiles []TranscodingFile `json:\"files\" api:\"required\"`\n\t// Format contains the resolved encoding settings accepted at creation, including\n\t// defaults, dimensions, frame rate and normalized seek and duration. Per-title\n\t// rate control is resolved during processing. Measured media properties are\n\t// available in Files.\n\tFormat TranscodingFormat `json:\"format\" api:\"required\"`\n\t// Metadata contains the string values attached to the Transcoding.\n\tMetadata map[string]string `json:\"metadata\" api:\"required\"`\n\t// Status reports processing or output expiry.\n\t//\n\t// Any of \"preparing\", \"ready\", \"failed\", \"cancelled\", \"expired\".\n\tStatus TranscodingStatus `json:\"status\" api:\"required\"`\n\t// Storage contains the resolved output destination.\n\tStorage TranscodingStorage `json:\"storage\" api:\"required\"`\n\t// UpdatedAt specifies when the request was last updated.\n\tUpdatedAt time.Time `json:\"updated_at\" api:\"required\" format:\"date-time\"`\n\t// CreatedByTokenId specifies the Project token used to create the resource. It\n\t// remains set after the token is revoked. Omitted for dashboard requests, MCP\n\t// OAuth connections, Workflow actions, and unknown creators.\n\tCreatedByTokenID string `json:\"created_by_token_id\"`\n\t// CreatedByUserId specifies the team member who created the resource. Omitted for\n\t// Workflow actions, unknown creators, and deleted accounts.\n\tCreatedByUserID string `json:\"created_by_user_id\"`\n\t// CreatedVia specifies how the resource was created: api for API requests,\n\t// dashboard for the Chunkify dashboard, mcp for MCP clients, and workflow for\n\t// Workflow actions. Omitted when the creator is unknown.\n\t//\n\t// Any of \"api\", \"dashboard\", \"mcp\", \"workflow\".\n\tCreatedVia shared.CreatedVia `json:\"created_via\"`\n\t// DeleteAt specifies when this record is deleted: three days after its temporary\n\t// output expires, otherwise when the team's data retention period ends, counted\n\t// from when the request was accepted, and no sooner than three days after it\n\t// finished. It does not delete files in customer-owned Storage. Omitted while the\n\t// Transcoding is preparing.\n\tDeleteAt time.Time `json:\"delete_at\" format:\"date-time\"`\n\t// Error describes why processing failed. Omitted when no processing error exists.\n\tError TranscodingError `json:\"error\"`\n\t// ExpiresAt specifies when temporary output files expire. Omitted for customer\n\t// output Storage and before the Transcoding is ready.\n\tExpiresAt time.Time `json:\"expires_at\" format:\"date-time\"`\n\t// ProcessingStage specifies the current activity while the status is preparing.\n\t// Omitted otherwise.\n\t//\n\t// Any of \"queued\", \"starting\", \"encoding\", \"finalizing\", \"uploading\".\n\tProcessingStage TranscodingProcessingStage `json:\"processing_stage\"`\n\t// Progress specifies the video encoding percentage. Available once processing\n\t// starts and after the output is ready. Omitted for audio-only output; 100\n\t// requires published output.\n\tProgress float64 `json:\"progress\"`\n\t// ReadyAt specifies when the output was published. Omitted before the Transcoding\n\t// is ready.\n\tReadyAt time.Time `json:\"ready_at\" format:\"date-time\"`\n\t// SourceId identifies the original Source. Omitted after Source deletion.\n\tSourceID string `json:\"source_id\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID               respjson.Field\n\t\tCreatedAt        respjson.Field\n\t\tFiles            respjson.Field\n\t\tFormat           respjson.Field\n\t\tMetadata         respjson.Field\n\t\tStatus           respjson.Field\n\t\tStorage          respjson.Field\n\t\tUpdatedAt        respjson.Field\n\t\tCreatedByTokenID respjson.Field\n\t\tCreatedByUserID  respjson.Field\n\t\tCreatedVia       respjson.Field\n\t\tDeleteAt         respjson.Field\n\t\tError            respjson.Field\n\t\tExpiresAt        respjson.Field\n\t\tProcessingStage  respjson.Field\n\t\tProgress         respjson.Field\n\t\tReadyAt          respjson.Field\n\t\tSourceID         respjson.Field\n\t\tExtraFields      map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA standalone file-encoding request with its accepted settings and published files.\n\n```go\nfunc (r Transcoding) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *Transcoding) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype TranscodingCreateFormatParamsUnion struct {\n\tOfMP4H264 *TranscodingMP4H264Param `json:\",omitzero,inline\"`\n\tOfMP4H265 *TranscodingMP4H265Param `json:\",omitzero,inline\"`\n\tOfMP4Av1  *TranscodingMP4Av1Param  `json:\",omitzero,inline\"`\n\tOfWebmVp9 *TranscodingWebmVp9Param `json:\",omitzero,inline\"`\n\tOfM4aAac  *TranscodingM4aAacParam  `json:\",omitzero,inline\"`\n\t// contains filtered or unexported fields\n}\n```\nOnly one field can be non-zero.\n\nUse [param.IsOmitted](/github.com/chunkifydev/chunkify-go/packages/param#IsOmitted) to confirm if a field is set.\n\n```go\nfunc (u TranscodingCreateFormatParamsUnion) GetAudioBitrate() *int64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u TranscodingCreateFormatParamsUnion) GetAudioSamplerate() *int64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u TranscodingCreateFormatParamsUnion) GetBufsize() *int64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u TranscodingCreateFormatParamsUnion) GetCPUUsed() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u TranscodingCreateFormatParamsUnion) GetChannels() *int64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u TranscodingCreateFormatParamsUnion) GetCrf() *int64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u TranscodingCreateFormatParamsUnion) GetDisableAudio() *bool\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u TranscodingCreateFormatParamsUnion) GetDisableVideo() *bool\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u TranscodingCreateFormatParamsUnion) GetDuration() *float64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u TranscodingCreateFormatParamsUnion) GetFramerate() *float64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u TranscodingCreateFormatParamsUnion) GetGop() *int64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u TranscodingCreateFormatParamsUnion) GetHeight() *int64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u TranscodingCreateFormatParamsUnion) GetID() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u TranscodingCreateFormatParamsUnion) GetLevel() *int64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u TranscodingCreateFormatParamsUnion) GetMaxrate() *int64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u TranscodingCreateFormatParamsUnion) GetMinrate() *int64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u TranscodingCreateFormatParamsUnion) GetMovflags() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u TranscodingCreateFormatParamsUnion) GetPerTitle() *bool\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u TranscodingCreateFormatParamsUnion) GetPixfmt() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u TranscodingCreateFormatParamsUnion) GetPreset() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u TranscodingCreateFormatParamsUnion) GetProfilev() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u TranscodingCreateFormatParamsUnion) GetQuality() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u TranscodingCreateFormatParamsUnion) GetSeek() *float64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u TranscodingCreateFormatParamsUnion) GetVideoBitrate() *int64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u TranscodingCreateFormatParamsUnion) GetWidth() *int64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u TranscodingCreateFormatParamsUnion) GetX264Keyint() *int64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u TranscodingCreateFormatParamsUnion) GetX265Keyint() *int64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u TranscodingCreateFormatParamsUnion) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (u *TranscodingCreateFormatParamsUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype TranscodingCreateStorageParams struct {\n\t// Id specifies a Storage in this Project. Defaults to the Project output storage.\n\tID param.Opt[string] `json:\"id,omitzero\"`\n\t// Path specifies the output object path relative to the selected Storage\n\t// base_prefix. Required for customer storage; generated for Chunkify temporary\n\t// storage. The extension must match the resolved output format. The combined path\n\t// may contain at most 1024 bytes.\n\tPath param.Opt[string] `json:\"path,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nOutput storage selection, independent of the Source storage.\n\n```go\nfunc (r TranscodingCreateStorageParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *TranscodingCreateStorageParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype TranscodingDeleteParams struct {\n\t// DeleteFiles specifies whether to permanently delete this Transcoding's output\n\t// files at their saved storage paths. Defaults to false. The original Source and\n\t// unrelated files are preserved. If deletion fails, records remain for retry, but\n\t// some files may already be deleted. Managed dashboard images are removed with the\n\t// resource; temporary outputs still expire after 24 hours when this option is\n\t// false.\n\tDeleteFiles param.Opt[bool] `query:\"delete_files,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r TranscodingDeleteParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [TranscodingDeleteParams](#TranscodingDeleteParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype TranscodingError struct {\n\t// Code identifies the processing failure.\n\tCode string `json:\"code\" api:\"required\"`\n\t// Message describes the failure without internal worker or provider diagnostics.\n\tMessage string `json:\"message\" api:\"required\"`\n\t// Stage identifies where processing failed.\n\t//\n\t// Any of \"queued\", \"starting\", \"encoding\", \"finalizing\", \"uploading\".\n\tStage TranscodingProcessingStage `json:\"stage\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCode        respjson.Field\n\t\tMessage     respjson.Field\n\t\tStage       respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA customer-facing Transcoding processing failure.\n\n```go\nfunc (r TranscodingError) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *TranscodingError) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype TranscodingFile struct {\n\t// Id identifies this published Transcoding file.\n\tID string `json:\"id\" api:\"required\"`\n\t// CreatedAt records when the validated file was published.\n\tCreatedAt time.Time `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\t// Duration specifies the measured output duration in seconds.\n\tDuration float64 `json:\"duration\" api:\"required\"`\n\t// MimeType specifies the media content type.\n\tMimeType string `json:\"mime_type\" api:\"required\"`\n\t// Path specifies the output path relative to the Storage base_prefix saved when\n\t// the Transcoding was created. Later Storage prefix changes do not move this file.\n\tPath string `json:\"path\" api:\"required\"`\n\t// Size specifies the measured file size in bytes.\n\tSize int64 `json:\"size\" api:\"required\"`\n\t// StorageId identifies the output Storage.\n\tStorageID string `json:\"storage_id\" api:\"required\"`\n\t// Thumbnails contains available dashboard preview images. Empty for audio-only\n\t// files, failed previews or expired files.\n\tThumbnails []TranscodingFileThumbnail `json:\"thumbnails\" api:\"required\"`\n\t// TranscodingId identifies the Transcoding that produced this file.\n\tTranscodingID string `json:\"transcoding_id\" api:\"required\"`\n\t// AudioBitrate specifies measured audio bits per second, or zero when unavailable.\n\t// Omitted without audio.\n\tAudioBitrate int64 `json:\"audio_bitrate\"`\n\t// AudioCodec specifies the measured audio codec. Omitted without audio.\n\tAudioCodec string `json:\"audio_codec\"`\n\t// AudioSamplerate specifies measured audio samples per second. Omitted without\n\t// audio.\n\tAudioSamplerate int64 `json:\"audio_samplerate\"`\n\t// CdnUrl provides the URL from the Storage CDN configuration. Omitted without a\n\t// configured CDN or after file expiry.\n\tCdnURL string `json:\"cdn_url\"`\n\t// ExpiresAt specifies when a temporary output expires. Omitted for customer-owned\n\t// output storage.\n\tExpiresAt time.Time `json:\"expires_at\" format:\"date-time\"`\n\t// Height specifies the measured video height in pixels. Omitted for audio-only\n\t// files.\n\tHeight int64 `json:\"height\"`\n\t// ThumbnailStatus reports the optional dashboard preview result. Failure does not\n\t// affect the media file. Omitted for audio-only files.\n\t//\n\t// Any of \"ready\", \"failed\".\n\tThumbnailStatus TranscodingFileThumbnailStatus `json:\"thumbnail_status\"`\n\t// Url provides a signed download valid for at most ten minutes. Omitted when the\n\t// file has expired or signing is unavailable.\n\tURL string `json:\"url\"`\n\t// VideoBitrate specifies measured video bits per second, or zero when unavailable.\n\t// Omitted without video.\n\tVideoBitrate int64 `json:\"video_bitrate\"`\n\t// VideoCodec specifies the measured video codec. Omitted for audio-only files.\n\tVideoCodec string `json:\"video_codec\"`\n\t// VideoFramerate specifies measured video frames per second. Omitted without\n\t// video.\n\tVideoFramerate float64 `json:\"video_framerate\"`\n\t// Width specifies the measured video width in pixels. Omitted for audio-only\n\t// files.\n\tWidth int64 `json:\"width\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID              respjson.Field\n\t\tCreatedAt       respjson.Field\n\t\tDuration        respjson.Field\n\t\tMimeType        respjson.Field\n\t\tPath            respjson.Field\n\t\tSize            respjson.Field\n\t\tStorageID       respjson.Field\n\t\tThumbnails      respjson.Field\n\t\tTranscodingID   respjson.Field\n\t\tAudioBitrate    respjson.Field\n\t\tAudioCodec      respjson.Field\n\t\tAudioSamplerate respjson.Field\n\t\tCdnURL          respjson.Field\n\t\tExpiresAt       respjson.Field\n\t\tHeight          respjson.Field\n\t\tThumbnailStatus respjson.Field\n\t\tURL             respjson.Field\n\t\tVideoBitrate    respjson.Field\n\t\tVideoCodec      respjson.Field\n\t\tVideoFramerate  respjson.Field\n\t\tWidth           respjson.Field\n\t\tExtraFields     map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA validated media file published by a Transcoding.\n\n```go\nfunc (r TranscodingFile) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *TranscodingFile) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype TranscodingFileThumbnail struct {\n\t// Format specifies the image encoding.\n\t//\n\t// Any of \"jpeg\", \"webp\".\n\tFormat TranscodingFileThumbnailFormat `json:\"format\" api:\"required\"`\n\t// Height specifies the measured image height in pixels.\n\tHeight int64 `json:\"height\" api:\"required\"`\n\t// Size specifies the measured image size in bytes.\n\tSize int64 `json:\"size\" api:\"required\"`\n\t// Url provides a signed image URL valid for at most ten minutes.\n\tURL string `json:\"url\" api:\"required\"`\n\t// Width specifies the measured image width in pixels.\n\tWidth int64 `json:\"width\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tFormat      respjson.Field\n\t\tHeight      respjson.Field\n\t\tSize        respjson.Field\n\t\tURL         respjson.Field\n\t\tWidth       respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nAn optional dashboard preview of the completed output.\n\n```go\nfunc (r TranscodingFileThumbnail) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *TranscodingFileThumbnail) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype TranscodingFileThumbnailFormat string\n```\nFormat specifies the image encoding.\n\n```go\nconst (\n\tTranscodingFileThumbnailFormatJpeg TranscodingFileThumbnailFormat = \"jpeg\"\n\tTranscodingFileThumbnailFormatWebp TranscodingFileThumbnailFormat = \"webp\"\n)\n```\n\n```go\ntype TranscodingFileThumbnailStatus string\n```\nThumbnailStatus reports the optional dashboard preview result. Failure does not affect the media file. Omitted for audio-only files.\n\n```go\nconst (\n\tTranscodingFileThumbnailStatusReady  TranscodingFileThumbnailStatus = \"ready\"\n\tTranscodingFileThumbnailStatusFailed TranscodingFileThumbnailStatus = \"failed\"\n)\n```\n\n```go\ntype TranscodingFormat struct {\n\t// Id specifies the resolved container and codec selection.\n\t//\n\t// Any of \"mp4_h264\", \"mp4_h265\", \"mp4_av1\", \"webm_vp9\", \"m4a_aac\".\n\tID TranscodingFormatID `json:\"id\" api:\"required\"`\n\t// Duration specifies the accepted output duration in seconds, including normalized\n\t// trims.\n\tDuration float64 `json:\"duration\" api:\"required\"`\n\t// Seek specifies the accepted start position in source seconds, normalized to the\n\t// output timeline.\n\tSeek float64 `json:\"seek\" api:\"required\"`\n\t// AudioBitrate specifies the resolved audio bitrate in bits per second. Omitted\n\t// for video-only output.\n\tAudioBitrate int64 `json:\"audio_bitrate\"`\n\t// AudioSamplerate specifies the resolved audio samples per second. Omitted for\n\t// video-only output.\n\tAudioSamplerate int64 `json:\"audio_samplerate\"`\n\t// Bufsize specifies the resolved video buffer size in bits, including codec-level\n\t// defaults. Omitted when no buffer applies.\n\tBufsize int64 `json:\"bufsize\"`\n\t// Channels specifies the resolved audio channel count: 1, 2, 6 or 8. Omitted for\n\t// video-only output.\n\tChannels int64 `json:\"channels\"`\n\t// CpuUsed specifies the accepted VP9 encoder speed setting from 0 through 8.\n\t// Omitted for other codecs.\n\tCPUUsed string `json:\"cpu_used\"`\n\t// Crf specifies the accepted constant quality. Omitted for bitrate-controlled,\n\t// per-title and audio-only encoding.\n\tCrf int64 `json:\"crf\"`\n\t// DisableAudio is true for video-only output. Omitted when audio is selected.\n\tDisableAudio bool `json:\"disable_audio\"`\n\t// Framerate specifies the resolved video frames per second. Omitted for audio-only\n\t// output.\n\tFramerate float64 `json:\"framerate\"`\n\t// Gop specifies the resolved maximum keyframe interval in frames. Omitted for\n\t// audio-only output.\n\tGop int64 `json:\"gop\"`\n\t// Height specifies the resolved video height in pixels. Omitted for audio-only\n\t// output.\n\tHeight int64 `json:\"height\"`\n\t// Level specifies the accepted codec level when explicitly selected.\n\tLevel int64 `json:\"level\"`\n\t// Maxrate specifies the resolved maximum video bitrate in bits per second,\n\t// including codec-level defaults. Omitted when no maximum applies.\n\tMaxrate int64 `json:\"maxrate\"`\n\t// Minrate specifies the accepted minimum video bitrate in bits per second, when\n\t// configured.\n\tMinrate int64 `json:\"minrate\"`\n\t// Movflags specifies MP4 packaging. MP4 video exports use faststart.\n\tMovflags string `json:\"movflags\"`\n\t// PerTitle specifies whether video rate control is selected during content\n\t// analysis. Omitted for audio-only output.\n\tPerTitle bool `json:\"per_title\"`\n\t// Pixfmt specifies the accepted video pixel format. Omitted for audio-only output.\n\tPixfmt string `json:\"pixfmt\"`\n\t// Preset specifies the accepted codec preset. Omitted when the codec does not use\n\t// presets.\n\tPreset string `json:\"preset\"`\n\t// Profilev specifies the accepted codec profile when explicitly selected.\n\tProfilev string `json:\"profilev\"`\n\t// Quality specifies the accepted VP9 deadline policy: good, best or realtime.\n\t// Omitted for other codecs.\n\tQuality string `json:\"quality\"`\n\t// VideoBitrate specifies the accepted video bitrate in bits per second. Omitted\n\t// for CRF and per-title encoding.\n\tVideoBitrate int64 `json:\"video_bitrate\"`\n\t// Width specifies the resolved video width in pixels. Omitted for audio-only\n\t// output.\n\tWidth int64 `json:\"width\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID              respjson.Field\n\t\tDuration        respjson.Field\n\t\tSeek            respjson.Field\n\t\tAudioBitrate    respjson.Field\n\t\tAudioSamplerate respjson.Field\n\t\tBufsize         respjson.Field\n\t\tChannels        respjson.Field\n\t\tCPUUsed         respjson.Field\n\t\tCrf             respjson.Field\n\t\tDisableAudio    respjson.Field\n\t\tFramerate       respjson.Field\n\t\tGop             respjson.Field\n\t\tHeight          respjson.Field\n\t\tLevel           respjson.Field\n\t\tMaxrate         respjson.Field\n\t\tMinrate         respjson.Field\n\t\tMovflags        respjson.Field\n\t\tPerTitle        respjson.Field\n\t\tPixfmt          respjson.Field\n\t\tPreset          respjson.Field\n\t\tProfilev        respjson.Field\n\t\tQuality         respjson.Field\n\t\tVideoBitrate    respjson.Field\n\t\tWidth           respjson.Field\n\t\tExtraFields     map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nResolved encoding settings accepted at creation. Only settings applicable to the selected streams and codec are included.\n\n```go\nfunc (r TranscodingFormat) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *TranscodingFormat) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype TranscodingFormatID string\n```\nId specifies the resolved container and codec selection.\n\n```go\nconst (\n\tTranscodingFormatIDMP4H264 TranscodingFormatID = \"mp4_h264\"\n\tTranscodingFormatIDMP4H265 TranscodingFormatID = \"mp4_h265\"\n\tTranscodingFormatIDMP4Av1  TranscodingFormatID = \"mp4_av1\"\n\tTranscodingFormatIDWebmVp9 TranscodingFormatID = \"webm_vp9\"\n\tTranscodingFormatIDM4aAac  TranscodingFormatID = \"m4a_aac\"\n)\n```\n\n```go\ntype TranscodingGetResponseEnvelope struct {\n\t// Data contains the Transcoding.\n\tData Transcoding `json:\"data\" api:\"required\"`\n\t// Status is success for a successful request.\n\tStatus constant.Success `json:\"status\" default:\"success\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tData        respjson.Field\n\t\tStatus      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA Project-scoped Transcoding response.\n\n```go\nfunc (r TranscodingGetResponseEnvelope) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *TranscodingGetResponseEnvelope) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype TranscodingListParams struct {\n\t// Id filters by an exact Transcoding ID. Omit to include all matching resources.\n\tID param.Opt[string] `query:\"id,omitzero\" json:\"-\"`\n\t// Maximum number of Transcodings to return.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Number of Transcodings to skip.\n\tOffset param.Opt[int64] `query:\"offset,omitzero\" json:\"-\"`\n\t// Filter Transcodings linked to this Source. Omit to include Transcodings from all\n\t// Sources in the Project.\n\tSourceID param.Opt[string] `query:\"source_id,omitzero\" json:\"-\"`\n\t// Filter by output Storage ID.\n\tStorageID param.Opt[string]            `query:\"storage_id,omitzero\" json:\"-\"`\n\tCreated   TranscodingListParamsCreated `query:\"created,omitzero\" json:\"-\"`\n\t// Filter by Transcoding format ID.\n\t//\n\t// Any of \"mp4_h264\", \"mp4_h265\", \"mp4_av1\", \"webm_vp9\", \"m4a_aac\".\n\tFormat TranscodingListParamsFormat `query:\"format,omitzero\" json:\"-\"`\n\t// Filter by metadata. Repeat key:value pairs to match all supplied metadata\n\t// conditions.\n\tMetadata []string `query:\"metadata,omitzero\" json:\"-\"`\n\t// Filter by Transcoding status.\n\t//\n\t// Any of \"preparing\", \"ready\", \"failed\", \"cancelled\", \"expired\".\n\tStatus TranscodingStatus `query:\"status,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r TranscodingListParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [TranscodingListParams](#TranscodingListParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype TranscodingListParamsCreated struct {\n\t// Created at or after this Unix timestamp in seconds.\n\tGte param.Opt[int64] `query:\"gte,omitzero\" json:\"-\"`\n\t// Created at or before this Unix timestamp in seconds.\n\tLte param.Opt[int64] `query:\"lte,omitzero\" json:\"-\"`\n\t// Creation-time ordering. Defaults to newest first.\n\t//\n\t// Any of \"asc\", \"desc\".\n\tSort string `query:\"sort,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r TranscodingListParamsCreated) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [TranscodingListParamsCreated](#TranscodingListParamsCreated)'s query parameters as \\`url.Values\\`.\n\n```go\ntype TranscodingListParamsFormat string\n```\nFilter by Transcoding format ID.\n\n```go\nconst (\n\tTranscodingListParamsFormatMP4H264 TranscodingListParamsFormat = \"mp4_h264\"\n\tTranscodingListParamsFormatMP4H265 TranscodingListParamsFormat = \"mp4_h265\"\n\tTranscodingListParamsFormatMP4Av1  TranscodingListParamsFormat = \"mp4_av1\"\n\tTranscodingListParamsFormatWebmVp9 TranscodingListParamsFormat = \"webm_vp9\"\n\tTranscodingListParamsFormatM4aAac  TranscodingListParamsFormat = \"m4a_aac\"\n)\n```\n\n```go\ntype TranscodingM4aAacParam struct {\n\t// AudioBitrate specifies the output audio bitrate in bits per second. Defaults\n\t// to 128000.\n\tAudioBitrate param.Opt[int64] `json:\"audio_bitrate,omitzero\"`\n\t// Duration specifies the requested output length in seconds. Defaults to the\n\t// remaining source duration and is capped at the source end. Audio-only output\n\t// must resolve to at least 0.001 seconds after trimming and sample rounding. The\n\t// accepted interval determines the fixed price.\n\tDuration param.Opt[float64] `json:\"duration,omitzero\"`\n\t// Seek specifies the start in source seconds. Defaults to zero and must precede\n\t// the source end. The accepted interval uses the output frame or sample timeline.\n\t// Audio-only output must retain at least 0.001 seconds after sample rounding.\n\tSeek param.Opt[float64] `json:\"seek,omitzero\"`\n\t// AudioSamplerate specifies the output sample rate in Hz. Defaults to 48000. WebM\n\t// Opus audio uses 48000.\n\t//\n\t// Any of 8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000, 64000,\n\t// 88200, 96000.\n\tAudioSamplerate int64 `json:\"audio_samplerate,omitzero\"`\n\t// Channels specifies the output channel count. Defaults to stereo. Six channels\n\t// means 5.1; eight means 7.1.\n\t//\n\t// Any of 1, 2, 6, 8.\n\tChannels int64 `json:\"channels,omitzero\"`\n\t// Id specifies an AAC M4A export.\n\t//\n\t// This field can be elided, and will marshal its zero value as \"m4a_aac\".\n\tID constant.M4aAac `json:\"id\" default:\"m4a_aac\"`\n\t// contains filtered or unexported fields\n}\n```\nThe property ID is required.\n\n```go\nfunc (r TranscodingM4aAacParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *TranscodingM4aAacParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype TranscodingMP4Av1Movflags string\n```\nMovflags specifies MP4 packaging. Defaults to faststart, which places playback metadata before the media.\n\n```go\nconst (\n\tTranscodingMP4Av1MovflagsFaststart TranscodingMP4Av1Movflags = \"faststart\"\n)\n```\n\n```go\ntype TranscodingMP4Av1Param struct {\n\t// AudioBitrate specifies the output audio bitrate in bits per second. Defaults\n\t// to 128000.\n\tAudioBitrate param.Opt[int64] `json:\"audio_bitrate,omitzero\"`\n\t// Bufsize specifies the video buffer size in bits, from 100000 through 50000000.\n\t// H.264 and H.265 require maxrate. AV1 and VP9 require a bitrate-controlled mode.\n\tBufsize param.Opt[int64] `json:\"bufsize,omitzero\"`\n\t// Crf (Constant Rate Factor) controls the quality of the output video. Lower\n\t// values mean better quality but larger file size. Range: 16 to 63. Recommended\n\t// values: 16-35 for high quality, 35-45 for good quality, 45-63 for acceptable\n\t// quality.\n\tCrf param.Opt[int64] `json:\"crf,omitzero\"`\n\t// DisableAudio omits the audio stream. Defaults to false. A source without audio\n\t// produces video only.\n\tDisableAudio param.Opt[bool] `json:\"disable_audio,omitzero\"`\n\t// DisableVideo selects an audio-only AAC M4A export. Defaults to false. The source\n\t// must contain audio.\n\tDisableVideo param.Opt[bool] `json:\"disable_video,omitzero\"`\n\t// Duration specifies the requested output length in seconds. Defaults to the\n\t// remaining source duration and is capped at the source end. Audio-only output\n\t// must resolve to at least 0.001 seconds after trimming and sample rounding. The\n\t// accepted interval determines the fixed price.\n\tDuration param.Opt[float64] `json:\"duration,omitzero\"`\n\t// Framerate specifies the output video frame rate. Defaults to the source rate and\n\t// must be between 0.001 and 240 fps.\n\tFramerate param.Opt[float64] `json:\"framerate,omitzero\"`\n\t// Gop specifies the maximum keyframe interval in frames. Defaults to four seconds\n\t// at the accepted frame rate, capped at 960 frames.\n\tGop param.Opt[int64] `json:\"gop,omitzero\"`\n\t// Height specifies the output dimension in pixels. Use -2 or omit one dimension to\n\t// preserve the source aspect ratio. Explicit dimensions must be 2 to 7680 and\n\t// even. Omitting both preserves the source dimensions rounded down to even pixels.\n\tHeight param.Opt[int64] `json:\"height,omitzero\"`\n\t// Maxrate specifies the video buffer maximum rate in bits per second, from 100000\n\t// through 50000000. H.264 and H.265 require bufsize. VP9 requires video_bitrate;\n\t// AV1 requires CRF mode.\n\tMaxrate param.Opt[int64] `json:\"maxrate,omitzero\"`\n\t// PerTitle enables independent content-based bitrate prediction for each part of\n\t// the video. Analysis uses only the selected trim interval. Defaults to false.\n\t// Explicit rate-control settings cannot be combined with it.\n\tPerTitle param.Opt[bool] `json:\"per_title,omitzero\"`\n\t// Seek specifies the start in source seconds. Defaults to zero and must precede\n\t// the source end. The accepted interval uses the output frame or sample timeline.\n\t// Audio-only output must retain at least 0.001 seconds after sample rounding.\n\tSeek param.Opt[float64] `json:\"seek,omitzero\"`\n\t// VideoBitrate specifies the target video bitrate in bits per second, from 1000\n\t// through 100000000. Omit it for CRF or per-title encoding.\n\tVideoBitrate param.Opt[int64] `json:\"video_bitrate,omitzero\"`\n\t// Width specifies the output dimension in pixels. Use -2 or omit one dimension to\n\t// preserve the source aspect ratio. Explicit dimensions must be 2 to 7680 and\n\t// even. Omitting both preserves the source dimensions rounded down to even pixels.\n\tWidth param.Opt[int64] `json:\"width,omitzero\"`\n\t// AudioSamplerate specifies the output sample rate in Hz. Defaults to 48000. WebM\n\t// Opus audio uses 48000.\n\t//\n\t// Any of 8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000, 64000,\n\t// 88200, 96000.\n\tAudioSamplerate int64 `json:\"audio_samplerate,omitzero\"`\n\t// Channels specifies the output channel count. Defaults to stereo. Six channels\n\t// means 5.1; eight means 7.1.\n\t//\n\t// Any of 1, 2, 6, 8.\n\tChannels int64 `json:\"channels,omitzero\"`\n\t// Level specifies the AV1 level using its two-digit representation, such as 31 for\n\t// level 3.1. The dimensions, frame rate and rate controls must fit this level.\n\t// Omitted rate limits resolve to level-compatible defaults.\n\t//\n\t// Any of 30, 31, 41.\n\tLevel int64 `json:\"level,omitzero\"`\n\t// Movflags specifies MP4 packaging. Defaults to faststart, which places playback\n\t// metadata before the media.\n\t//\n\t// Any of \"faststart\".\n\tMovflags TranscodingMP4Av1Movflags `json:\"movflags,omitzero\"`\n\t// Pixfmt specifies the output pixel format. Defaults to yuv420p. The selected\n\t// profile must support it.\n\t//\n\t// Any of \"yuv420p\", \"yuv420p10le\".\n\tPixfmt TranscodingMP4Av1Pixfmt `json:\"pixfmt,omitzero\"`\n\t// Preset controls the encoding efficiency and processing intensity. Lower presets\n\t// use more optimization features, creating smaller files with better quality but\n\t// requiring more compute time. Higher presets encode faster but produce larger\n\t// files.\n\t//\n\t// Preset ranges:\n\t//\n\t// - 6-7: Fast encoding for real-time applications (smaller files)\n\t// - 8-10: Balanced efficiency and speed for general use\n\t// - 11-13: Fastest encoding for real-time applications (larger files)\n\t//\n\t// Any of \"6\", \"7\", \"8\", \"9\", \"10\", \"11\", \"12\", \"13\".\n\tPreset TranscodingMP4Av1Preset `json:\"preset,omitzero\"`\n\t// Profilev selects the AV1 Main profile. Use pixfmt to select 8-bit or 10-bit\n\t// output.\n\t//\n\t// Any of \"main\".\n\tProfilev TranscodingMP4Av1Profilev `json:\"profilev,omitzero\"`\n\t// Id specifies the output format.\n\t//\n\t// This field can be elided, and will marshal its zero value as \"mp4_av1\".\n\tID constant.MP4Av1 `json:\"id\" default:\"mp4_av1\"`\n\t// contains filtered or unexported fields\n}\n```\nThe property ID is required.\n\n```go\nfunc (r TranscodingMP4Av1Param) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *TranscodingMP4Av1Param) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype TranscodingMP4Av1Pixfmt string\n```\nPixfmt specifies the output pixel format. Defaults to yuv420p. The selected profile must support it.\n\n```go\nconst (\n\tTranscodingMP4Av1PixfmtYuv420p     TranscodingMP4Av1Pixfmt = \"yuv420p\"\n\tTranscodingMP4Av1PixfmtYuv420p10le TranscodingMP4Av1Pixfmt = \"yuv420p10le\"\n)\n```\n\n```go\ntype TranscodingMP4Av1Preset string\n```\nPreset controls the encoding efficiency and processing intensity. Lower presets use more optimization features, creating smaller files with better quality but requiring more compute time. Higher presets encode faster but produce larger files.\n\nPreset ranges:\n\n\\- 6-7: Fast encoding for real-time applications (smaller files) - 8-10: Balanced efficiency and speed for general use - 11-13: Fastest encoding for real-time applications (larger files)\n\n```go\nconst (\n\tTranscodingMP4Av1Preset6  TranscodingMP4Av1Preset = \"6\"\n\tTranscodingMP4Av1Preset7  TranscodingMP4Av1Preset = \"7\"\n\tTranscodingMP4Av1Preset8  TranscodingMP4Av1Preset = \"8\"\n\tTranscodingMP4Av1Preset9  TranscodingMP4Av1Preset = \"9\"\n\tTranscodingMP4Av1Preset10 TranscodingMP4Av1Preset = \"10\"\n\tTranscodingMP4Av1Preset11 TranscodingMP4Av1Preset = \"11\"\n\tTranscodingMP4Av1Preset12 TranscodingMP4Av1Preset = \"12\"\n\tTranscodingMP4Av1Preset13 TranscodingMP4Av1Preset = \"13\"\n)\n```\n\n```go\ntype TranscodingMP4Av1Profilev string\n```\nProfilev selects the AV1 Main profile. Use pixfmt to select 8-bit or 10-bit output.\n\n```go\nconst (\n\tTranscodingMP4Av1ProfilevMain TranscodingMP4Av1Profilev = \"main\"\n)\n```\n\n```go\ntype TranscodingMP4H264Movflags string\n```\nMovflags specifies MP4 packaging. Defaults to faststart, which places playback metadata before the media.\n\n```go\nconst (\n\tTranscodingMP4H264MovflagsFaststart TranscodingMP4H264Movflags = \"faststart\"\n)\n```\n\n```go\ntype TranscodingMP4H264Param struct {\n\t// AudioBitrate specifies the output audio bitrate in bits per second. Defaults\n\t// to 128000.\n\tAudioBitrate param.Opt[int64] `json:\"audio_bitrate,omitzero\"`\n\t// Bufsize specifies the video buffer size in bits, from 100000 through 50000000.\n\t// H.264 and H.265 require maxrate. AV1 and VP9 require a bitrate-controlled mode.\n\tBufsize param.Opt[int64] `json:\"bufsize,omitzero\"`\n\t// Crf (Constant Rate Factor) controls the quality of the output video. Lower\n\t// values mean better quality but larger file size. Range: 16 to 35. Recommended\n\t// values: 18-28 for high quality, 23-28 for good quality, 28-35 for acceptable\n\t// quality.\n\tCrf param.Opt[int64] `json:\"crf,omitzero\"`\n\t// DisableAudio omits the audio stream. Defaults to false. A source without audio\n\t// produces video only.\n\tDisableAudio param.Opt[bool] `json:\"disable_audio,omitzero\"`\n\t// DisableVideo selects an audio-only AAC M4A export. Defaults to false. The source\n\t// must contain audio.\n\tDisableVideo param.Opt[bool] `json:\"disable_video,omitzero\"`\n\t// Duration specifies the requested output length in seconds. Defaults to the\n\t// remaining source duration and is capped at the source end. Audio-only output\n\t// must resolve to at least 0.001 seconds after trimming and sample rounding. The\n\t// accepted interval determines the fixed price.\n\tDuration param.Opt[float64] `json:\"duration,omitzero\"`\n\t// Framerate specifies the output video frame rate. Defaults to the source rate and\n\t// must be between 0.001 and 240 fps.\n\tFramerate param.Opt[float64] `json:\"framerate,omitzero\"`\n\t// Gop specifies the maximum keyframe interval in frames. Defaults to four seconds\n\t// at the accepted frame rate, capped at 960 frames.\n\tGop param.Opt[int64] `json:\"gop,omitzero\"`\n\t// Height specifies the output dimension in pixels. Use -2 or omit one dimension to\n\t// preserve the source aspect ratio. Explicit dimensions must be 2 to 7680 and\n\t// even. Omitting both preserves the source dimensions rounded down to even pixels.\n\tHeight param.Opt[int64] `json:\"height,omitzero\"`\n\t// Maxrate specifies the video buffer maximum rate in bits per second, from 100000\n\t// through 50000000. H.264 and H.265 require bufsize. VP9 requires video_bitrate;\n\t// AV1 requires CRF mode.\n\tMaxrate param.Opt[int64] `json:\"maxrate,omitzero\"`\n\t// PerTitle enables independent content-based bitrate prediction for each part of\n\t// the video. Analysis uses only the selected trim interval. Defaults to false.\n\t// Explicit rate-control settings cannot be combined with it.\n\tPerTitle param.Opt[bool] `json:\"per_title,omitzero\"`\n\t// Seek specifies the start in source seconds. Defaults to zero and must precede\n\t// the source end. The accepted interval uses the output frame or sample timeline.\n\t// Audio-only output must retain at least 0.001 seconds after sample rounding.\n\tSeek param.Opt[float64] `json:\"seek,omitzero\"`\n\t// VideoBitrate specifies the target video bitrate in bits per second, from 1000\n\t// through 100000000. Omit it for CRF or per-title encoding.\n\tVideoBitrate param.Opt[int64] `json:\"video_bitrate,omitzero\"`\n\t// Width specifies the output dimension in pixels. Use -2 or omit one dimension to\n\t// preserve the source aspect ratio. Explicit dimensions must be 2 to 7680 and\n\t// even. Omitting both preserves the source dimensions rounded down to even pixels.\n\tWidth param.Opt[int64] `json:\"width,omitzero\"`\n\t// X264KeyInt specifies the maximum number of frames between keyframes for H.264\n\t// encoding. Range: 1 to 960. Higher values can improve compression but may affect\n\t// seeking.\n\tX264Keyint param.Opt[int64] `json:\"x264_keyint,omitzero\"`\n\t// AudioSamplerate specifies the output sample rate in Hz. Defaults to 48000. WebM\n\t// Opus audio uses 48000.\n\t//\n\t// Any of 8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000, 64000,\n\t// 88200, 96000.\n\tAudioSamplerate int64 `json:\"audio_samplerate,omitzero\"`\n\t// Channels specifies the output channel count. Defaults to stereo. Six channels\n\t// means 5.1; eight means 7.1.\n\t//\n\t// Any of 1, 2, 6, 8.\n\tChannels int64 `json:\"channels,omitzero\"`\n\t// Level specifies the H.264 decoder level using its two-digit representation, such\n\t// as 41 for level 4.1. The dimensions, frame rate and rate controls must fit this\n\t// level and the effective profile. Omitted rate limits resolve to level-compatible\n\t// defaults.\n\t//\n\t// Any of 10, 11, 12, 13, 20, 21, 22, 30, 31, 32, 40, 41, 42, 50, 51.\n\tLevel int64 `json:\"level,omitzero\"`\n\t// Movflags specifies MP4 packaging. Defaults to faststart, which places playback\n\t// metadata before the media.\n\t//\n\t// Any of \"faststart\".\n\tMovflags TranscodingMP4H264Movflags `json:\"movflags,omitzero\"`\n\t// Pixfmt specifies the output pixel format. Defaults to yuv420p. The selected\n\t// profile must support it.\n\t//\n\t// Any of \"yuv420p\", \"yuv422p\", \"yuv444p\", \"yuv420p10le\", \"yuv422p10le\",\n\t// \"yuv444p10le\".\n\tPixfmt TranscodingMP4H264Pixfmt `json:\"pixfmt,omitzero\"`\n\t// Preset specifies the encoding speed preset. Valid values (from fastest to\n\t// slowest):\n\t//\n\t// - ultrafast: Fastest encoding, lowest quality\n\t// - superfast: Very fast encoding, lower quality\n\t// - veryfast: Fast encoding, moderate quality\n\t// - faster: Faster encoding, good quality\n\t// - fast: Fast encoding, better quality\n\t// - medium: Balanced preset, best quality\n\t//\n\t// Any of \"ultrafast\", \"superfast\", \"veryfast\", \"faster\", \"fast\", \"medium\".\n\tPreset TranscodingMP4H264Preset `json:\"preset,omitzero\"`\n\t// Profilev specifies the H.264 profile. Valid values:\n\t//\n\t// - baseline: Basic profile, good for mobile devices\n\t// - main: Main profile, good for most applications\n\t// - high: High profile, best quality but requires more processing\n\t// - high10: High 10-bit profile, supports 10-bit color\n\t// - high422: High 4:2:2 profile, supports 4:2:2 color sampling\n\t// - high444: High 4:4:4 profile, supports 4:4:4 color sampling\n\t//\n\t// Any of \"baseline\", \"main\", \"high\", \"high10\", \"high422\", \"high444\".\n\tProfilev TranscodingMP4H264Profilev `json:\"profilev,omitzero\"`\n\t// Id specifies the output format.\n\t//\n\t// This field can be elided, and will marshal its zero value as \"mp4_h264\".\n\tID constant.MP4H264 `json:\"id\" default:\"mp4_h264\"`\n\t// contains filtered or unexported fields\n}\n```\nThe property ID is required.\n\n```go\nfunc (r TranscodingMP4H264Param) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *TranscodingMP4H264Param) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype TranscodingMP4H264Pixfmt string\n```\nPixfmt specifies the output pixel format. Defaults to yuv420p. The selected profile must support it.\n\n```go\nconst (\n\tTranscodingMP4H264PixfmtYuv420p     TranscodingMP4H264Pixfmt = \"yuv420p\"\n\tTranscodingMP4H264PixfmtYuv422p     TranscodingMP4H264Pixfmt = \"yuv422p\"\n\tTranscodingMP4H264PixfmtYuv444p     TranscodingMP4H264Pixfmt = \"yuv444p\"\n\tTranscodingMP4H264PixfmtYuv420p10le TranscodingMP4H264Pixfmt = \"yuv420p10le\"\n\tTranscodingMP4H264PixfmtYuv422p10le TranscodingMP4H264Pixfmt = \"yuv422p10le\"\n\tTranscodingMP4H264PixfmtYuv444p10le TranscodingMP4H264Pixfmt = \"yuv444p10le\"\n)\n```\n\n```go\ntype TranscodingMP4H264Preset string\n```\nPreset specifies the encoding speed preset. Valid values (from fastest to slowest):\n\n\\- ultrafast: Fastest encoding, lowest quality - superfast: Very fast encoding, lower quality - veryfast: Fast encoding, moderate quality - faster: Faster encoding, good quality - fast: Fast encoding, better quality - medium: Balanced preset, best quality\n\n```go\nconst (\n\tTranscodingMP4H264PresetUltrafast TranscodingMP4H264Preset = \"ultrafast\"\n\tTranscodingMP4H264PresetSuperfast TranscodingMP4H264Preset = \"superfast\"\n\tTranscodingMP4H264PresetVeryfast  TranscodingMP4H264Preset = \"veryfast\"\n\tTranscodingMP4H264PresetFaster    TranscodingMP4H264Preset = \"faster\"\n\tTranscodingMP4H264PresetFast      TranscodingMP4H264Preset = \"fast\"\n\tTranscodingMP4H264PresetMedium    TranscodingMP4H264Preset = \"medium\"\n)\n```\n\n```go\ntype TranscodingMP4H264Profilev string\n```\nProfilev specifies the H.264 profile. Valid values:\n\n\\- baseline: Basic profile, good for mobile devices - main: Main profile, good for most applications - high: High profile, best quality but requires more processing - high10: High 10-bit profile, supports 10-bit color - high422: High 4:2:2 profile, supports 4:2:2 color sampling - high444: High 4:4:4 profile, supports 4:4:4 color sampling\n\n```go\nconst (\n\tTranscodingMP4H264ProfilevBaseline TranscodingMP4H264Profilev = \"baseline\"\n\tTranscodingMP4H264ProfilevMain     TranscodingMP4H264Profilev = \"main\"\n\tTranscodingMP4H264ProfilevHigh     TranscodingMP4H264Profilev = \"high\"\n\tTranscodingMP4H264ProfilevHigh10   TranscodingMP4H264Profilev = \"high10\"\n\tTranscodingMP4H264ProfilevHigh422  TranscodingMP4H264Profilev = \"high422\"\n\tTranscodingMP4H264ProfilevHigh444  TranscodingMP4H264Profilev = \"high444\"\n)\n```\n\n```go\ntype TranscodingMP4H265Movflags string\n```\nMovflags specifies MP4 packaging. Defaults to faststart, which places playback metadata before the media.\n\n```go\nconst (\n\tTranscodingMP4H265MovflagsFaststart TranscodingMP4H265Movflags = \"faststart\"\n)\n```\n\n```go\ntype TranscodingMP4H265Param struct {\n\t// AudioBitrate specifies the output audio bitrate in bits per second. Defaults\n\t// to 128000.\n\tAudioBitrate param.Opt[int64] `json:\"audio_bitrate,omitzero\"`\n\t// Bufsize specifies the video buffer size in bits, from 100000 through 50000000.\n\t// H.264 and H.265 require maxrate. AV1 and VP9 require a bitrate-controlled mode.\n\tBufsize param.Opt[int64] `json:\"bufsize,omitzero\"`\n\t// Crf (Constant Rate Factor) controls the quality of the output video. Lower\n\t// values mean better quality but larger file size. Range: 16 to 35. Recommended\n\t// values: 18-28 for high quality, 23-28 for good quality, 28-35 for acceptable\n\t// quality.\n\tCrf param.Opt[int64] `json:\"crf,omitzero\"`\n\t// DisableAudio omits the audio stream. Defaults to false. A source without audio\n\t// produces video only.\n\tDisableAudio param.Opt[bool] `json:\"disable_audio,omitzero\"`\n\t// DisableVideo selects an audio-only AAC M4A export. Defaults to false. The source\n\t// must contain audio.\n\tDisableVideo param.Opt[bool] `json:\"disable_video,omitzero\"`\n\t// Duration specifies the requested output length in seconds. Defaults to the\n\t// remaining source duration and is capped at the source end. Audio-only output\n\t// must resolve to at least 0.001 seconds after trimming and sample rounding. The\n\t// accepted interval determines the fixed price.\n\tDuration param.Opt[float64] `json:\"duration,omitzero\"`\n\t// Framerate specifies the output video frame rate. Defaults to the source rate and\n\t// must be between 0.001 and 240 fps.\n\tFramerate param.Opt[float64] `json:\"framerate,omitzero\"`\n\t// Gop specifies the maximum keyframe interval in frames. Defaults to four seconds\n\t// at the accepted frame rate, capped at 960 frames.\n\tGop param.Opt[int64] `json:\"gop,omitzero\"`\n\t// Height specifies the output dimension in pixels. Use -2 or omit one dimension to\n\t// preserve the source aspect ratio. Explicit dimensions must be 2 to 7680 and\n\t// even. Omitting both preserves the source dimensions rounded down to even pixels.\n\tHeight param.Opt[int64] `json:\"height,omitzero\"`\n\t// Maxrate specifies the video buffer maximum rate in bits per second, from 100000\n\t// through 50000000. H.264 and H.265 require bufsize. VP9 requires video_bitrate;\n\t// AV1 requires CRF mode.\n\tMaxrate param.Opt[int64] `json:\"maxrate,omitzero\"`\n\t// PerTitle enables independent content-based bitrate prediction for each part of\n\t// the video. Analysis uses only the selected trim interval. Defaults to false.\n\t// Explicit rate-control settings cannot be combined with it.\n\tPerTitle param.Opt[bool] `json:\"per_title,omitzero\"`\n\t// Seek specifies the start in source seconds. Defaults to zero and must precede\n\t// the source end. The accepted interval uses the output frame or sample timeline.\n\t// Audio-only output must retain at least 0.001 seconds after sample rounding.\n\tSeek param.Opt[float64] `json:\"seek,omitzero\"`\n\t// VideoBitrate specifies the target video bitrate in bits per second, from 1000\n\t// through 100000000. Omit it for CRF or per-title encoding.\n\tVideoBitrate param.Opt[int64] `json:\"video_bitrate,omitzero\"`\n\t// Width specifies the output dimension in pixels. Use -2 or omit one dimension to\n\t// preserve the source aspect ratio. Explicit dimensions must be 2 to 7680 and\n\t// even. Omitting both preserves the source dimensions rounded down to even pixels.\n\tWidth param.Opt[int64] `json:\"width,omitzero\"`\n\t// X265KeyInt specifies the maximum number of frames between keyframes for H.265\n\t// encoding. Range: 1 to 300. Higher values can improve compression but may affect\n\t// seeking.\n\tX265Keyint param.Opt[int64] `json:\"x265_keyint,omitzero\"`\n\t// AudioSamplerate specifies the output sample rate in Hz. Defaults to 48000. WebM\n\t// Opus audio uses 48000.\n\t//\n\t// Any of 8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000, 64000,\n\t// 88200, 96000.\n\tAudioSamplerate int64 `json:\"audio_samplerate,omitzero\"`\n\t// Channels specifies the output channel count. Defaults to stereo. Six channels\n\t// means 5.1; eight means 7.1.\n\t//\n\t// Any of 1, 2, 6, 8.\n\tChannels int64 `json:\"channels,omitzero\"`\n\t// Level specifies the HEVC level using its two-digit representation, such as 31\n\t// for level 3.1. The dimensions, frame rate and rate controls must fit this level.\n\t// Omitted rate limits resolve to level-compatible defaults.\n\t//\n\t// Any of 30, 31, 41.\n\tLevel int64 `json:\"level,omitzero\"`\n\t// Movflags specifies MP4 packaging. Defaults to faststart, which places playback\n\t// metadata before the media.\n\t//\n\t// Any of \"faststart\".\n\tMovflags TranscodingMP4H265Movflags `json:\"movflags,omitzero\"`\n\t// Pixfmt specifies the output pixel format. Defaults to yuv420p. The selected\n\t// profile must support it.\n\t//\n\t// Any of \"yuv420p\", \"yuv422p\", \"yuv444p\", \"yuv420p10le\", \"yuv422p10le\",\n\t// \"yuv444p10le\", \"yuv420p12le\", \"yuv422p12le\", \"yuv444p12le\".\n\tPixfmt TranscodingMP4H265Pixfmt `json:\"pixfmt,omitzero\"`\n\t// Preset specifies the encoding speed preset. Valid values (from fastest to\n\t// slowest):\n\t//\n\t// - ultrafast: Fastest encoding, lowest quality\n\t// - superfast: Very fast encoding, lower quality\n\t// - veryfast: Fast encoding, moderate quality\n\t// - faster: Faster encoding, good quality\n\t// - fast: Fast encoding, better quality\n\t// - medium: Balanced preset, best quality\n\t//\n\t// Any of \"ultrafast\", \"superfast\", \"veryfast\", \"faster\", \"fast\", \"medium\".\n\tPreset TranscodingMP4H265Preset `json:\"preset,omitzero\"`\n\t// Profilev selects the HEVC profile. It must support the requested pixel format.\n\t//\n\t// Any of \"main\", \"main10\", \"main12\", \"main422-10\", \"main422-12\", \"main444-8\",\n\t// \"main444-10\", \"main444-12\".\n\tProfilev TranscodingMP4H265Profilev `json:\"profilev,omitzero\"`\n\t// Id specifies the output format.\n\t//\n\t// This field can be elided, and will marshal its zero value as \"mp4_h265\".\n\tID constant.MP4H265 `json:\"id\" default:\"mp4_h265\"`\n\t// contains filtered or unexported fields\n}\n```\nThe property ID is required.\n\n```go\nfunc (r TranscodingMP4H265Param) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *TranscodingMP4H265Param) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype TranscodingMP4H265Pixfmt string\n```\nPixfmt specifies the output pixel format. Defaults to yuv420p. The selected profile must support it.\n\n```go\nconst (\n\tTranscodingMP4H265PixfmtYuv420p     TranscodingMP4H265Pixfmt = \"yuv420p\"\n\tTranscodingMP4H265PixfmtYuv422p     TranscodingMP4H265Pixfmt = \"yuv422p\"\n\tTranscodingMP4H265PixfmtYuv444p     TranscodingMP4H265Pixfmt = \"yuv444p\"\n\tTranscodingMP4H265PixfmtYuv420p10le TranscodingMP4H265Pixfmt = \"yuv420p10le\"\n\tTranscodingMP4H265PixfmtYuv422p10le TranscodingMP4H265Pixfmt = \"yuv422p10le\"\n\tTranscodingMP4H265PixfmtYuv444p10le TranscodingMP4H265Pixfmt = \"yuv444p10le\"\n\tTranscodingMP4H265PixfmtYuv420p12le TranscodingMP4H265Pixfmt = \"yuv420p12le\"\n\tTranscodingMP4H265PixfmtYuv422p12le TranscodingMP4H265Pixfmt = \"yuv422p12le\"\n\tTranscodingMP4H265PixfmtYuv444p12le TranscodingMP4H265Pixfmt = \"yuv444p12le\"\n)\n```\n\n```go\ntype TranscodingMP4H265Preset string\n```\nPreset specifies the encoding speed preset. Valid values (from fastest to slowest):\n\n\\- ultrafast: Fastest encoding, lowest quality - superfast: Very fast encoding, lower quality - veryfast: Fast encoding, moderate quality - faster: Faster encoding, good quality - fast: Fast encoding, better quality - medium: Balanced preset, best quality\n\n```go\nconst (\n\tTranscodingMP4H265PresetUltrafast TranscodingMP4H265Preset = \"ultrafast\"\n\tTranscodingMP4H265PresetSuperfast TranscodingMP4H265Preset = \"superfast\"\n\tTranscodingMP4H265PresetVeryfast  TranscodingMP4H265Preset = \"veryfast\"\n\tTranscodingMP4H265PresetFaster    TranscodingMP4H265Preset = \"faster\"\n\tTranscodingMP4H265PresetFast      TranscodingMP4H265Preset = \"fast\"\n\tTranscodingMP4H265PresetMedium    TranscodingMP4H265Preset = \"medium\"\n)\n```\n\n```go\ntype TranscodingMP4H265Profilev string\n```\nProfilev selects the HEVC profile. It must support the requested pixel format.\n\n```go\nconst (\n\tTranscodingMP4H265ProfilevMain       TranscodingMP4H265Profilev = \"main\"\n\tTranscodingMP4H265ProfilevMain10     TranscodingMP4H265Profilev = \"main10\"\n\tTranscodingMP4H265ProfilevMain12     TranscodingMP4H265Profilev = \"main12\"\n\tTranscodingMP4H265ProfilevMain422_10 TranscodingMP4H265Profilev = \"main422-10\"\n\tTranscodingMP4H265ProfilevMain422_12 TranscodingMP4H265Profilev = \"main422-12\"\n\tTranscodingMP4H265ProfilevMain444_8  TranscodingMP4H265Profilev = \"main444-8\"\n\tTranscodingMP4H265ProfilevMain444_10 TranscodingMP4H265Profilev = \"main444-10\"\n\tTranscodingMP4H265ProfilevMain444_12 TranscodingMP4H265Profilev = \"main444-12\"\n)\n```\n\n```go\ntype TranscodingNewParams struct {\n\t// Format specifies the requested encoding settings.\n\tFormat TranscodingCreateFormatParamsUnion `json:\"format,omitzero\" api:\"required\"`\n\t// SourceId identifies a Source in this Project.\n\tSourceID string `json:\"source_id\" api:\"required\"`\n\t// Metadata attaches string values to the Transcoding. The serialized object may\n\t// contain at most 2048 bytes.\n\tMetadata map[string]string `json:\"metadata,omitzero\"`\n\t// Storage overrides the Project output destination. Source storage remains\n\t// independent.\n\tStorage TranscodingCreateStorageParams `json:\"storage,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r TranscodingNewParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *TranscodingNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype TranscodingNewResponseEnvelope struct {\n\t// Data contains the Transcoding.\n\tData Transcoding `json:\"data\" api:\"required\"`\n\t// Status is success for a successful request.\n\tStatus constant.Success `json:\"status\" default:\"success\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tData        respjson.Field\n\t\tStatus      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA Project-scoped Transcoding response.\n\n```go\nfunc (r TranscodingNewResponseEnvelope) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *TranscodingNewResponseEnvelope) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype TranscodingProcessingStage string\n```\nProcessingStage specifies the current preparation activity. queued means the request is waiting for processing capacity.\n\n```go\nconst (\n\tTranscodingProcessingStageQueued     TranscodingProcessingStage = \"queued\"\n\tTranscodingProcessingStageStarting   TranscodingProcessingStage = \"starting\"\n\tTranscodingProcessingStageEncoding   TranscodingProcessingStage = \"encoding\"\n\tTranscodingProcessingStageFinalizing TranscodingProcessingStage = \"finalizing\"\n\tTranscodingProcessingStageUploading  TranscodingProcessingStage = \"uploading\"\n)\n```\n\n```go\ntype TranscodingService struct {\n\tOptions []option.RequestOption\n}\n```\nTranscodingService contains methods and other services that help with interacting with the chunkify API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewTranscodingService](#NewTranscodingService) method instead.\n\n```go\nfunc NewTranscodingService(opts ...option.RequestOption) (r TranscodingService)\n```\nNewTranscodingService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *TranscodingService) Cancel(ctx context.Context, transcodingID string, opts ...option.RequestOption) (err error)\n```\nCancel a Transcoding that is still preparing and release its unpaid reservation. Repeating an accepted cancellation succeeds without changes.\n\n```go\nfunc (r *TranscodingService) Delete(ctx context.Context, transcodingID string, body TranscodingDeleteParams, opts ...option.RequestOption) (err error)\n```\nDelete a ready, failed, cancelled or expired Transcoding and its file records. The Source and settled usage are preserved. Customer output files remain unless delete\\_files is true; temporary files retain their original 24-hour expiry. Deletion remains available for inactive teams.\n\n```go\nfunc (r *TranscodingService) Get(ctx context.Context, transcodingID string, opts ...option.RequestOption) (res *Transcoding, err error)\n```\nRetrieve one Transcoding with its accepted encoding settings, current status and progress, and published files with their delivery URLs.\n\n```go\nfunc (r *TranscodingService) List(ctx context.Context, query TranscodingListParams, opts ...option.RequestOption) (res *pagination.PaginatedResults[Transcoding], err error)\n```\nList Transcodings in the authenticated Project, newest first by default. Filter by status, format, Source, Storage, metadata, or creation date.\n\n```go\nfunc (r *TranscodingService) ListAutoPaging(ctx context.Context, query TranscodingListParams, opts ...option.RequestOption) *pagination.PaginatedResultsAutoPager[Transcoding]\n```\nList Transcodings in the authenticated Project, newest first by default. Filter by status, format, Source, Storage, metadata, or creation date.\n\n```go\nfunc (r *TranscodingService) New(ctx context.Context, body TranscodingNewParams, opts ...option.RequestOption) (res *Transcoding, err error)\n```\nCreate a standalone Transcoding that exports a Source as an MP4, WebM, or M4A file. Encoding settings are resolved and processing starts asynchronously.\n\n```go\ntype TranscodingStatus string\n```\nStatus is ready only after the output is validated and published. Temporary output becomes expired when its files are no longer available.\n\n```go\nconst (\n\tTranscodingStatusPreparing TranscodingStatus = \"preparing\"\n\tTranscodingStatusReady     TranscodingStatus = \"ready\"\n\tTranscodingStatusFailed    TranscodingStatus = \"failed\"\n\tTranscodingStatusCancelled TranscodingStatus = \"cancelled\"\n\tTranscodingStatusExpired   TranscodingStatus = \"expired\"\n)\n```\n\n```go\ntype TranscodingStorage struct {\n\t// Id identifies the output Storage.\n\tID string `json:\"id\" api:\"required\"`\n\t// Path specifies the output file path relative to the Storage base_prefix saved at\n\t// creation.\n\tPath string `json:\"path\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tPath        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nThe resolved output destination for a Transcoding.\n\n```go\nfunc (r TranscodingStorage) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *TranscodingStorage) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype TranscodingWebmVp9CPUUsed string\n```\nCpuUsed specifies the CPU usage level for VP9 encoding. Range: 0 to 8. Lower values mean better quality but slower encoding, higher values mean faster encoding but lower quality. Recommended values: 0-2 for high quality, 2-4 for good quality, 4-6 for balanced, 6-8 for speed\n\n```go\nconst (\n\tTranscodingWebmVp9CPUUsed0 TranscodingWebmVp9CPUUsed = \"0\"\n\tTranscodingWebmVp9CPUUsed1 TranscodingWebmVp9CPUUsed = \"1\"\n\tTranscodingWebmVp9CPUUsed2 TranscodingWebmVp9CPUUsed = \"2\"\n\tTranscodingWebmVp9CPUUsed3 TranscodingWebmVp9CPUUsed = \"3\"\n\tTranscodingWebmVp9CPUUsed4 TranscodingWebmVp9CPUUsed = \"4\"\n\tTranscodingWebmVp9CPUUsed5 TranscodingWebmVp9CPUUsed = \"5\"\n\tTranscodingWebmVp9CPUUsed6 TranscodingWebmVp9CPUUsed = \"6\"\n\tTranscodingWebmVp9CPUUsed7 TranscodingWebmVp9CPUUsed = \"7\"\n\tTranscodingWebmVp9CPUUsed8 TranscodingWebmVp9CPUUsed = \"8\"\n)\n```\n\n```go\ntype TranscodingWebmVp9Param struct {\n\t// AudioBitrate specifies the output audio bitrate in bits per second. Defaults\n\t// to 128000.\n\tAudioBitrate param.Opt[int64] `json:\"audio_bitrate,omitzero\"`\n\t// Bufsize specifies the video buffer size in bits, from 100000 through 50000000.\n\t// H.264 and H.265 require maxrate. AV1 and VP9 require a bitrate-controlled mode.\n\tBufsize param.Opt[int64] `json:\"bufsize,omitzero\"`\n\t// Crf (Constant Rate Factor) controls the quality of the output video. Lower\n\t// values mean better quality but larger file size. Range: 15 to 35. Recommended\n\t// values: 18-28 for high quality, 23-28 for good quality, 28-35 for acceptable\n\t// quality.\n\tCrf param.Opt[int64] `json:\"crf,omitzero\"`\n\t// DisableAudio omits the audio stream. Defaults to false. A source without audio\n\t// produces video only.\n\tDisableAudio param.Opt[bool] `json:\"disable_audio,omitzero\"`\n\t// DisableVideo selects an audio-only AAC M4A export. Defaults to false. The source\n\t// must contain audio.\n\tDisableVideo param.Opt[bool] `json:\"disable_video,omitzero\"`\n\t// Duration specifies the requested output length in seconds. Defaults to the\n\t// remaining source duration and is capped at the source end. Audio-only output\n\t// must resolve to at least 0.001 seconds after trimming and sample rounding. The\n\t// accepted interval determines the fixed price.\n\tDuration param.Opt[float64] `json:\"duration,omitzero\"`\n\t// Framerate specifies the output video frame rate. Defaults to the source rate and\n\t// must be between 0.001 and 240 fps.\n\tFramerate param.Opt[float64] `json:\"framerate,omitzero\"`\n\t// Gop specifies the maximum keyframe interval in frames. Defaults to four seconds\n\t// at the accepted frame rate, capped at 960 frames.\n\tGop param.Opt[int64] `json:\"gop,omitzero\"`\n\t// Height specifies the output dimension in pixels. Use -2 or omit one dimension to\n\t// preserve the source aspect ratio. Explicit dimensions must be 2 to 7680 and\n\t// even. Omitting both preserves the source dimensions rounded down to even pixels.\n\tHeight param.Opt[int64] `json:\"height,omitzero\"`\n\t// Maxrate specifies the video buffer maximum rate in bits per second, from 100000\n\t// through 50000000. H.264 and H.265 require bufsize. VP9 requires video_bitrate;\n\t// AV1 requires CRF mode.\n\tMaxrate param.Opt[int64] `json:\"maxrate,omitzero\"`\n\t// Minrate selects VP9 constant bitrate when equal to video_bitrate and maxrate.\n\t// Other minimum-rate combinations are unsupported.\n\tMinrate param.Opt[int64] `json:\"minrate,omitzero\"`\n\t// PerTitle enables independent content-based bitrate prediction for each part of\n\t// the video. Analysis uses only the selected trim interval. Defaults to false.\n\t// Explicit rate-control settings cannot be combined with it.\n\tPerTitle param.Opt[bool] `json:\"per_title,omitzero\"`\n\t// Seek specifies the start in source seconds. Defaults to zero and must precede\n\t// the source end. The accepted interval uses the output frame or sample timeline.\n\t// Audio-only output must retain at least 0.001 seconds after sample rounding.\n\tSeek param.Opt[float64] `json:\"seek,omitzero\"`\n\t// VideoBitrate specifies the target video bitrate in bits per second, from 1000\n\t// through 100000000. Omit it for CRF or per-title encoding.\n\tVideoBitrate param.Opt[int64] `json:\"video_bitrate,omitzero\"`\n\t// Width specifies the output dimension in pixels. Use -2 or omit one dimension to\n\t// preserve the source aspect ratio. Explicit dimensions must be 2 to 7680 and\n\t// even. Omitting both preserves the source dimensions rounded down to even pixels.\n\tWidth param.Opt[int64] `json:\"width,omitzero\"`\n\t// AudioSamplerate specifies the output sample rate in Hz. Defaults to 48000. WebM\n\t// Opus audio uses 48000.\n\t//\n\t// Any of 8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000, 64000,\n\t// 88200, 96000.\n\tAudioSamplerate int64 `json:\"audio_samplerate,omitzero\"`\n\t// Channels specifies the output channel count. Defaults to stereo. Six channels\n\t// means 5.1; eight means 7.1.\n\t//\n\t// Any of 1, 2, 6, 8.\n\tChannels int64 `json:\"channels,omitzero\"`\n\t// CpuUsed specifies the CPU usage level for VP9 encoding. Range: 0 to 8. Lower\n\t// values mean better quality but slower encoding, higher values mean faster\n\t// encoding but lower quality. Recommended values: 0-2 for high quality, 2-4 for\n\t// good quality, 4-6 for balanced, 6-8 for speed\n\t//\n\t// Any of \"0\", \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\".\n\tCPUUsed TranscodingWebmVp9CPUUsed `json:\"cpu_used,omitzero\"`\n\t// Pixfmt specifies the output pixel format. Defaults to yuv420p. The selected\n\t// profile must support it.\n\t//\n\t// Any of \"yuv420p\", \"yuv422p\", \"yuv440p\", \"yuv444p\", \"yuv420p10le\", \"yuv422p10le\",\n\t// \"yuv440p10le\", \"yuv444p10le\", \"yuv420p12le\", \"yuv422p12le\", \"yuv440p12le\",\n\t// \"yuv444p12le\".\n\tPixfmt TranscodingWebmVp9Pixfmt `json:\"pixfmt,omitzero\"`\n\t// Quality specifies the VP9 encoding quality preset. Valid values:\n\t//\n\t// - good: Balanced quality preset, good for most applications\n\t// - best: Best quality preset, slower encoding\n\t// - realtime: Fast encoding preset, suitable for live streaming\n\t//\n\t// Any of \"good\", \"best\", \"realtime\".\n\tQuality TranscodingWebmVp9Quality `json:\"quality,omitzero\"`\n\t// Id specifies the output format.\n\t//\n\t// This field can be elided, and will marshal its zero value as \"webm_vp9\".\n\tID constant.WebmVp9 `json:\"id\" default:\"webm_vp9\"`\n\t// contains filtered or unexported fields\n}\n```\nThe property ID is required.\n\n```go\nfunc (r TranscodingWebmVp9Param) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *TranscodingWebmVp9Param) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype TranscodingWebmVp9Pixfmt string\n```\nPixfmt specifies the output pixel format. Defaults to yuv420p. The selected profile must support it.\n\n```go\nconst (\n\tTranscodingWebmVp9PixfmtYuv420p     TranscodingWebmVp9Pixfmt = \"yuv420p\"\n\tTranscodingWebmVp9PixfmtYuv422p     TranscodingWebmVp9Pixfmt = \"yuv422p\"\n\tTranscodingWebmVp9PixfmtYuv440p     TranscodingWebmVp9Pixfmt = \"yuv440p\"\n\tTranscodingWebmVp9PixfmtYuv444p     TranscodingWebmVp9Pixfmt = \"yuv444p\"\n\tTranscodingWebmVp9PixfmtYuv420p10le TranscodingWebmVp9Pixfmt = \"yuv420p10le\"\n\tTranscodingWebmVp9PixfmtYuv422p10le TranscodingWebmVp9Pixfmt = \"yuv422p10le\"\n\tTranscodingWebmVp9PixfmtYuv440p10le TranscodingWebmVp9Pixfmt = \"yuv440p10le\"\n\tTranscodingWebmVp9PixfmtYuv444p10le TranscodingWebmVp9Pixfmt = \"yuv444p10le\"\n\tTranscodingWebmVp9PixfmtYuv420p12le TranscodingWebmVp9Pixfmt = \"yuv420p12le\"\n\tTranscodingWebmVp9PixfmtYuv422p12le TranscodingWebmVp9Pixfmt = \"yuv422p12le\"\n\tTranscodingWebmVp9PixfmtYuv440p12le TranscodingWebmVp9Pixfmt = \"yuv440p12le\"\n\tTranscodingWebmVp9PixfmtYuv444p12le TranscodingWebmVp9Pixfmt = \"yuv444p12le\"\n)\n```\n\n```go\ntype TranscodingWebmVp9Quality string\n```\nQuality specifies the VP9 encoding quality preset. Valid values:\n\n\\- good: Balanced quality preset, good for most applications - best: Best quality preset, slower encoding - realtime: Fast encoding preset, suitable for live streaming\n\n```go\nconst (\n\tTranscodingWebmVp9QualityGood     TranscodingWebmVp9Quality = \"good\"\n\tTranscodingWebmVp9QualityBest     TranscodingWebmVp9Quality = \"best\"\n\tTranscodingWebmVp9QualityRealtime TranscodingWebmVp9Quality = \"realtime\"\n)\n```\n\n```go\ntype UnwrapWebhookEventUnion struct {\n\tID string `json:\"id\"`\n\t// This field is a union of [NotificationPayloadJobCompletedData],\n\t// [NotificationPayloadJobFailedData], [NotificationPayloadJobCreatedData],\n\t// [NotificationPayloadSourceCreatedData], [NotificationPayloadSourceDeletedData],\n\t// [NotificationPayloadUploadCreatedData],\n\t// [NotificationPayloadUploadCompletedData], [NotificationPayloadUploadFailedData],\n\t// [NotificationPayloadAssetData], [NotificationPayloadAssetOutputData],\n\t// [NotificationPayloadAssetOutputDeletedData],\n\t// [NotificationPayloadAssetDeletedData], [NotificationPayloadWorkflowRunData],\n\t// [NotificationPayloadTranscodingData], [NotificationPayloadThumbnailData]\n\tData UnwrapWebhookEventUnionData `json:\"data\"`\n\tDate time.Time                   `json:\"date\"`\n\t// Any of \"job.completed\", nil, \"job.created\", \"source.created\", \"source.deleted\",\n\t// \"upload.created\", \"upload.completed\", nil, nil, nil, \"asset.output.deleted\",\n\t// \"asset.deleted\", nil, nil, nil.\n\tEvent string `json:\"event\"`\n\tJSON  struct {\n\t\tID    respjson.Field\n\t\tData  respjson.Field\n\t\tDate  respjson.Field\n\t\tEvent respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nUnwrapWebhookEventUnion contains all possible properties and values from [NotificationPayloadJobCompleted](#NotificationPayloadJobCompleted), [NotificationPayloadJobFailed](#NotificationPayloadJobFailed), [NotificationPayloadJobCreated](#NotificationPayloadJobCreated), [NotificationPayloadSourceCreated](#NotificationPayloadSourceCreated), [NotificationPayloadSourceDeleted](#NotificationPayloadSourceDeleted), [NotificationPayloadUploadCreated](#NotificationPayloadUploadCreated), [NotificationPayloadUploadCompleted](#NotificationPayloadUploadCompleted), [NotificationPayloadUploadFailed](#NotificationPayloadUploadFailed), [NotificationPayloadAsset](#NotificationPayloadAsset), [NotificationPayloadAssetOutput](#NotificationPayloadAssetOutput), [NotificationPayloadAssetOutputDeleted](#NotificationPayloadAssetOutputDeleted), [NotificationPayloadAssetDeleted](#NotificationPayloadAssetDeleted), [NotificationPayloadWorkflowRun](#NotificationPayloadWorkflowRun), [NotificationPayloadTranscoding](#NotificationPayloadTranscoding), [NotificationPayloadThumbnail](#NotificationPayloadThumbnail).\n\nUse the \\[UnwrapWebhookEventUnion.AsAny] method to switch on the variant.\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\n```go\nfunc (u UnwrapWebhookEventUnion) AsAssetDeleted() (v NotificationPayloadAssetDeleted)\n```\n\n```go\nfunc (u UnwrapWebhookEventUnion) AsAssetOutputDeleted() (v NotificationPayloadAssetOutputDeleted)\n```\n\n```go\nfunc (u UnwrapWebhookEventUnion) AsJobCompleted() (v NotificationPayloadJobCompleted)\n```\n\n```go\nfunc (u UnwrapWebhookEventUnion) AsJobCreated() (v NotificationPayloadJobCreated)\n```\n\n```go\nfunc (u UnwrapWebhookEventUnion) AsNotificationPayloadAsset() (v NotificationPayloadAsset)\n```\n\n```go\nfunc (u UnwrapWebhookEventUnion) AsNotificationPayloadAssetOutput() (v NotificationPayloadAssetOutput)\n```\n\n```go\nfunc (u UnwrapWebhookEventUnion) AsNotificationPayloadJobFailed() (v NotificationPayloadJobFailed)\n```\n\n```go\nfunc (u UnwrapWebhookEventUnion) AsNotificationPayloadThumbnail() (v NotificationPayloadThumbnail)\n```\n\n```go\nfunc (u UnwrapWebhookEventUnion) AsNotificationPayloadTranscoding() (v NotificationPayloadTranscoding)\n```\n\n```go\nfunc (u UnwrapWebhookEventUnion) AsNotificationPayloadUploadFailed() (v NotificationPayloadUploadFailed)\n```\n\n```go\nfunc (u UnwrapWebhookEventUnion) AsNotificationPayloadWorkflowRun() (v NotificationPayloadWorkflowRun)\n```\n\n```go\nfunc (u UnwrapWebhookEventUnion) AsSourceCreated() (v NotificationPayloadSourceCreated)\n```\n\n```go\nfunc (u UnwrapWebhookEventUnion) AsSourceDeleted() (v NotificationPayloadSourceDeleted)\n```\n\n```go\nfunc (u UnwrapWebhookEventUnion) AsUploadCompleted() (v NotificationPayloadUploadCompleted)\n```\n\n```go\nfunc (u UnwrapWebhookEventUnion) AsUploadCreated() (v NotificationPayloadUploadCreated)\n```\n\n```go\nfunc (u UnwrapWebhookEventUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *UnwrapWebhookEventUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype UnwrapWebhookEventUnionData struct {\n\t// This field is from variant [NotificationPayloadJobCompletedData].\n\tFiles []JobFile `json:\"files\"`\n\t// This field is from variant [NotificationPayloadJobCompletedData].\n\tJob Job `json:\"job\"`\n\t// This field is from variant [NotificationPayloadSourceCreatedData].\n\tSource Source `json:\"source\"`\n\t// This field is from variant [NotificationPayloadUploadCreatedData].\n\tUpload Upload `json:\"upload\"`\n\t// This field is from variant [NotificationPayloadAssetData].\n\tAsset Asset `json:\"asset\"`\n\t// This field is from variant [NotificationPayloadAssetOutputData].\n\tOutput       AssetOutputUnion `json:\"output\"`\n\tFilesDeleted bool             `json:\"files_deleted\"`\n\t// This field is from variant [NotificationPayloadAssetDeletedData].\n\tDeletedSize int64 `json:\"deleted_size\"`\n\t// This field is from variant [NotificationPayloadWorkflowRunData].\n\tActionRuns []AssetActionRun `json:\"action_runs\"`\n\t// This field is from variant [NotificationPayloadWorkflowRunData].\n\tWorkflowRun WorkflowRun `json:\"workflow_run\"`\n\t// This field is from variant [NotificationPayloadTranscodingData].\n\tTranscoding Transcoding `json:\"transcoding\"`\n\t// This field is from variant [NotificationPayloadThumbnailData].\n\tThumbnail Thumbnail `json:\"thumbnail\"`\n\tJSON      struct {\n\t\tFiles        respjson.Field\n\t\tJob          respjson.Field\n\t\tSource       respjson.Field\n\t\tUpload       respjson.Field\n\t\tAsset        respjson.Field\n\t\tOutput       respjson.Field\n\t\tFilesDeleted respjson.Field\n\t\tDeletedSize  respjson.Field\n\t\tActionRuns   respjson.Field\n\t\tWorkflowRun  respjson.Field\n\t\tTranscoding  respjson.Field\n\t\tThumbnail    respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nUnwrapWebhookEventUnionData is an implicit subunion of [UnwrapWebhookEventUnion](#UnwrapWebhookEventUnion). UnwrapWebhookEventUnionData provides convenient access to the sub-properties of the union.\n\nFor type safety it is recommended to directly use a variant of the [UnwrapWebhookEventUnion](#UnwrapWebhookEventUnion).\n\n```go\nfunc (r *UnwrapWebhookEventUnionData) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype Upload struct {\n\t// Unique identifier of the upload\n\tID string `json:\"id\" api:\"required\"`\n\t// Whether this Upload creates an Asset on completion.\n\tCreateAsset bool `json:\"create_asset\" api:\"required\"`\n\t// Timestamp when the upload was created\n\tCreatedAt time.Time `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\t// Timestamp when the upload will expire\n\tExpiresAt time.Time `json:\"expires_at\" api:\"required\" format:\"date-time\"`\n\t// Additional metadata for the upload\n\tMetadata map[string]string `json:\"metadata\" api:\"required\"`\n\t// Current status of the upload\n\t//\n\t// Any of \"waiting\", \"completed\", \"failed\", \"expired\".\n\tStatus UploadStatus `json:\"status\" api:\"required\"`\n\t// Timestamp when the upload was updated\n\tUpdatedAt time.Time `json:\"updated_at\" api:\"required\" format:\"date-time\"`\n\t// Resolved transfer mode for this Upload.\n\t//\n\t// Any of \"single\", \"multipart\".\n\tUploadMode UploadUploadMode `json:\"upload_mode\" api:\"required\"`\n\t// Selected Workflow ID, or null.\n\tWorkflowID string `json:\"workflow_id\" api:\"required\"`\n\t// Pinned Workflow revision, or null.\n\tWorkflowRevision int64 `json:\"workflow_revision\" api:\"required\"`\n\t// Automatically created Asset. May be absent before completion or after record\n\t// deletion.\n\tAssetID string `json:\"asset_id\"`\n\t// Completion capability, returned only on creation. POST after a successful single\n\t// PUT or with all multipart ETags before expires_at. Requires no API key. Repeated\n\t// valid calls are idempotent.\n\tCompletionURL string `json:\"completion_url\"`\n\t// CreatedByTokenId specifies the Project token used to create the resource. It\n\t// remains set after the token is revoked. Omitted for dashboard requests, MCP\n\t// OAuth connections, Workflow actions, and unknown creators.\n\tCreatedByTokenID string `json:\"created_by_token_id\"`\n\t// CreatedByUserId specifies the team member who created the resource. Omitted for\n\t// Workflow actions, unknown creators, and deleted accounts.\n\tCreatedByUserID string `json:\"created_by_user_id\"`\n\t// CreatedVia specifies how the resource was created: api for API requests,\n\t// dashboard for the Chunkify dashboard, mcp for MCP clients, and workflow for\n\t// Workflow actions. Omitted when the creator is unknown.\n\t//\n\t// Any of \"api\", \"dashboard\", \"mcp\", \"workflow\".\n\tCreatedVia shared.CreatedVia `json:\"created_via\"`\n\t// Error message of the upload\n\tError shared.ChunkifyError `json:\"error\"`\n\t// Declared file size in bytes, when supplied at creation.\n\tFileSizeBytes int64 `json:\"file_size_bytes\"`\n\t// Multipart transfer details, returned only on creation for multipart Uploads.\n\tMultipart UploadMultipartSession `json:\"multipart\"`\n\t// SourceId is the id of the source that was created from the upload\n\tSourceID string `json:\"source_id\"`\n\t// Resolved Storage selected when the Upload was created. Absent for historical\n\t// uploads.\n\tStorageID string `json:\"storage_id\"`\n\t// Presigned PUT URL, returned only when creating a single-PUT Upload session. Call\n\t// completion_url after the PUT succeeds.\n\tUploadURL string `json:\"upload_url\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID               respjson.Field\n\t\tCreateAsset      respjson.Field\n\t\tCreatedAt        respjson.Field\n\t\tExpiresAt        respjson.Field\n\t\tMetadata         respjson.Field\n\t\tStatus           respjson.Field\n\t\tUpdatedAt        respjson.Field\n\t\tUploadMode       respjson.Field\n\t\tWorkflowID       respjson.Field\n\t\tWorkflowRevision respjson.Field\n\t\tAssetID          respjson.Field\n\t\tCompletionURL    respjson.Field\n\t\tCreatedByTokenID respjson.Field\n\t\tCreatedByUserID  respjson.Field\n\t\tCreatedVia       respjson.Field\n\t\tError            respjson.Field\n\t\tFileSizeBytes    respjson.Field\n\t\tMultipart        respjson.Field\n\t\tSourceID         respjson.Field\n\t\tStorageID        respjson.Field\n\t\tUploadURL        respjson.Field\n\t\tExtraFields      map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r Upload) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *Upload) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype UploadCompleteParams struct {\n\t// All uploaded parts in ascending part_number order, with the ETags returned by\n\t// storage.\n\tParts []UploadMultipartPartParams `json:\"parts,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r UploadCompleteParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *UploadCompleteParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype UploadCompleteResponse struct {\n\t// Data contains the completed Upload\n\tData UploadCompletion `json:\"data\" api:\"required\"`\n\t// Status indicates the response status \"success\"\n\tStatus constant.Success `json:\"status\" default:\"success\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tData        respjson.Field\n\t\tStatus      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r UploadCompleteResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *UploadCompleteResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype UploadCompletion struct {\n\t// Id is the identifier of the completed Upload\n\tID string `json:\"id\" api:\"required\"`\n\t// SourceId is the id of the Source created from the Upload\n\tSourceID string `json:\"source_id\" api:\"required\"`\n\t// Status is always \"completed\"\n\tStatus constant.Completed `json:\"status\" default:\"completed\"`\n\t// AssetId is the id of the Asset created from the Upload. Present when the Upload\n\t// was created with create_asset, until that Asset is deleted.\n\tAssetID string `json:\"asset_id\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tSourceID    respjson.Field\n\t\tStatus      respjson.Field\n\t\tAssetID     respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nUploadCompletion identifies a completed Upload and the media it created. Read the Upload with its id for the remaining fields.\n\n```go\nfunc (r UploadCompletion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *UploadCompletion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype UploadCreateStorageParams struct {\n\t// Storage belonging to this Project. Omit to use the Project default.\n\tID param.Opt[string] `json:\"id,omitzero\"`\n\t// Exact object key including filename, required for customer Storage and forbidden\n\t// for Chunkify Storage. The output base_prefix is not added. Existing keys may be\n\t// overwritten.\n\tPath param.Opt[string] `json:\"path,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r UploadCreateStorageParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *UploadCreateStorageParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype UploadGetResponseEnvelope struct {\n\t// Data contains the response object\n\tData Upload `json:\"data\" api:\"required\"`\n\t// Status indicates the response status \"success\"\n\tStatus constant.Success `json:\"status\" default:\"success\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tData        respjson.Field\n\t\tStatus      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r UploadGetResponseEnvelope) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *UploadGetResponseEnvelope) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype UploadListParams struct {\n\t// Filter by upload ID\n\tID param.Opt[string] `query:\"id,omitzero\" json:\"-\"`\n\t// Pagination limit (max 100)\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Pagination offset\n\tOffset param.Opt[int64] `query:\"offset,omitzero\" json:\"-\"`\n\t// Filter by source ID\n\tSourceID param.Opt[string] `query:\"source_id,omitzero\" json:\"-\"`\n\t// Filter by input Storage ID.\n\tStorageID param.Opt[string]       `query:\"storage_id,omitzero\" json:\"-\"`\n\tCreated   UploadListParamsCreated `query:\"created,omitzero\" json:\"-\"`\n\t// Filter by metadata. Repeat key:value pairs to match all supplied metadata\n\t// conditions.\n\tMetadata []string `query:\"metadata,omitzero\" json:\"-\"`\n\t// Filter by status (pending, completed, error)\n\t//\n\t// Any of \"waiting\", \"completed\", \"failed\", \"expired\".\n\tStatus UploadListParamsStatus `query:\"status,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r UploadListParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [UploadListParams](#UploadListParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype UploadListParamsCreated struct {\n\t// Filter by creation date greater than or equal (UNIX epoch time)\n\tGte param.Opt[int64] `query:\"gte,omitzero\" format:\"epoch\" json:\"-\"`\n\t// Filter by creation date less than or equal (UNIX epoch time)\n\tLte param.Opt[int64] `query:\"lte,omitzero\" format:\"epoch\" json:\"-\"`\n\t// Sort by creation date (asc/desc)\n\t//\n\t// Any of \"asc\", \"desc\".\n\tSort string `query:\"sort,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r UploadListParamsCreated) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [UploadListParamsCreated](#UploadListParamsCreated)'s query parameters as \\`url.Values\\`.\n\n```go\ntype UploadListParamsStatus string\n```\nFilter by status (pending, completed, error)\n\n```go\nconst (\n\tUploadListParamsStatusWaiting   UploadListParamsStatus = \"waiting\"\n\tUploadListParamsStatusCompleted UploadListParamsStatus = \"completed\"\n\tUploadListParamsStatusFailed    UploadListParamsStatus = \"failed\"\n\tUploadListParamsStatusExpired   UploadListParamsStatus = \"expired\"\n)\n```\n\n```go\ntype UploadMultipartPartParams struct {\n\t// ETag returned by storage for this part, including its quotation marks when\n\t// present.\n\tEtag string `json:\"etag\" api:\"required\"`\n\t// One-based part number.\n\tPartNumber int64 `json:\"part_number\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nThe properties Etag, PartNumber are required.\n\n```go\nfunc (r UploadMultipartPartParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *UploadMultipartPartParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype UploadMultipartSession struct {\n\t// ExpiresAt specifies when the signed part URLs expire. URLs cannot be refreshed;\n\t// create a new Upload after expiry.\n\tExpiresAt time.Time `json:\"expires_at\" api:\"required\" format:\"date-time\"`\n\t// PartSizeBytes specifies the size of each part except the final part, in bytes.\n\tPartSizeBytes int64 `json:\"part_size_bytes\" api:\"required\"`\n\t// Parts contains every signed upload URL in ascending part_number order. Upload\n\t// file slices directly to these URLs.\n\tParts []UploadMultipartSignedPart `json:\"parts\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tExpiresAt     respjson.Field\n\t\tPartSizeBytes respjson.Field\n\t\tParts         respjson.Field\n\t\tExtraFields   map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r UploadMultipartSession) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *UploadMultipartSession) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype UploadMultipartSignedPart struct {\n\t// PartNumber specifies the one-based part number for this URL.\n\tPartNumber int64 `json:\"part_number\" api:\"required\"`\n\t// UploadUrl specifies the signed PUT URL for this part. Retry the same file slice\n\t// with this URL before multipart.expires_at.\n\tUploadURL string `json:\"upload_url\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tPartNumber  respjson.Field\n\t\tUploadURL   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r UploadMultipartSignedPart) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *UploadMultipartSignedPart) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype UploadNewParams struct {\n\t// WorkflowId specifies the Workflow to select. Omit to use the Project default.\n\t// Set null to disable automatic actions. The current revision is pinned when\n\t// creation is accepted.\n\tWorkflowID param.Opt[string] `json:\"workflow_id,omitzero\"`\n\t// CreateAsset specifies whether to create an Asset after Upload completion.\n\t// Defaults to false. Snapshots the Project output settings, including the path\n\t// template. Referenced metadata must be non-empty in this request. Asset\n\t// processing is billed separately.\n\tCreateAsset param.Opt[bool] `json:\"create_asset,omitzero\"`\n\t// FileSizeBytes specifies the exact file size in bytes. Required when UploadMode\n\t// is omitted, auto, or multipart. Optional for explicit single mode. Must fit the\n\t// team's Source size limit. Single PUT supports up to 5 GiB, subject to the\n\t// provider's limit; multipart supports up to 5 TiB.\n\tFileSizeBytes param.Opt[int64] `json:\"file_size_bytes,omitzero\"`\n\t// ValidityTimeout specifies the session and signed URL lifetime in seconds. Single\n\t// PUT defaults to 7200 and allows 300–36000. Multipart defaults to twice the\n\t// transfer time at 5 Mbps plus 1800 seconds, bounded to 7200–172800; an explicit\n\t// value allows 300–172800. Complete before expiry. Storage credentials and\n\t// policies can shorten URL validity. Expired URLs cannot be refreshed.\n\tValidityTimeout param.Opt[int64] `json:\"validity_timeout,omitzero\"`\n\t// Metadata allows for additional information to be attached to the upload, with a\n\t// maximum size of 2048 bytes.\n\tMetadata map[string]string `json:\"metadata,omitzero\"`\n\t// Optional Storage override. Omit id to use the Project default.\n\t// Customer-connected Storage requires path; Chunkify Storage generates its own\n\t// path.\n\tStorage UploadCreateStorageParams `json:\"storage,omitzero\"`\n\t// UploadMode specifies the transfer method. Defaults to auto. Auto chooses\n\t// multipart above 100 MiB and single PUT at or below 100 MiB for every Storage\n\t// provider. Multipart requires a provider that supports the required multipart\n\t// operations and signed part URLs. Provider failures return an error without\n\t// falling back to single PUT.\n\t//\n\t// Any of \"single\", \"multipart\", \"auto\".\n\tUploadMode UploadNewParamsUploadMode `json:\"upload_mode,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r UploadNewParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *UploadNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype UploadNewParamsUploadMode string\n```\nUploadMode specifies the transfer method. Defaults to auto. Auto chooses multipart above 100 MiB and single PUT at or below 100 MiB for every Storage provider. Multipart requires a provider that supports the required multipart operations and signed part URLs. Provider failures return an error without falling back to single PUT.\n\n```go\nconst (\n\tUploadNewParamsUploadModeSingle    UploadNewParamsUploadMode = \"single\"\n\tUploadNewParamsUploadModeMultipart UploadNewParamsUploadMode = \"multipart\"\n\tUploadNewParamsUploadModeAuto      UploadNewParamsUploadMode = \"auto\"\n)\n```\n\n```go\ntype UploadNewResponseEnvelope struct {\n\t// Data contains the response object\n\tData Upload `json:\"data\" api:\"required\"`\n\t// Status indicates the response status \"success\"\n\tStatus constant.Success `json:\"status\" default:\"success\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tData        respjson.Field\n\t\tStatus      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r UploadNewResponseEnvelope) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *UploadNewResponseEnvelope) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype UploadService struct {\n\tOptions []option.RequestOption\n}\n```\nUploadService contains methods and other services that help with interacting with the chunkify API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewUploadService](#NewUploadService) method instead.\n\n```go\nfunc NewUploadService(opts ...option.RequestOption) (r UploadService)\n```\nNewUploadService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *UploadService) Complete(ctx context.Context, token string, body UploadCompleteParams, opts ...option.RequestOption) (res *UploadCompleteResponse, err error)\n```\nPOST the returned completion\\_url before expires\\_at. Single-PUT Uploads send no body; multipart Uploads send every part number and storage ETag. Chunkify verifies the assembled object and atomically creates the Source and optional Asset. An Asset destination conflict returns 409 and fails the Upload without committing Source, Asset, or usage changes. Returns the completed Upload's id with the created source\\_id and, when requested, asset\\_id. Valid retries return the same response without duplicate side effects. Retry network errors, 429, and 5xx responses with bounded backoff.\n\n```go\nfunc (r *UploadService) Delete(ctx context.Context, uploadID string, opts ...option.RequestOption) (err error)\n```\nDelete an Upload session record from the Project. A Source already created from a completed Upload is not deleted and can still be processed.\n\n```go\nfunc (r *UploadService) Get(ctx context.Context, uploadID string, opts ...option.RequestOption) (res *Upload, err error)\n```\nRetrieve an Upload session by its ID, including its status, file size, expiry, error details, and the Source or Asset created from it.\n\n```go\nfunc (r *UploadService) List(ctx context.Context, query UploadListParams, opts ...option.RequestOption) (res *pagination.PaginatedResults[Upload], err error)\n```\nList Upload sessions in the Project, newest first by default. Filter by ID, status, Source, Storage, metadata, or creation date, with pagination.\n\n```go\nfunc (r *UploadService) ListAutoPaging(ctx context.Context, query UploadListParams, opts ...option.RequestOption) *pagination.PaginatedResultsAutoPager[Upload]\n```\nList Upload sessions in the Project, newest first by default. Filter by ID, status, Source, Storage, metadata, or creation date, with pagination.\n\n```go\nfunc (r *UploadService) New(ctx context.Context, body UploadNewParams, opts ...option.RequestOption) (res *Upload, err error)\n```\nCreate an Upload session for a direct transfer to storage. Multipart creation returns every signed part URL. Retry parts with their original URLs and complete before expiry. Customer storage requires long-lived credentials and an incomplete-multipart lifecycle rule. Start a new Upload after abandoning a session.\n\n```go\ntype UploadStatus string\n```\nCurrent status of the upload\n\n```go\nconst (\n\tUploadStatusWaiting   UploadStatus = \"waiting\"\n\tUploadStatusCompleted UploadStatus = \"completed\"\n\tUploadStatusFailed    UploadStatus = \"failed\"\n\tUploadStatusExpired   UploadStatus = \"expired\"\n)\n```\n\n```go\ntype UploadUploadMode string\n```\nResolved transfer mode for this Upload.\n\n```go\nconst (\n\tUploadUploadModeSingle    UploadUploadMode = \"single\"\n\tUploadUploadModeMultipart UploadUploadMode = \"multipart\"\n)\n```\n\n```go\ntype Webhook struct {\n\t// Unique identifier of the webhook\n\tID string `json:\"id\" api:\"required\"`\n\t// Whether the webhook is currently enabled\n\tEnabled bool `json:\"enabled\" api:\"required\"`\n\t// Array of event types this webhook subscribes to\n\tEvents []WebhookEvent `json:\"events\" api:\"required\"`\n\t// ID of the project this webhook belongs to\n\tProjectID string `json:\"project_id\" api:\"required\"`\n\t// URL where webhook events will be sent\n\tURL string `json:\"url\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tEnabled     respjson.Field\n\t\tEvents      respjson.Field\n\t\tProjectID   respjson.Field\n\t\tURL         respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r Webhook) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *Webhook) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WebhookEvent string\n```\n\n```go\nconst (\n\tWebhookEventJobCreated           WebhookEvent = \"job.created\"\n\tWebhookEventJobCompleted         WebhookEvent = \"job.completed\"\n\tWebhookEventJobFailed            WebhookEvent = \"job.failed\"\n\tWebhookEventJobCancelled         WebhookEvent = \"job.cancelled\"\n\tWebhookEventSourceCreated        WebhookEvent = \"source.created\"\n\tWebhookEventSourceDeleted        WebhookEvent = \"source.deleted\"\n\tWebhookEventUploadCreated        WebhookEvent = \"upload.created\"\n\tWebhookEventUploadCompleted      WebhookEvent = \"upload.completed\"\n\tWebhookEventUploadFailed         WebhookEvent = \"upload.failed\"\n\tWebhookEventUploadExpired        WebhookEvent = \"upload.expired\"\n\tWebhookEventAssetCreated         WebhookEvent = \"asset.created\"\n\tWebhookEventAssetReady           WebhookEvent = \"asset.ready\"\n\tWebhookEventAssetPlaybackReady   WebhookEvent = \"asset.playback_ready\"\n\tWebhookEventAssetFailed          WebhookEvent = \"asset.failed\"\n\tWebhookEventAssetExpired         WebhookEvent = \"asset.expired\"\n\tWebhookEventAssetDeleted         WebhookEvent = \"asset.deleted\"\n\tWebhookEventAssetOutputCreated   WebhookEvent = \"asset.output.created\"\n\tWebhookEventAssetOutputReady     WebhookEvent = \"asset.output.ready\"\n\tWebhookEventAssetOutputFailed    WebhookEvent = \"asset.output.failed\"\n\tWebhookEventAssetOutputDeleted   WebhookEvent = \"asset.output.deleted\"\n\tWebhookEventWorkflowRunCreated   WebhookEvent = \"workflow_run.created\"\n\tWebhookEventWorkflowRunCompleted WebhookEvent = \"workflow_run.completed\"\n\tWebhookEventWorkflowRunFailed    WebhookEvent = \"workflow_run.failed\"\n\tWebhookEventWorkflowRunCancelled WebhookEvent = \"workflow_run.cancelled\"\n\tWebhookEventTranscodingCreated   WebhookEvent = \"transcoding.created\"\n\tWebhookEventTranscodingReady     WebhookEvent = \"transcoding.ready\"\n\tWebhookEventTranscodingFailed    WebhookEvent = \"transcoding.failed\"\n\tWebhookEventTranscodingCancelled WebhookEvent = \"transcoding.cancelled\"\n\tWebhookEventTranscodingExpired   WebhookEvent = \"transcoding.expired\"\n\tWebhookEventTranscodingDeleted   WebhookEvent = \"transcoding.deleted\"\n\tWebhookEventThumbnailCreated     WebhookEvent = \"thumbnail.created\"\n\tWebhookEventThumbnailReady       WebhookEvent = \"thumbnail.ready\"\n\tWebhookEventThumbnailFailed      WebhookEvent = \"thumbnail.failed\"\n\tWebhookEventThumbnailExpired     WebhookEvent = \"thumbnail.expired\"\n\tWebhookEventThumbnailDeleted     WebhookEvent = \"thumbnail.deleted\"\n)\n```\n\n```go\ntype WebhookGetResponseEnvelope struct {\n\t// Data contains the response object\n\tData Webhook `json:\"data\" api:\"required\"`\n\t// Status indicates the response status \"success\"\n\tStatus constant.Success `json:\"status\" default:\"success\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tData        respjson.Field\n\t\tStatus      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r WebhookGetResponseEnvelope) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *WebhookGetResponseEnvelope) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WebhookListResponse struct {\n\t// Data contains the webhook items\n\tData []Webhook `json:\"data\" api:\"required\"`\n\t// Status indicates the response status \"success\"\n\tStatus constant.Success `json:\"status\" default:\"success\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tData        respjson.Field\n\t\tStatus      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nResponse containing the list of all webhooks for a project\n\n```go\nfunc (r WebhookListResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *WebhookListResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WebhookNewParams struct {\n\t// Url is the endpoint that will receive webhook notifications, which must be a\n\t// valid HTTP URL.\n\tURL string `json:\"url\" api:\"required\"`\n\t// Enabled indicates whether the webhook is active.\n\tEnabled param.Opt[bool] `json:\"enabled,omitzero\"`\n\t// Events specifies the types of events that will trigger the webhook.\n\tEvents []WebhookEvent `json:\"events,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r WebhookNewParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *WebhookNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WebhookNewResponseEnvelope struct {\n\t// Data contains the response object\n\tData Webhook `json:\"data\" api:\"required\"`\n\t// Status indicates the response status \"success\"\n\tStatus constant.Success `json:\"status\" default:\"success\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tData        respjson.Field\n\t\tStatus      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r WebhookNewResponseEnvelope) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *WebhookNewResponseEnvelope) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WebhookService struct {\n\tOptions []option.RequestOption\n}\n```\nWebhookService contains methods and other services that help with interacting with the chunkify API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewWebhookService](#NewWebhookService) method instead.\n\n```go\nfunc NewWebhookService(opts ...option.RequestOption) (r WebhookService)\n```\nNewWebhookService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *WebhookService) Delete(ctx context.Context, webhookID string, opts ...option.RequestOption) (err error)\n```\nPermanently delete a webhook configuration. The webhook must belong to the current project. This action cannot be undone.\n\n```go\nfunc (r *WebhookService) Get(ctx context.Context, webhookID string, opts ...option.RequestOption) (res *Webhook, err error)\n```\nRetrieve a webhook in the current Project by its ID, including its endpoint URL, subscribed events, and whether deliveries are enabled.\n\n```go\nfunc (r *WebhookService) List(ctx context.Context, opts ...option.RequestOption) (res *WebhookListResponse, err error)\n```\nRetrieve a list of all webhooks configured for the current project. Each webhook includes its URL, enabled status, and subscribed events.\n\n```go\nfunc (r *WebhookService) New(ctx context.Context, body WebhookNewParams, opts ...option.RequestOption) (res *Webhook, err error)\n```\nCreate a webhook for the Project. Chunkify sends a notification to its URL for each subscribed event, and you can create it enabled or disabled.\n\n```go\nfunc (r *WebhookService) Unwrap(payload []byte, headers http.Header, opts ...option.RequestOption) (*UnwrapWebhookEventUnion, error)\n```\n\n```go\nfunc (r *WebhookService) Update(ctx context.Context, webhookID string, body WebhookUpdateParams, opts ...option.RequestOption) (err error)\n```\nUpdate a webhook's subscribed events or enable and disable its deliveries. The webhook must belong to the current Project.\n\n```go\ntype WebhookUpdateParams struct {\n\t// Enabled indicates whether the webhook should be enabled or disabled.\n\tEnabled param.Opt[bool] `json:\"enabled,omitzero\"`\n\t// Events specifies the types of events that will trigger the webhook.\n\tEvents []WebhookEvent `json:\"events,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r WebhookUpdateParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *WebhookUpdateParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WebmVp9 struct {\n\tID constant.WebmVp9 `json:\"id\" default:\"webm_vp9\"`\n\t// AudioBitrate specifies the audio bitrate in bits per second. Must be between\n\t// 32Kbps and 512Kbps.\n\tAudioBitrate int64 `json:\"audio_bitrate\"`\n\t// Bufsize specifies the video buffer size in bits. Must be between 100Kbps and\n\t// 50Mbps.\n\tBufsize int64 `json:\"bufsize\"`\n\t// Channels specifies the number of audio channels. Valid values: 1 (mono), 2\n\t// (stereo), 5 (5.1), 7 (7.1)\n\t//\n\t// Any of 1, 2, 5, 7.\n\tChannels int64 `json:\"channels\"`\n\t// CpuUsed specifies the CPU usage level for VP9 encoding. Range: 0 to 8. Lower\n\t// values mean better quality but slower encoding, higher values mean faster\n\t// encoding but lower quality. Recommended values: 0-2 for high quality, 2-4 for\n\t// good quality, 4-6 for balanced, 6-8 for speed\n\t//\n\t// Any of \"0\", \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\".\n\tCPUUsed WebmVp9CPUUsed `json:\"cpu_used\"`\n\t// Crf (Constant Rate Factor) controls the quality of the output video. Lower\n\t// values mean better quality but larger file size. Range: 15 to 35. Recommended\n\t// values: 18-28 for high quality, 23-28 for good quality, 28-35 for acceptable\n\t// quality.\n\tCrf int64 `json:\"crf\"`\n\t// DisableAudio indicates whether to disable audio processing.\n\tDisableAudio bool `json:\"disable_audio\"`\n\t// DisableVideo indicates whether to disable video processing.\n\tDisableVideo bool `json:\"disable_video\"`\n\t// Duration specifies the duration to process in seconds. Must be a positive value.\n\tDuration int64 `json:\"duration\"`\n\t// Framerate specifies the output video frame rate. Must be greater than zero and\n\t// at most 240 fps.\n\tFramerate float64 `json:\"framerate\"`\n\t// Gop specifies the Group of Pictures (GOP) size. Must be between 1 and 960\n\t// frames.\n\tGop int64 `json:\"gop\"`\n\t// Height specifies the output video height in pixels. Must be between -2 and 7680.\n\t// Use -2 for automatic calculation while maintaining aspect ratio.\n\tHeight int64 `json:\"height\"`\n\t// Maxrate specifies the maximum video bitrate in bits per second. Must be between\n\t// 100Kbps and 50Mbps.\n\tMaxrate int64 `json:\"maxrate\"`\n\t// Minrate specifies the minimum video bitrate in bits per second. Must be between\n\t// 100Kbps and 50Mbps.\n\tMinrate int64 `json:\"minrate\"`\n\t// Enables per-title optimization. Disabled by default. Set it to true to let\n\t// Chunkify select rate control automatically. When enabled, explicit rate-control\n\t// fields cannot be provided. For HLS outputs, either audio_bitrate or\n\t// video_bitrate is required when per-title optimization is disabled or omitted.\n\tPerTitle bool `json:\"per_title\"`\n\t// PixFmt specifies the pixel format. Valid value: yuv420p\n\t//\n\t// Any of \"yuv410p\", \"yuv411p\", \"yuv420p\", \"yuv422p\", \"yuv440p\", \"yuv444p\",\n\t// \"yuvJ411p\", \"yuvJ420p\", \"yuvJ422p\", \"yuvJ440p\", \"yuvJ444p\", \"yuv420p10le\",\n\t// \"yuv422p10le\", \"yuv440p10le\", \"yuv444p10le\", \"yuv420p12le\", \"yuv422p12le\",\n\t// \"yuv440p12le\", \"yuv444p12le\", \"yuv420p10be\", \"yuv422p10be\", \"yuv440p10be\",\n\t// \"yuv444p10be\", \"yuv420p12be\", \"yuv422p12be\", \"yuv440p12be\", \"yuv444p12be\".\n\tPixfmt WebmVp9Pixfmt `json:\"pixfmt\"`\n\t// Quality specifies the VP9 encoding quality preset. Valid values:\n\t//\n\t// - good: Balanced quality preset, good for most applications\n\t// - best: Best quality preset, slower encoding\n\t// - realtime: Fast encoding preset, suitable for live streaming\n\t//\n\t// Any of \"good\", \"best\", \"realtime\".\n\tQuality WebmVp9Quality `json:\"quality\"`\n\t// Seek specifies the timestamp to start processing from (in seconds). Must be a\n\t// positive value.\n\tSeek int64 `json:\"seek\"`\n\t// VideoBitrate specifies the video bitrate in bits per second. Must be between 1\n\t// bps and 100 Mbps.\n\tVideoBitrate int64 `json:\"video_bitrate\"`\n\t// Width specifies the output video width in pixels. Must be between -2 and 7680.\n\t// Use -2 for automatic calculation while maintaining aspect ratio.\n\tWidth int64 `json:\"width\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID           respjson.Field\n\t\tAudioBitrate respjson.Field\n\t\tBufsize      respjson.Field\n\t\tChannels     respjson.Field\n\t\tCPUUsed      respjson.Field\n\t\tCrf          respjson.Field\n\t\tDisableAudio respjson.Field\n\t\tDisableVideo respjson.Field\n\t\tDuration     respjson.Field\n\t\tFramerate    respjson.Field\n\t\tGop          respjson.Field\n\t\tHeight       respjson.Field\n\t\tMaxrate      respjson.Field\n\t\tMinrate      respjson.Field\n\t\tPerTitle     respjson.Field\n\t\tPixfmt       respjson.Field\n\t\tQuality      respjson.Field\n\t\tSeek         respjson.Field\n\t\tVideoBitrate respjson.Field\n\t\tWidth        respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r WebmVp9) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r WebmVp9) ToParam() WebmVp9Param\n```\nToParam converts this WebmVp9 to a WebmVp9Param.\n\nWarning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with WebmVp9Param.Overrides()\n\n```go\nfunc (r *WebmVp9) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WebmVp9CPUUsed string\n```\nCpuUsed specifies the CPU usage level for VP9 encoding. Range: 0 to 8. Lower values mean better quality but slower encoding, higher values mean faster encoding but lower quality. Recommended values: 0-2 for high quality, 2-4 for good quality, 4-6 for balanced, 6-8 for speed\n\n```go\nconst (\n\tWebmVp9CPUUsed0 WebmVp9CPUUsed = \"0\"\n\tWebmVp9CPUUsed1 WebmVp9CPUUsed = \"1\"\n\tWebmVp9CPUUsed2 WebmVp9CPUUsed = \"2\"\n\tWebmVp9CPUUsed3 WebmVp9CPUUsed = \"3\"\n\tWebmVp9CPUUsed4 WebmVp9CPUUsed = \"4\"\n\tWebmVp9CPUUsed5 WebmVp9CPUUsed = \"5\"\n\tWebmVp9CPUUsed6 WebmVp9CPUUsed = \"6\"\n\tWebmVp9CPUUsed7 WebmVp9CPUUsed = \"7\"\n\tWebmVp9CPUUsed8 WebmVp9CPUUsed = \"8\"\n)\n```\n\n```go\ntype WebmVp9Param struct {\n\t// AudioBitrate specifies the audio bitrate in bits per second. Must be between\n\t// 32Kbps and 512Kbps.\n\tAudioBitrate param.Opt[int64] `json:\"audio_bitrate,omitzero\"`\n\t// Bufsize specifies the video buffer size in bits. Must be between 100Kbps and\n\t// 50Mbps.\n\tBufsize param.Opt[int64] `json:\"bufsize,omitzero\"`\n\t// Crf (Constant Rate Factor) controls the quality of the output video. Lower\n\t// values mean better quality but larger file size. Range: 15 to 35. Recommended\n\t// values: 18-28 for high quality, 23-28 for good quality, 28-35 for acceptable\n\t// quality.\n\tCrf param.Opt[int64] `json:\"crf,omitzero\"`\n\t// DisableAudio indicates whether to disable audio processing.\n\tDisableAudio param.Opt[bool] `json:\"disable_audio,omitzero\"`\n\t// DisableVideo indicates whether to disable video processing.\n\tDisableVideo param.Opt[bool] `json:\"disable_video,omitzero\"`\n\t// Duration specifies the duration to process in seconds. Must be a positive value.\n\tDuration param.Opt[int64] `json:\"duration,omitzero\"`\n\t// Framerate specifies the output video frame rate. Must be greater than zero and\n\t// at most 240 fps.\n\tFramerate param.Opt[float64] `json:\"framerate,omitzero\"`\n\t// Gop specifies the Group of Pictures (GOP) size. Must be between 1 and 960\n\t// frames.\n\tGop param.Opt[int64] `json:\"gop,omitzero\"`\n\t// Height specifies the output video height in pixels. Must be between -2 and 7680.\n\t// Use -2 for automatic calculation while maintaining aspect ratio.\n\tHeight param.Opt[int64] `json:\"height,omitzero\"`\n\t// Maxrate specifies the maximum video bitrate in bits per second. Must be between\n\t// 100Kbps and 50Mbps.\n\tMaxrate param.Opt[int64] `json:\"maxrate,omitzero\"`\n\t// Minrate specifies the minimum video bitrate in bits per second. Must be between\n\t// 100Kbps and 50Mbps.\n\tMinrate param.Opt[int64] `json:\"minrate,omitzero\"`\n\t// Enables per-title optimization. Disabled by default. Set it to true to let\n\t// Chunkify select rate control automatically. When enabled, explicit rate-control\n\t// fields cannot be provided. For HLS outputs, either audio_bitrate or\n\t// video_bitrate is required when per-title optimization is disabled or omitted.\n\tPerTitle param.Opt[bool] `json:\"per_title,omitzero\"`\n\t// Seek specifies the timestamp to start processing from (in seconds). Must be a\n\t// positive value.\n\tSeek param.Opt[int64] `json:\"seek,omitzero\"`\n\t// VideoBitrate specifies the video bitrate in bits per second. Must be between 1\n\t// bps and 100 Mbps.\n\tVideoBitrate param.Opt[int64] `json:\"video_bitrate,omitzero\"`\n\t// Width specifies the output video width in pixels. Must be between -2 and 7680.\n\t// Use -2 for automatic calculation while maintaining aspect ratio.\n\tWidth param.Opt[int64] `json:\"width,omitzero\"`\n\t// Channels specifies the number of audio channels. Valid values: 1 (mono), 2\n\t// (stereo), 5 (5.1), 7 (7.1)\n\t//\n\t// Any of 1, 2, 5, 7.\n\tChannels int64 `json:\"channels,omitzero\"`\n\t// CpuUsed specifies the CPU usage level for VP9 encoding. Range: 0 to 8. Lower\n\t// values mean better quality but slower encoding, higher values mean faster\n\t// encoding but lower quality. Recommended values: 0-2 for high quality, 2-4 for\n\t// good quality, 4-6 for balanced, 6-8 for speed\n\t//\n\t// Any of \"0\", \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\".\n\tCPUUsed WebmVp9CPUUsed `json:\"cpu_used,omitzero\"`\n\t// PixFmt specifies the pixel format. Valid value: yuv420p\n\t//\n\t// Any of \"yuv410p\", \"yuv411p\", \"yuv420p\", \"yuv422p\", \"yuv440p\", \"yuv444p\",\n\t// \"yuvJ411p\", \"yuvJ420p\", \"yuvJ422p\", \"yuvJ440p\", \"yuvJ444p\", \"yuv420p10le\",\n\t// \"yuv422p10le\", \"yuv440p10le\", \"yuv444p10le\", \"yuv420p12le\", \"yuv422p12le\",\n\t// \"yuv440p12le\", \"yuv444p12le\", \"yuv420p10be\", \"yuv422p10be\", \"yuv440p10be\",\n\t// \"yuv444p10be\", \"yuv420p12be\", \"yuv422p12be\", \"yuv440p12be\", \"yuv444p12be\".\n\tPixfmt WebmVp9Pixfmt `json:\"pixfmt,omitzero\"`\n\t// Quality specifies the VP9 encoding quality preset. Valid values:\n\t//\n\t// - good: Balanced quality preset, good for most applications\n\t// - best: Best quality preset, slower encoding\n\t// - realtime: Fast encoding preset, suitable for live streaming\n\t//\n\t// Any of \"good\", \"best\", \"realtime\".\n\tQuality WebmVp9Quality `json:\"quality,omitzero\"`\n\t// This field can be elided, and will marshal its zero value as \"webm_vp9\".\n\tID constant.WebmVp9 `json:\"id\" default:\"webm_vp9\"`\n\t// contains filtered or unexported fields\n}\n```\nThe property ID is required.\n\n```go\nfunc (r WebmVp9Param) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *WebmVp9Param) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WebmVp9Pixfmt string\n```\nPixFmt specifies the pixel format. Valid value: yuv420p\n\n```go\nconst (\n\tWebmVp9PixfmtYuv410p     WebmVp9Pixfmt = \"yuv410p\"\n\tWebmVp9PixfmtYuv411p     WebmVp9Pixfmt = \"yuv411p\"\n\tWebmVp9PixfmtYuv420p     WebmVp9Pixfmt = \"yuv420p\"\n\tWebmVp9PixfmtYuv422p     WebmVp9Pixfmt = \"yuv422p\"\n\tWebmVp9PixfmtYuv440p     WebmVp9Pixfmt = \"yuv440p\"\n\tWebmVp9PixfmtYuv444p     WebmVp9Pixfmt = \"yuv444p\"\n\tWebmVp9PixfmtYuvJ411p    WebmVp9Pixfmt = \"yuvJ411p\"\n\tWebmVp9PixfmtYuvJ420p    WebmVp9Pixfmt = \"yuvJ420p\"\n\tWebmVp9PixfmtYuvJ422p    WebmVp9Pixfmt = \"yuvJ422p\"\n\tWebmVp9PixfmtYuvJ440p    WebmVp9Pixfmt = \"yuvJ440p\"\n\tWebmVp9PixfmtYuvJ444p    WebmVp9Pixfmt = \"yuvJ444p\"\n\tWebmVp9PixfmtYuv420p10le WebmVp9Pixfmt = \"yuv420p10le\"\n\tWebmVp9PixfmtYuv422p10le WebmVp9Pixfmt = \"yuv422p10le\"\n\tWebmVp9PixfmtYuv440p10le WebmVp9Pixfmt = \"yuv440p10le\"\n\tWebmVp9PixfmtYuv444p10le WebmVp9Pixfmt = \"yuv444p10le\"\n\tWebmVp9PixfmtYuv420p12le WebmVp9Pixfmt = \"yuv420p12le\"\n\tWebmVp9PixfmtYuv422p12le WebmVp9Pixfmt = \"yuv422p12le\"\n\tWebmVp9PixfmtYuv440p12le WebmVp9Pixfmt = \"yuv440p12le\"\n\tWebmVp9PixfmtYuv444p12le WebmVp9Pixfmt = \"yuv444p12le\"\n\tWebmVp9PixfmtYuv420p10be WebmVp9Pixfmt = \"yuv420p10be\"\n\tWebmVp9PixfmtYuv422p10be WebmVp9Pixfmt = \"yuv422p10be\"\n\tWebmVp9PixfmtYuv440p10be WebmVp9Pixfmt = \"yuv440p10be\"\n\tWebmVp9PixfmtYuv444p10be WebmVp9Pixfmt = \"yuv444p10be\"\n\tWebmVp9PixfmtYuv420p12be WebmVp9Pixfmt = \"yuv420p12be\"\n\tWebmVp9PixfmtYuv422p12be WebmVp9Pixfmt = \"yuv422p12be\"\n\tWebmVp9PixfmtYuv440p12be WebmVp9Pixfmt = \"yuv440p12be\"\n\tWebmVp9PixfmtYuv444p12be WebmVp9Pixfmt = \"yuv444p12be\"\n)\n```\n\n```go\ntype WebmVp9Quality string\n```\nQuality specifies the VP9 encoding quality preset. Valid values:\n\n\\- good: Balanced quality preset, good for most applications - best: Best quality preset, slower encoding - realtime: Fast encoding preset, suitable for live streaming\n\n```go\nconst (\n\tWebmVp9QualityGood     WebmVp9Quality = \"good\"\n\tWebmVp9QualityBest     WebmVp9Quality = \"best\"\n\tWebmVp9QualityRealtime WebmVp9Quality = \"realtime\"\n)\n```\n\n```go\ntype Workflow struct {\n\t// Unique Workflow ID.\n\tID string `json:\"id\" api:\"required\"`\n\t// When the Workflow was archived, or null if it is available for selection.\n\t// Archiving stops new runs; accepted actions finish.\n\tArchivedAt time.Time `json:\"archived_at\" api:\"required\" format:\"date-time\"`\n\t// When the Workflow was created.\n\tCreatedAt time.Time `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\t// Name specifies the Workflow name. Use 1 to 128 characters.\n\tName string `json:\"name\" api:\"required\"`\n\t// Current definition revision. Starts at 1 and increases when rules are replaced.\n\tRevision int64 `json:\"revision\" api:\"required\"`\n\t// Rules specifies the event subscriptions and actions in this definition. Provide\n\t// exactly one asset.ready rule and up to 15 connected rules, with at most 32\n\t// actions and 65536 encoded bytes across all rules. Array order affects display\n\t// only.\n\tRules []WorkflowRule `json:\"rules\" api:\"required\"`\n\t// SchemaVersion specifies the Workflow definition format. The supported version\n\t// is 1.\n\tSchemaVersion int64 `json:\"schema_version\" api:\"required\"`\n\t// When the Workflow was last updated.\n\tUpdatedAt time.Time `json:\"updated_at\" api:\"required\" format:\"date-time\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID            respjson.Field\n\t\tArchivedAt    respjson.Field\n\t\tCreatedAt     respjson.Field\n\t\tName          respjson.Field\n\t\tRevision      respjson.Field\n\t\tRules         respjson.Field\n\t\tSchemaVersion respjson.Field\n\t\tUpdatedAt     respjson.Field\n\t\tExtraFields   map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA reusable definition of actions triggered by Asset events.\n\n```go\nfunc (r Workflow) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *Workflow) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkflowActionCounts struct {\n\t// Number of actions cancelled before completion.\n\tCancelled int64 `json:\"cancelled\" api:\"required\"`\n\t// Number of actions that completed successfully, including reused outputs.\n\tCompleted int64 `json:\"completed\" api:\"required\"`\n\t// Number of actions that failed.\n\tFailed int64 `json:\"failed\" api:\"required\"`\n\t// Number of completed actions that reused an existing output. Included in\n\t// completed.\n\tReused int64 `json:\"reused\" api:\"required\"`\n\t// Number of actions skipped without producing an output.\n\tSkipped int64 `json:\"skipped\" api:\"required\"`\n\t// Total number of actions in the run, including unfinished actions.\n\tTotal int64 `json:\"total\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCancelled   respjson.Field\n\t\tCompleted   respjson.Field\n\t\tFailed      respjson.Field\n\t\tReused      respjson.Field\n\t\tSkipped     respjson.Field\n\t\tTotal       respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nCounts of action outcomes in this run.\n\n```go\nfunc (r WorkflowActionCounts) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *WorkflowActionCounts) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkflowActionParamsUnion struct {\n\tOfCreateStaticRendition *WorkflowStaticActionParams      `json:\",omitzero,inline\"`\n\tOfCreateCaption         *WorkflowCaptionActionParams     `json:\",omitzero,inline\"`\n\tOfTranslateCaption      *WorkflowTranslationActionParams `json:\",omitzero,inline\"`\n\tOfCreateThumbnails      *WorkflowThumbnailActionParams   `json:\",omitzero,inline\"`\n\tOfCreateTranscript      *WorkflowTranscriptActionParams  `json:\",omitzero,inline\"`\n\t// contains filtered or unexported fields\n}\n```\nOnly one field can be non-zero.\n\nUse [param.IsOmitted](/github.com/chunkifydev/chunkify-go/packages/param#IsOmitted) to confirm if a field is set.\n\n```go\nfunc WorkflowActionParamsOfCreateCaption(id string, params WorkflowCaptionParams) WorkflowActionParamsUnion\n```\n\n```go\nfunc WorkflowActionParamsOfCreateStaticRendition(id string, params WorkflowStaticParams) WorkflowActionParamsUnion\n```\n\n```go\nfunc WorkflowActionParamsOfCreateThumbnails(id string, params WorkflowThumbnailParams) WorkflowActionParamsUnion\n```\n\n```go\nfunc WorkflowActionParamsOfCreateTranscript(id string, params WorkflowTranscriptParams) WorkflowActionParamsUnion\n```\n\n```go\nfunc WorkflowActionParamsOfTranslateCaption(captionID WorkflowOutputBindingParams, id string, params WorkflowTranslationParams) WorkflowActionParamsUnion\n```\n\n```go\nfunc (u WorkflowActionParamsUnion) GetCaptionID() *WorkflowOutputBindingParams\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u WorkflowActionParamsUnion) GetID() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u WorkflowActionParamsUnion) GetParams() (res workflowActionParamsUnionParams)\n```\nReturns a subunion which exports methods to access subproperties\n\nOr use AsAny() to get the underlying value\n\n```go\nfunc (u WorkflowActionParamsUnion) GetTranscriptID() *WorkflowOutputBindingParams\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u WorkflowActionParamsUnion) GetType() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u WorkflowActionParamsUnion) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (u *WorkflowActionParamsUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkflowActionUnion struct {\n\tID string `json:\"id\"`\n\t// This field is a union of [WorkflowStatic], [WorkflowCaption],\n\t// [WorkflowTranslation], [WorkflowThumbnail], [WorkflowTranscript]\n\tParams WorkflowActionUnionParams `json:\"params\"`\n\t// Any of \"create_static_rendition\", \"create_caption\", \"translate_caption\",\n\t// \"create_thumbnails\", \"create_transcript\".\n\tType string `json:\"type\"`\n\t// This field is from variant [WorkflowCaptionAction].\n\tTranscriptID WorkflowOutputBinding `json:\"transcript_id\"`\n\t// This field is from variant [WorkflowTranslationAction].\n\tCaptionID WorkflowOutputBinding `json:\"caption_id\"`\n\tJSON      struct {\n\t\tID           respjson.Field\n\t\tParams       respjson.Field\n\t\tType         respjson.Field\n\t\tTranscriptID respjson.Field\n\t\tCaptionID    respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nWorkflowActionUnion contains all possible properties and values from [WorkflowStaticAction](#WorkflowStaticAction), [WorkflowCaptionAction](#WorkflowCaptionAction), [WorkflowTranslationAction](#WorkflowTranslationAction), [WorkflowThumbnailAction](#WorkflowThumbnailAction), [WorkflowTranscriptAction](#WorkflowTranscriptAction).\n\nUse the [WorkflowActionUnion.AsAny](#WorkflowActionUnion.AsAny) method to switch on the variant.\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\n```go\nfunc (u WorkflowActionUnion) AsAny() anyWorkflowAction\n```\nUse the following switch statement to find the correct variant\n\n\tswitch variant := WorkflowActionUnion.AsAny().(type) {\n\tcase chunkify.WorkflowStaticAction:\n\tcase chunkify.WorkflowCaptionAction:\n\tcase chunkify.WorkflowTranslationAction:\n\tcase chunkify.WorkflowThumbnailAction:\n\tcase chunkify.WorkflowTranscriptAction:\n\tdefault:\n\t  fmt.Errorf(\"no variant present\")\n\t}\n\n```go\nfunc (u WorkflowActionUnion) AsCreateCaption() (v WorkflowCaptionAction)\n```\n\n```go\nfunc (u WorkflowActionUnion) AsCreateStaticRendition() (v WorkflowStaticAction)\n```\n\n```go\nfunc (u WorkflowActionUnion) AsCreateThumbnails() (v WorkflowThumbnailAction)\n```\n\n```go\nfunc (u WorkflowActionUnion) AsCreateTranscript() (v WorkflowTranscriptAction)\n```\n\n```go\nfunc (u WorkflowActionUnion) AsTranslateCaption() (v WorkflowTranslationAction)\n```\n\n```go\nfunc (u WorkflowActionUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *WorkflowActionUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkflowActionUnionParams struct {\n\t// This field is from variant [WorkflowStatic].\n\tResolution WorkflowStaticResolution `json:\"resolution\"`\n\t// This field is from variant [WorkflowTranslation].\n\tLanguageCode WorkflowTranslationLanguageCode `json:\"language_code\"`\n\t// This field is from variant [WorkflowThumbnail].\n\tCount int64 `json:\"count\"`\n\t// This field is from variant [WorkflowThumbnail].\n\tFormat ThumbnailFormat `json:\"format\"`\n\t// This field is from variant [WorkflowThumbnail].\n\tMetadata map[string]string `json:\"metadata\"`\n\t// This field is from variant [WorkflowThumbnail].\n\tOutput ThumbnailOutput `json:\"output\"`\n\t// This field is from variant [WorkflowThumbnail].\n\tRange WorkflowThumbnailRange `json:\"range\"`\n\t// This field is from variant [WorkflowThumbnail].\n\tSize int64 `json:\"size\"`\n\t// This field is from variant [WorkflowThumbnail].\n\tTimestamps []float64 `json:\"timestamps\"`\n\tJSON       struct {\n\t\tResolution   respjson.Field\n\t\tLanguageCode respjson.Field\n\t\tCount        respjson.Field\n\t\tFormat       respjson.Field\n\t\tMetadata     respjson.Field\n\t\tOutput       respjson.Field\n\t\tRange        respjson.Field\n\t\tSize         respjson.Field\n\t\tTimestamps   respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nWorkflowActionUnionParams is an implicit subunion of [WorkflowActionUnion](#WorkflowActionUnion). WorkflowActionUnionParams provides convenient access to the sub-properties of the union.\n\nFor type safety it is recommended to directly use a variant of the [WorkflowActionUnion](#WorkflowActionUnion).\n\n```go\nfunc (r *WorkflowActionUnionParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkflowCaption struct {\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nParameters for generating original captions. Pass an empty object; the spoken language is detected automatically.\n\n```go\nfunc (r WorkflowCaption) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *WorkflowCaption) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkflowCaptionAction struct {\n\t// Id specifies a stable action key, unique within its rule. Use 1 to 64\n\t// characters, starting with a letter and containing only letters, digits, or\n\t// underscores.\n\tID string `json:\"id\" api:\"required\"`\n\t// Params specifies caption generation settings. Pass an empty object.\n\tParams WorkflowCaption `json:\"params\" api:\"required\"`\n\t// Type specifies the action to perform. Must be create_caption.\n\tType constant.CreateCaption `json:\"type\" default:\"create_caption\"`\n\t// TranscriptId binds caption publication to the transcript in the triggering\n\t// event. Use it only when connected to create_transcript. When omitted, creates or\n\t// reuses the Asset’s original transcript.\n\tTranscriptID WorkflowOutputBinding `json:\"transcript_id\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID           respjson.Field\n\t\tParams       respjson.Field\n\t\tType         respjson.Field\n\t\tTranscriptID respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nGenerates or reuses original captions and their transcript from the Asset's speech.\n\n```go\nfunc (r WorkflowCaptionAction) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *WorkflowCaptionAction) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkflowCaptionActionParams struct {\n\t// Id specifies a stable action key, unique within its rule. Use 1 to 64\n\t// characters, starting with a letter and containing only letters, digits, or\n\t// underscores.\n\tID string `json:\"id\" api:\"required\"`\n\t// Params specifies caption generation settings. Pass an empty object.\n\tParams WorkflowCaptionParams `json:\"params\" api:\"required\"`\n\t// TranscriptId binds caption publication to the transcript in the triggering\n\t// event. Use it only when connected to create_transcript. When omitted, creates or\n\t// reuses the Asset’s original transcript.\n\tTranscriptID WorkflowOutputBindingParams `json:\"transcript_id,omitzero\"`\n\t// Type specifies the action to perform. Must be create_caption.\n\t//\n\t// This field can be elided, and will marshal its zero value as \"create_caption\".\n\tType constant.CreateCaption `json:\"type\" default:\"create_caption\"`\n\t// contains filtered or unexported fields\n}\n```\nGenerates or reuses original captions and their transcript from the Asset's speech.\n\nThe properties ID, Params, Type are required.\n\n```go\nfunc (r WorkflowCaptionActionParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *WorkflowCaptionActionParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkflowCaptionParams struct {\n\t// contains filtered or unexported fields\n}\n```\nParameters for generating original captions. Pass an empty object; the spoken language is detected automatically.\n\n```go\nfunc (r WorkflowCaptionParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *WorkflowCaptionParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkflowGetResponseEnvelope struct {\n\t// The requested Workflow.\n\tData Workflow `json:\"data\" api:\"required\"`\n\t// Status of the API request. Always success for this response.\n\tStatus constant.Success `json:\"status\" default:\"success\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tData        respjson.Field\n\t\tStatus      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nResponse containing one Workflow.\n\n```go\nfunc (r WorkflowGetResponseEnvelope) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *WorkflowGetResponseEnvelope) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkflowListParams struct {\n\t// Archived specifies whether to include archived Workflows. Defaults to false.\n\tArchived param.Opt[bool] `query:\"archived,omitzero\" json:\"-\"`\n\t// Limit specifies the maximum number of results to return. Accepts 1 to 100.\n\t// Defaults to 100.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Offset specifies the number of matching results to skip. Must be at least 0.\n\t// Defaults to 0.\n\tOffset param.Opt[int64] `query:\"offset,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r WorkflowListParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [WorkflowListParams](#WorkflowListParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype WorkflowNewParams struct {\n\t// Name specifies the Workflow name. Use 1 to 128 characters.\n\tName string `json:\"name\" api:\"required\"`\n\t// Rules specifies the event subscriptions and actions in this definition. Provide\n\t// exactly one asset.ready rule and up to 15 connected rules, with at most 32\n\t// actions and 65536 encoded bytes across all rules. Array order affects display\n\t// only.\n\tRules []WorkflowRuleParams `json:\"rules,omitzero\" api:\"required\"`\n\t// SchemaVersion specifies the Workflow definition format. The supported version\n\t// is 1.\n\t//\n\t// Any of 1.\n\tSchemaVersion int64 `json:\"schema_version,omitzero\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r WorkflowNewParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *WorkflowNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkflowNewResponseEnvelope struct {\n\t// The requested Workflow.\n\tData Workflow `json:\"data\" api:\"required\"`\n\t// Status of the API request. Always success for this response.\n\tStatus constant.Success `json:\"status\" default:\"success\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tData        respjson.Field\n\t\tStatus      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nResponse containing one Workflow.\n\n```go\nfunc (r WorkflowNewResponseEnvelope) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *WorkflowNewResponseEnvelope) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkflowOrigin struct {\n\t// ActionId specifies the ID of the producing action within that rule. Use 1 to 64\n\t// characters, starting with a letter and containing only letters, digits, or\n\t// underscores.\n\tActionID string `json:\"action_id\" api:\"required\"`\n\t// RuleId specifies the ID of the rule containing the producing action. Use 1 to 64\n\t// characters, starting with a letter and containing only letters, digits, or\n\t// underscores.\n\tRuleID string `json:\"rule_id\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tActionID    respjson.Field\n\t\tRuleID      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nConnects this rule to the output created or reused by an action in the same Workflow revision.\n\n```go\nfunc (r WorkflowOrigin) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *WorkflowOrigin) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkflowOriginParams struct {\n\t// ActionId specifies the ID of the producing action within that rule. Use 1 to 64\n\t// characters, starting with a letter and containing only letters, digits, or\n\t// underscores.\n\tActionID string `json:\"action_id\" api:\"required\"`\n\t// RuleId specifies the ID of the rule containing the producing action. Use 1 to 64\n\t// characters, starting with a letter and containing only letters, digits, or\n\t// underscores.\n\tRuleID string `json:\"rule_id\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nConnects this rule to the output created or reused by an action in the same Workflow revision.\n\nThe properties ActionID, RuleID are required.\n\n```go\nfunc (r WorkflowOriginParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *WorkflowOriginParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkflowOutputBinding struct {\n\t// From specifies where to read the input output ID. Use event.output.id to consume\n\t// the output in the triggering asset.output.ready event.\n\t//\n\t// Any of \"event.output.id\".\n\tFrom WorkflowOutputBindingFrom `json:\"from\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tFrom        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nSelects the output referenced by the triggering event.\n\n```go\nfunc (r WorkflowOutputBinding) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *WorkflowOutputBinding) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkflowOutputBindingFrom string\n```\n\n```go\nconst (\n\tWorkflowOutputBindingFromEventOutputID WorkflowOutputBindingFrom = \"event.output.id\"\n)\n```\n\n```go\ntype WorkflowOutputBindingParams struct {\n\t// From specifies where to read the input output ID. Use event.output.id to consume\n\t// the output in the triggering asset.output.ready event.\n\t//\n\t// Any of \"event.output.id\".\n\tFrom WorkflowOutputBindingFrom `json:\"from,omitzero\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nSelects the output referenced by the triggering event.\n\nThe property From is required.\n\n```go\nfunc (r WorkflowOutputBindingParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *WorkflowOutputBindingParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkflowRevision struct {\n\t// When this Workflow revision was created.\n\tCreatedAt time.Time `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\t// Definition revision number, starting at 1.\n\tRevision int64 `json:\"revision\" api:\"required\"`\n\t// Rules specifies the event subscriptions and actions in this definition. Provide\n\t// exactly one asset.ready rule and up to 15 connected rules, with at most 32\n\t// actions and 65536 encoded bytes across all rules. Array order affects display\n\t// only.\n\tRules []WorkflowRule `json:\"rules\" api:\"required\"`\n\t// SchemaVersion specifies the Workflow definition format. The supported version\n\t// is 1.\n\tSchemaVersion int64 `json:\"schema_version\" api:\"required\"`\n\t// ID of the Workflow that owns this revision.\n\tWorkflowID string `json:\"workflow_id\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCreatedAt     respjson.Field\n\t\tRevision      respjson.Field\n\t\tRules         respjson.Field\n\t\tSchemaVersion respjson.Field\n\t\tWorkflowID    respjson.Field\n\t\tExtraFields   map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nAn immutable Workflow definition pinned to Assets and Uploads at creation.\n\n```go\nfunc (r WorkflowRevision) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *WorkflowRevision) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkflowRevisionGetParams struct {\n\tWorkflowID string `path:\"workflowId\" api:\"required\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype WorkflowRevisionGetResponseEnvelope struct {\n\t// The requested Workflow revision.\n\tData WorkflowRevision `json:\"data\" api:\"required\"`\n\t// Status of the API request. Always success for this response.\n\tStatus constant.Success `json:\"status\" default:\"success\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tData        respjson.Field\n\t\tStatus      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nResponse containing one Workflow revision.\n\n```go\nfunc (r WorkflowRevisionGetResponseEnvelope) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *WorkflowRevisionGetResponseEnvelope) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkflowRevisionService struct {\n\tOptions []option.RequestOption\n}\n```\nWorkflowRevisionService contains methods and other services that help with interacting with the chunkify API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewWorkflowRevisionService](#NewWorkflowRevisionService) method instead.\n\n```go\nfunc NewWorkflowRevisionService(opts ...option.RequestOption) (r WorkflowRevisionService)\n```\nNewWorkflowRevisionService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *WorkflowRevisionService) Get(ctx context.Context, revision int64, query WorkflowRevisionGetParams, opts ...option.RequestOption) (res *WorkflowRevision, err error)\n```\nRetrieve an immutable Workflow definition revision and its rules, including revisions of archived Workflows, to see what a past run executed.\n\n```go\ntype WorkflowRule struct {\n\t// Id specifies a stable rule key, unique within this Workflow definition. Use 1 to\n\t// 64 characters, starting with a letter and containing only letters, digits, or\n\t// underscores.\n\tID string `json:\"id\" api:\"required\"`\n\t// Actions specifies the work to start when the rule matches. Actions can run\n\t// concurrently; array order does not define execution order. Provide 1 to 32\n\t// actions per rule, with at most 32 across the definition.\n\tActions []WorkflowActionUnion `json:\"actions\" api:\"required\"`\n\t// Event specifies when this rule starts. Use asset.ready for the single starting\n\t// rule. Output ready events require an origin caption or static rendition action\n\t// in this Workflow.\n\t//\n\t// Any of \"asset.ready\", \"asset.output.ready\".\n\tEvent WorkflowRuleEvent `json:\"event\" api:\"required\"`\n\t// Origin specifies the action whose ready output starts this rule. Required for\n\t// asset.output.ready; omit it for asset.ready. Translation steps must connect to a\n\t// create_caption action. References must point to a compatible action in this\n\t// definition and must not form a cycle.\n\tOrigin WorkflowOrigin `json:\"origin\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tActions     respjson.Field\n\t\tEvent       respjson.Field\n\t\tOrigin      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA starting or connected step with one or more independent actions.\n\n```go\nfunc (r WorkflowRule) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *WorkflowRule) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkflowRuleEvent string\n```\n\n```go\nconst (\n\tWorkflowRuleEventAssetReady       WorkflowRuleEvent = \"asset.ready\"\n\tWorkflowRuleEventAssetOutputReady WorkflowRuleEvent = \"asset.output.ready\"\n)\n```\n\n```go\ntype WorkflowRuleParams struct {\n\t// Id specifies a stable rule key, unique within this Workflow definition. Use 1 to\n\t// 64 characters, starting with a letter and containing only letters, digits, or\n\t// underscores.\n\tID string `json:\"id\" api:\"required\"`\n\t// Actions specifies the work to start when the rule matches. Actions can run\n\t// concurrently; array order does not define execution order. Provide 1 to 32\n\t// actions per rule, with at most 32 across the definition.\n\tActions []WorkflowActionParamsUnion `json:\"actions,omitzero\" api:\"required\"`\n\t// Event specifies when this rule starts. Use asset.ready for the single starting\n\t// rule. Output ready events require an origin caption or static rendition action\n\t// in this Workflow.\n\t//\n\t// Any of \"asset.ready\", \"asset.output.ready\".\n\tEvent WorkflowRuleEvent `json:\"event,omitzero\" api:\"required\"`\n\t// Origin specifies the action whose ready output starts this rule. Required for\n\t// asset.output.ready; omit it for asset.ready. Translation steps must connect to a\n\t// create_caption action. References must point to a compatible action in this\n\t// definition and must not form a cycle.\n\tOrigin WorkflowOriginParams `json:\"origin,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nA starting or connected step with one or more independent actions.\n\nThe properties ID, Actions, Event are required.\n\n```go\nfunc (r WorkflowRuleParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *WorkflowRuleParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkflowRun struct {\n\t// Unique Workflow run ID.\n\tID string `json:\"id\" api:\"required\"`\n\t// Counts of action outcomes in this run. Reused actions are included in completed.\n\tActions WorkflowActionCounts `json:\"actions\" api:\"required\"`\n\t// AssetExecutionStatus specifies the combined status of this revision for the\n\t// Asset across retained runs. Any failed action or run makes it failed. Pending or\n\t// active work, or an Asset still preparing for an unarchived Workflow, makes it\n\t// running. Otherwise it is completed.\n\t//\n\t// Any of \"pending\", \"running\", \"completed\", \"failed\", \"cancelled\".\n\tAssetExecutionStatus WorkflowRunStatus `json:\"asset_execution_status\" api:\"required\"`\n\t// ID of the Asset processed by this run.\n\tAssetID string `json:\"asset_id\" api:\"required\"`\n\t// When the run completed, failed, or was cancelled. Null while the run is pending\n\t// or running.\n\tCompletedAt time.Time `json:\"completed_at\" api:\"required\" format:\"date-time\"`\n\t// When the run was created.\n\tCreatedAt time.Time `json:\"created_at\" api:\"required\" format:\"date-time\"`\n\t// Event specifies the Asset lifecycle event that triggered this run, or manual\n\t// when the Asset was updated to a newer revision. Action details are available\n\t// from the run's actions endpoint.\n\tEvent string `json:\"event\" api:\"required\"`\n\t// EventId specifies the event that triggered this run. Null when the Asset was\n\t// updated to a newer revision.\n\tEventID string `json:\"event_id\" api:\"required\"`\n\t// Pinned Workflow revision used by this run.\n\tRevision int64 `json:\"revision\" api:\"required\"`\n\t// ID of the first run in this event chain. Equals id when this run starts the\n\t// chain.\n\tRootRunID string `json:\"root_run_id\" api:\"required\"`\n\t// Current status of this event run, based on its own actions.\n\t//\n\t// Any of \"pending\", \"running\", \"completed\", \"failed\", \"cancelled\".\n\tStatus WorkflowRunStatus `json:\"status\" api:\"required\"`\n\t// When the run was last updated.\n\tUpdatedAt time.Time `json:\"updated_at\" api:\"required\" format:\"date-time\"`\n\t// ID of the Workflow executed by this run.\n\tWorkflowID string `json:\"workflow_id\" api:\"required\"`\n\t// Reason the run failed. Omitted when no failure message is available.\n\tError string `json:\"error\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID                   respjson.Field\n\t\tActions              respjson.Field\n\t\tAssetExecutionStatus respjson.Field\n\t\tAssetID              respjson.Field\n\t\tCompletedAt          respjson.Field\n\t\tCreatedAt            respjson.Field\n\t\tEvent                respjson.Field\n\t\tEventID              respjson.Field\n\t\tRevision             respjson.Field\n\t\tRootRunID            respjson.Field\n\t\tStatus               respjson.Field\n\t\tUpdatedAt            respjson.Field\n\t\tWorkflowID           respjson.Field\n\t\tError                respjson.Field\n\t\tExtraFields          map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nOne execution of Workflow rules for an Asset, started by an event or by updating to a newer revision.\n\n```go\nfunc (r WorkflowRun) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *WorkflowRun) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkflowRunActionGetParams struct {\n\tWorkflowID string `path:\"workflowId\" api:\"required\" json:\"-\"`\n\tRunID      string `path:\"runId\" api:\"required\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype WorkflowRunActionGetResponseEnvelope struct {\n\t// The requested Asset action run.\n\tData AssetActionRun `json:\"data\" api:\"required\"`\n\t// Status of the API request. Always success for this response.\n\tStatus constant.Success `json:\"status\" default:\"success\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tData        respjson.Field\n\t\tStatus      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nResponse containing one Asset action run.\n\n```go\nfunc (r WorkflowRunActionGetResponseEnvelope) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *WorkflowRunActionGetResponseEnvelope) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkflowRunActionListParams struct {\n\tWorkflowID string `path:\"workflowId\" api:\"required\" json:\"-\"`\n\t// AssetId specifies the Asset whose results to return. Omit it to include all\n\t// Assets.\n\tAssetID param.Opt[string] `query:\"asset_id,omitzero\" json:\"-\"`\n\t// Limit specifies the maximum number of results to return. Accepts 1 to 100.\n\t// Defaults to 100.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Offset specifies the number of matching results to skip. Must be at least 0.\n\t// Defaults to 0.\n\tOffset  param.Opt[int64]                   `query:\"offset,omitzero\" json:\"-\"`\n\tCreated WorkflowRunActionListParamsCreated `query:\"created,omitzero\" json:\"-\"`\n\t// Status specifies the action status to filter by. Omit it to include all\n\t// statuses.\n\t//\n\t// Any of \"pending\", \"running\", \"waiting\", \"completed\", \"failed\", \"skipped\",\n\t// \"cancelled\".\n\tStatus WorkflowRunActionListParamsStatus `query:\"status,omitzero\" json:\"-\"`\n\t// Type specifies the action type to filter by. Omit it to include all action\n\t// types.\n\t//\n\t// Any of \"create_static_rendition\", \"create_caption\", \"create_transcript\",\n\t// \"translate_caption\".\n\tType WorkflowRunActionListParamsType `query:\"type,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r WorkflowRunActionListParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [WorkflowRunActionListParams](#WorkflowRunActionListParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype WorkflowRunActionListParamsCreated struct {\n\t// Created at or after this Unix timestamp in seconds.\n\tGte param.Opt[int64] `query:\"gte,omitzero\" json:\"-\"`\n\t// Created at or before this Unix timestamp in seconds.\n\tLte param.Opt[int64] `query:\"lte,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r WorkflowRunActionListParamsCreated) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [WorkflowRunActionListParamsCreated](#WorkflowRunActionListParamsCreated)'s query parameters as \\`url.Values\\`.\n\n```go\ntype WorkflowRunActionListParamsStatus string\n```\nStatus specifies the action status to filter by. Omit it to include all statuses.\n\n```go\nconst (\n\tWorkflowRunActionListParamsStatusPending   WorkflowRunActionListParamsStatus = \"pending\"\n\tWorkflowRunActionListParamsStatusRunning   WorkflowRunActionListParamsStatus = \"running\"\n\tWorkflowRunActionListParamsStatusWaiting   WorkflowRunActionListParamsStatus = \"waiting\"\n\tWorkflowRunActionListParamsStatusCompleted WorkflowRunActionListParamsStatus = \"completed\"\n\tWorkflowRunActionListParamsStatusFailed    WorkflowRunActionListParamsStatus = \"failed\"\n\tWorkflowRunActionListParamsStatusSkipped   WorkflowRunActionListParamsStatus = \"skipped\"\n\tWorkflowRunActionListParamsStatusCancelled WorkflowRunActionListParamsStatus = \"cancelled\"\n)\n```\n\n```go\ntype WorkflowRunActionListParamsType string\n```\nType specifies the action type to filter by. Omit it to include all action types.\n\n```go\nconst (\n\tWorkflowRunActionListParamsTypeCreateStaticRendition WorkflowRunActionListParamsType = \"create_static_rendition\"\n\tWorkflowRunActionListParamsTypeCreateCaption         WorkflowRunActionListParamsType = \"create_caption\"\n\tWorkflowRunActionListParamsTypeCreateTranscript      WorkflowRunActionListParamsType = \"create_transcript\"\n\tWorkflowRunActionListParamsTypeTranslateCaption      WorkflowRunActionListParamsType = \"translate_caption\"\n)\n```\n\n```go\ntype WorkflowRunActionService struct {\n\tOptions []option.RequestOption\n}\n```\nWorkflowRunActionService contains methods and other services that help with interacting with the chunkify API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewWorkflowRunActionService](#NewWorkflowRunActionService) method instead.\n\n```go\nfunc NewWorkflowRunActionService(opts ...option.RequestOption) (r WorkflowRunActionService)\n```\nNewWorkflowRunActionService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *WorkflowRunActionService) Get(ctx context.Context, actionRunID string, query WorkflowRunActionGetParams, opts ...option.RequestOption) (res *AssetActionRun, err error)\n```\nRetrieve one action execution in a retained Workflow run, including the Asset it ran on, its resolved inputs, status, result, and error.\n\n```go\nfunc (r *WorkflowRunActionService) List(ctx context.Context, runID string, params WorkflowRunActionListParams, opts ...option.RequestOption) (res *pagination.PaginatedResults[AssetActionRun], err error)\n```\nList actions in a retained Workflow run, newest first. Includes resolved inputs, statuses, output references, and skip or failure reasons.\n\n```go\nfunc (r *WorkflowRunActionService) ListAutoPaging(ctx context.Context, runID string, params WorkflowRunActionListParams, opts ...option.RequestOption) *pagination.PaginatedResultsAutoPager[AssetActionRun]\n```\nList actions in a retained Workflow run, newest first. Includes resolved inputs, statuses, output references, and skip or failure reasons.\n\n```go\ntype WorkflowRunGetParams struct {\n\tWorkflowID string `path:\"workflowId\" api:\"required\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype WorkflowRunGetResponseEnvelope struct {\n\t// The requested Workflow run.\n\tData WorkflowRun `json:\"data\" api:\"required\"`\n\t// Status of the API request. Always success for this response.\n\tStatus constant.Success `json:\"status\" default:\"success\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tData        respjson.Field\n\t\tStatus      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nResponse containing one Workflow run.\n\n```go\nfunc (r WorkflowRunGetResponseEnvelope) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *WorkflowRunGetResponseEnvelope) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkflowRunListParams struct {\n\t// AssetId specifies the Asset whose results to return. Omit it to include all\n\t// Assets.\n\tAssetID param.Opt[string] `query:\"asset_id,omitzero\" json:\"-\"`\n\t// EventId specifies the triggering event ID to filter by. Omit it to include all\n\t// events.\n\tEventID param.Opt[string] `query:\"event_id,omitzero\" json:\"-\"`\n\t// LatestPerAsset specifies whether to return only the latest matching run for each\n\t// Asset. Defaults to false. Pagination and total count apply to Assets when true.\n\tLatestPerAsset param.Opt[bool] `query:\"latest_per_asset,omitzero\" json:\"-\"`\n\t// Limit specifies the maximum number of results to return. Accepts 1 to 100.\n\t// Defaults to 100.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Offset specifies the number of matching results to skip. Must be at least 0.\n\t// Defaults to 0.\n\tOffset  param.Opt[int64]             `query:\"offset,omitzero\" json:\"-\"`\n\tCreated WorkflowRunListParamsCreated `query:\"created,omitzero\" json:\"-\"`\n\t// Status specifies the run status to filter by. Omit it to include all statuses.\n\t//\n\t// Any of \"pending\", \"running\", \"completed\", \"failed\", \"cancelled\".\n\tStatus WorkflowRunListParamsStatus `query:\"status,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r WorkflowRunListParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [WorkflowRunListParams](#WorkflowRunListParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype WorkflowRunListParamsCreated struct {\n\t// Created at or after this Unix timestamp in seconds.\n\tGte param.Opt[int64] `query:\"gte,omitzero\" json:\"-\"`\n\t// Created at or before this Unix timestamp in seconds.\n\tLte param.Opt[int64] `query:\"lte,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r WorkflowRunListParamsCreated) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [WorkflowRunListParamsCreated](#WorkflowRunListParamsCreated)'s query parameters as \\`url.Values\\`.\n\n```go\ntype WorkflowRunListParamsStatus string\n```\nStatus specifies the run status to filter by. Omit it to include all statuses.\n\n```go\nconst (\n\tWorkflowRunListParamsStatusPending   WorkflowRunListParamsStatus = \"pending\"\n\tWorkflowRunListParamsStatusRunning   WorkflowRunListParamsStatus = \"running\"\n\tWorkflowRunListParamsStatusCompleted WorkflowRunListParamsStatus = \"completed\"\n\tWorkflowRunListParamsStatusFailed    WorkflowRunListParamsStatus = \"failed\"\n\tWorkflowRunListParamsStatusCancelled WorkflowRunListParamsStatus = \"cancelled\"\n)\n```\n\n```go\ntype WorkflowRunService struct {\n\tOptions []option.RequestOption\n\tActions WorkflowRunActionService\n}\n```\nWorkflowRunService contains methods and other services that help with interacting with the chunkify API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewWorkflowRunService](#NewWorkflowRunService) method instead.\n\n```go\nfunc NewWorkflowRunService(opts ...option.RequestOption) (r WorkflowRunService)\n```\nNewWorkflowRunService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *WorkflowRunService) Get(ctx context.Context, runID string, query WorkflowRunGetParams, opts ...option.RequestOption) (res *WorkflowRun, err error)\n```\nRetrieve a retained Workflow run with its triggering event, Asset, revision, status, and action counts, plus any error the run reported.\n\n```go\nfunc (r *WorkflowRunService) List(ctx context.Context, workflowID string, query WorkflowRunListParams, opts ...option.RequestOption) (res *pagination.PaginatedResults[WorkflowRun], err error)\n```\nList retained runs for a Workflow, newest first. Each run corresponds to one matching Asset event; filter by Asset, status, event, or date.\n\n```go\nfunc (r *WorkflowRunService) ListAutoPaging(ctx context.Context, workflowID string, query WorkflowRunListParams, opts ...option.RequestOption) *pagination.PaginatedResultsAutoPager[WorkflowRun]\n```\nList retained runs for a Workflow, newest first. Each run corresponds to one matching Asset event; filter by Asset, status, event, or date.\n\n```go\ntype WorkflowRunStatus string\n```\nCurrent run status. pending means its actions have not started; running means work remains. After all actions finish, failed takes precedence over cancelled. Otherwise the run is completed, including when actions were skipped.\n\n```go\nconst (\n\tWorkflowRunStatusPending   WorkflowRunStatus = \"pending\"\n\tWorkflowRunStatusRunning   WorkflowRunStatus = \"running\"\n\tWorkflowRunStatusCompleted WorkflowRunStatus = \"completed\"\n\tWorkflowRunStatusFailed    WorkflowRunStatus = \"failed\"\n\tWorkflowRunStatusCancelled WorkflowRunStatus = \"cancelled\"\n)\n```\n\n```go\ntype WorkflowService struct {\n\tOptions   []option.RequestOption\n\tRevisions WorkflowRevisionService\n\tRuns      WorkflowRunService\n}\n```\nWorkflowService contains methods and other services that help with interacting with the chunkify API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewWorkflowService](#NewWorkflowService) method instead.\n\n```go\nfunc NewWorkflowService(opts ...option.RequestOption) (r WorkflowService)\n```\nNewWorkflowService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *WorkflowService) Delete(ctx context.Context, workflowID string, opts ...option.RequestOption) (err error)\n```\nArchive the Workflow and clear it from the Project default. New Assets cannot select it and new events do not start runs. Accepted actions finish, and outputs and retained history remain available.\n\n```go\nfunc (r *WorkflowService) Get(ctx context.Context, workflowID string, opts ...option.RequestOption) (res *Workflow, err error)\n```\nRetrieve a Workflow with its name, current revision, and rules. Archived Workflows can still be retrieved and include the date they were archived.\n\n```go\nfunc (r *WorkflowService) List(ctx context.Context, query WorkflowListParams, opts ...option.RequestOption) (res *pagination.PaginatedResults[Workflow], err error)\n```\nList the Workflows in the Project, newest first, with their current revision and rules. Archived Workflows are included only when archived is true.\n\n```go\nfunc (r *WorkflowService) ListAutoPaging(ctx context.Context, query WorkflowListParams, opts ...option.RequestOption) *pagination.PaginatedResultsAutoPager[Workflow]\n```\nList the Workflows in the Project, newest first, with their current revision and rules. Archived Workflows are included only when archived is true.\n\n```go\nfunc (r *WorkflowService) New(ctx context.Context, body WorkflowNewParams, opts ...option.RequestOption) (res *Workflow, err error)\n```\nCreate a Workflow with its first definition revision. Select it when creating an Asset or Upload, or set it as the Project default.\n\n```go\nfunc (r *WorkflowService) Update(ctx context.Context, workflowID string, body WorkflowUpdateParams, opts ...option.RequestOption) (err error)\n```\nUpdate the Workflow name or replace its rules. Replacing rules requires the current revision. A changed definition creates a new revision; unchanged rules and name-only edits preserve it. Existing Assets and Uploads keep their selected revision until a ready Asset explicitly updates to the latest revision. Archived Workflows cannot be updated.\n\n```go\ntype WorkflowStatic struct {\n\t// Resolution specifies the H.264 MP4 output resolution. highest selects the\n\t// largest supported output without upscaling. Hobby supports up to 1080p; other\n\t// plans support up to 2160p. Streaming resolution limits do not apply.\n\t//\n\t// Any of \"highest\", \"240p\", \"360p\", \"480p\", \"540p\", \"720p\", \"1080p\", \"1440p\",\n\t// \"2160p\".\n\tResolution WorkflowStaticResolution `json:\"resolution\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tResolution  respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nParameters for creating one static rendition.\n\n```go\nfunc (r WorkflowStatic) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *WorkflowStatic) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkflowStaticAction struct {\n\t// Id specifies a stable action key, unique within its rule. Use 1 to 64\n\t// characters, starting with a letter and containing only letters, digits, or\n\t// underscores.\n\tID string `json:\"id\" api:\"required\"`\n\t// Params specifies the static rendition resolution.\n\tParams WorkflowStatic `json:\"params\" api:\"required\"`\n\t// Type specifies the action to perform. Must be create_static_rendition.\n\tType constant.CreateStaticRendition `json:\"type\" default:\"create_static_rendition\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tParams      respjson.Field\n\t\tType        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nCreates or reuses one static rendition for the Asset.\n\n```go\nfunc (r WorkflowStaticAction) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *WorkflowStaticAction) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkflowStaticActionParams struct {\n\t// Id specifies a stable action key, unique within its rule. Use 1 to 64\n\t// characters, starting with a letter and containing only letters, digits, or\n\t// underscores.\n\tID string `json:\"id\" api:\"required\"`\n\t// Params specifies the static rendition resolution.\n\tParams WorkflowStaticParams `json:\"params,omitzero\" api:\"required\"`\n\t// Type specifies the action to perform. Must be create_static_rendition.\n\t//\n\t// This field can be elided, and will marshal its zero value as\n\t// \"create_static_rendition\".\n\tType constant.CreateStaticRendition `json:\"type\" default:\"create_static_rendition\"`\n\t// contains filtered or unexported fields\n}\n```\nCreates or reuses one static rendition for the Asset.\n\nThe properties ID, Params, Type are required.\n\n```go\nfunc (r WorkflowStaticActionParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *WorkflowStaticActionParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkflowStaticParams struct {\n\t// Resolution specifies the H.264 MP4 output resolution. highest selects the\n\t// largest supported output without upscaling. Hobby supports up to 1080p; other\n\t// plans support up to 2160p. Streaming resolution limits do not apply.\n\t//\n\t// Any of \"highest\", \"240p\", \"360p\", \"480p\", \"540p\", \"720p\", \"1080p\", \"1440p\",\n\t// \"2160p\".\n\tResolution WorkflowStaticResolution `json:\"resolution,omitzero\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nParameters for creating one static rendition.\n\nThe property Resolution is required.\n\n```go\nfunc (r WorkflowStaticParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *WorkflowStaticParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkflowStaticResolution string\n```\n\n```go\nconst (\n\tWorkflowStaticResolutionHighest WorkflowStaticResolution = \"highest\"\n\tWorkflowStaticResolution240p    WorkflowStaticResolution = \"240p\"\n\tWorkflowStaticResolution360p    WorkflowStaticResolution = \"360p\"\n\tWorkflowStaticResolution480p    WorkflowStaticResolution = \"480p\"\n\tWorkflowStaticResolution540p    WorkflowStaticResolution = \"540p\"\n\tWorkflowStaticResolution720p    WorkflowStaticResolution = \"720p\"\n\tWorkflowStaticResolution1080p   WorkflowStaticResolution = \"1080p\"\n\tWorkflowStaticResolution1440p   WorkflowStaticResolution = \"1440p\"\n\tWorkflowStaticResolution2160p   WorkflowStaticResolution = \"2160p\"\n)\n```\n\n```go\ntype WorkflowThumbnail struct {\n\t// Count specifies 1 to 100 thumbnails at the middle of equal sections of the\n\t// selected range.\n\tCount int64 `json:\"count\"`\n\t// Format selects JPEG or WebP. Defaults to JPEG.\n\t//\n\t// Any of \"jpeg\", \"webp\".\n\tFormat ThumbnailFormat `json:\"format\"`\n\t// Metadata attaches string values to this request. The serialized object may\n\t// contain at most 2048 bytes.\n\tMetadata map[string]string `json:\"metadata\"`\n\t// Output selects images or sprites. Defaults to images.\n\t//\n\t// Any of \"images\", \"sprites\".\n\tOutput ThumbnailOutput `json:\"output\"`\n\t// Range limits sampling to part of the Source. Defaults to the whole Source\n\t// duration.\n\tRange WorkflowThumbnailRange `json:\"range\"`\n\t// Size specifies the maximum image or tile edge in pixels, from 64 to 1920.\n\t// Defaults to 320. Odd sizes are supported. Preserves display aspect ratio without\n\t// cropping or upscaling.\n\tSize int64 `json:\"size\"`\n\t// Timestamps specifies 1 to 100 Source-relative target times in seconds. Times\n\t// outside the selected range are skipped when the action runs. If none remain, the\n\t// action is skipped without a charge. Repeated targets produce separate outputs.\n\tTimestamps []float64 `json:\"timestamps\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tCount       respjson.Field\n\t\tFormat      respjson.Field\n\t\tMetadata    respjson.Field\n\t\tOutput      respjson.Field\n\t\tRange       respjson.Field\n\t\tSize        respjson.Field\n\t\tTimestamps  respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nGenerate additional thumbnails in the Asset folder and Storage. Each layout, format and size combination can be requested once. Specify exactly one of timestamps or count.\n\n```go\nfunc (r WorkflowThumbnail) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *WorkflowThumbnail) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkflowThumbnailAction struct {\n\t// Id specifies a stable action key, unique within its rule.\n\tID string `json:\"id\" api:\"required\"`\n\t// Params specifies sampling and image settings. Outputs use the Asset folder and\n\t// Storage.\n\tParams WorkflowThumbnail `json:\"params\" api:\"required\"`\n\t// Type specifies the action to perform. Must be create_thumbnails.\n\tType constant.CreateThumbnails `json:\"type\" default:\"create_thumbnails\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tParams      respjson.Field\n\t\tType        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nCreates an independent thumbnail request after asset.ready. Replaying this action uses its accepted request; separate actions create separate requests.\n\n```go\nfunc (r WorkflowThumbnailAction) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *WorkflowThumbnailAction) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkflowThumbnailActionParams struct {\n\t// Id specifies a stable action key, unique within its rule.\n\tID string `json:\"id\" api:\"required\"`\n\t// Params specifies sampling and image settings. Outputs use the Asset folder and\n\t// Storage.\n\tParams WorkflowThumbnailParams `json:\"params\" api:\"required\"`\n\t// Type specifies the action to perform. Must be create_thumbnails.\n\t//\n\t// This field can be elided, and will marshal its zero value as\n\t// \"create_thumbnails\".\n\tType constant.CreateThumbnails `json:\"type\" default:\"create_thumbnails\"`\n\t// contains filtered or unexported fields\n}\n```\nCreates an independent thumbnail request after asset.ready. Replaying this action uses its accepted request; separate actions create separate requests.\n\nThe properties ID, Params, Type are required.\n\n```go\nfunc (r WorkflowThumbnailActionParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *WorkflowThumbnailActionParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkflowThumbnailParams struct {\n\t// Count specifies 1 to 100 thumbnails at the middle of equal sections of the\n\t// selected range.\n\tCount param.Opt[int64] `json:\"count,omitzero\"`\n\t// Size specifies the maximum image or tile edge in pixels, from 64 to 1920.\n\t// Defaults to 320. Odd sizes are supported. Preserves display aspect ratio without\n\t// cropping or upscaling.\n\tSize param.Opt[int64] `json:\"size,omitzero\"`\n\t// Format selects JPEG or WebP. Defaults to JPEG.\n\t//\n\t// Any of \"jpeg\", \"webp\".\n\tFormat ThumbnailFormat `json:\"format,omitzero\"`\n\t// Metadata attaches string values to this request. The serialized object may\n\t// contain at most 2048 bytes.\n\tMetadata map[string]string `json:\"metadata,omitzero\"`\n\t// Output selects images or sprites. Defaults to images.\n\t//\n\t// Any of \"images\", \"sprites\".\n\tOutput ThumbnailOutput `json:\"output,omitzero\"`\n\t// Range limits sampling to part of the Source. Defaults to the whole Source\n\t// duration.\n\tRange WorkflowThumbnailRangeParams `json:\"range,omitzero\"`\n\t// Timestamps specifies 1 to 100 Source-relative target times in seconds. Times\n\t// outside the selected range are skipped when the action runs. If none remain, the\n\t// action is skipped without a charge. Repeated targets produce separate outputs.\n\tTimestamps []float64 `json:\"timestamps,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nGenerate additional thumbnails in the Asset folder and Storage. Each layout, format and size combination can be requested once. Specify exactly one of timestamps or count.\n\n```go\nfunc (r WorkflowThumbnailParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *WorkflowThumbnailParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkflowThumbnailRange struct {\n\t// End specifies the exclusive upper bound in seconds. Defaults to the Source\n\t// duration.\n\tEnd float64 `json:\"end\"`\n\t// Start specifies the inclusive lower bound in seconds. Defaults to zero.\n\tStart float64 `json:\"start\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tEnd         respjson.Field\n\t\tStart       respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nOptional Source-relative sampling boundaries.\n\n```go\nfunc (r WorkflowThumbnailRange) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *WorkflowThumbnailRange) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkflowThumbnailRangeParams struct {\n\t// End specifies the exclusive upper bound in seconds. Defaults to the Source\n\t// duration.\n\tEnd param.Opt[float64] `json:\"end,omitzero\"`\n\t// Start specifies the inclusive lower bound in seconds. Defaults to zero.\n\tStart param.Opt[float64] `json:\"start,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nOptional Source-relative sampling boundaries.\n\n```go\nfunc (r WorkflowThumbnailRangeParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *WorkflowThumbnailRangeParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkflowTranscript struct {\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nParameters for an original-language transcript. Pass an empty object; the spoken language is detected automatically.\n\n```go\nfunc (r WorkflowTranscript) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *WorkflowTranscript) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkflowTranscriptAction struct {\n\t// Id specifies a stable action key, unique within its rule. Use 1 to 64\n\t// characters, starting with a letter and containing only letters, digits, or\n\t// underscores.\n\tID string `json:\"id\" api:\"required\"`\n\t// Params specifies transcript settings. Pass an empty object.\n\tParams WorkflowTranscript `json:\"params\" api:\"required\"`\n\t// Type specifies the action to perform. Must be create_transcript.\n\tType constant.CreateTranscript `json:\"type\" default:\"create_transcript\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tParams      respjson.Field\n\t\tType        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nCreates or reuses the original-language transcript. Can run alongside caption generation in the same asset.ready rule.\n\n```go\nfunc (r WorkflowTranscriptAction) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *WorkflowTranscriptAction) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkflowTranscriptActionParams struct {\n\t// Id specifies a stable action key, unique within its rule. Use 1 to 64\n\t// characters, starting with a letter and containing only letters, digits, or\n\t// underscores.\n\tID string `json:\"id\" api:\"required\"`\n\t// Params specifies transcript settings. Pass an empty object.\n\tParams WorkflowTranscriptParams `json:\"params\" api:\"required\"`\n\t// Type specifies the action to perform. Must be create_transcript.\n\t//\n\t// This field can be elided, and will marshal its zero value as\n\t// \"create_transcript\".\n\tType constant.CreateTranscript `json:\"type\" default:\"create_transcript\"`\n\t// contains filtered or unexported fields\n}\n```\nCreates or reuses the original-language transcript. Can run alongside caption generation in the same asset.ready rule.\n\nThe properties ID, Params, Type are required.\n\n```go\nfunc (r WorkflowTranscriptActionParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *WorkflowTranscriptActionParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkflowTranscriptParams struct {\n\t// contains filtered or unexported fields\n}\n```\nParameters for an original-language transcript. Pass an empty object; the spoken language is detected automatically.\n\n```go\nfunc (r WorkflowTranscriptParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *WorkflowTranscriptParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkflowTranslation struct {\n\t// LanguageCode specifies the target language for the translated subtitle track,\n\t// such as en or fr. The same code appears in the caption and HLS manifest.\n\t//\n\t// Any of \"en\", \"fr\", \"es\", \"de\", \"it\", \"pt\", \"nl\", \"ja\", \"ko\", \"zh\", \"ar\", \"hi\",\n\t// \"ru\", \"tr\", \"pl\", \"sv\".\n\tLanguageCode WorkflowTranslationLanguageCode `json:\"language_code\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tLanguageCode respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nParameters for translating one original caption into another language.\n\n```go\nfunc (r WorkflowTranslation) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *WorkflowTranslation) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkflowTranslationAction struct {\n\t// Id specifies a stable action key, unique within its rule. Use 1 to 64\n\t// characters, starting with a letter and containing only letters, digits, or\n\t// underscores.\n\tID string `json:\"id\" api:\"required\"`\n\t// CaptionId specifies the binding to the original caption in the triggering event.\n\tCaptionID WorkflowOutputBinding `json:\"caption_id\" api:\"required\"`\n\t// Params specifies the target language.\n\tParams WorkflowTranslation `json:\"params\" api:\"required\"`\n\t// Type specifies the action to perform. Must be translate_caption.\n\tType constant.TranslateCaption `json:\"type\" default:\"translate_caption\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tCaptionID   respjson.Field\n\t\tParams      respjson.Field\n\t\tType        respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nTranslates or reuses an original caption in one target language. Requires an asset.output.ready rule connected to an original caption creation action.\n\n```go\nfunc (r WorkflowTranslationAction) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *WorkflowTranslationAction) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkflowTranslationActionParams struct {\n\t// Id specifies a stable action key, unique within its rule. Use 1 to 64\n\t// characters, starting with a letter and containing only letters, digits, or\n\t// underscores.\n\tID string `json:\"id\" api:\"required\"`\n\t// CaptionId specifies the binding to the original caption in the triggering event.\n\tCaptionID WorkflowOutputBindingParams `json:\"caption_id,omitzero\" api:\"required\"`\n\t// Params specifies the target language.\n\tParams WorkflowTranslationParams `json:\"params,omitzero\" api:\"required\"`\n\t// Type specifies the action to perform. Must be translate_caption.\n\t//\n\t// This field can be elided, and will marshal its zero value as\n\t// \"translate_caption\".\n\tType constant.TranslateCaption `json:\"type\" default:\"translate_caption\"`\n\t// contains filtered or unexported fields\n}\n```\nTranslates or reuses an original caption in one target language. Requires an asset.output.ready rule connected to an original caption creation action.\n\nThe properties ID, CaptionID, Params, Type are required.\n\n```go\nfunc (r WorkflowTranslationActionParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *WorkflowTranslationActionParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkflowTranslationLanguageCode string\n```\n\n```go\nconst (\n\tWorkflowTranslationLanguageCodeEn WorkflowTranslationLanguageCode = \"en\"\n\tWorkflowTranslationLanguageCodeFr WorkflowTranslationLanguageCode = \"fr\"\n\tWorkflowTranslationLanguageCodeEs WorkflowTranslationLanguageCode = \"es\"\n\tWorkflowTranslationLanguageCodeDe WorkflowTranslationLanguageCode = \"de\"\n\tWorkflowTranslationLanguageCodeIt WorkflowTranslationLanguageCode = \"it\"\n\tWorkflowTranslationLanguageCodePt WorkflowTranslationLanguageCode = \"pt\"\n\tWorkflowTranslationLanguageCodeNl WorkflowTranslationLanguageCode = \"nl\"\n\tWorkflowTranslationLanguageCodeJa WorkflowTranslationLanguageCode = \"ja\"\n\tWorkflowTranslationLanguageCodeKo WorkflowTranslationLanguageCode = \"ko\"\n\tWorkflowTranslationLanguageCodeZh WorkflowTranslationLanguageCode = \"zh\"\n\tWorkflowTranslationLanguageCodeAr WorkflowTranslationLanguageCode = \"ar\"\n\tWorkflowTranslationLanguageCodeHi WorkflowTranslationLanguageCode = \"hi\"\n\tWorkflowTranslationLanguageCodeRu WorkflowTranslationLanguageCode = \"ru\"\n\tWorkflowTranslationLanguageCodeTr WorkflowTranslationLanguageCode = \"tr\"\n\tWorkflowTranslationLanguageCodePl WorkflowTranslationLanguageCode = \"pl\"\n\tWorkflowTranslationLanguageCodeSv WorkflowTranslationLanguageCode = \"sv\"\n)\n```\n\n```go\ntype WorkflowTranslationParams struct {\n\t// LanguageCode specifies the target language for the translated subtitle track,\n\t// such as en or fr. The same code appears in the caption and HLS manifest.\n\t//\n\t// Any of \"en\", \"fr\", \"es\", \"de\", \"it\", \"pt\", \"nl\", \"ja\", \"ko\", \"zh\", \"ar\", \"hi\",\n\t// \"ru\", \"tr\", \"pl\", \"sv\".\n\tLanguageCode WorkflowTranslationLanguageCode `json:\"language_code,omitzero\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nParameters for translating one original caption into another language.\n\nThe property LanguageCode is required.\n\n```go\nfunc (r WorkflowTranslationParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *WorkflowTranslationParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WorkflowUpdateParams struct {\n\t// ExpectedRevision specifies the current Workflow revision when replacing rules.\n\t// The update returns a conflict if it no longer matches. Required when rules is\n\t// provided. Must be at least 1.\n\tExpectedRevision param.Opt[int64] `json:\"expected_revision,omitzero\"`\n\t// Name specifies the Workflow name. Use 1 to 128 characters.\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// Rules specifies the event subscriptions and actions in this definition. Provide\n\t// exactly one asset.ready rule and up to 15 connected rules, with at most 32\n\t// actions and 65536 encoded bytes across all rules. Array order affects display\n\t// only. Replaces the complete definition and requires schema_version and\n\t// expected_revision. Existing Assets and Uploads keep their pinned revision.\n\tRules []WorkflowRuleParams `json:\"rules,omitzero\"`\n\t// SchemaVersion specifies the Workflow definition format. The supported version\n\t// is 1. Required when rules is provided.\n\t//\n\t// Any of 1.\n\tSchemaVersion int64 `json:\"schema_version,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r WorkflowUpdateParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *WorkflowUpdateParams) UnmarshalJSON(data []byte) error\n```\n\n","path":"github.com/chunkifydev/chunkify-go","name":"chunkify","synopsis":"","isRedistributable":true}
