{"modulePath":"github.com/chunkifydev/chunkify-analytics-go","version":"v0.10.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package chunkifyanalytics\n\n## Constants\n\n```go\nconst BrowserContextDeviceTypeDesktop = shared.BrowserContextDeviceTypeDesktop\n```\nEquals \"desktop\"\n\n```go\nconst BrowserContextDeviceTypeMobile = shared.BrowserContextDeviceTypeMobile\n```\nEquals \"mobile\"\n\n```go\nconst BrowserContextDeviceTypeTablet = shared.BrowserContextDeviceTypeTablet\n```\nEquals \"tablet\"\n\n```go\nconst BrowserContextDeviceTypeUnknown = shared.BrowserContextDeviceTypeUnknown\n```\nEquals \"unknown\"\n\n```go\nconst EventContextContinentAf = shared.EventContextContinentAf\n```\nEquals \"AF\"\n\n```go\nconst EventContextContinentAn = shared.EventContextContinentAn\n```\nEquals \"AN\"\n\n```go\nconst EventContextContinentAs = shared.EventContextContinentAs\n```\nEquals \"AS\"\n\n```go\nconst EventContextContinentEu = shared.EventContextContinentEu\n```\nEquals \"EU\"\n\n```go\nconst EventContextContinentNa = shared.EventContextContinentNa\n```\nEquals \"NA\"\n\n```go\nconst EventContextContinentOc = shared.EventContextContinentOc\n```\nEquals \"OC\"\n\n```go\nconst EventContextContinentSa = shared.EventContextContinentSa\n```\nEquals \"SA\"\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\\_ANALYTICS\\_PUBLIC\\_KEY, CHUNKIFY\\_ANALYTICS\\_SECRET\\_KEY, CHUNKIFY\\_ANALYTICS\\_ADMIN\\_KEY, CHUNKIFY\\_ANALYTICS\\_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 AdminKeyRotateParams struct {\n\tProjectID string `path:\"project_id\" api:\"required\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype AdminKeyService struct {\n\tOptions []option.RequestOption\n}\n```\nProject origins and keys.\n\nAdminKeyService contains methods and other services that help with interacting with the Chunkify Analytics 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 [NewAdminKeyService](#NewAdminKeyService) method instead.\n\n```go\nfunc NewAdminKeyService(opts ...option.RequestOption) (r AdminKeyService)\n```\nNewAdminKeyService 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 *AdminKeyService) List(ctx context.Context, projectID string, opts ...option.RequestOption) (res *ProjectKeys, err error)\n```\nList key IDs, names and permissions by project ID using CHUNKIFY\\_ADMIN\\_KEY. No project credential is required. Key values are never returned. Intended for a trusted backend that verifies project ownership.\n\n```go\nfunc (r *AdminKeyService) Rotate(ctx context.Context, keyID string, body AdminKeyRotateParams, opts ...option.RequestOption) (res *RotatedProjectKey, err error)\n```\nReplace one existing public or secret key using CHUNKIFY\\_ADMIN\\_KEY, even when the project secret was lost. The old value stops working immediately. Key ID, type and read-only access are preserved; other keys are unchanged. Save the returned replacement. Intended for a trusted backend that verifies project ownership.\n\n```go\ntype AdminNewProjectParams struct {\n\t// Project display name.\n\tName string `json:\"name\" api:\"required\"`\n\t// Retention by server receipt time, in seconds. 0 disables expiration; null\n\t// inherits the installation default. Omission also inherits the default.\n\tRetentionSeconds param.Opt[int64] `json:\"retention_seconds,omitzero\"`\n\t// Additional project origins. Shared TOML origins are always included.\n\tAllowedOrigins []string `json:\"allowed_origins,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r AdminNewProjectParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *AdminNewProjectParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AdminService struct {\n\tOptions []option.RequestOption\n\t// Project origins and keys.\n\tKeys AdminKeyService\n}\n```\nProject origins and keys.\n\nAdminService contains methods and other services that help with interacting with the Chunkify Analytics 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 [NewAdminService](#NewAdminService) method instead.\n\n```go\nfunc NewAdminService(opts ...option.RequestOption) (r AdminService)\n```\nNewAdminService 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 *AdminService) NewProject(ctx context.Context, body AdminNewProjectParams, opts ...option.RequestOption) (res *CreatedProject, err error)\n```\nGenerate a project ID and initial keys, optionally setting retention. Requires the installation admin key. The project and its retention are active before success is returned.\n\n```go\ntype AnalyticsEventUnion struct {\n\tConnectorName            string  `json:\"connector_name\"`\n\tConnectorVersion         string  `json:\"connector_version\"`\n\tDeliveryHostname         string  `json:\"delivery_hostname\"`\n\tDeliveryRequestCount     float64 `json:\"delivery_request_count\"`\n\tDeliveryThroughputBps    float64 `json:\"delivery_throughput_bps\"`\n\tDeliveryTransferredBytes float64 `json:\"delivery_transferred_bytes\"`\n\tDroppedVideoFrames       float64 `json:\"dropped_video_frames\"`\n\tEnvironment              string  `json:\"environment\"`\n\tErrorCategory            string  `json:\"error_category\"`\n\t// This field is a union of [ViewStartedErrorCodeUnion],\n\t// [ViewSnapshotErrorCodeUnion], [PlaybackErrorErrorCodeUnion],\n\t// [ViewEndedErrorCodeUnion], [PlaybackStateChangedErrorCodeUnion],\n\t// [RenditionChangedErrorCodeUnion], [SeekCompletedErrorCodeUnion],\n\t// [SubtitleChangedErrorCodeUnion], [PlaybackRateChangedErrorCodeUnion]\n\tErrorCode            AnalyticsEventUnionErrorCode `json:\"error_code\"`\n\tErrorFatal           bool                         `json:\"error_fatal\"`\n\tErrorPlayheadSeconds float64                      `json:\"error_playhead_seconds\"`\n\tEventID              string                       `json:\"event_id\"`\n\t// Any of \"chunkify.video.view_started\", \"chunkify.video.view_snapshot\",\n\t// \"chunkify.video.playback_error\", \"chunkify.video.view_ended\",\n\t// \"chunkify.video.playback_state_changed\", \"chunkify.video.rendition_changed\",\n\t// \"chunkify.video.seek_completed\", \"chunkify.video.subtitle_changed\",\n\t// \"chunkify.video.playback_rate_changed\".\n\tEventName                   string                        `json:\"event_name\"`\n\tFirstVideoFrameTimeMs       float64                       `json:\"first_video_frame_time_ms\"`\n\tFurthestProgressRatio       float64                       `json:\"furthest_progress_ratio\"`\n\tMaximumPlayheadSeconds      float64                       `json:\"maximum_playhead_seconds\"`\n\tMediaDurationSeconds        float64                       `json:\"media_duration_seconds\"`\n\tMediaHeightPx               float64                       `json:\"media_height_px\"`\n\tMediaWidthPx                float64                       `json:\"media_width_px\"`\n\tOccurredAt                  time.Time                     `json:\"occurred_at\"`\n\tPlayerHeightPx              float64                       `json:\"player_height_px\"`\n\tPlayerName                  string                        `json:\"player_name\"`\n\tPlayerVersion               string                        `json:\"player_version\"`\n\tPlayerWidthPx               float64                       `json:\"player_width_px\"`\n\tPlayingTimeMs               float64                       `json:\"playing_time_ms\"`\n\tReason                      string                        `json:\"reason\"`\n\tRebufferCount               float64                       `json:\"rebuffer_count\"`\n\tRebufferDurationMs          float64                       `json:\"rebuffer_duration_ms\"`\n\tRebufferRatio               float64                       `json:\"rebuffer_ratio\"`\n\tRenditionPlayingTime        []shared.RenditionPlayingTime `json:\"rendition_playing_time\"`\n\tRenditionSwitchCount        float64                       `json:\"rendition_switch_count\"`\n\tSchemaVersion               float64                       `json:\"schema_version\"`\n\tSDKName                     string                        `json:\"sdk_name\"`\n\tSDKVersion                  string                        `json:\"sdk_version\"`\n\tSeekCount                   float64                       `json:\"seek_count\"`\n\tSeekDurationMs              float64                       `json:\"seek_duration_ms\"`\n\tSelectedRenditionBitrateBps float64                       `json:\"selected_rendition_bitrate_bps\"`\n\tSelectedRenditionCodec      string                        `json:\"selected_rendition_codec\"`\n\tSelectedRenditionHeight     float64                       `json:\"selected_rendition_height\"`\n\tSelectedRenditionWidth      float64                       `json:\"selected_rendition_width\"`\n\tSequence                    int64                         `json:\"sequence\"`\n\tStartupOutcome              string                        `json:\"startup_outcome\"`\n\tStartupTimeMs               float64                       `json:\"startup_time_ms\"`\n\tTotalVideoFrames            float64                       `json:\"total_video_frames\"`\n\tVideoID                     string                        `json:\"video_id\"`\n\tViewID                      string                        `json:\"view_id\"`\n\tViewerID                    string                        `json:\"viewer_id\"`\n\t// This field is from variant [ViewStarted].\n\tBrowserContext shared.BrowserContext `json:\"browser_context\"`\n\t// This field is from variant [ViewStarted].\n\tCustom                  shared.CustomDimensions          `json:\"custom\"`\n\tDeliveryFormat          string                           `json:\"delivery_format\"`\n\tPlaybackRate            float64                          `json:\"playback_rate\"`\n\tPlaybackRatePlayingTime []shared.PlaybackRatePlayingTime `json:\"playback_rate_playing_time\"`\n\tPlayedRanges            []shared.PlayedRange             `json:\"played_ranges\"`\n\tPlayheadSeconds         float64                          `json:\"playhead_seconds\"`\n\tSubtitleLanguage        string                           `json:\"subtitle_language\"`\n\tSubtitlePlayingTime     []shared.SubtitlePlayingTime     `json:\"subtitle_playing_time\"`\n\tUserID                  string                           `json:\"user_id\"`\n\tVideoTitle              string                           `json:\"video_title\"`\n\tVisibilityState         string                           `json:\"visibility_state\"`\n\t// This field is from variant [PlaybackStateChanged].\n\tFromState               PlaybackStateChangedFromState `json:\"from_state\"`\n\tPreviousStateDurationMs float64                       `json:\"previous_state_duration_ms\"`\n\t// This field is from variant [PlaybackStateChanged].\n\tToState PlaybackStateChangedToState `json:\"to_state\"`\n\t// This field is from variant [RenditionChanged].\n\tPreviousRenditionBitrateBps float64 `json:\"previous_rendition_bitrate_bps\"`\n\t// This field is from variant [RenditionChanged].\n\tPreviousRenditionCodec string `json:\"previous_rendition_codec\"`\n\t// This field is from variant [RenditionChanged].\n\tPreviousRenditionFrameRate float64 `json:\"previous_rendition_frame_rate\"`\n\t// This field is from variant [RenditionChanged].\n\tPreviousRenditionHeight float64 `json:\"previous_rendition_height\"`\n\t// This field is from variant [RenditionChanged].\n\tPreviousRenditionWidth float64 `json:\"previous_rendition_width\"`\n\t// This field is from variant [RenditionChanged].\n\tSelectedRenditionFrameRate float64 `json:\"selected_rendition_frame_rate\"`\n\t// This field is from variant [SeekCompleted].\n\tFromPlayheadSeconds float64 `json:\"from_playhead_seconds\"`\n\t// This field is from variant [SeekCompleted].\n\tLastSeekedAt time.Time `json:\"last_seeked_at\"`\n\t// This field is from variant [SeekCompleted].\n\tPlaybackResumedAt time.Time `json:\"playback_resumed_at\"`\n\t// This field is from variant [SeekCompleted].\n\tSeekInteractionDurationMs float64 `json:\"seek_interaction_duration_ms\"`\n\t// This field is from variant [SeekCompleted].\n\tSeekOutcome SeekCompletedSeekOutcome `json:\"seek_outcome\"`\n\t// This field is from variant [SeekCompleted].\n\tSeekResumeWaitMs float64 `json:\"seek_resume_wait_ms\"`\n\t// This field is from variant [SeekCompleted].\n\tSeekStartedAt time.Time `json:\"seek_started_at\"`\n\t// This field is from variant [SeekCompleted].\n\tStateAfterSeek SeekCompletedStateAfterSeek `json:\"state_after_seek\"`\n\t// This field is from variant [SeekCompleted].\n\tStateBeforeSeek SeekCompletedStateBeforeSeek `json:\"state_before_seek\"`\n\t// This field is from variant [SeekCompleted].\n\tToPlayheadSeconds float64 `json:\"to_playhead_seconds\"`\n\t// This field is from variant [SubtitleChanged].\n\tPreviousSubtitleLanguage string `json:\"previous_subtitle_language\"`\n\t// This field is from variant [PlaybackRateChanged].\n\tPreviousPlaybackRate float64 `json:\"previous_playback_rate\"`\n\tJSON                 struct {\n\t\tConnectorName               respjson.Field\n\t\tConnectorVersion            respjson.Field\n\t\tDeliveryHostname            respjson.Field\n\t\tDeliveryRequestCount        respjson.Field\n\t\tDeliveryThroughputBps       respjson.Field\n\t\tDeliveryTransferredBytes    respjson.Field\n\t\tDroppedVideoFrames          respjson.Field\n\t\tEnvironment                 respjson.Field\n\t\tErrorCategory               respjson.Field\n\t\tErrorCode                   respjson.Field\n\t\tErrorFatal                  respjson.Field\n\t\tErrorPlayheadSeconds        respjson.Field\n\t\tEventID                     respjson.Field\n\t\tEventName                   respjson.Field\n\t\tFirstVideoFrameTimeMs       respjson.Field\n\t\tFurthestProgressRatio       respjson.Field\n\t\tMaximumPlayheadSeconds      respjson.Field\n\t\tMediaDurationSeconds        respjson.Field\n\t\tMediaHeightPx               respjson.Field\n\t\tMediaWidthPx                respjson.Field\n\t\tOccurredAt                  respjson.Field\n\t\tPlayerHeightPx              respjson.Field\n\t\tPlayerName                  respjson.Field\n\t\tPlayerVersion               respjson.Field\n\t\tPlayerWidthPx               respjson.Field\n\t\tPlayingTimeMs               respjson.Field\n\t\tReason                      respjson.Field\n\t\tRebufferCount               respjson.Field\n\t\tRebufferDurationMs          respjson.Field\n\t\tRebufferRatio               respjson.Field\n\t\tRenditionPlayingTime        respjson.Field\n\t\tRenditionSwitchCount        respjson.Field\n\t\tSchemaVersion               respjson.Field\n\t\tSDKName                     respjson.Field\n\t\tSDKVersion                  respjson.Field\n\t\tSeekCount                   respjson.Field\n\t\tSeekDurationMs              respjson.Field\n\t\tSelectedRenditionBitrateBps respjson.Field\n\t\tSelectedRenditionCodec      respjson.Field\n\t\tSelectedRenditionHeight     respjson.Field\n\t\tSelectedRenditionWidth      respjson.Field\n\t\tSequence                    respjson.Field\n\t\tStartupOutcome              respjson.Field\n\t\tStartupTimeMs               respjson.Field\n\t\tTotalVideoFrames            respjson.Field\n\t\tVideoID                     respjson.Field\n\t\tViewID                      respjson.Field\n\t\tViewerID                    respjson.Field\n\t\tBrowserContext              respjson.Field\n\t\tCustom                      respjson.Field\n\t\tDeliveryFormat              respjson.Field\n\t\tPlaybackRate                respjson.Field\n\t\tPlaybackRatePlayingTime     respjson.Field\n\t\tPlayedRanges                respjson.Field\n\t\tPlayheadSeconds             respjson.Field\n\t\tSubtitleLanguage            respjson.Field\n\t\tSubtitlePlayingTime         respjson.Field\n\t\tUserID                      respjson.Field\n\t\tVideoTitle                  respjson.Field\n\t\tVisibilityState             respjson.Field\n\t\tFromState                   respjson.Field\n\t\tPreviousStateDurationMs     respjson.Field\n\t\tToState                     respjson.Field\n\t\tPreviousRenditionBitrateBps respjson.Field\n\t\tPreviousRenditionCodec      respjson.Field\n\t\tPreviousRenditionFrameRate  respjson.Field\n\t\tPreviousRenditionHeight     respjson.Field\n\t\tPreviousRenditionWidth      respjson.Field\n\t\tSelectedRenditionFrameRate  respjson.Field\n\t\tFromPlayheadSeconds         respjson.Field\n\t\tLastSeekedAt                respjson.Field\n\t\tPlaybackResumedAt           respjson.Field\n\t\tSeekInteractionDurationMs   respjson.Field\n\t\tSeekOutcome                 respjson.Field\n\t\tSeekResumeWaitMs            respjson.Field\n\t\tSeekStartedAt               respjson.Field\n\t\tStateAfterSeek              respjson.Field\n\t\tStateBeforeSeek             respjson.Field\n\t\tToPlayheadSeconds           respjson.Field\n\t\tPreviousSubtitleLanguage    respjson.Field\n\t\tPreviousPlaybackRate        respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nAnalyticsEventUnion contains all possible properties and values from [ViewStarted](#ViewStarted), [ViewSnapshot](#ViewSnapshot), [PlaybackError](#PlaybackError), [ViewEnded](#ViewEnded), [PlaybackStateChanged](#PlaybackStateChanged), [RenditionChanged](#RenditionChanged), [SeekCompleted](#SeekCompleted), [SubtitleChanged](#SubtitleChanged), [PlaybackRateChanged](#PlaybackRateChanged).\n\nUse the [AnalyticsEventUnion.AsAny](#AnalyticsEventUnion.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 AnalyticsEventUnion) AsAny() anyAnalyticsEvent\n```\nUse the following switch statement to find the correct variant\n\n\tswitch variant := AnalyticsEventUnion.AsAny().(type) {\n\tcase chunkifyanalytics.ViewStarted:\n\tcase chunkifyanalytics.ViewSnapshot:\n\tcase chunkifyanalytics.PlaybackError:\n\tcase chunkifyanalytics.ViewEnded:\n\tcase chunkifyanalytics.PlaybackStateChanged:\n\tcase chunkifyanalytics.RenditionChanged:\n\tcase chunkifyanalytics.SeekCompleted:\n\tcase chunkifyanalytics.SubtitleChanged:\n\tcase chunkifyanalytics.PlaybackRateChanged:\n\tdefault:\n\t  fmt.Errorf(\"no variant present\")\n\t}\n\n```go\nfunc (u AnalyticsEventUnion) AsPlaybackError() (v PlaybackError)\n```\n\n```go\nfunc (u AnalyticsEventUnion) AsPlaybackRateChanged() (v PlaybackRateChanged)\n```\n\n```go\nfunc (u AnalyticsEventUnion) AsPlaybackStateChanged() (v PlaybackStateChanged)\n```\n\n```go\nfunc (u AnalyticsEventUnion) AsRenditionChanged() (v RenditionChanged)\n```\n\n```go\nfunc (u AnalyticsEventUnion) AsSeekCompleted() (v SeekCompleted)\n```\n\n```go\nfunc (u AnalyticsEventUnion) AsSubtitleChanged() (v SubtitleChanged)\n```\n\n```go\nfunc (u AnalyticsEventUnion) AsViewEnded() (v ViewEnded)\n```\n\n```go\nfunc (u AnalyticsEventUnion) AsViewSnapshot() (v ViewSnapshot)\n```\n\n```go\nfunc (u AnalyticsEventUnion) AsViewStarted() (v ViewStarted)\n```\n\n```go\nfunc (u AnalyticsEventUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r AnalyticsEventUnion) ToParam() AnalyticsEventUnionParam\n```\nToParam converts this AnalyticsEventUnion to a AnalyticsEventUnionParam.\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 AnalyticsEventUnionParam.Overrides()\n\n```go\nfunc (r *AnalyticsEventUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AnalyticsEventUnionErrorCode struct {\n\t// This field will be present if the value is a [string] instead of an object.\n\tOfString string `json:\",inline\"`\n\t// This field will be present if the value is a [float64] instead of an object.\n\tOfFloat float64 `json:\",inline\"`\n\tJSON    struct {\n\t\tOfString respjson.Field\n\t\tOfFloat  respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nAnalyticsEventUnionErrorCode is an implicit subunion of [AnalyticsEventUnion](#AnalyticsEventUnion). AnalyticsEventUnionErrorCode provides convenient access to the sub-properties of the union.\n\nFor type safety it is recommended to directly use a variant of the [AnalyticsEventUnion](#AnalyticsEventUnion).\n\nIf the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat]\n\n```go\nfunc (r *AnalyticsEventUnionErrorCode) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AnalyticsEventUnionParam struct {\n\tOfViewStarted          *ViewStartedParam          `json:\",omitzero,inline\"`\n\tOfViewSnapshot         *ViewSnapshotParam         `json:\",omitzero,inline\"`\n\tOfPlaybackError        *PlaybackErrorParam        `json:\",omitzero,inline\"`\n\tOfViewEnded            *ViewEndedParam            `json:\",omitzero,inline\"`\n\tOfPlaybackStateChanged *PlaybackStateChangedParam `json:\",omitzero,inline\"`\n\tOfRenditionChanged     *RenditionChangedParam     `json:\",omitzero,inline\"`\n\tOfSeekCompleted        *SeekCompletedParam        `json:\",omitzero,inline\"`\n\tOfSubtitleChanged      *SubtitleChangedParam      `json:\",omitzero,inline\"`\n\tOfPlaybackRateChanged  *PlaybackRateChangedParam  `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-analytics-go/packages/param#IsOmitted) to confirm if a field is set.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetBrowserContext() *shared.BrowserContextParam\n```\nReturns a pointer to the underlying variant's BrowserContext property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetConnectorName() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetConnectorVersion() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetCustom() shared.CustomDimensionsParam\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetDeliveryFormat() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetDeliveryHostname() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetDeliveryRequestCount() *float64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetDeliveryThroughputBps() *float64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetDeliveryTransferredBytes() *float64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetDroppedVideoFrames() *float64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetEnvironment() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetErrorCategory() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetErrorCode() (res analyticsEventUnionParamErrorCode)\n```\nReturns a subunion which exports methods to access subproperties\n\nOr use AsAny() to get the underlying value\n\n```go\nfunc (u AnalyticsEventUnionParam) GetErrorFatal() *bool\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetErrorPlayheadSeconds() *float64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetEventID() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetEventName() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetFirstVideoFrameTimeMs() *float64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetFromPlayheadSeconds() *float64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetFromState() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetFurthestProgressRatio() *float64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetLastSeekedAt() *time.Time\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetMaximumPlayheadSeconds() *float64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetMediaDurationSeconds() *float64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetMediaHeightPx() *float64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetMediaWidthPx() *float64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetOccurredAt() *time.Time\n```\nReturns a pointer to the underlying variant's OccurredAt property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetPlaybackRate() *float64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetPlaybackRatePlayingTime() []shared.PlaybackRatePlayingTimeParam\n```\nReturns a pointer to the underlying variant's PlaybackRatePlayingTime property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetPlaybackResumedAt() *time.Time\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetPlayedRanges() []shared.PlayedRangeParam\n```\nReturns a pointer to the underlying variant's PlayedRanges property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetPlayerHeightPx() *float64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetPlayerName() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetPlayerVersion() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetPlayerWidthPx() *float64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetPlayheadSeconds() *float64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetPlayingTimeMs() *float64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetPreviousPlaybackRate() *float64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetPreviousRenditionBitrateBps() *float64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetPreviousRenditionCodec() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetPreviousRenditionFrameRate() *float64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetPreviousRenditionHeight() *float64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetPreviousRenditionWidth() *float64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetPreviousStateDurationMs() *float64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetPreviousSubtitleLanguage() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetReason() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetRebufferCount() *float64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetRebufferDurationMs() *float64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetRebufferRatio() *float64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetRenditionPlayingTime() []shared.RenditionPlayingTimeParam\n```\nReturns a pointer to the underlying variant's RenditionPlayingTime property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetRenditionSwitchCount() *float64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetSDKName() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetSDKVersion() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetSchemaVersion() *float64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetSeekCount() *float64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetSeekDurationMs() *float64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetSeekInteractionDurationMs() *float64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetSeekOutcome() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetSeekResumeWaitMs() *float64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetSeekStartedAt() *time.Time\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetSelectedRenditionBitrateBps() *float64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetSelectedRenditionCodec() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetSelectedRenditionFrameRate() *float64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetSelectedRenditionHeight() *float64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetSelectedRenditionWidth() *float64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetSequence() *int64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetStartupOutcome() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetStartupTimeMs() *float64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetStateAfterSeek() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetStateBeforeSeek() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetSubtitleLanguage() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetSubtitlePlayingTime() []shared.SubtitlePlayingTimeParam\n```\nReturns a pointer to the underlying variant's SubtitlePlayingTime property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetToPlayheadSeconds() *float64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetToState() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetTotalVideoFrames() *float64\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetUserID() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetVideoID() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetVideoTitle() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetViewID() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetViewerID() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) GetVisibilityState() *string\n```\nReturns a pointer to the underlying variant's property, if present.\n\n```go\nfunc (u AnalyticsEventUnionParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (u *AnalyticsEventUnionParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserContext = shared.BrowserContext\n```\nBrowser and device information. The Chunkify player sends every field, with null for unavailable measurements. Other integrations may omit any field except schema\\_version. Extra properties are preserved.\n\nThis is an alias to an internal type.\n\n```go\ntype BrowserContextDeviceType = shared.BrowserContextDeviceType\n```\nThis is an alias to an internal type.\n\n```go\ntype BrowserContextParam = shared.BrowserContextParam\n```\nBrowser and device information. The Chunkify player sends every field, with null for unavailable measurements. Other integrations may omit any field except schema\\_version. Extra properties are preserved.\n\nThis is an alias to an internal type.\n\n```go\ntype Client struct {\n\tOptions []option.RequestOption\n\t// Health and private ingestion status.\n\tHealth HealthService\n\tEvents EventService\n\t// Private retained-event and view-cohort queries.\n\tSummary SummaryService\n\t// Private retained-event and view-cohort queries.\n\tVideos VideoService\n\t// Private retained-event and view-cohort queries.\n\tTimeseries TimeseryService\n\t// Private retained-event and view-cohort queries.\n\tQuality QualityService\n\t// Private retained-event and view-cohort queries.\n\tEngagement EngagementService\n\t// Project origins and keys.\n\tProject ProjectService\n\t// Project origins and keys.\n\tAdmin AdminService\n\t// Private retained-event and view-cohort queries.\n\tViews ViewService\n\t// Private retained-event and view-cohort queries.\n\tErrors ErrorService\n\t// Private retained-event and view-cohort queries.\n\tDimensions DimensionService\n\tExports    ExportService\n\t// Private retained-event and view-cohort queries.\n\tRetention RetentionService\n\t// Private retained-event and view-cohort queries.\n\tRenditions RenditionService\n\t// Private retained-event and view-cohort queries.\n\tSubtitles SubtitleService\n\t// Private retained-event and view-cohort queries.\n\tPlaybackRates PlaybackRateService\n}\n```\nClient creates a struct with services and top level methods that help with interacting with the Chunkify Analytics 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\\_ANALYTICS\\_PUBLIC\\_KEY, CHUNKIFY\\_ANALYTICS\\_SECRET\\_KEY, CHUNKIFY\\_ANALYTICS\\_ADMIN\\_KEY, CHUNKIFY\\_ANALYTICS\\_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-analytics-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-analytics-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-analytics-go/option#WithResponseInto) and [option.WithResponseBodyInto](/github.com/chunkifydev/chunkify-analytics-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 CreatedProject struct {\n\t// Effective retention in seconds after resolving the installation default. 0\n\t// disables expiration.\n\tEffectiveRetentionSeconds int64 `json:\"effective_retention_seconds\" api:\"required\"`\n\t// Project display name.\n\tName      string `json:\"name\" api:\"required\"`\n\tProjectID string `json:\"project_id\" api:\"required\" format:\"uuid\"`\n\t// Public key for sending events.\n\tPublicKey       string `json:\"public_key\" api:\"required\"`\n\tRestartRequired bool   `json:\"restart_required\" api:\"required\"`\n\t// Retention by server receipt time, in seconds. 0 disables expiration; null\n\t// inherits the installation default.\n\tRetentionSeconds int64 `json:\"retention_seconds\" api:\"required\"`\n\t// Secret key for this project. Save it now; it is returned once.\n\tSecretKey string `json:\"secret_key\" api:\"required\"`\n\tWarning   string `json:\"warning\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tEffectiveRetentionSeconds respjson.Field\n\t\tName                      respjson.Field\n\t\tProjectID                 respjson.Field\n\t\tPublicKey                 respjson.Field\n\t\tRestartRequired           respjson.Field\n\t\tRetentionSeconds          respjson.Field\n\t\tSecretKey                 respjson.Field\n\t\tWarning                   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 CreatedProject) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *CreatedProject) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CreatedProjectKey struct {\n\t// New key value. Save it now; it is returned once.\n\tKey   string `json:\"key\" api:\"required\"`\n\tKeyID string `json:\"key_id\" api:\"required\"`\n\t// Any of \"public\", \"secret\".\n\tPermission CreatedProjectKeyPermission `json:\"permission\" api:\"required\"`\n\tProjectID  string                      `json:\"project_id\" api:\"required\"`\n\t// True for a private key limited to analytics reads through HTTP and MCP. Public\n\t// keys always report false. Rotation preserves this setting.\n\tReadOnly        bool   `json:\"read_only\" api:\"required\"`\n\tRestartRequired bool   `json:\"restart_required\" api:\"required\"`\n\tWarning         string `json:\"warning\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tKey             respjson.Field\n\t\tKeyID           respjson.Field\n\t\tPermission      respjson.Field\n\t\tProjectID       respjson.Field\n\t\tReadOnly        respjson.Field\n\t\tRestartRequired respjson.Field\n\t\tWarning         respjson.Field\n\t\tExtraFields     map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA newly created key. Save the key value now; later key listings contain only metadata.\n\n```go\nfunc (r CreatedProjectKey) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *CreatedProjectKey) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CreatedProjectKeyPermission string\n```\n\n```go\nconst (\n\tCreatedProjectKeyPermissionPublic CreatedProjectKeyPermission = \"public\"\n\tCreatedProjectKeyPermissionSecret CreatedProjectKeyPermission = \"secret\"\n)\n```\n\n```go\ntype CustomDimensionUnion = shared.CustomDimensionUnion\n```\nThis is an alias to an internal type.\n\n```go\ntype CustomDimensionUnionParam = shared.CustomDimensionUnionParam\n```\nThis is an alias to an internal type.\n\n```go\ntype CustomDimensions = shared.CustomDimensions\n```\nIntegrator-defined dimensions set once when the view starts: at most 10 keys of 1 to 40 characters a-z, 0-9 and \\\\\\_, each with text of 1 to 256 characters, a number or a boolean. Reports compare values as text, exactly and case-sensitively: numbers as their JSON text (5, 5.5; send whole numbers without a decimal part, as JavaScript does), booleans as true or false. Only view\\_started accepts custom. Never put personal data here; use user\\_id for user identity.\n\nThis is an alias to an internal type.\n\n```go\ntype CustomDimensionsParam = shared.CustomDimensionsParam\n```\nIntegrator-defined dimensions set once when the view starts: at most 10 keys of 1 to 40 characters a-z, 0-9 and \\\\\\_, each with text of 1 to 256 characters, a number or a boolean. Reports compare values as text, exactly and case-sensitively: numbers as their JSON text (5, 5.5; send whole numbers without a decimal part, as JavaScript does), booleans as true or false. Only view\\_started accepts custom. Never put personal data here; use user\\_id for user identity.\n\nThis is an alias to an internal type.\n\n```go\ntype DeletedProject struct {\n\tDeleted         bool   `json:\"deleted\" api:\"required\"`\n\tProjectID       string `json:\"project_id\" api:\"required\"`\n\tRestartRequired bool   `json:\"restart_required\" api:\"required\"`\n\tWarning         string `json:\"warning\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tDeleted         respjson.Field\n\t\tProjectID       respjson.Field\n\t\tRestartRequired respjson.Field\n\t\tWarning         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 DeletedProject) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *DeletedProject) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype DimensionListValuesParams struct {\n\t// Exact browser name, such as Chrome. Missing values do not match.\n\tBrowserName param.Opt[string] `query:\"browser_name,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive city name from the local lookup, with 1 to 256 Unicode\n\t// characters. Use country alongside city to distinguish places with the same name.\n\t// Missing locations do not match.\n\tCity param.Opt[string] `query:\"city,omitzero\" json:\"-\"`\n\t// Exact uppercase ISO 3166-1 alpha-2 country code, such as GB. Missing locations\n\t// do not match.\n\tCountry param.Opt[string] `query:\"country,omitzero\" json:\"-\"`\n\t// Use next_cursor from the previous page. Keep the same filters, sort_by and\n\t// order. Video cursors from earlier versions are invalid; start a new pagination\n\t// sequence after upgrading.\n\tCursor param.Opt[string] `query:\"cursor,omitzero\" json:\"-\"`\n\t// Inclusive RFC3339 occurrence-time lower bound, with timezone. Summary/video\n\t// queries apply it to the selected view_started event. Must be before to.\n\tFrom param.Opt[time.Time] `query:\"from,omitzero\" format:\"date-time\" json:\"-\"`\n\t// Maximum rows on this page. Events and videos always support pagination; summary,\n\t// quality and engagement support it only with group_by.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Exact operating-system name, such as macOS. Missing values do not match.\n\tOsName param.Opt[string] `query:\"os_name,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive page origin captured by the player, such as\n\t// https://example.com. Metrics use the first retained view start; raw events use\n\t// each event context. Missing values do not match.\n\tPageOrigin param.Opt[string] `query:\"page_origin,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive page path captured by the player, such as /watch/video.\n\t// Filter by page_origin as well to distinguish identical paths on different sites.\n\t// Metrics use the first retained view start; raw events use each event context.\n\t// Missing values do not match.\n\tPagePath param.Opt[string] `query:\"page_path,omitzero\" json:\"-\"`\n\t// Playback rate from 0.01 to 16 with at most two decimals, such as 1, 1.5 or 2;\n\t// 2.0 and 2 are the same rate. Metrics use the rate on the first retained view\n\t// start; raw events use each event's value.\n\tPlaybackRate param.Opt[string] `query:\"playback_rate,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive, non-blank subtitle language tag, such as fr or en-US; und\n\t// for a subtitles track without a language. Metrics use the language showing on\n\t// the first retained view start; raw events use each event's value. Views without\n\t// subtitles at start do not match.\n\tSubtitleLanguage param.Opt[string] `query:\"subtitle_language,omitzero\" json:\"-\"`\n\t// Exclusive RFC3339 occurrence-time upper bound, with timezone. Summary/video\n\t// queries apply it to the selected view_started event.\n\tTo param.Opt[time.Time] `query:\"to,omitzero\" format:\"date-time\" json:\"-\"`\n\t// Exact integrator-supplied user ID. Selects views by their start event; event\n\t// lists match each event's own value. Missing/null user IDs do not match. Reports\n\t// with this filter read one stored row per view.\n\tUserID param.Opt[string] `query:\"user_id,omitzero\" json:\"-\"`\n\t// Exact video ID; must not be blank. Combined with all other filters using AND.\n\tVideoID param.Opt[string] `query:\"video_id,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive video title. Selects views by the title on their first\n\t// retained start; event lists match each event's own value. Views without a title\n\t// do not match. Reports with this filter read one stored row per view.\n\tVideoTitle param.Opt[string] `query:\"video_title,omitzero\" json:\"-\"`\n\t// Filter one playback attempt by view ID. Metrics use its first retained start.\n\tViewID param.Opt[string] `query:\"view_id,omitzero\" json:\"-\"`\n\t// Exact viewer ID. The Chunkify player SDK generates one per browser; missing/null\n\t// viewer IDs do not match.\n\tViewerID param.Opt[string] `query:\"viewer_id,omitzero\" json:\"-\"`\n\t// Exact continent code from the local lookup. Missing locations do not match.\n\t//\n\t// Any of \"AF\", \"AN\", \"AS\", \"EU\", \"NA\", \"OC\", \"SA\".\n\tContinent DimensionListValuesParamsContinent `query:\"continent,omitzero\" json:\"-\"`\n\t// Delivery format on the first retained view start: hls for HLS streams, file for\n\t// a single media file such as an MP4 rendition. Metrics use the first retained\n\t// view start; raw events use each event's value. Views whose SDK did not report it\n\t// do not match. connector_name is not a substitute: Safari plays HLS natively and\n\t// reports html-media.\n\t//\n\t// Any of \"hls\", \"file\".\n\tDeliveryFormat DimensionListValuesParamsDeliveryFormat `query:\"delivery_format,omitzero\" json:\"-\"`\n\t// Exact device class. unknown matches an explicit unknown value.\n\t//\n\t// Any of \"desktop\", \"mobile\", \"tablet\", \"unknown\".\n\tDeviceType DimensionListValuesParamsDeviceType `query:\"device_type,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r DimensionListValuesParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [DimensionListValuesParams](#DimensionListValuesParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype DimensionListValuesParamsContinent string\n```\nExact continent code from the local lookup. Missing locations do not match.\n\n```go\nconst (\n\tDimensionListValuesParamsContinentAf DimensionListValuesParamsContinent = \"AF\"\n\tDimensionListValuesParamsContinentAn DimensionListValuesParamsContinent = \"AN\"\n\tDimensionListValuesParamsContinentAs DimensionListValuesParamsContinent = \"AS\"\n\tDimensionListValuesParamsContinentEu DimensionListValuesParamsContinent = \"EU\"\n\tDimensionListValuesParamsContinentNa DimensionListValuesParamsContinent = \"NA\"\n\tDimensionListValuesParamsContinentOc DimensionListValuesParamsContinent = \"OC\"\n\tDimensionListValuesParamsContinentSa DimensionListValuesParamsContinent = \"SA\"\n)\n```\n\n```go\ntype DimensionListValuesParamsDeliveryFormat string\n```\nDelivery format on the first retained view start: hls for HLS streams, file for a single media file such as an MP4 rendition. Metrics use the first retained view start; raw events use each event's value. Views whose SDK did not report it do not match. connector\\_name is not a substitute: Safari plays HLS natively and reports html-media.\n\n```go\nconst (\n\tDimensionListValuesParamsDeliveryFormatHls  DimensionListValuesParamsDeliveryFormat = \"hls\"\n\tDimensionListValuesParamsDeliveryFormatFile DimensionListValuesParamsDeliveryFormat = \"file\"\n)\n```\n\n```go\ntype DimensionListValuesParamsDeviceType string\n```\nExact device class. unknown matches an explicit unknown value.\n\n```go\nconst (\n\tDimensionListValuesParamsDeviceTypeDesktop DimensionListValuesParamsDeviceType = \"desktop\"\n\tDimensionListValuesParamsDeviceTypeMobile  DimensionListValuesParamsDeviceType = \"mobile\"\n\tDimensionListValuesParamsDeviceTypeTablet  DimensionListValuesParamsDeviceType = \"tablet\"\n\tDimensionListValuesParamsDeviceTypeUnknown DimensionListValuesParamsDeviceType = \"unknown\"\n)\n```\n\n```go\ntype DimensionListValuesParamsDimension string\n```\n\n```go\nconst (\n\tDimensionListValuesParamsDimensionBrowserName      DimensionListValuesParamsDimension = \"browser_name\"\n\tDimensionListValuesParamsDimensionOsName           DimensionListValuesParamsDimension = \"os_name\"\n\tDimensionListValuesParamsDimensionDeviceType       DimensionListValuesParamsDimension = \"device_type\"\n\tDimensionListValuesParamsDimensionVideoID          DimensionListValuesParamsDimension = \"video_id\"\n\tDimensionListValuesParamsDimensionViewerID         DimensionListValuesParamsDimension = \"viewer_id\"\n\tDimensionListValuesParamsDimensionUserID           DimensionListValuesParamsDimension = \"user_id\"\n\tDimensionListValuesParamsDimensionVideoTitle       DimensionListValuesParamsDimension = \"video_title\"\n\tDimensionListValuesParamsDimensionContinent        DimensionListValuesParamsDimension = \"continent\"\n\tDimensionListValuesParamsDimensionCountry          DimensionListValuesParamsDimension = \"country\"\n\tDimensionListValuesParamsDimensionCity             DimensionListValuesParamsDimension = \"city\"\n\tDimensionListValuesParamsDimensionPageOrigin       DimensionListValuesParamsDimension = \"page_origin\"\n\tDimensionListValuesParamsDimensionPagePath         DimensionListValuesParamsDimension = \"page_path\"\n\tDimensionListValuesParamsDimensionSubtitleLanguage DimensionListValuesParamsDimension = \"subtitle_language\"\n\tDimensionListValuesParamsDimensionPlaybackRate     DimensionListValuesParamsDimension = \"playback_rate\"\n\tDimensionListValuesParamsDimensionDeliveryFormat   DimensionListValuesParamsDimension = \"delivery_format\"\n\tDimensionListValuesParamsDimensionCustomKeys       DimensionListValuesParamsDimension = \"custom_keys\"\n)\n```\n\n```go\ntype DimensionService struct {\n\tOptions []option.RequestOption\n}\n```\nPrivate retained-event and view-cohort queries.\n\nDimensionService contains methods and other services that help with interacting with the Chunkify Analytics 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 [NewDimensionService](#NewDimensionService) method instead.\n\n```go\nfunc NewDimensionService(opts ...option.RequestOption) (r DimensionService)\n```\nNewDimensionService 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 *DimensionService) ListValues(ctx context.Context, dimension DimensionListValuesParamsDimension, query DimensionListValuesParams, opts ...option.RequestOption) (res *pagination.DimensionValuesPage[DimensionValuesValue], err error)\n```\nValues and view counts come from the first retained view starts, after applying the same cohort filters as summary. Values sort by views descending, then value ascending with null first for ties; missing context is separate from the literal unknown. Cursors bind the dimension, filters, project and ingestion watermark.\n\n```go\nfunc (r *DimensionService) ListValuesAutoPaging(ctx context.Context, dimension DimensionListValuesParamsDimension, query DimensionListValuesParams, opts ...option.RequestOption) *pagination.DimensionValuesPageAutoPager[DimensionValuesValue]\n```\nValues and view counts come from the first retained view starts, after applying the same cohort filters as summary. Values sort by views descending, then value ascending with null first for ties; missing context is separate from the literal unknown. Cursors bind the dimension, filters, project and ingestion watermark.\n\n```go\ntype DimensionValues struct {\n\t// One custom dimension's values, such as custom.plan.\n\tDimension  DimensionValuesDimension `json:\"dimension\" api:\"required\"`\n\tNextCursor string                   `json:\"next_cursor\" api:\"required\"`\n\tValues     []DimensionValuesValue   `json:\"values\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tDimension   respjson.Field\n\t\tNextCursor  respjson.Field\n\t\tValues      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 DimensionValues) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *DimensionValues) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype DimensionValuesDimension string\n```\n\n```go\nconst (\n\tDimensionValuesDimensionBrowserName      DimensionValuesDimension = \"browser_name\"\n\tDimensionValuesDimensionOsName           DimensionValuesDimension = \"os_name\"\n\tDimensionValuesDimensionDeviceType       DimensionValuesDimension = \"device_type\"\n\tDimensionValuesDimensionVideoID          DimensionValuesDimension = \"video_id\"\n\tDimensionValuesDimensionViewerID         DimensionValuesDimension = \"viewer_id\"\n\tDimensionValuesDimensionUserID           DimensionValuesDimension = \"user_id\"\n\tDimensionValuesDimensionVideoTitle       DimensionValuesDimension = \"video_title\"\n\tDimensionValuesDimensionContinent        DimensionValuesDimension = \"continent\"\n\tDimensionValuesDimensionCountry          DimensionValuesDimension = \"country\"\n\tDimensionValuesDimensionCity             DimensionValuesDimension = \"city\"\n\tDimensionValuesDimensionPageOrigin       DimensionValuesDimension = \"page_origin\"\n\tDimensionValuesDimensionPagePath         DimensionValuesDimension = \"page_path\"\n\tDimensionValuesDimensionSubtitleLanguage DimensionValuesDimension = \"subtitle_language\"\n\tDimensionValuesDimensionPlaybackRate     DimensionValuesDimension = \"playback_rate\"\n\tDimensionValuesDimensionDeliveryFormat   DimensionValuesDimension = \"delivery_format\"\n\tDimensionValuesDimensionCustomKeys       DimensionValuesDimension = \"custom_keys\"\n)\n```\n\n```go\ntype DimensionValuesValue struct {\n\tValue string `json:\"value\" api:\"required\"`\n\tViews int64  `json:\"views\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tValue       respjson.Field\n\t\tViews       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 DimensionValuesValue) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *DimensionValuesValue) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype Engagement struct {\n\t// Total playing time divided by all selected attempts. Null with no views; zero\n\t// when views exist with no measured time.\n\tAveragePlayingTimeMs float64 `json:\"average_playing_time_ms\" api:\"required\"`\n\t// Furthest progress on the selected final event or latest snapshot. Only views\n\t// with a positive known media duration and a progress ratio in [0,1] are samples.\n\t// Each milestone ratio uses sample_views. Seeking can count; this is not watched\n\t// coverage or audience retention.\n\tProgressReached shared.ProgressReached `json:\"progress_reached\" api:\"required\"`\n\t// Reached-end views divided by all selected attempts. Null without views. Multiply\n\t// by 100 for percent. Does not imply the whole video was watched.\n\tReachedEndRatio float64 `json:\"reached_end_ratio\" api:\"required\"`\n\t// Views whose winning final event has reason=ended. Counts each selected view at\n\t// most once.\n\tReachedEndViews int64 `json:\"reached_end_views\" api:\"required\"`\n\t// Cumulative playing time summed once per selected view, as in summary.\n\tTotalPlayingTimeMs float64 `json:\"total_playing_time_ms\" api:\"required\"`\n\t// Selected playback attempts with a retained start, including failed, ongoing and\n\t// start-only attempts.\n\tViews int64 `json:\"views\" api:\"required\"`\n\t// Playing time in milliseconds from one selected final event or latest snapshot\n\t// per view. Measured zero is included; missing measurements are excluded.\n\t// Percentiles use linear interpolation and are null without samples. This sample\n\t// denominator differs from average_playing_time_ms, which uses all attempts.\n\tWatchTimeMs shared.WatchTimeDistribution `json:\"watch_time_ms\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAveragePlayingTimeMs respjson.Field\n\t\tProgressReached      respjson.Field\n\t\tReachedEndRatio      respjson.Field\n\t\tReachedEndViews      respjson.Field\n\t\tTotalPlayingTimeMs   respjson.Field\n\t\tViews                respjson.Field\n\t\tWatchTimeMs          respjson.Field\n\t\tExtraFields          map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nObserved watch time and end-of-media for the same start cohort as summary. Missing delivery can undercount both.\n\n```go\nfunc (r Engagement) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *Engagement) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype EngagementBreakdownPage struct {\n\t// A custom dimension key, such as custom.plan.\n\tGroupBy    EngagementBreakdownPageGroupBy `json:\"group_by\" api:\"required\"`\n\tGroups     []EngagementBreakdownPageGroup `json:\"groups\" api:\"required\"`\n\tNextCursor string                         `json:\"next_cursor\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tGroupBy     respjson.Field\n\t\tGroups      respjson.Field\n\t\tNextCursor  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 EngagementBreakdownPage) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *EngagementBreakdownPage) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype EngagementBreakdownPageGroup struct {\n\t// Observed watch time and end-of-media for the same start cohort as summary.\n\t// Missing delivery can undercount both.\n\tData  Engagement `json:\"data\" api:\"required\"`\n\tValue string     `json:\"value\" 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\tValue       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 EngagementBreakdownPageGroup) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *EngagementBreakdownPageGroup) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype EngagementBreakdownPageGroupBy string\n```\n\n```go\nconst (\n\tEngagementBreakdownPageGroupByBrowserName      EngagementBreakdownPageGroupBy = \"browser_name\"\n\tEngagementBreakdownPageGroupByOsName           EngagementBreakdownPageGroupBy = \"os_name\"\n\tEngagementBreakdownPageGroupByDeviceType       EngagementBreakdownPageGroupBy = \"device_type\"\n\tEngagementBreakdownPageGroupByContinent        EngagementBreakdownPageGroupBy = \"continent\"\n\tEngagementBreakdownPageGroupByCountry          EngagementBreakdownPageGroupBy = \"country\"\n\tEngagementBreakdownPageGroupByCity             EngagementBreakdownPageGroupBy = \"city\"\n\tEngagementBreakdownPageGroupByPageOrigin       EngagementBreakdownPageGroupBy = \"page_origin\"\n\tEngagementBreakdownPageGroupByPagePath         EngagementBreakdownPageGroupBy = \"page_path\"\n\tEngagementBreakdownPageGroupBySubtitleLanguage EngagementBreakdownPageGroupBy = \"subtitle_language\"\n\tEngagementBreakdownPageGroupByPlaybackRate     EngagementBreakdownPageGroupBy = \"playback_rate\"\n\tEngagementBreakdownPageGroupByDeliveryFormat   EngagementBreakdownPageGroupBy = \"delivery_format\"\n\tEngagementBreakdownPageGroupByVideoTitle       EngagementBreakdownPageGroupBy = \"video_title\"\n\tEngagementBreakdownPageGroupByUserID           EngagementBreakdownPageGroupBy = \"user_id\"\n)\n```\n\n```go\ntype EngagementGetParams struct {\n\t// Exact browser name, such as Chrome. Missing values do not match.\n\tBrowserName param.Opt[string] `query:\"browser_name,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive city name from the local lookup, with 1 to 256 Unicode\n\t// characters. Use country alongside city to distinguish places with the same name.\n\t// Missing locations do not match.\n\tCity param.Opt[string] `query:\"city,omitzero\" json:\"-\"`\n\t// Exact uppercase ISO 3166-1 alpha-2 country code, such as GB. Missing locations\n\t// do not match.\n\tCountry param.Opt[string] `query:\"country,omitzero\" json:\"-\"`\n\t// Use next_cursor from the previous page. Keep the same filters, sort_by and\n\t// order. Video cursors from earlier versions are invalid; start a new pagination\n\t// sequence after upgrading.\n\tCursor param.Opt[string] `query:\"cursor,omitzero\" json:\"-\"`\n\t// Inclusive RFC3339 occurrence-time lower bound, with timezone. Summary/video\n\t// queries apply it to the selected view_started event. Must be before to.\n\tFrom param.Opt[time.Time] `query:\"from,omitzero\" format:\"date-time\" json:\"-\"`\n\t// Maximum rows on this page. Events and videos always support pagination; summary,\n\t// quality and engagement support it only with group_by.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Exact operating-system name, such as macOS. Missing values do not match.\n\tOsName param.Opt[string] `query:\"os_name,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive page origin captured by the player, such as\n\t// https://example.com. Metrics use the first retained view start; raw events use\n\t// each event context. Missing values do not match.\n\tPageOrigin param.Opt[string] `query:\"page_origin,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive page path captured by the player, such as /watch/video.\n\t// Filter by page_origin as well to distinguish identical paths on different sites.\n\t// Metrics use the first retained view start; raw events use each event context.\n\t// Missing values do not match.\n\tPagePath param.Opt[string] `query:\"page_path,omitzero\" json:\"-\"`\n\t// Playback rate from 0.01 to 16 with at most two decimals, such as 1, 1.5 or 2;\n\t// 2.0 and 2 are the same rate. Metrics use the rate on the first retained view\n\t// start; raw events use each event's value.\n\tPlaybackRate param.Opt[string] `query:\"playback_rate,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive, non-blank subtitle language tag, such as fr or en-US; und\n\t// for a subtitles track without a language. Metrics use the language showing on\n\t// the first retained view start; raw events use each event's value. Views without\n\t// subtitles at start do not match.\n\tSubtitleLanguage param.Opt[string] `query:\"subtitle_language,omitzero\" json:\"-\"`\n\t// Exclusive RFC3339 occurrence-time upper bound, with timezone. Summary/video\n\t// queries apply it to the selected view_started event.\n\tTo param.Opt[time.Time] `query:\"to,omitzero\" format:\"date-time\" json:\"-\"`\n\t// Exact integrator-supplied user ID. Selects views by their start event; event\n\t// lists match each event's own value. Missing/null user IDs do not match. Reports\n\t// with this filter read one stored row per view.\n\tUserID param.Opt[string] `query:\"user_id,omitzero\" json:\"-\"`\n\t// Exact video ID; must not be blank. Combined with all other filters using AND.\n\tVideoID param.Opt[string] `query:\"video_id,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive video title. Selects views by the title on their first\n\t// retained start; event lists match each event's own value. Views without a title\n\t// do not match. Reports with this filter read one stored row per view.\n\tVideoTitle param.Opt[string] `query:\"video_title,omitzero\" json:\"-\"`\n\t// Filter one playback attempt by view ID. Metrics use its first retained start.\n\tViewID param.Opt[string] `query:\"view_id,omitzero\" json:\"-\"`\n\t// Exact viewer ID. The Chunkify player SDK generates one per browser; missing/null\n\t// viewer IDs do not match.\n\tViewerID param.Opt[string] `query:\"viewer_id,omitzero\" json:\"-\"`\n\t// Exact continent code from the local lookup. Missing locations do not match.\n\t//\n\t// Any of \"AF\", \"AN\", \"AS\", \"EU\", \"NA\", \"OC\", \"SA\".\n\tContinent EngagementGetParamsContinent `query:\"continent,omitzero\" json:\"-\"`\n\t// Delivery format on the first retained view start: hls for HLS streams, file for\n\t// a single media file such as an MP4 rendition. Metrics use the first retained\n\t// view start; raw events use each event's value. Views whose SDK did not report it\n\t// do not match. connector_name is not a substitute: Safari plays HLS natively and\n\t// reports html-media.\n\t//\n\t// Any of \"hls\", \"file\".\n\tDeliveryFormat EngagementGetParamsDeliveryFormat `query:\"delivery_format,omitzero\" json:\"-\"`\n\t// Exact device class. unknown matches an explicit unknown value.\n\t//\n\t// Any of \"desktop\", \"mobile\", \"tablet\", \"unknown\".\n\tDeviceType EngagementGetParamsDeviceType `query:\"device_type,omitzero\" json:\"-\"`\n\t// Optional on summary, quality and engagement. Group views by this field on their\n\t// first retained start. Missing, null and nonstring context forms a null group;\n\t// the literal device type unknown stays separate. Groups sort by views descending,\n\t// then value ascending with null first for ties. Pagination is available only with\n\t// group_by. Location uses the first retained start too. City groups use the stored\n\t// name; filter by country to avoid combining names shared by different countries.\n\t// Page groups use the first retained start even if playback continues after\n\t// navigation. Filter by page_origin when grouping page_path to distinguish\n\t// identical paths on different sites. video_title groups by the title on each\n\t// view's first retained start, so a renamed video counts each view under the title\n\t// it started with. delivery_format groups by hls or file on each view's first\n\t// retained start; views from SDKs that do not report it form the null group.\n\t// user_id groups by the user ID on each view's first retained start. Use\n\t// custom.\u003ckey\u003e, such as custom.plan, to group by a custom dimension; views without\n\t// the key form the null group.\n\tGroupBy EngagementGetParamsGroupBy `query:\"group_by,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r EngagementGetParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [EngagementGetParams](#EngagementGetParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype EngagementGetParamsContinent string\n```\nExact continent code from the local lookup. Missing locations do not match.\n\n```go\nconst (\n\tEngagementGetParamsContinentAf EngagementGetParamsContinent = \"AF\"\n\tEngagementGetParamsContinentAn EngagementGetParamsContinent = \"AN\"\n\tEngagementGetParamsContinentAs EngagementGetParamsContinent = \"AS\"\n\tEngagementGetParamsContinentEu EngagementGetParamsContinent = \"EU\"\n\tEngagementGetParamsContinentNa EngagementGetParamsContinent = \"NA\"\n\tEngagementGetParamsContinentOc EngagementGetParamsContinent = \"OC\"\n\tEngagementGetParamsContinentSa EngagementGetParamsContinent = \"SA\"\n)\n```\n\n```go\ntype EngagementGetParamsDeliveryFormat string\n```\nDelivery format on the first retained view start: hls for HLS streams, file for a single media file such as an MP4 rendition. Metrics use the first retained view start; raw events use each event's value. Views whose SDK did not report it do not match. connector\\_name is not a substitute: Safari plays HLS natively and reports html-media.\n\n```go\nconst (\n\tEngagementGetParamsDeliveryFormatHls  EngagementGetParamsDeliveryFormat = \"hls\"\n\tEngagementGetParamsDeliveryFormatFile EngagementGetParamsDeliveryFormat = \"file\"\n)\n```\n\n```go\ntype EngagementGetParamsDeviceType string\n```\nExact device class. unknown matches an explicit unknown value.\n\n```go\nconst (\n\tEngagementGetParamsDeviceTypeDesktop EngagementGetParamsDeviceType = \"desktop\"\n\tEngagementGetParamsDeviceTypeMobile  EngagementGetParamsDeviceType = \"mobile\"\n\tEngagementGetParamsDeviceTypeTablet  EngagementGetParamsDeviceType = \"tablet\"\n\tEngagementGetParamsDeviceTypeUnknown EngagementGetParamsDeviceType = \"unknown\"\n)\n```\n\n```go\ntype EngagementGetParamsGroupBy string\n```\nOptional on summary, quality and engagement. Group views by this field on their first retained start. Missing, null and nonstring context forms a null group; the literal device type unknown stays separate. Groups sort by views descending, then value ascending with null first for ties. Pagination is available only with group\\_by. Location uses the first retained start too. City groups use the stored name; filter by country to avoid combining names shared by different countries. Page groups use the first retained start even if playback continues after navigation. Filter by page\\_origin when grouping page\\_path to distinguish identical paths on different sites. video\\_title groups by the title on each view's first retained start, so a renamed video counts each view under the title it started with. delivery\\_format groups by hls or file on each view's first retained start; views from SDKs that do not report it form the null group. user\\_id groups by the user ID on each view's first retained start. Use custom.\\\u003ckey\u003e, such as custom.plan, to group by a custom dimension; views without the key form the null group.\n\n```go\nconst (\n\tEngagementGetParamsGroupByBrowserName      EngagementGetParamsGroupBy = \"browser_name\"\n\tEngagementGetParamsGroupByOsName           EngagementGetParamsGroupBy = \"os_name\"\n\tEngagementGetParamsGroupByDeviceType       EngagementGetParamsGroupBy = \"device_type\"\n\tEngagementGetParamsGroupByContinent        EngagementGetParamsGroupBy = \"continent\"\n\tEngagementGetParamsGroupByCountry          EngagementGetParamsGroupBy = \"country\"\n\tEngagementGetParamsGroupByCity             EngagementGetParamsGroupBy = \"city\"\n\tEngagementGetParamsGroupByPageOrigin       EngagementGetParamsGroupBy = \"page_origin\"\n\tEngagementGetParamsGroupByPagePath         EngagementGetParamsGroupBy = \"page_path\"\n\tEngagementGetParamsGroupBySubtitleLanguage EngagementGetParamsGroupBy = \"subtitle_language\"\n\tEngagementGetParamsGroupByPlaybackRate     EngagementGetParamsGroupBy = \"playback_rate\"\n\tEngagementGetParamsGroupByDeliveryFormat   EngagementGetParamsGroupBy = \"delivery_format\"\n\tEngagementGetParamsGroupByVideoTitle       EngagementGetParamsGroupBy = \"video_title\"\n\tEngagementGetParamsGroupByUserID           EngagementGetParamsGroupBy = \"user_id\"\n)\n```\n\n```go\ntype EngagementResponseUnion struct {\n\t// This field is from variant [Engagement].\n\tAveragePlayingTimeMs float64 `json:\"average_playing_time_ms\"`\n\t// This field is from variant [Engagement].\n\tProgressReached shared.ProgressReached `json:\"progress_reached\"`\n\t// This field is from variant [Engagement].\n\tReachedEndRatio float64 `json:\"reached_end_ratio\"`\n\t// This field is from variant [Engagement].\n\tReachedEndViews int64 `json:\"reached_end_views\"`\n\t// This field is from variant [Engagement].\n\tTotalPlayingTimeMs float64 `json:\"total_playing_time_ms\"`\n\t// This field is from variant [Engagement].\n\tViews int64 `json:\"views\"`\n\t// This field is from variant [Engagement].\n\tWatchTimeMs shared.WatchTimeDistribution `json:\"watch_time_ms\"`\n\t// This field is from variant [EngagementBreakdownPage].\n\tGroupBy EngagementBreakdownPageGroupBy `json:\"group_by\"`\n\t// This field is from variant [EngagementBreakdownPage].\n\tGroups []EngagementBreakdownPageGroup `json:\"groups\"`\n\t// This field is from variant [EngagementBreakdownPage].\n\tNextCursor string `json:\"next_cursor\"`\n\tJSON       struct {\n\t\tAveragePlayingTimeMs respjson.Field\n\t\tProgressReached      respjson.Field\n\t\tReachedEndRatio      respjson.Field\n\t\tReachedEndViews      respjson.Field\n\t\tTotalPlayingTimeMs   respjson.Field\n\t\tViews                respjson.Field\n\t\tWatchTimeMs          respjson.Field\n\t\tGroupBy              respjson.Field\n\t\tGroups               respjson.Field\n\t\tNextCursor           respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nEngagementResponseUnion contains all possible properties and values from [Engagement](#Engagement), [EngagementBreakdownPage](#EngagementBreakdownPage).\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\n```go\nfunc (u EngagementResponseUnion) AsEngagement() (v Engagement)\n```\n\n```go\nfunc (u EngagementResponseUnion) AsEngagementBreakdownPage() (v EngagementBreakdownPage)\n```\n\n```go\nfunc (u EngagementResponseUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *EngagementResponseUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype EngagementService struct {\n\tOptions []option.RequestOption\n}\n```\nPrivate retained-event and view-cohort queries.\n\nEngagementService contains methods and other services that help with interacting with the Chunkify Analytics 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 [NewEngagementService](#NewEngagementService) method instead.\n\n```go\nfunc NewEngagementService(opts ...option.RequestOption) (r EngagementService)\n```\nNewEngagementService 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 *EngagementService) Get(ctx context.Context, query EngagementGetParams, opts ...option.RequestOption) (res *EngagementResponseUnion, err error)\n```\nGet average watch time per attempt and the observed reached-end rate. Reaching the end does not prove the whole video was watched. Optionally group the full filtered view-start cohort with group\\_by=browser\\_name, os\\_name, device\\_type, continent, country or city. Without group\\_by the totals response is unchanged. With group\\_by, return paginated groups sorted by views descending. Equal view counts sort by value ascending, null first. Context comes from the first retained start; missing, null and nonstring values form a null group. Keep group\\_by and filters unchanged with each cursor. Unique viewers must not be summed across groups. Includes furthest-progress milestones and measured watch-time distribution. Progress can include seeking and is not retention.\n\n```go\ntype EngagementTimeseries struct {\n\tBuckets []EngagementTimeseriesBucket `json:\"buckets\" api:\"required\"`\n\t// Inclusive query bound normalized to UTC milliseconds.\n\tFrom time.Time `json:\"from\" api:\"required\" format:\"date-time\"`\n\t// Any of \"hour\", \"day\".\n\tInterval EngagementTimeseriesInterval `json:\"interval\" api:\"required\"`\n\tKind     constant.Engagement          `json:\"kind\" default:\"engagement\"`\n\tTimezone constant.Utc                 `json:\"timezone\" default:\"UTC\"`\n\t// Exclusive query bound normalized to UTC milliseconds.\n\tTo time.Time `json:\"to\" api:\"required\" format:\"date-time\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tBuckets     respjson.Field\n\t\tFrom        respjson.Field\n\t\tInterval    respjson.Field\n\t\tKind        respjson.Field\n\t\tTimezone    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```\n\n```go\nfunc (r EngagementTimeseries) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *EngagementTimeseries) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype EngagementTimeseriesBucket struct {\n\t// Total playing time divided by all selected attempts. Null with no views; zero\n\t// when views exist with no measured time.\n\tAveragePlayingTimeMs float64   `json:\"average_playing_time_ms\" api:\"required\"`\n\tBucketStart          time.Time `json:\"bucket_start\" api:\"required\" format:\"date-time\"`\n\t// Furthest progress on the selected final event or latest snapshot. Only views\n\t// with a positive known media duration and a progress ratio in [0,1] are samples.\n\t// Each milestone ratio uses sample_views. Seeking can count; this is not watched\n\t// coverage or audience retention.\n\tProgressReached shared.ProgressReached `json:\"progress_reached\" api:\"required\"`\n\t// Reached-end views divided by all selected attempts. Null without views. Multiply\n\t// by 100 for percent. Does not imply the whole video was watched.\n\tReachedEndRatio float64 `json:\"reached_end_ratio\" api:\"required\"`\n\t// Views whose winning final event has reason=ended. Counts each selected view at\n\t// most once.\n\tReachedEndViews int64 `json:\"reached_end_views\" api:\"required\"`\n\t// Cumulative playing time summed once per selected view, as in summary.\n\tTotalPlayingTimeMs float64 `json:\"total_playing_time_ms\" api:\"required\"`\n\t// Selected playback attempts with a retained start, including failed, ongoing and\n\t// start-only attempts.\n\tViews int64 `json:\"views\" api:\"required\"`\n\t// Playing time in milliseconds from one selected final event or latest snapshot\n\t// per view. Measured zero is included; missing measurements are excluded.\n\t// Percentiles use linear interpolation and are null without samples. This sample\n\t// denominator differs from average_playing_time_ms, which uses all attempts.\n\tWatchTimeMs shared.WatchTimeDistribution `json:\"watch_time_ms\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAveragePlayingTimeMs respjson.Field\n\t\tBucketStart          respjson.Field\n\t\tProgressReached      respjson.Field\n\t\tReachedEndRatio      respjson.Field\n\t\tReachedEndViews      respjson.Field\n\t\tTotalPlayingTimeMs   respjson.Field\n\t\tViews                respjson.Field\n\t\tWatchTimeMs          respjson.Field\n\t\tExtraFields          map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nObserved watch time and end-of-media for the same start cohort as summary. Missing delivery can undercount both.\n\n```go\nfunc (r EngagementTimeseriesBucket) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *EngagementTimeseriesBucket) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype EngagementTimeseriesInterval string\n```\n\n```go\nconst (\n\tEngagementTimeseriesIntervalHour EngagementTimeseriesInterval = \"hour\"\n\tEngagementTimeseriesIntervalDay  EngagementTimeseriesInterval = \"day\"\n)\n```\n\n```go\ntype Error = apierror.Error\n```\n\n```go\ntype ErrorGroup struct {\n\tAffectedViews int64                    `json:\"affected_views\" api:\"required\"`\n\tErrorCode     ErrorGroupErrorCodeUnion `json:\"error_code\" api:\"required\"`\n\tErrorEvents   int64                    `json:\"error_events\" api:\"required\"`\n\tFatal         bool                     `json:\"fatal\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAffectedViews respjson.Field\n\t\tErrorCode     respjson.Field\n\t\tErrorEvents   respjson.Field\n\t\tFatal         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 ErrorGroup) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ErrorGroup) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ErrorGroupErrorCodeUnion struct {\n\t// This field will be present if the value is a [string] instead of an object.\n\tOfString string `json:\",inline\"`\n\t// This field will be present if the value is a [float64] instead of an object.\n\tOfFloat float64 `json:\",inline\"`\n\tJSON    struct {\n\t\tOfString respjson.Field\n\t\tOfFloat  respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nErrorGroupErrorCodeUnion contains all possible properties and values from \\[string], \\[float64].\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\nIf the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat]\n\n```go\nfunc (u ErrorGroupErrorCodeUnion) AsFloat() (v float64)\n```\n\n```go\nfunc (u ErrorGroupErrorCodeUnion) AsString() (v string)\n```\n\n```go\nfunc (u ErrorGroupErrorCodeUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ErrorGroupErrorCodeUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ErrorListParams struct {\n\t// Exact browser name, such as Chrome. Missing values do not match.\n\tBrowserName param.Opt[string] `query:\"browser_name,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive city name from the local lookup, with 1 to 256 Unicode\n\t// characters. Use country alongside city to distinguish places with the same name.\n\t// Missing locations do not match.\n\tCity param.Opt[string] `query:\"city,omitzero\" json:\"-\"`\n\t// Exact uppercase ISO 3166-1 alpha-2 country code, such as GB. Missing locations\n\t// do not match.\n\tCountry param.Opt[string] `query:\"country,omitzero\" json:\"-\"`\n\t// Use next_cursor from the previous page. Keep the same filters, sort_by and\n\t// order. Video cursors from earlier versions are invalid; start a new pagination\n\t// sequence after upgrading.\n\tCursor param.Opt[string] `query:\"cursor,omitzero\" json:\"-\"`\n\t// Inclusive RFC3339 occurrence-time lower bound, with timezone. Summary/video\n\t// queries apply it to the selected view_started event. Must be before to.\n\tFrom param.Opt[time.Time] `query:\"from,omitzero\" format:\"date-time\" json:\"-\"`\n\t// Maximum rows on this page. Events and videos always support pagination; summary,\n\t// quality and engagement support it only with group_by.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Exact operating-system name, such as macOS. Missing values do not match.\n\tOsName param.Opt[string] `query:\"os_name,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive page origin captured by the player, such as\n\t// https://example.com. Metrics use the first retained view start; raw events use\n\t// each event context. Missing values do not match.\n\tPageOrigin param.Opt[string] `query:\"page_origin,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive page path captured by the player, such as /watch/video.\n\t// Filter by page_origin as well to distinguish identical paths on different sites.\n\t// Metrics use the first retained view start; raw events use each event context.\n\t// Missing values do not match.\n\tPagePath param.Opt[string] `query:\"page_path,omitzero\" json:\"-\"`\n\t// Playback rate from 0.01 to 16 with at most two decimals, such as 1, 1.5 or 2;\n\t// 2.0 and 2 are the same rate. Metrics use the rate on the first retained view\n\t// start; raw events use each event's value.\n\tPlaybackRate param.Opt[string] `query:\"playback_rate,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive, non-blank subtitle language tag, such as fr or en-US; und\n\t// for a subtitles track without a language. Metrics use the language showing on\n\t// the first retained view start; raw events use each event's value. Views without\n\t// subtitles at start do not match.\n\tSubtitleLanguage param.Opt[string] `query:\"subtitle_language,omitzero\" json:\"-\"`\n\t// Exclusive RFC3339 occurrence-time upper bound, with timezone. Summary/video\n\t// queries apply it to the selected view_started event.\n\tTo param.Opt[time.Time] `query:\"to,omitzero\" format:\"date-time\" json:\"-\"`\n\t// Exact integrator-supplied user ID. Selects views by their start event; event\n\t// lists match each event's own value. Missing/null user IDs do not match. Reports\n\t// with this filter read one stored row per view.\n\tUserID param.Opt[string] `query:\"user_id,omitzero\" json:\"-\"`\n\t// Exact video ID; must not be blank. Combined with all other filters using AND.\n\tVideoID param.Opt[string] `query:\"video_id,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive video title. Selects views by the title on their first\n\t// retained start; event lists match each event's own value. Views without a title\n\t// do not match. Reports with this filter read one stored row per view.\n\tVideoTitle param.Opt[string] `query:\"video_title,omitzero\" json:\"-\"`\n\t// Filter one playback attempt by view ID. Metrics use its first retained start.\n\tViewID param.Opt[string] `query:\"view_id,omitzero\" json:\"-\"`\n\t// Exact viewer ID. The Chunkify player SDK generates one per browser; missing/null\n\t// viewer IDs do not match.\n\tViewerID param.Opt[string] `query:\"viewer_id,omitzero\" json:\"-\"`\n\t// Exact continent code from the local lookup. Missing locations do not match.\n\t//\n\t// Any of \"AF\", \"AN\", \"AS\", \"EU\", \"NA\", \"OC\", \"SA\".\n\tContinent ErrorListParamsContinent `query:\"continent,omitzero\" json:\"-\"`\n\t// Delivery format on the first retained view start: hls for HLS streams, file for\n\t// a single media file such as an MP4 rendition. Metrics use the first retained\n\t// view start; raw events use each event's value. Views whose SDK did not report it\n\t// do not match. connector_name is not a substitute: Safari plays HLS natively and\n\t// reports html-media.\n\t//\n\t// Any of \"hls\", \"file\".\n\tDeliveryFormat ErrorListParamsDeliveryFormat `query:\"delivery_format,omitzero\" json:\"-\"`\n\t// Exact device class. unknown matches an explicit unknown value.\n\t//\n\t// Any of \"desktop\", \"mobile\", \"tablet\", \"unknown\".\n\tDeviceType ErrorListParamsDeviceType `query:\"device_type,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ErrorListParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [ErrorListParams](#ErrorListParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype ErrorListParamsContinent string\n```\nExact continent code from the local lookup. Missing locations do not match.\n\n```go\nconst (\n\tErrorListParamsContinentAf ErrorListParamsContinent = \"AF\"\n\tErrorListParamsContinentAn ErrorListParamsContinent = \"AN\"\n\tErrorListParamsContinentAs ErrorListParamsContinent = \"AS\"\n\tErrorListParamsContinentEu ErrorListParamsContinent = \"EU\"\n\tErrorListParamsContinentNa ErrorListParamsContinent = \"NA\"\n\tErrorListParamsContinentOc ErrorListParamsContinent = \"OC\"\n\tErrorListParamsContinentSa ErrorListParamsContinent = \"SA\"\n)\n```\n\n```go\ntype ErrorListParamsDeliveryFormat string\n```\nDelivery format on the first retained view start: hls for HLS streams, file for a single media file such as an MP4 rendition. Metrics use the first retained view start; raw events use each event's value. Views whose SDK did not report it do not match. connector\\_name is not a substitute: Safari plays HLS natively and reports html-media.\n\n```go\nconst (\n\tErrorListParamsDeliveryFormatHls  ErrorListParamsDeliveryFormat = \"hls\"\n\tErrorListParamsDeliveryFormatFile ErrorListParamsDeliveryFormat = \"file\"\n)\n```\n\n```go\ntype ErrorListParamsDeviceType string\n```\nExact device class. unknown matches an explicit unknown value.\n\n```go\nconst (\n\tErrorListParamsDeviceTypeDesktop ErrorListParamsDeviceType = \"desktop\"\n\tErrorListParamsDeviceTypeMobile  ErrorListParamsDeviceType = \"mobile\"\n\tErrorListParamsDeviceTypeTablet  ErrorListParamsDeviceType = \"tablet\"\n\tErrorListParamsDeviceTypeUnknown ErrorListParamsDeviceType = \"unknown\"\n)\n```\n\n```go\ntype ErrorPage struct {\n\tErrors     []ErrorGroup `json:\"errors\" api:\"required\"`\n\tNextCursor string       `json:\"next_cursor\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tErrors      respjson.Field\n\t\tNextCursor  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 ErrorPage) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ErrorPage) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ErrorService struct {\n\tOptions []option.RequestOption\n}\n```\nPrivate retained-event and view-cohort queries.\n\nErrorService contains methods and other services that help with interacting with the Chunkify Analytics 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 [NewErrorService](#NewErrorService) method instead.\n\n```go\nfunc NewErrorService(opts ...option.RequestOption) (r ErrorService)\n```\nNewErrorService 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 *ErrorService) List(ctx context.Context, query ErrorListParams, opts ...option.RequestOption) (res *pagination.ErrorsPage[ErrorGroup], err error)\n```\nFilters select first retained starts. Error events from the selected view identity contribute even after to. Group by exact JSON error\\_code and fatal status, distinguishing numeric codes from text and missing from false. Sort by affected\\_views descending, then canonical JSON code and fatal status ascending for ties. error\\_events counts distinct event IDs per group, affected\\_views counts distinct view IDs. Groups are not additive across codes. Cursors exclude later arrivals.\n\n```go\nfunc (r *ErrorService) ListAutoPaging(ctx context.Context, query ErrorListParams, opts ...option.RequestOption) *pagination.ErrorsPageAutoPager[ErrorGroup]\n```\nFilters select first retained starts. Error events from the selected view identity contribute even after to. Group by exact JSON error\\_code and fatal status, distinguishing numeric codes from text and missing from false. Sort by affected\\_views descending, then canonical JSON code and fatal status ascending for ties. error\\_events counts distinct event IDs per group, affected\\_views counts distinct view IDs. Groups are not additive across codes. Cursors exclude later arrivals.\n\n```go\ntype EventContext = shared.EventContext\n```\nBrowser context and locally derived continent/country/city. Request IP addresses are never added to events or stored context.\n\nThis is an alias to an internal type.\n\n```go\ntype EventContextBrowserNameUnion = shared.EventContextBrowserNameUnion\n```\nCopied from browser\\_context.browser\\_name when primitive. See BrowserContext for the SDK type; the collector currently accepts any primitive here.\n\nThis is an alias to an internal type.\n\n```go\ntype EventContextBrowserVersionUnion = shared.EventContextBrowserVersionUnion\n```\nCopied from browser\\_context.browser\\_version when primitive. See BrowserContext for the SDK type; the collector currently accepts any primitive here.\n\nThis is an alias to an internal type.\n\n```go\ntype EventContextContinent = shared.EventContextContinent\n```\nContinent code from the local City MMDB lookup: Africa, Antarctica, Asia, Europe, North America, Oceania or South America. Null when unknown.\n\nThis is an alias to an internal type.\n\n```go\ntype EventContextDeviceFamilyUnion = shared.EventContextDeviceFamilyUnion\n```\nCopied from browser\\_context.device\\_family when primitive. See BrowserContext for the SDK type; the collector currently accepts any primitive here.\n\nThis is an alias to an internal type.\n\n```go\ntype EventContextDeviceTypeUnion = shared.EventContextDeviceTypeUnion\n```\nCopied from browser\\_context.device\\_type when primitive. See BrowserContext for the SDK type; the collector currently accepts any primitive here.\n\nThis is an alias to an internal type.\n\n```go\ntype EventContextLanguagePrefixUnion = shared.EventContextLanguagePrefixUnion\n```\nCopied from browser\\_context.language\\_prefix when primitive. See BrowserContext for the SDK type; the collector currently accepts any primitive here.\n\nThis is an alias to an internal type.\n\n```go\ntype EventContextLanguageUnion = shared.EventContextLanguageUnion\n```\nCopied from browser\\_context.language when primitive. See BrowserContext for the SDK type; the collector currently accepts any primitive here.\n\nThis is an alias to an internal type.\n\n```go\ntype EventContextOsNameUnion = shared.EventContextOsNameUnion\n```\nCopied from browser\\_context.os\\_name when primitive. See BrowserContext for the SDK type; the collector currently accepts any primitive here.\n\nThis is an alias to an internal type.\n\n```go\ntype EventContextOsVersionUnion = shared.EventContextOsVersionUnion\n```\nCopied from browser\\_context.os\\_version when primitive. See BrowserContext for the SDK type; the collector currently accepts any primitive here.\n\nThis is an alias to an internal type.\n\n```go\ntype EventContextPixelRatioUnion = shared.EventContextPixelRatioUnion\n```\nCopied from browser\\_context.pixel\\_ratio when primitive. See BrowserContext for the SDK type; the collector currently accepts any primitive here.\n\nThis is an alias to an internal type.\n\n```go\ntype EventContextScreenHeightPxUnion = shared.EventContextScreenHeightPxUnion\n```\nCopied from browser\\_context.screen\\_height\\_px when primitive. See BrowserContext for the SDK type; the collector currently accepts any primitive here.\n\nThis is an alias to an internal type.\n\n```go\ntype EventContextScreenWidthPxUnion = shared.EventContextScreenWidthPxUnion\n```\nCopied from browser\\_context.screen\\_width\\_px when primitive. See BrowserContext for the SDK type; the collector currently accepts any primitive here.\n\nThis is an alias to an internal type.\n\n```go\ntype EventContextTimezoneOffsetMinutesUnion = shared.EventContextTimezoneOffsetMinutesUnion\n```\nCopied from browser\\_context.timezone\\_offset\\_minutes when primitive. See BrowserContext for the SDK type; the collector currently accepts any primitive here.\n\nThis is an alias to an internal type.\n\n```go\ntype EventContextTimezoneUnion = shared.EventContextTimezoneUnion\n```\nCopied from browser\\_context.timezone when primitive. See BrowserContext for the SDK type; the collector currently accepts any primitive here.\n\nThis is an alias to an internal type.\n\n```go\ntype EventContextUserAgentUnion = shared.EventContextUserAgentUnion\n```\nCopied from browser\\_context.user\\_agent when primitive. See BrowserContext for the SDK type; the collector currently accepts any primitive here.\n\nThis is an alias to an internal type.\n\n```go\ntype EventContextViewportHeightPxUnion = shared.EventContextViewportHeightPxUnion\n```\nCopied from browser\\_context.viewport\\_height\\_px when primitive. See BrowserContext for the SDK type; the collector currently accepts any primitive here.\n\nThis is an alias to an internal type.\n\n```go\ntype EventContextViewportWidthPxUnion = shared.EventContextViewportWidthPxUnion\n```\nCopied from browser\\_context.viewport\\_width\\_px when primitive. See BrowserContext for the SDK type; the collector currently accepts any primitive here.\n\nThis is an alias to an internal type.\n\n```go\ntype EventIngestParams struct {\n\t// A schema version 1 playback event. Extra properties are preserved.\n\tEvent  AnalyticsEventUnionParam\n\tOrigin param.Opt[string] `header:\"Origin,omitzero\" json:\"-\"`\n\t// Any of \"identity\".\n\tContentEncoding EventIngestParamsContentEncoding `header:\"Content-Encoding,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r EventIngestParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *EventIngestParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype EventIngestParamsContentEncoding string\n```\n\n```go\nconst (\n\tEventIngestParamsContentEncodingIdentity EventIngestParamsContentEncoding = \"identity\"\n)\n```\n\n```go\ntype EventIngestResponseUnion struct {\n\tAccepted  bool `json:\"accepted\"`\n\tDuplicate bool `json:\"duplicate\"`\n\tJSON      struct {\n\t\tAccepted  respjson.Field\n\t\tDuplicate respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nEventIngestResponseUnion contains all possible properties and values from [NativeCreated](#NativeCreated), [NativeDuplicate](#NativeDuplicate).\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\n```go\nfunc (u EventIngestResponseUnion) AsNativeCreated() (v NativeCreated)\n```\n\n```go\nfunc (u EventIngestResponseUnion) AsNativeDuplicate() (v NativeDuplicate)\n```\n\n```go\nfunc (u EventIngestResponseUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *EventIngestResponseUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype EventListParams struct {\n\t// Exact browser name, such as Chrome. Missing values do not match.\n\tBrowserName param.Opt[string] `query:\"browser_name,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive city name from the local lookup, with 1 to 256 Unicode\n\t// characters. Use country alongside city to distinguish places with the same name.\n\t// Missing locations do not match.\n\tCity param.Opt[string] `query:\"city,omitzero\" json:\"-\"`\n\t// Exact uppercase ISO 3166-1 alpha-2 country code, such as GB. Missing locations\n\t// do not match.\n\tCountry param.Opt[string] `query:\"country,omitzero\" json:\"-\"`\n\t// Use next_cursor from the previous page. Keep the same filters, sort_by and\n\t// order. Video cursors from earlier versions are invalid; start a new pagination\n\t// sequence after upgrading.\n\tCursor param.Opt[string] `query:\"cursor,omitzero\" json:\"-\"`\n\t// Inclusive RFC3339 occurrence-time lower bound, with timezone. Summary/video\n\t// queries apply it to the selected view_started event. Must be before to.\n\tFrom param.Opt[time.Time] `query:\"from,omitzero\" format:\"date-time\" json:\"-\"`\n\t// Maximum rows on this page. Events and videos always support pagination; summary,\n\t// quality and engagement support it only with group_by.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Exact operating-system name, such as macOS. Missing values do not match.\n\tOsName param.Opt[string] `query:\"os_name,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive page origin captured by the player, such as\n\t// https://example.com. Metrics use the first retained view start; raw events use\n\t// each event context. Missing values do not match.\n\tPageOrigin param.Opt[string] `query:\"page_origin,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive page path captured by the player, such as /watch/video.\n\t// Filter by page_origin as well to distinguish identical paths on different sites.\n\t// Metrics use the first retained view start; raw events use each event context.\n\t// Missing values do not match.\n\tPagePath param.Opt[string] `query:\"page_path,omitzero\" json:\"-\"`\n\t// Playback rate from 0.01 to 16 with at most two decimals, such as 1, 1.5 or 2;\n\t// 2.0 and 2 are the same rate. Metrics use the rate on the first retained view\n\t// start; raw events use each event's value.\n\tPlaybackRate param.Opt[string] `query:\"playback_rate,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive, non-blank subtitle language tag, such as fr or en-US; und\n\t// for a subtitles track without a language. Metrics use the language showing on\n\t// the first retained view start; raw events use each event's value. Views without\n\t// subtitles at start do not match.\n\tSubtitleLanguage param.Opt[string] `query:\"subtitle_language,omitzero\" json:\"-\"`\n\t// Exclusive RFC3339 occurrence-time upper bound, with timezone. Summary/video\n\t// queries apply it to the selected view_started event.\n\tTo param.Opt[time.Time] `query:\"to,omitzero\" format:\"date-time\" json:\"-\"`\n\t// Exact integrator-supplied user ID. Selects views by their start event; event\n\t// lists match each event's own value. Missing/null user IDs do not match. Reports\n\t// with this filter read one stored row per view.\n\tUserID param.Opt[string] `query:\"user_id,omitzero\" json:\"-\"`\n\t// Exact video ID; must not be blank. Combined with all other filters using AND.\n\tVideoID param.Opt[string] `query:\"video_id,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive video title. Selects views by the title on their first\n\t// retained start; event lists match each event's own value. Views without a title\n\t// do not match. Reports with this filter read one stored row per view.\n\tVideoTitle param.Opt[string] `query:\"video_title,omitzero\" json:\"-\"`\n\t// Filter one playback attempt by view ID. Metrics use its first retained start.\n\tViewID param.Opt[string] `query:\"view_id,omitzero\" json:\"-\"`\n\t// Exact viewer ID. The Chunkify player SDK generates one per browser; missing/null\n\t// viewer IDs do not match.\n\tViewerID param.Opt[string] `query:\"viewer_id,omitzero\" json:\"-\"`\n\t// Exact continent code from the local lookup. Missing locations do not match.\n\t//\n\t// Any of \"AF\", \"AN\", \"AS\", \"EU\", \"NA\", \"OC\", \"SA\".\n\tContinent EventListParamsContinent `query:\"continent,omitzero\" json:\"-\"`\n\t// Delivery format on the first retained view start: hls for HLS streams, file for\n\t// a single media file such as an MP4 rendition. Metrics use the first retained\n\t// view start; raw events use each event's value. Views whose SDK did not report it\n\t// do not match. connector_name is not a substitute: Safari plays HLS natively and\n\t// reports html-media.\n\t//\n\t// Any of \"hls\", \"file\".\n\tDeliveryFormat EventListParamsDeliveryFormat `query:\"delivery_format,omitzero\" json:\"-\"`\n\t// Exact device class. unknown matches an explicit unknown value.\n\t//\n\t// Any of \"desktop\", \"mobile\", \"tablet\", \"unknown\".\n\tDeviceType EventListParamsDeviceType `query:\"device_type,omitzero\" json:\"-\"`\n\t// Raw-event queries only. Summaries and videos reject this parameter.\n\t//\n\t// Any of \"chunkify.video.view_started\", \"chunkify.video.view_snapshot\",\n\t// \"chunkify.video.playback_error\", \"chunkify.video.view_ended\",\n\t// \"chunkify.video.playback_state_changed\", \"chunkify.video.rendition_changed\",\n\t// \"chunkify.video.seek_completed\", \"chunkify.video.subtitle_changed\",\n\t// \"chunkify.video.playback_rate_changed\".\n\tEventName EventListParamsEventName `query:\"event_name,omitzero\" json:\"-\"`\n\t// Sort direction. Events and videos default to asc; views default to desc. Events\n\t// sort by ingestion sequence. Videos and views sort by sort_by with missing values\n\t// last. View ties use view_id in the requested direction; video metric ties use\n\t// video_id ascending.\n\t//\n\t// Any of \"asc\", \"desc\".\n\tOrder EventListParamsOrder `query:\"order,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 EventListParamsContinent string\n```\nExact continent code from the local lookup. Missing locations do not match.\n\n```go\nconst (\n\tEventListParamsContinentAf EventListParamsContinent = \"AF\"\n\tEventListParamsContinentAn EventListParamsContinent = \"AN\"\n\tEventListParamsContinentAs EventListParamsContinent = \"AS\"\n\tEventListParamsContinentEu EventListParamsContinent = \"EU\"\n\tEventListParamsContinentNa EventListParamsContinent = \"NA\"\n\tEventListParamsContinentOc EventListParamsContinent = \"OC\"\n\tEventListParamsContinentSa EventListParamsContinent = \"SA\"\n)\n```\n\n```go\ntype EventListParamsDeliveryFormat string\n```\nDelivery format on the first retained view start: hls for HLS streams, file for a single media file such as an MP4 rendition. Metrics use the first retained view start; raw events use each event's value. Views whose SDK did not report it do not match. connector\\_name is not a substitute: Safari plays HLS natively and reports html-media.\n\n```go\nconst (\n\tEventListParamsDeliveryFormatHls  EventListParamsDeliveryFormat = \"hls\"\n\tEventListParamsDeliveryFormatFile EventListParamsDeliveryFormat = \"file\"\n)\n```\n\n```go\ntype EventListParamsDeviceType string\n```\nExact device class. unknown matches an explicit unknown value.\n\n```go\nconst (\n\tEventListParamsDeviceTypeDesktop EventListParamsDeviceType = \"desktop\"\n\tEventListParamsDeviceTypeMobile  EventListParamsDeviceType = \"mobile\"\n\tEventListParamsDeviceTypeTablet  EventListParamsDeviceType = \"tablet\"\n\tEventListParamsDeviceTypeUnknown EventListParamsDeviceType = \"unknown\"\n)\n```\n\n```go\ntype EventListParamsEventName string\n```\nRaw-event queries only. Summaries and videos reject this parameter.\n\n```go\nconst (\n\tEventListParamsEventNameChunkifyVideoViewStarted          EventListParamsEventName = \"chunkify.video.view_started\"\n\tEventListParamsEventNameChunkifyVideoViewSnapshot         EventListParamsEventName = \"chunkify.video.view_snapshot\"\n\tEventListParamsEventNameChunkifyVideoPlaybackError        EventListParamsEventName = \"chunkify.video.playback_error\"\n\tEventListParamsEventNameChunkifyVideoViewEnded            EventListParamsEventName = \"chunkify.video.view_ended\"\n\tEventListParamsEventNameChunkifyVideoPlaybackStateChanged EventListParamsEventName = \"chunkify.video.playback_state_changed\"\n\tEventListParamsEventNameChunkifyVideoRenditionChanged     EventListParamsEventName = \"chunkify.video.rendition_changed\"\n\tEventListParamsEventNameChunkifyVideoSeekCompleted        EventListParamsEventName = \"chunkify.video.seek_completed\"\n\tEventListParamsEventNameChunkifyVideoSubtitleChanged      EventListParamsEventName = \"chunkify.video.subtitle_changed\"\n\tEventListParamsEventNameChunkifyVideoPlaybackRateChanged  EventListParamsEventName = \"chunkify.video.playback_rate_changed\"\n)\n```\n\n```go\ntype EventListParamsOrder string\n```\nSort direction. Events and videos default to asc; views default to desc. Events sort by ingestion sequence. Videos and views sort by sort\\_by with missing values last. View ties use view\\_id in the requested direction; video metric ties use video\\_id ascending.\n\n```go\nconst (\n\tEventListParamsOrderAsc  EventListParamsOrder = \"asc\"\n\tEventListParamsOrderDesc EventListParamsOrder = \"desc\"\n)\n```\n\n```go\ntype EventPage struct {\n\tEvents     []StoredEvent `json:\"events\" api:\"required\"`\n\tNextCursor string        `json:\"next_cursor\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tEvents      respjson.Field\n\t\tNextCursor  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 EventPage) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *EventPage) UnmarshalJSON(data []byte) error\n```\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 Analytics 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) Ingest(ctx context.Context, params EventIngestParams, opts ...option.RequestOption) (res *EventIngestResponseUnion, err error)\n```\nSend one playback event using a public key. Success confirms storage completed.\n\nConfigure the client with a public ingestion key for this method. The SDK sends the event you supply; it does not collect playback events automatically. For automatic browser player tracking, use \\`@chunkify/player-analytics\\`.\n\n```go\nfunc (r *EventService) List(ctx context.Context, query EventListParams, opts ...option.RequestOption) (res *pagination.EventsPage[StoredEvent], err error)\n```\nList project events with filters and pagination. Use order=desc for the newest events.\n\n```go\nfunc (r *EventService) ListAutoPaging(ctx context.Context, query EventListParams, opts ...option.RequestOption) *pagination.EventsPageAutoPager[StoredEvent]\n```\nList project events with filters and pagination. Use order=desc for the newest events.\n\n```go\ntype Export struct {\n\tContentType constant.TextCsv `json:\"content_type\" default:\"text/csv\"`\n\tDownloadURL string           `json:\"download_url\" api:\"required\" format:\"uri\"`\n\tExpiresAt   time.Time        `json:\"expires_at\" api:\"required\" format:\"date-time\"`\n\tFilename    string           `json:\"filename\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tContentType respjson.Field\n\t\tDownloadURL respjson.Field\n\t\tExpiresAt   respjson.Field\n\t\tFilename    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 Export) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *Export) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ExportColumns struct {\n\t// Available CSV column names in default output order.\n\tColumns []string `json:\"columns\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tColumns     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 ExportColumns) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ExportColumns) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ExportListColumnsParams struct {\n\t// Report whose CSV columns to list.\n\t//\n\t// Any of \"summary\", \"quality\", \"engagement\", \"timeseries\", \"videos\", \"events\",\n\t// \"views\", \"errors\", \"dimensions\", \"renditions\", \"subtitles\", \"playback_rates\",\n\t// \"retention\".\n\tResource ExportListColumnsParamsResource `query:\"resource,omitzero\" api:\"required\" json:\"-\"`\n\t// Optional on summary, quality and engagement. Group views by this field on their\n\t// first retained start. Missing, null and nonstring context forms a null group;\n\t// the literal device type unknown stays separate. Groups sort by views descending,\n\t// then value ascending with null first for ties. Pagination is available only with\n\t// group_by. Location uses the first retained start too. City groups use the stored\n\t// name; filter by country to avoid combining names shared by different countries.\n\t// Page groups use the first retained start even if playback continues after\n\t// navigation. Filter by page_origin when grouping page_path to distinguish\n\t// identical paths on different sites. video_title groups by the title on each\n\t// view's first retained start, so a renamed video counts each view under the title\n\t// it started with. delivery_format groups by hls or file on each view's first\n\t// retained start; views from SDKs that do not report it form the null group.\n\t// user_id groups by the user ID on each view's first retained start. Use\n\t// custom.\u003ckey\u003e, such as custom.plan, to group by a custom dimension; views without\n\t// the key form the null group.\n\tGroupBy ExportListColumnsParamsGroupBy `query:\"group_by,omitzero\" json:\"-\"`\n\t// Metric set for every time bucket. Uses the same calculations and sample counts\n\t// as the corresponding totals route.\n\t//\n\t// Any of \"summary\", \"quality\", \"engagement\".\n\tKind ExportListColumnsParamsKind `query:\"kind,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ExportListColumnsParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [ExportListColumnsParams](#ExportListColumnsParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype ExportListColumnsParamsGroupBy string\n```\nOptional on summary, quality and engagement. Group views by this field on their first retained start. Missing, null and nonstring context forms a null group; the literal device type unknown stays separate. Groups sort by views descending, then value ascending with null first for ties. Pagination is available only with group\\_by. Location uses the first retained start too. City groups use the stored name; filter by country to avoid combining names shared by different countries. Page groups use the first retained start even if playback continues after navigation. Filter by page\\_origin when grouping page\\_path to distinguish identical paths on different sites. video\\_title groups by the title on each view's first retained start, so a renamed video counts each view under the title it started with. delivery\\_format groups by hls or file on each view's first retained start; views from SDKs that do not report it form the null group. user\\_id groups by the user ID on each view's first retained start. Use custom.\\\u003ckey\u003e, such as custom.plan, to group by a custom dimension; views without the key form the null group.\n\n```go\nconst (\n\tExportListColumnsParamsGroupByBrowserName      ExportListColumnsParamsGroupBy = \"browser_name\"\n\tExportListColumnsParamsGroupByOsName           ExportListColumnsParamsGroupBy = \"os_name\"\n\tExportListColumnsParamsGroupByDeviceType       ExportListColumnsParamsGroupBy = \"device_type\"\n\tExportListColumnsParamsGroupByContinent        ExportListColumnsParamsGroupBy = \"continent\"\n\tExportListColumnsParamsGroupByCountry          ExportListColumnsParamsGroupBy = \"country\"\n\tExportListColumnsParamsGroupByCity             ExportListColumnsParamsGroupBy = \"city\"\n\tExportListColumnsParamsGroupByPageOrigin       ExportListColumnsParamsGroupBy = \"page_origin\"\n\tExportListColumnsParamsGroupByPagePath         ExportListColumnsParamsGroupBy = \"page_path\"\n\tExportListColumnsParamsGroupBySubtitleLanguage ExportListColumnsParamsGroupBy = \"subtitle_language\"\n\tExportListColumnsParamsGroupByPlaybackRate     ExportListColumnsParamsGroupBy = \"playback_rate\"\n\tExportListColumnsParamsGroupByDeliveryFormat   ExportListColumnsParamsGroupBy = \"delivery_format\"\n\tExportListColumnsParamsGroupByVideoTitle       ExportListColumnsParamsGroupBy = \"video_title\"\n\tExportListColumnsParamsGroupByUserID           ExportListColumnsParamsGroupBy = \"user_id\"\n)\n```\n\n```go\ntype ExportListColumnsParamsKind string\n```\nMetric set for every time bucket. Uses the same calculations and sample counts as the corresponding totals route.\n\n```go\nconst (\n\tExportListColumnsParamsKindSummary    ExportListColumnsParamsKind = \"summary\"\n\tExportListColumnsParamsKindQuality    ExportListColumnsParamsKind = \"quality\"\n\tExportListColumnsParamsKindEngagement ExportListColumnsParamsKind = \"engagement\"\n)\n```\n\n```go\ntype ExportListColumnsParamsResource string\n```\nReport whose CSV columns to list.\n\n```go\nconst (\n\tExportListColumnsParamsResourceSummary       ExportListColumnsParamsResource = \"summary\"\n\tExportListColumnsParamsResourceQuality       ExportListColumnsParamsResource = \"quality\"\n\tExportListColumnsParamsResourceEngagement    ExportListColumnsParamsResource = \"engagement\"\n\tExportListColumnsParamsResourceTimeseries    ExportListColumnsParamsResource = \"timeseries\"\n\tExportListColumnsParamsResourceVideos        ExportListColumnsParamsResource = \"videos\"\n\tExportListColumnsParamsResourceEvents        ExportListColumnsParamsResource = \"events\"\n\tExportListColumnsParamsResourceViews         ExportListColumnsParamsResource = \"views\"\n\tExportListColumnsParamsResourceErrors        ExportListColumnsParamsResource = \"errors\"\n\tExportListColumnsParamsResourceDimensions    ExportListColumnsParamsResource = \"dimensions\"\n\tExportListColumnsParamsResourceRenditions    ExportListColumnsParamsResource = \"renditions\"\n\tExportListColumnsParamsResourceSubtitles     ExportListColumnsParamsResource = \"subtitles\"\n\tExportListColumnsParamsResourcePlaybackRates ExportListColumnsParamsResource = \"playback_rates\"\n\tExportListColumnsParamsResourceRetention     ExportListColumnsParamsResource = \"retention\"\n)\n```\n\n```go\ntype ExportNewParams struct {\n\t// Any of \"summary\", \"quality\", \"engagement\", \"timeseries\", \"videos\", \"events\",\n\t// \"views\", \"errors\", \"dimensions\", \"renditions\", \"subtitles\", \"playback_rates\",\n\t// \"retention\".\n\tResource ExportNewParamsResource `json:\"resource,omitzero\" api:\"required\"`\n\t// CSV column names in output order. Omit for all columns. Get the available names\n\t// from GET /v1/exports using the same resource, kind and group_by. Unknown names,\n\t// duplicates and empty selections are rejected.\n\tColumns []string         `json:\"columns,omitzero\"`\n\tQuery   ExportQueryParam `json:\"query,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ExportNewParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ExportNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ExportNewParamsResource string\n```\n\n```go\nconst (\n\tExportNewParamsResourceSummary       ExportNewParamsResource = \"summary\"\n\tExportNewParamsResourceQuality       ExportNewParamsResource = \"quality\"\n\tExportNewParamsResourceEngagement    ExportNewParamsResource = \"engagement\"\n\tExportNewParamsResourceTimeseries    ExportNewParamsResource = \"timeseries\"\n\tExportNewParamsResourceVideos        ExportNewParamsResource = \"videos\"\n\tExportNewParamsResourceEvents        ExportNewParamsResource = \"events\"\n\tExportNewParamsResourceViews         ExportNewParamsResource = \"views\"\n\tExportNewParamsResourceErrors        ExportNewParamsResource = \"errors\"\n\tExportNewParamsResourceDimensions    ExportNewParamsResource = \"dimensions\"\n\tExportNewParamsResourceRenditions    ExportNewParamsResource = \"renditions\"\n\tExportNewParamsResourceSubtitles     ExportNewParamsResource = \"subtitles\"\n\tExportNewParamsResourcePlaybackRates ExportNewParamsResource = \"playback_rates\"\n\tExportNewParamsResourceRetention     ExportNewParamsResource = \"retention\"\n)\n```\n\n```go\ntype ExportQueryContinent string\n```\n\n```go\nconst (\n\tExportQueryContinentAf ExportQueryContinent = \"AF\"\n\tExportQueryContinentAn ExportQueryContinent = \"AN\"\n\tExportQueryContinentAs ExportQueryContinent = \"AS\"\n\tExportQueryContinentEu ExportQueryContinent = \"EU\"\n\tExportQueryContinentNa ExportQueryContinent = \"NA\"\n\tExportQueryContinentOc ExportQueryContinent = \"OC\"\n\tExportQueryContinentSa ExportQueryContinent = \"SA\"\n)\n```\n\n```go\ntype ExportQueryDeliveryFormat string\n```\n\n```go\nconst (\n\tExportQueryDeliveryFormatHls  ExportQueryDeliveryFormat = \"hls\"\n\tExportQueryDeliveryFormatFile ExportQueryDeliveryFormat = \"file\"\n)\n```\n\n```go\ntype ExportQueryDeviceType string\n```\n\n```go\nconst (\n\tExportQueryDeviceTypeDesktop ExportQueryDeviceType = \"desktop\"\n\tExportQueryDeviceTypeMobile  ExportQueryDeviceType = \"mobile\"\n\tExportQueryDeviceTypeTablet  ExportQueryDeviceType = \"tablet\"\n\tExportQueryDeviceTypeUnknown ExportQueryDeviceType = \"unknown\"\n)\n```\n\n```go\ntype ExportQueryDimension string\n```\n\n```go\nconst (\n\tExportQueryDimensionBrowserName      ExportQueryDimension = \"browser_name\"\n\tExportQueryDimensionOsName           ExportQueryDimension = \"os_name\"\n\tExportQueryDimensionDeviceType       ExportQueryDimension = \"device_type\"\n\tExportQueryDimensionVideoID          ExportQueryDimension = \"video_id\"\n\tExportQueryDimensionViewerID         ExportQueryDimension = \"viewer_id\"\n\tExportQueryDimensionUserID           ExportQueryDimension = \"user_id\"\n\tExportQueryDimensionVideoTitle       ExportQueryDimension = \"video_title\"\n\tExportQueryDimensionContinent        ExportQueryDimension = \"continent\"\n\tExportQueryDimensionCountry          ExportQueryDimension = \"country\"\n\tExportQueryDimensionCity             ExportQueryDimension = \"city\"\n\tExportQueryDimensionPageOrigin       ExportQueryDimension = \"page_origin\"\n\tExportQueryDimensionPagePath         ExportQueryDimension = \"page_path\"\n\tExportQueryDimensionSubtitleLanguage ExportQueryDimension = \"subtitle_language\"\n\tExportQueryDimensionPlaybackRate     ExportQueryDimension = \"playback_rate\"\n\tExportQueryDimensionDeliveryFormat   ExportQueryDimension = \"delivery_format\"\n\tExportQueryDimensionCustomKeys       ExportQueryDimension = \"custom_keys\"\n)\n```\n\n```go\ntype ExportQueryEventName string\n```\n\n```go\nconst (\n\tExportQueryEventNameChunkifyVideoViewStarted          ExportQueryEventName = \"chunkify.video.view_started\"\n\tExportQueryEventNameChunkifyVideoViewSnapshot         ExportQueryEventName = \"chunkify.video.view_snapshot\"\n\tExportQueryEventNameChunkifyVideoPlaybackError        ExportQueryEventName = \"chunkify.video.playback_error\"\n\tExportQueryEventNameChunkifyVideoViewEnded            ExportQueryEventName = \"chunkify.video.view_ended\"\n\tExportQueryEventNameChunkifyVideoPlaybackStateChanged ExportQueryEventName = \"chunkify.video.playback_state_changed\"\n\tExportQueryEventNameChunkifyVideoRenditionChanged     ExportQueryEventName = \"chunkify.video.rendition_changed\"\n\tExportQueryEventNameChunkifyVideoSeekCompleted        ExportQueryEventName = \"chunkify.video.seek_completed\"\n\tExportQueryEventNameChunkifyVideoSubtitleChanged      ExportQueryEventName = \"chunkify.video.subtitle_changed\"\n\tExportQueryEventNameChunkifyVideoPlaybackRateChanged  ExportQueryEventName = \"chunkify.video.playback_rate_changed\"\n)\n```\n\n```go\ntype ExportQueryGroupBy string\n```\n\n```go\nconst (\n\tExportQueryGroupByBrowserName      ExportQueryGroupBy = \"browser_name\"\n\tExportQueryGroupByOsName           ExportQueryGroupBy = \"os_name\"\n\tExportQueryGroupByDeviceType       ExportQueryGroupBy = \"device_type\"\n\tExportQueryGroupByContinent        ExportQueryGroupBy = \"continent\"\n\tExportQueryGroupByCountry          ExportQueryGroupBy = \"country\"\n\tExportQueryGroupByCity             ExportQueryGroupBy = \"city\"\n\tExportQueryGroupByPageOrigin       ExportQueryGroupBy = \"page_origin\"\n\tExportQueryGroupByPagePath         ExportQueryGroupBy = \"page_path\"\n\tExportQueryGroupBySubtitleLanguage ExportQueryGroupBy = \"subtitle_language\"\n\tExportQueryGroupByPlaybackRate     ExportQueryGroupBy = \"playback_rate\"\n\tExportQueryGroupByDeliveryFormat   ExportQueryGroupBy = \"delivery_format\"\n\tExportQueryGroupByVideoTitle       ExportQueryGroupBy = \"video_title\"\n\tExportQueryGroupByUserID           ExportQueryGroupBy = \"user_id\"\n)\n```\n\n```go\ntype ExportQueryInterval string\n```\n\n```go\nconst (\n\tExportQueryIntervalHour ExportQueryInterval = \"hour\"\n\tExportQueryIntervalDay  ExportQueryInterval = \"day\"\n)\n```\n\n```go\ntype ExportQueryKind string\n```\n\n```go\nconst (\n\tExportQueryKindSummary    ExportQueryKind = \"summary\"\n\tExportQueryKindQuality    ExportQueryKind = \"quality\"\n\tExportQueryKindEngagement ExportQueryKind = \"engagement\"\n)\n```\n\n```go\ntype ExportQueryOrder string\n```\n\n```go\nconst (\n\tExportQueryOrderAsc  ExportQueryOrder = \"asc\"\n\tExportQueryOrderDesc ExportQueryOrder = \"desc\"\n)\n```\n\n```go\ntype ExportQueryParam struct {\n\tBrowserName   param.Opt[string]    `json:\"browser_name,omitzero\"`\n\tCity          param.Opt[string]    `json:\"city,omitzero\"`\n\tCountry       param.Opt[string]    `json:\"country,omitzero\"`\n\tFrom          param.Opt[time.Time] `json:\"from,omitzero\" format:\"date-time\"`\n\tHasFatalError param.Opt[bool]      `json:\"has_fatal_error,omitzero\"`\n\tOsName        param.Opt[string]    `json:\"os_name,omitzero\"`\n\t// Exact, case-sensitive page_origin from the first retained view start, or each\n\t// event for raw-event exports.\n\tPageOrigin param.Opt[string] `json:\"page_origin,omitzero\"`\n\t// Exact, case-sensitive page_path from the first retained view start, or each\n\t// event for raw-event exports.\n\tPagePath         param.Opt[string]    `json:\"page_path,omitzero\"`\n\tPlaybackRate     param.Opt[string]    `json:\"playback_rate,omitzero\"`\n\tSubtitleLanguage param.Opt[string]    `json:\"subtitle_language,omitzero\"`\n\tTo               param.Opt[time.Time] `json:\"to,omitzero\" format:\"date-time\"`\n\tUserID           param.Opt[string]    `json:\"user_id,omitzero\"`\n\tVideoID          param.Opt[string]    `json:\"video_id,omitzero\"`\n\tVideoTitle       param.Opt[string]    `json:\"video_title,omitzero\"`\n\tViewID           param.Opt[string]    `json:\"view_id,omitzero\"`\n\tViewerID         param.Opt[string]    `json:\"viewer_id,omitzero\"`\n\t// Any of \"AF\", \"AN\", \"AS\", \"EU\", \"NA\", \"OC\", \"SA\".\n\tContinent ExportQueryContinent `json:\"continent,omitzero\"`\n\t// Any of \"hls\", \"file\".\n\tDeliveryFormat ExportQueryDeliveryFormat `json:\"delivery_format,omitzero\"`\n\t// Any of \"desktop\", \"mobile\", \"tablet\", \"unknown\".\n\tDeviceType ExportQueryDeviceType `json:\"device_type,omitzero\"`\n\t// One custom dimension's values, such as custom.plan.\n\tDimension ExportQueryDimension `json:\"dimension,omitzero\"`\n\t// Any of \"chunkify.video.view_started\", \"chunkify.video.view_snapshot\",\n\t// \"chunkify.video.playback_error\", \"chunkify.video.view_ended\",\n\t// \"chunkify.video.playback_state_changed\", \"chunkify.video.rendition_changed\",\n\t// \"chunkify.video.seek_completed\", \"chunkify.video.subtitle_changed\",\n\t// \"chunkify.video.playback_rate_changed\".\n\tEventName ExportQueryEventName `json:\"event_name,omitzero\"`\n\t// A custom dimension key, such as custom.plan.\n\tGroupBy ExportQueryGroupBy `json:\"group_by,omitzero\"`\n\t// Any of \"hour\", \"day\".\n\tInterval ExportQueryInterval `json:\"interval,omitzero\"`\n\t// Any of \"summary\", \"quality\", \"engagement\".\n\tKind ExportQueryKind `json:\"kind,omitzero\"`\n\t// Any of \"asc\", \"desc\".\n\tOrder ExportQueryOrder `json:\"order,omitzero\"`\n\t// Videos or views only. Use a sort field supported by the selected resource.\n\t// Defaults to video_id for videos and started_at for views.\n\t//\n\t// Any of \"video_id\", \"views\", \"unique_viewers\", \"total_playing_time_ms\",\n\t// \"playback_score\", \"started_at\", \"view_id\", \"device_type\", \"playing_time_ms\",\n\t// \"startup_time_ms\", \"rebuffer_duration_ms\".\n\tSortBy ExportQuerySortBy `json:\"sort_by,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ExportQueryParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ExportQueryParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ExportQuerySortBy string\n```\nVideos or views only. Use a sort field supported by the selected resource. Defaults to video\\_id for videos and started\\_at for views.\n\n```go\nconst (\n\tExportQuerySortByVideoID            ExportQuerySortBy = \"video_id\"\n\tExportQuerySortByViews              ExportQuerySortBy = \"views\"\n\tExportQuerySortByUniqueViewers      ExportQuerySortBy = \"unique_viewers\"\n\tExportQuerySortByTotalPlayingTimeMs ExportQuerySortBy = \"total_playing_time_ms\"\n\tExportQuerySortByPlaybackScore      ExportQuerySortBy = \"playback_score\"\n\tExportQuerySortByStartedAt          ExportQuerySortBy = \"started_at\"\n\tExportQuerySortByViewID             ExportQuerySortBy = \"view_id\"\n\tExportQuerySortByDeviceType         ExportQuerySortBy = \"device_type\"\n\tExportQuerySortByPlayingTimeMs      ExportQuerySortBy = \"playing_time_ms\"\n\tExportQuerySortByStartupTimeMs      ExportQuerySortBy = \"startup_time_ms\"\n\tExportQuerySortByRebufferDurationMs ExportQuerySortBy = \"rebuffer_duration_ms\"\n)\n```\n\n```go\ntype ExportService struct {\n\tOptions []option.RequestOption\n}\n```\nExportService contains methods and other services that help with interacting with the Chunkify Analytics 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 [NewExportService](#NewExportService) method instead.\n\n```go\nfunc NewExportService(opts ...option.RequestOption) (r ExportService)\n```\nNewExportService 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 *ExportService) Download(ctx context.Context, token string, opts ...option.RequestOption) (res *string, err error)\n```\nThe token authorizes only its saved project and query. Requires no Authorization header and accepts no query parameters. Generate CSV on demand from one read snapshot on a dedicated connection; stream with bounded application buffers and backpressure. Dataset is selected when the link is opened. Rows are not capped by query pagination. Nested metric columns use slash-separated paths. Events have documented scalar columns and flat context.\\\\\\* columns. Custom attributes, nested arrays and historical OTLP payloads are excluded. CSV cells never contain JSON objects or arrays. Nulls are empty cells; spreadsheet-formula strings are prefixed with an apostrophe. Interrupted or failed downloads terminate the stream; retry the full download. No files are retained. Defaults: 2 download starts/minute per project with burst capacity 2, one active CSV generation per project and four server-wide. Limits are shared across keys and links. Excess requests receive 429 with Retry-After instead of queueing. Override limits in config.toml \\[rate\\_limits]. Link expiry is checked before starting, not during an active download. S3 retention/deletion can remove source objects during a download.\n\nThe download URL contains the credential needed for this request. Treat it as a secret until it expires. You can call this method without configuring an API key on the client.\n\n```go\nfunc (r *ExportService) ListColumns(ctx context.Context, query ExportListColumnsParams, opts ...option.RequestOption) (res *ExportColumns, err error)\n```\nDiscover column names before creating an export. Requires a project private key; read-only keys are allowed. kind applies only to timeseries. group\\_by applies to summary, quality and engagement. Date ranges and filters do not change the columns.\n\n```go\nfunc (r *ExportService) New(ctx context.Context, body ExportNewParams, opts ...option.RequestOption) (res *Export, err error)\n```\nCreate a scoped 256-bit random download token for all matching rows. Requires a project private key; read-only keys are allowed. The link expires after 30 minutes and is invalidated by issuer-key rotation/revocation, project deletion or collector restart. No CSV is generated or retained at creation. limit/cursor are rejected. Existing query endpoints continue returning JSON. Event CSV files contain documented scalar event fields and flat context.\\\\\\* columns. Custom attributes, nested arrays and historical OTLP payloads are excluded. CSV cells never contain JSON objects or arrays; use GET /v1/events for original payloads.\n\n```go\ntype Health struct {\n\tStatus constant.Ok `json:\"status\" default:\"ok\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\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 Health) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *Health) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype HealthService struct {\n\tOptions []option.RequestOption\n}\n```\nHealth and private ingestion status.\n\nHealthService contains methods and other services that help with interacting with the Chunkify Analytics 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 [NewHealthService](#NewHealthService) method instead.\n\n```go\nfunc NewHealthService(opts ...option.RequestOption) (r HealthService)\n```\nNewHealthService 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 *HealthService) Get(ctx context.Context, opts ...option.RequestOption) (res *Health, err error)\n```\nCheck whether the service is ready.\n\nNo API key is required. This checks collector readiness and does not return project analytics.\n\n```go\ntype MetricCountRatio = shared.MetricCountRatio\n```\nView count and fraction of its documented denominator. The ratio is null when that denominator is zero.\n\nThis is an alias to an internal type.\n\n```go\ntype Metrics struct {\n\tTotalPlayingTimeMs float64 `json:\"total_playing_time_ms\" api:\"required\"`\n\tUniqueViewers      int64   `json:\"unique_viewers\" api:\"required\"`\n\tViews              int64   `json:\"views\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tTotalPlayingTimeMs respjson.Field\n\t\tUniqueViewers      respjson.Field\n\t\tViews              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 Metrics) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *Metrics) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype MetricsBreakdownPage struct {\n\t// A custom dimension key, such as custom.plan.\n\tGroupBy    MetricsBreakdownPageGroupBy `json:\"group_by\" api:\"required\"`\n\tGroups     []MetricsBreakdownPageGroup `json:\"groups\" api:\"required\"`\n\tNextCursor string                      `json:\"next_cursor\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tGroupBy     respjson.Field\n\t\tGroups      respjson.Field\n\t\tNextCursor  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 MetricsBreakdownPage) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *MetricsBreakdownPage) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype MetricsBreakdownPageGroup struct {\n\tData  Metrics `json:\"data\" api:\"required\"`\n\tValue string  `json:\"value\" 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\tValue       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 MetricsBreakdownPageGroup) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *MetricsBreakdownPageGroup) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype MetricsBreakdownPageGroupBy string\n```\n\n```go\nconst (\n\tMetricsBreakdownPageGroupByBrowserName      MetricsBreakdownPageGroupBy = \"browser_name\"\n\tMetricsBreakdownPageGroupByOsName           MetricsBreakdownPageGroupBy = \"os_name\"\n\tMetricsBreakdownPageGroupByDeviceType       MetricsBreakdownPageGroupBy = \"device_type\"\n\tMetricsBreakdownPageGroupByContinent        MetricsBreakdownPageGroupBy = \"continent\"\n\tMetricsBreakdownPageGroupByCountry          MetricsBreakdownPageGroupBy = \"country\"\n\tMetricsBreakdownPageGroupByCity             MetricsBreakdownPageGroupBy = \"city\"\n\tMetricsBreakdownPageGroupByPageOrigin       MetricsBreakdownPageGroupBy = \"page_origin\"\n\tMetricsBreakdownPageGroupByPagePath         MetricsBreakdownPageGroupBy = \"page_path\"\n\tMetricsBreakdownPageGroupBySubtitleLanguage MetricsBreakdownPageGroupBy = \"subtitle_language\"\n\tMetricsBreakdownPageGroupByPlaybackRate     MetricsBreakdownPageGroupBy = \"playback_rate\"\n\tMetricsBreakdownPageGroupByDeliveryFormat   MetricsBreakdownPageGroupBy = \"delivery_format\"\n\tMetricsBreakdownPageGroupByVideoTitle       MetricsBreakdownPageGroupBy = \"video_title\"\n\tMetricsBreakdownPageGroupByUserID           MetricsBreakdownPageGroupBy = \"user_id\"\n)\n```\n\n```go\ntype MetricsResponseUnion struct {\n\t// This field is from variant [Metrics].\n\tTotalPlayingTimeMs float64 `json:\"total_playing_time_ms\"`\n\t// This field is from variant [Metrics].\n\tUniqueViewers int64 `json:\"unique_viewers\"`\n\t// This field is from variant [Metrics].\n\tViews int64 `json:\"views\"`\n\t// This field is from variant [MetricsBreakdownPage].\n\tGroupBy MetricsBreakdownPageGroupBy `json:\"group_by\"`\n\t// This field is from variant [MetricsBreakdownPage].\n\tGroups []MetricsBreakdownPageGroup `json:\"groups\"`\n\t// This field is from variant [MetricsBreakdownPage].\n\tNextCursor string `json:\"next_cursor\"`\n\tJSON       struct {\n\t\tTotalPlayingTimeMs respjson.Field\n\t\tUniqueViewers      respjson.Field\n\t\tViews              respjson.Field\n\t\tGroupBy            respjson.Field\n\t\tGroups             respjson.Field\n\t\tNextCursor         respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nMetricsResponseUnion contains all possible properties and values from [Metrics](#Metrics), [MetricsBreakdownPage](#MetricsBreakdownPage).\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\n```go\nfunc (u MetricsResponseUnion) AsMetrics() (v Metrics)\n```\n\n```go\nfunc (u MetricsResponseUnion) AsMetricsBreakdownPage() (v MetricsBreakdownPage)\n```\n\n```go\nfunc (u MetricsResponseUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *MetricsResponseUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype NativeCreated struct {\n\tAccepted  bool `json:\"accepted\" api:\"required\"`\n\tDuplicate bool `json:\"duplicate\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAccepted    respjson.Field\n\t\tDuplicate   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 NativeCreated) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *NativeCreated) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype NativeDuplicate struct {\n\tAccepted  bool `json:\"accepted\" api:\"required\"`\n\tDuplicate bool `json:\"duplicate\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAccepted    respjson.Field\n\t\tDuplicate   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 NativeDuplicate) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *NativeDuplicate) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OtlpAnyValue = shared.OtlpAnyValue\n```\nStandard OTLP AnyValue in a preserved resource, scope or body. This collector does not decode these fields into the event.\n\nThis is an alias to an internal type.\n\n```go\ntype OtlpAnyValueArrayValue = shared.OtlpAnyValueArrayValue\n```\nThis is an alias to an internal type.\n\n```go\ntype OtlpAnyValueIntValueUnion = shared.OtlpAnyValueIntValueUnion\n```\nSigned int64. Strings avoid JavaScript precision loss.\n\nThis is an alias to an internal type.\n\n```go\ntype OtlpAnyValueKvlistValue = shared.OtlpAnyValueKvlistValue\n```\nThis is an alias to an internal type.\n\n```go\ntype OtlpAttribute = shared.OtlpAttribute\n```\nAn absent or null key decodes to the empty string; duplicate decoded keys reject the request. An absent value decodes to null.\n\nThis is an alias to an internal type.\n\n```go\ntype OtlpAttributeValueObject = shared.OtlpAttributeValueObject\n```\nThis is an alias to an internal type.\n\n```go\ntype OtlpAttributeValueObject2 = shared.OtlpAttributeValueObject2\n```\nThis is an alias to an internal type.\n\n```go\ntype OtlpAttributeValueObject3 = shared.OtlpAttributeValueObject3\n```\nThis is an alias to an internal type.\n\n```go\ntype OtlpAttributeValueObject4 = shared.OtlpAttributeValueObject4\n```\nThis is an alias to an internal type.\n\n```go\ntype OtlpAttributeValueObject5 = shared.OtlpAttributeValueObject5\n```\nThis is an alias to an internal type.\n\n```go\ntype OtlpAttributeValueObject6 = shared.OtlpAttributeValueObject6\n```\nThis is an alias to an internal type.\n\n```go\ntype OtlpAttributeValueObject7 = shared.OtlpAttributeValueObject7\n```\nThis is an alias to an internal type.\n\n```go\ntype OtlpAttributeValueUnion = shared.OtlpAttributeValueUnion\n```\nA typed log attribute. At most one value field can be set. Binary values are unsupported.\n\nThis is an alias to an internal type.\n\n```go\ntype OtlpContextAttribute = shared.OtlpContextAttribute\n```\nThis is an alias to an internal type.\n\n```go\ntype OtlpLogRecord = shared.OtlpLogRecord\n```\nA playback event in log attributes. Duplicate attributes and invalid event fields reject the request.\n\nThis is an alias to an internal type.\n\n```go\ntype OtlpResource = shared.OtlpResource\n```\nThis is an alias to an internal type.\n\n```go\ntype OtlpScope = shared.OtlpScope\n```\nThis is an alias to an internal type.\n\n```go\ntype PlaybackError struct {\n\tConnectorName            string  `json:\"connector_name\" api:\"required\"`\n\tConnectorVersion         string  `json:\"connector_version\" api:\"required\"`\n\tDeliveryHostname         string  `json:\"delivery_hostname\" api:\"required\"`\n\tDeliveryRequestCount     float64 `json:\"delivery_request_count\" api:\"required\"`\n\tDeliveryThroughputBps    float64 `json:\"delivery_throughput_bps\" api:\"required\"`\n\tDeliveryTransferredBytes float64 `json:\"delivery_transferred_bytes\" api:\"required\"`\n\tDroppedVideoFrames       float64 `json:\"dropped_video_frames\" api:\"required\"`\n\tEnvironment              string  `json:\"environment\" api:\"required\"`\n\t// Any of \"aborted\", \"network\", \"decode\", \"unsupported\", \"unknown\".\n\tErrorCategory          PlaybackErrorErrorCategory          `json:\"error_category\" api:\"required\"`\n\tErrorCode              PlaybackErrorErrorCodeUnion         `json:\"error_code\" api:\"required\"`\n\tErrorFatal             bool                                `json:\"error_fatal\" api:\"required\"`\n\tErrorPlayheadSeconds   float64                             `json:\"error_playhead_seconds\" api:\"required\"`\n\tEventID                string                              `json:\"event_id\" api:\"required\" format:\"uuid\"`\n\tEventName              constant.ChunkifyVideoPlaybackError `json:\"event_name\" default:\"chunkify.video.playback_error\"`\n\tFirstVideoFrameTimeMs  float64                             `json:\"first_video_frame_time_ms\" api:\"required\"`\n\tFurthestProgressRatio  float64                             `json:\"furthest_progress_ratio\" api:\"required\"`\n\tMaximumPlayheadSeconds float64                             `json:\"maximum_playhead_seconds\" api:\"required\"`\n\tMediaDurationSeconds   float64                             `json:\"media_duration_seconds\" api:\"required\"`\n\tMediaHeightPx          float64                             `json:\"media_height_px\" api:\"required\"`\n\tMediaWidthPx           float64                             `json:\"media_width_px\" api:\"required\"`\n\tOccurredAt             time.Time                           `json:\"occurred_at\" api:\"required\" format:\"date-time\"`\n\tPlayerHeightPx         float64                             `json:\"player_height_px\" api:\"required\"`\n\tPlayerName             string                              `json:\"player_name\" api:\"required\"`\n\tPlayerVersion          string                              `json:\"player_version\" api:\"required\"`\n\tPlayerWidthPx          float64                             `json:\"player_width_px\" api:\"required\"`\n\tPlayingTimeMs          float64                             `json:\"playing_time_ms\" api:\"required\"`\n\t// Any of \"ended\", \"destroyed\", \"source_changed\", \"page_exit\".\n\tReason               PlaybackErrorReason           `json:\"reason\" api:\"required\"`\n\tRebufferCount        float64                       `json:\"rebuffer_count\" api:\"required\"`\n\tRebufferDurationMs   float64                       `json:\"rebuffer_duration_ms\" api:\"required\"`\n\tRebufferRatio        float64                       `json:\"rebuffer_ratio\" api:\"required\"`\n\tRenditionPlayingTime []shared.RenditionPlayingTime `json:\"rendition_playing_time\" api:\"required\"`\n\tRenditionSwitchCount float64                       `json:\"rendition_switch_count\" api:\"required\"`\n\tSchemaVersion        float64                       `json:\"schema_version\" api:\"required\"`\n\t// Name of the SDK or integration that produced the event. Informational metadata,\n\t// preserved as received. Must contain at least one non-whitespace character.\n\tSDKName                     string  `json:\"sdk_name\" api:\"required\"`\n\tSDKVersion                  string  `json:\"sdk_version\" api:\"required\"`\n\tSeekCount                   float64 `json:\"seek_count\" api:\"required\"`\n\tSeekDurationMs              float64 `json:\"seek_duration_ms\" api:\"required\"`\n\tSelectedRenditionBitrateBps float64 `json:\"selected_rendition_bitrate_bps\" api:\"required\"`\n\tSelectedRenditionCodec      string  `json:\"selected_rendition_codec\" api:\"required\"`\n\tSelectedRenditionHeight     float64 `json:\"selected_rendition_height\" api:\"required\"`\n\tSelectedRenditionWidth      float64 `json:\"selected_rendition_width\" api:\"required\"`\n\tSequence                    int64   `json:\"sequence\" api:\"required\"`\n\t// Any of \"started\", \"failed_before_start\", \"ended_before_start\".\n\tStartupOutcome   PlaybackErrorStartupOutcome `json:\"startup_outcome\" api:\"required\"`\n\tStartupTimeMs    float64                     `json:\"startup_time_ms\" api:\"required\"`\n\tTotalVideoFrames float64                     `json:\"total_video_frames\" api:\"required\"`\n\tVideoID          string                      `json:\"video_id\" api:\"required\"`\n\tViewID           string                      `json:\"view_id\" api:\"required\" format:\"uuid\"`\n\t// Anonymous browser identifier generated by the Chunkify player SDK and stored in\n\t// the page's localStorage.\n\tViewerID string `json:\"viewer_id\" api:\"required\"`\n\t// Browser and device information. The Chunkify player sends every field, with null\n\t// for unavailable measurements. Other integrations may omit any field except\n\t// schema_version. Extra properties are preserved.\n\tBrowserContext shared.BrowserContext `json:\"browser_context\" api:\"nullable\"`\n\t// How the player receives the media: hls for an HLS stream, file for a single\n\t// media file such as an MP4 rendition; null when unknown. Optional: older SDKs\n\t// omit it. Reports read it from each view's first start. Unlike connector_name, it\n\t// does not depend on the playback engine: Safari's native HLS reports html-media.\n\t//\n\t// Any of \"hls\", \"file\".\n\tDeliveryFormat PlaybackErrorDeliveryFormat `json:\"delivery_format\" api:\"nullable\"`\n\t// Current playback rate, rounded to two decimals, such as 1, 1.5 or 2; from 0.01\n\t// to 16. Optional.\n\tPlaybackRate float64 `json:\"playback_rate\" api:\"nullable\"`\n\t// Cumulative playing time per playback rate for this attempt. At most 32 entries.\n\t// Optional.\n\tPlaybackRatePlayingTime []shared.PlaybackRatePlayingTime `json:\"playback_rate_playing_time\" api:\"nullable\"`\n\t// Cumulative played media ranges for this attempt, sorted and merged without\n\t// overlaps. Seeking, pauses and buffering are excluded. Missing or null means\n\t// unavailable; an empty array means measured but no section played. Replaying a\n\t// section does not add another range.\n\tPlayedRanges []shared.PlayedRange `json:\"played_ranges\" api:\"nullable\"`\n\t// Current media position at this event, not the maximum reached.\n\tPlayheadSeconds float64 `json:\"playhead_seconds\" api:\"nullable\"`\n\t// Language tag (BCP 47) of the showing subtitles or captions track; und when the\n\t// track declares no language; null when subtitles are off. Optional.\n\tSubtitleLanguage string `json:\"subtitle_language\" api:\"nullable\"`\n\t// Cumulative playing time per subtitle language for this attempt, null language\n\t// meaning subtitles off. At most 32 entries. Optional.\n\tSubtitlePlayingTime []shared.SubtitlePlayingTime `json:\"subtitle_playing_time\" api:\"nullable\"`\n\t// Optional integrator-supplied user ID, used to link views to the integrator's own\n\t// users.\n\tUserID string `json:\"user_id\" api:\"nullable\"`\n\t// Optional human-readable video title for reports.\n\tVideoTitle string `json:\"video_title\" api:\"nullable\"`\n\t// Tab visibility when the event was recorded. Hidden does not imply paused\n\t// playback or identify the cause of a pause. Missing on older events; null when\n\t// unavailable.\n\t//\n\t// Any of \"visible\", \"hidden\".\n\tVisibilityState PlaybackErrorVisibilityState `json:\"visibility_state\" api:\"nullable\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tConnectorName               respjson.Field\n\t\tConnectorVersion            respjson.Field\n\t\tDeliveryHostname            respjson.Field\n\t\tDeliveryRequestCount        respjson.Field\n\t\tDeliveryThroughputBps       respjson.Field\n\t\tDeliveryTransferredBytes    respjson.Field\n\t\tDroppedVideoFrames          respjson.Field\n\t\tEnvironment                 respjson.Field\n\t\tErrorCategory               respjson.Field\n\t\tErrorCode                   respjson.Field\n\t\tErrorFatal                  respjson.Field\n\t\tErrorPlayheadSeconds        respjson.Field\n\t\tEventID                     respjson.Field\n\t\tEventName                   respjson.Field\n\t\tFirstVideoFrameTimeMs       respjson.Field\n\t\tFurthestProgressRatio       respjson.Field\n\t\tMaximumPlayheadSeconds      respjson.Field\n\t\tMediaDurationSeconds        respjson.Field\n\t\tMediaHeightPx               respjson.Field\n\t\tMediaWidthPx                respjson.Field\n\t\tOccurredAt                  respjson.Field\n\t\tPlayerHeightPx              respjson.Field\n\t\tPlayerName                  respjson.Field\n\t\tPlayerVersion               respjson.Field\n\t\tPlayerWidthPx               respjson.Field\n\t\tPlayingTimeMs               respjson.Field\n\t\tReason                      respjson.Field\n\t\tRebufferCount               respjson.Field\n\t\tRebufferDurationMs          respjson.Field\n\t\tRebufferRatio               respjson.Field\n\t\tRenditionPlayingTime        respjson.Field\n\t\tRenditionSwitchCount        respjson.Field\n\t\tSchemaVersion               respjson.Field\n\t\tSDKName                     respjson.Field\n\t\tSDKVersion                  respjson.Field\n\t\tSeekCount                   respjson.Field\n\t\tSeekDurationMs              respjson.Field\n\t\tSelectedRenditionBitrateBps respjson.Field\n\t\tSelectedRenditionCodec      respjson.Field\n\t\tSelectedRenditionHeight     respjson.Field\n\t\tSelectedRenditionWidth      respjson.Field\n\t\tSequence                    respjson.Field\n\t\tStartupOutcome              respjson.Field\n\t\tStartupTimeMs               respjson.Field\n\t\tTotalVideoFrames            respjson.Field\n\t\tVideoID                     respjson.Field\n\t\tViewID                      respjson.Field\n\t\tViewerID                    respjson.Field\n\t\tBrowserContext              respjson.Field\n\t\tDeliveryFormat              respjson.Field\n\t\tPlaybackRate                respjson.Field\n\t\tPlaybackRatePlayingTime     respjson.Field\n\t\tPlayedRanges                respjson.Field\n\t\tPlayheadSeconds             respjson.Field\n\t\tSubtitleLanguage            respjson.Field\n\t\tSubtitlePlayingTime         respjson.Field\n\t\tUserID                      respjson.Field\n\t\tVideoTitle                  respjson.Field\n\t\tVisibilityState             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 PlaybackError) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r PlaybackError) ToParam() PlaybackErrorParam\n```\nToParam converts this PlaybackError to a PlaybackErrorParam.\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 PlaybackErrorParam.Overrides()\n\n```go\nfunc (r *PlaybackError) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype PlaybackErrorDeliveryFormat string\n```\nHow the player receives the media: hls for an HLS stream, file for a single media file such as an MP4 rendition; null when unknown. Optional: older SDKs omit it. Reports read it from each view's first start. Unlike connector\\_name, it does not depend on the playback engine: Safari's native HLS reports html-media.\n\n```go\nconst (\n\tPlaybackErrorDeliveryFormatHls  PlaybackErrorDeliveryFormat = \"hls\"\n\tPlaybackErrorDeliveryFormatFile PlaybackErrorDeliveryFormat = \"file\"\n)\n```\n\n```go\ntype PlaybackErrorErrorCategory string\n```\n\n```go\nconst (\n\tPlaybackErrorErrorCategoryAborted     PlaybackErrorErrorCategory = \"aborted\"\n\tPlaybackErrorErrorCategoryNetwork     PlaybackErrorErrorCategory = \"network\"\n\tPlaybackErrorErrorCategoryDecode      PlaybackErrorErrorCategory = \"decode\"\n\tPlaybackErrorErrorCategoryUnsupported PlaybackErrorErrorCategory = \"unsupported\"\n\tPlaybackErrorErrorCategoryUnknown     PlaybackErrorErrorCategory = \"unknown\"\n)\n```\n\n```go\ntype PlaybackErrorErrorCodeUnion struct {\n\t// This field will be present if the value is a [string] instead of an object.\n\tOfString string `json:\",inline\"`\n\t// This field will be present if the value is a [float64] instead of an object.\n\tOfFloat float64 `json:\",inline\"`\n\tJSON    struct {\n\t\tOfString respjson.Field\n\t\tOfFloat  respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nPlaybackErrorErrorCodeUnion contains all possible properties and values from \\[string], \\[float64].\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\nIf the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat]\n\n```go\nfunc (u PlaybackErrorErrorCodeUnion) AsFloat() (v float64)\n```\n\n```go\nfunc (u PlaybackErrorErrorCodeUnion) AsString() (v string)\n```\n\n```go\nfunc (u PlaybackErrorErrorCodeUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *PlaybackErrorErrorCodeUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype PlaybackErrorErrorCodeUnionParam struct {\n\tOfString param.Opt[string]  `json:\",omitzero,inline\"`\n\tOfFloat  param.Opt[float64] `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-analytics-go/packages/param#IsOmitted) to confirm if a field is set.\n\n```go\nfunc (u PlaybackErrorErrorCodeUnionParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (u *PlaybackErrorErrorCodeUnionParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype PlaybackErrorParam struct {\n\tConnectorVersion         param.Opt[string]  `json:\"connector_version,omitzero\" api:\"required\"`\n\tDeliveryHostname         param.Opt[string]  `json:\"delivery_hostname,omitzero\" api:\"required\"`\n\tDeliveryRequestCount     param.Opt[float64] `json:\"delivery_request_count,omitzero\" api:\"required\"`\n\tDeliveryThroughputBps    param.Opt[float64] `json:\"delivery_throughput_bps,omitzero\" api:\"required\"`\n\tDeliveryTransferredBytes param.Opt[float64] `json:\"delivery_transferred_bytes,omitzero\" api:\"required\"`\n\tDroppedVideoFrames       param.Opt[float64] `json:\"dropped_video_frames,omitzero\" api:\"required\"`\n\tEnvironment              param.Opt[string]  `json:\"environment,omitzero\" api:\"required\"`\n\t// Any of \"aborted\", \"network\", \"decode\", \"unsupported\", \"unknown\".\n\tErrorCategory         param.Opt[PlaybackErrorErrorCategory] `json:\"error_category,omitzero\" api:\"required\"`\n\tErrorFatal            param.Opt[bool]                       `json:\"error_fatal,omitzero\" api:\"required\"`\n\tErrorPlayheadSeconds  param.Opt[float64]                    `json:\"error_playhead_seconds,omitzero\" api:\"required\"`\n\tFirstVideoFrameTimeMs param.Opt[float64]                    `json:\"first_video_frame_time_ms,omitzero\" api:\"required\"`\n\tFurthestProgressRatio param.Opt[float64]                    `json:\"furthest_progress_ratio,omitzero\" api:\"required\"`\n\tMediaDurationSeconds  param.Opt[float64]                    `json:\"media_duration_seconds,omitzero\" api:\"required\"`\n\tMediaHeightPx         param.Opt[float64]                    `json:\"media_height_px,omitzero\" api:\"required\"`\n\tMediaWidthPx          param.Opt[float64]                    `json:\"media_width_px,omitzero\" api:\"required\"`\n\tPlayerHeightPx        param.Opt[float64]                    `json:\"player_height_px,omitzero\" api:\"required\"`\n\tPlayerName            param.Opt[string]                     `json:\"player_name,omitzero\" api:\"required\"`\n\tPlayerVersion         param.Opt[string]                     `json:\"player_version,omitzero\" api:\"required\"`\n\tPlayerWidthPx         param.Opt[float64]                    `json:\"player_width_px,omitzero\" api:\"required\"`\n\t// Any of \"ended\", \"destroyed\", \"source_changed\", \"page_exit\".\n\tReason                      param.Opt[PlaybackErrorReason] `json:\"reason,omitzero\" api:\"required\"`\n\tRebufferRatio               param.Opt[float64]             `json:\"rebuffer_ratio,omitzero\" api:\"required\"`\n\tRenditionSwitchCount        param.Opt[float64]             `json:\"rendition_switch_count,omitzero\" api:\"required\"`\n\tSelectedRenditionBitrateBps param.Opt[float64]             `json:\"selected_rendition_bitrate_bps,omitzero\" api:\"required\"`\n\tSelectedRenditionCodec      param.Opt[string]              `json:\"selected_rendition_codec,omitzero\" api:\"required\"`\n\tSelectedRenditionHeight     param.Opt[float64]             `json:\"selected_rendition_height,omitzero\" api:\"required\"`\n\tSelectedRenditionWidth      param.Opt[float64]             `json:\"selected_rendition_width,omitzero\" api:\"required\"`\n\t// Any of \"started\", \"failed_before_start\", \"ended_before_start\".\n\tStartupOutcome   param.Opt[PlaybackErrorStartupOutcome] `json:\"startup_outcome,omitzero\" api:\"required\"`\n\tStartupTimeMs    param.Opt[float64]                     `json:\"startup_time_ms,omitzero\" api:\"required\"`\n\tTotalVideoFrames param.Opt[float64]                     `json:\"total_video_frames,omitzero\" api:\"required\"`\n\t// Anonymous browser identifier generated by the Chunkify player SDK and stored in\n\t// the page's localStorage.\n\tViewerID               param.Opt[string]                  `json:\"viewer_id,omitzero\" api:\"required\"`\n\tErrorCode              PlaybackErrorErrorCodeUnionParam   `json:\"error_code,omitzero\" api:\"required\"`\n\tRenditionPlayingTime   []shared.RenditionPlayingTimeParam `json:\"rendition_playing_time,omitzero\" api:\"required\"`\n\tConnectorName          string                             `json:\"connector_name\" api:\"required\"`\n\tEventID                string                             `json:\"event_id\" api:\"required\" format:\"uuid\"`\n\tMaximumPlayheadSeconds float64                            `json:\"maximum_playhead_seconds\" api:\"required\"`\n\tOccurredAt             time.Time                          `json:\"occurred_at\" api:\"required\" format:\"date-time\"`\n\tPlayingTimeMs          float64                            `json:\"playing_time_ms\" api:\"required\"`\n\tRebufferCount          float64                            `json:\"rebuffer_count\" api:\"required\"`\n\tRebufferDurationMs     float64                            `json:\"rebuffer_duration_ms\" api:\"required\"`\n\t// Name of the SDK or integration that produced the event. Informational metadata,\n\t// preserved as received. Must contain at least one non-whitespace character.\n\tSDKName        string  `json:\"sdk_name\" api:\"required\"`\n\tSDKVersion     string  `json:\"sdk_version\" api:\"required\"`\n\tSeekCount      float64 `json:\"seek_count\" api:\"required\"`\n\tSeekDurationMs float64 `json:\"seek_duration_ms\" api:\"required\"`\n\tSequence       int64   `json:\"sequence\" api:\"required\"`\n\tVideoID        string  `json:\"video_id\" api:\"required\"`\n\tViewID         string  `json:\"view_id\" api:\"required\" format:\"uuid\"`\n\t// How the player receives the media: hls for an HLS stream, file for a single\n\t// media file such as an MP4 rendition; null when unknown. Optional: older SDKs\n\t// omit it. Reports read it from each view's first start. Unlike connector_name, it\n\t// does not depend on the playback engine: Safari's native HLS reports html-media.\n\t//\n\t// Any of \"hls\", \"file\".\n\tDeliveryFormat param.Opt[PlaybackErrorDeliveryFormat] `json:\"delivery_format,omitzero\"`\n\t// Current playback rate, rounded to two decimals, such as 1, 1.5 or 2; from 0.01\n\t// to 16. Optional.\n\tPlaybackRate param.Opt[float64] `json:\"playback_rate,omitzero\"`\n\t// Current media position at this event, not the maximum reached.\n\tPlayheadSeconds param.Opt[float64] `json:\"playhead_seconds,omitzero\"`\n\t// Language tag (BCP 47) of the showing subtitles or captions track; und when the\n\t// track declares no language; null when subtitles are off. Optional.\n\tSubtitleLanguage param.Opt[string] `json:\"subtitle_language,omitzero\"`\n\t// Optional integrator-supplied user ID, used to link views to the integrator's own\n\t// users.\n\tUserID param.Opt[string] `json:\"user_id,omitzero\"`\n\t// Optional human-readable video title for reports.\n\tVideoTitle param.Opt[string] `json:\"video_title,omitzero\"`\n\t// Tab visibility when the event was recorded. Hidden does not imply paused\n\t// playback or identify the cause of a pause. Missing on older events; null when\n\t// unavailable.\n\t//\n\t// Any of \"visible\", \"hidden\".\n\tVisibilityState param.Opt[PlaybackErrorVisibilityState] `json:\"visibility_state,omitzero\"`\n\t// Cumulative playing time per playback rate for this attempt. At most 32 entries.\n\t// Optional.\n\tPlaybackRatePlayingTime []shared.PlaybackRatePlayingTimeParam `json:\"playback_rate_playing_time,omitzero\"`\n\t// Cumulative played media ranges for this attempt, sorted and merged without\n\t// overlaps. Seeking, pauses and buffering are excluded. Missing or null means\n\t// unavailable; an empty array means measured but no section played. Replaying a\n\t// section does not add another range.\n\tPlayedRanges []shared.PlayedRangeParam `json:\"played_ranges,omitzero\"`\n\t// Cumulative playing time per subtitle language for this attempt, null language\n\t// meaning subtitles off. At most 32 entries. Optional.\n\tSubtitlePlayingTime []shared.SubtitlePlayingTimeParam `json:\"subtitle_playing_time,omitzero\"`\n\t// Browser and device information. The Chunkify player sends every field, with null\n\t// for unavailable measurements. Other integrations may omit any field except\n\t// schema_version. Extra properties are preserved.\n\tBrowserContext shared.BrowserContextParam `json:\"browser_context,omitzero\"`\n\t// This field can be elided, and will marshal its zero value as\n\t// \"chunkify.video.playback_error\".\n\tEventName constant.ChunkifyVideoPlaybackError `json:\"event_name\" default:\"chunkify.video.playback_error\"`\n\t// This field can be elided, and will marshal its zero value as 1.\n\tSchemaVersion float64 `json:\"schema_version,omitzero\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nThe properties ConnectorName, ConnectorVersion, DeliveryHostname, DeliveryRequestCount, DeliveryThroughputBps, DeliveryTransferredBytes, DroppedVideoFrames, Environment, ErrorCategory, ErrorCode, ErrorFatal, ErrorPlayheadSeconds, EventID, EventName, FirstVideoFrameTimeMs, FurthestProgressRatio, MaximumPlayheadSeconds, MediaDurationSeconds, MediaHeightPx, MediaWidthPx, OccurredAt, PlayerHeightPx, PlayerName, PlayerVersion, PlayerWidthPx, PlayingTimeMs, Reason, RebufferCount, RebufferDurationMs, RebufferRatio, RenditionPlayingTime, RenditionSwitchCount, SchemaVersion, SDKName, SDKVersion, SeekCount, SeekDurationMs, SelectedRenditionBitrateBps, SelectedRenditionCodec, SelectedRenditionHeight, SelectedRenditionWidth, Sequence, StartupOutcome, StartupTimeMs, TotalVideoFrames, VideoID, ViewID, ViewerID are required.\n\n```go\nfunc (r PlaybackErrorParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *PlaybackErrorParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype PlaybackErrorReason string\n```\n\n```go\nconst (\n\tPlaybackErrorReasonEnded         PlaybackErrorReason = \"ended\"\n\tPlaybackErrorReasonDestroyed     PlaybackErrorReason = \"destroyed\"\n\tPlaybackErrorReasonSourceChanged PlaybackErrorReason = \"source_changed\"\n\tPlaybackErrorReasonPageExit      PlaybackErrorReason = \"page_exit\"\n)\n```\n\n```go\ntype PlaybackErrorStartupOutcome string\n```\n\n```go\nconst (\n\tPlaybackErrorStartupOutcomeStarted           PlaybackErrorStartupOutcome = \"started\"\n\tPlaybackErrorStartupOutcomeFailedBeforeStart PlaybackErrorStartupOutcome = \"failed_before_start\"\n\tPlaybackErrorStartupOutcomeEndedBeforeStart  PlaybackErrorStartupOutcome = \"ended_before_start\"\n)\n```\n\n```go\ntype PlaybackErrorVisibilityState string\n```\nTab visibility when the event was recorded. Hidden does not imply paused playback or identify the cause of a pause. Missing on older events; null when unavailable.\n\n```go\nconst (\n\tPlaybackErrorVisibilityStateVisible PlaybackErrorVisibilityState = \"visible\"\n\tPlaybackErrorVisibilityStateHidden  PlaybackErrorVisibilityState = \"hidden\"\n)\n```\n\n```go\ntype PlaybackRateChanged struct {\n\tConnectorName    string `json:\"connector_name\" api:\"required\"`\n\tConnectorVersion string `json:\"connector_version\" api:\"required\"`\n\tDeliveryHostname string `json:\"delivery_hostname\" api:\"required\"`\n\tEnvironment      string `json:\"environment\" api:\"required\"`\n\t// Any of \"aborted\", \"network\", \"decode\", \"unsupported\", \"unknown\".\n\tErrorCategory        PlaybackRateChangedErrorCategory          `json:\"error_category\" api:\"required\"`\n\tErrorCode            PlaybackRateChangedErrorCodeUnion         `json:\"error_code\" api:\"required\"`\n\tErrorFatal           bool                                      `json:\"error_fatal\" api:\"required\"`\n\tErrorPlayheadSeconds float64                                   `json:\"error_playhead_seconds\" api:\"required\"`\n\tEventID              string                                    `json:\"event_id\" api:\"required\" format:\"uuid\"`\n\tEventName            constant.ChunkifyVideoPlaybackRateChanged `json:\"event_name\" default:\"chunkify.video.playback_rate_changed\"`\n\tOccurredAt           time.Time                                 `json:\"occurred_at\" api:\"required\" format:\"date-time\"`\n\t// Rate after the change.\n\tPlaybackRate    float64 `json:\"playback_rate\" api:\"required\"`\n\tPlayerName      string  `json:\"player_name\" api:\"required\"`\n\tPlayerVersion   string  `json:\"player_version\" api:\"required\"`\n\tPlayheadSeconds float64 `json:\"playhead_seconds\" api:\"required\"`\n\t// Rate before the change.\n\tPreviousPlaybackRate float64 `json:\"previous_playback_rate\" api:\"required\"`\n\t// Any of \"ended\", \"destroyed\", \"source_changed\", \"page_exit\".\n\tReason        PlaybackRateChangedReason `json:\"reason\" api:\"required\"`\n\tSchemaVersion float64                   `json:\"schema_version\" api:\"required\"`\n\t// Name of the SDK or integration that produced the event. Informational metadata,\n\t// preserved as received. Must contain at least one non-whitespace character.\n\tSDKName    string `json:\"sdk_name\" api:\"required\"`\n\tSDKVersion string `json:\"sdk_version\" api:\"required\"`\n\tSequence   int64  `json:\"sequence\" api:\"required\"`\n\t// Any of \"started\", \"failed_before_start\", \"ended_before_start\".\n\tStartupOutcome PlaybackRateChangedStartupOutcome `json:\"startup_outcome\" api:\"required\"`\n\tVideoID        string                            `json:\"video_id\" api:\"required\"`\n\tViewID         string                            `json:\"view_id\" api:\"required\" format:\"uuid\"`\n\t// Anonymous browser identifier generated by the Chunkify player SDK and stored in\n\t// the page's localStorage.\n\tViewerID string `json:\"viewer_id\" api:\"required\"`\n\t// Browser and device information. The Chunkify player sends every field, with null\n\t// for unavailable measurements. Other integrations may omit any field except\n\t// schema_version. Extra properties are preserved.\n\tBrowserContext shared.BrowserContext `json:\"browser_context\" api:\"nullable\"`\n\t// How the player receives the media: hls for an HLS stream, file for a single\n\t// media file such as an MP4 rendition; null when unknown. Optional: older SDKs\n\t// omit it. Reports read it from each view's first start. Unlike connector_name, it\n\t// does not depend on the playback engine: Safari's native HLS reports html-media.\n\t//\n\t// Any of \"hls\", \"file\".\n\tDeliveryFormat              PlaybackRateChangedDeliveryFormat `json:\"delivery_format\" api:\"nullable\"`\n\tDeliveryRequestCount        float64                           `json:\"delivery_request_count\" api:\"nullable\"`\n\tDeliveryThroughputBps       float64                           `json:\"delivery_throughput_bps\" api:\"nullable\"`\n\tDeliveryTransferredBytes    float64                           `json:\"delivery_transferred_bytes\" api:\"nullable\"`\n\tDroppedVideoFrames          float64                           `json:\"dropped_video_frames\" api:\"nullable\"`\n\tFirstVideoFrameTimeMs       float64                           `json:\"first_video_frame_time_ms\" api:\"nullable\"`\n\tFurthestProgressRatio       float64                           `json:\"furthest_progress_ratio\" api:\"nullable\"`\n\tMaximumPlayheadSeconds      float64                           `json:\"maximum_playhead_seconds\"`\n\tMediaDurationSeconds        float64                           `json:\"media_duration_seconds\" api:\"nullable\"`\n\tMediaHeightPx               float64                           `json:\"media_height_px\" api:\"nullable\"`\n\tMediaWidthPx                float64                           `json:\"media_width_px\" api:\"nullable\"`\n\tPlayerHeightPx              float64                           `json:\"player_height_px\" api:\"nullable\"`\n\tPlayerWidthPx               float64                           `json:\"player_width_px\" api:\"nullable\"`\n\tPlayingTimeMs               float64                           `json:\"playing_time_ms\"`\n\tRebufferCount               float64                           `json:\"rebuffer_count\"`\n\tRebufferDurationMs          float64                           `json:\"rebuffer_duration_ms\"`\n\tRebufferRatio               float64                           `json:\"rebuffer_ratio\" api:\"nullable\"`\n\tRenditionPlayingTime        []shared.RenditionPlayingTime     `json:\"rendition_playing_time\" api:\"nullable\"`\n\tRenditionSwitchCount        float64                           `json:\"rendition_switch_count\" api:\"nullable\"`\n\tSeekCount                   float64                           `json:\"seek_count\"`\n\tSeekDurationMs              float64                           `json:\"seek_duration_ms\"`\n\tSelectedRenditionBitrateBps float64                           `json:\"selected_rendition_bitrate_bps\" api:\"nullable\"`\n\tSelectedRenditionCodec      string                            `json:\"selected_rendition_codec\" api:\"nullable\"`\n\tSelectedRenditionHeight     float64                           `json:\"selected_rendition_height\" api:\"nullable\"`\n\tSelectedRenditionWidth      float64                           `json:\"selected_rendition_width\" api:\"nullable\"`\n\tStartupTimeMs               float64                           `json:\"startup_time_ms\" api:\"nullable\"`\n\tTotalVideoFrames            float64                           `json:\"total_video_frames\" api:\"nullable\"`\n\t// Optional integrator-supplied user ID, used to link views to the integrator's own\n\t// users.\n\tUserID string `json:\"user_id\" api:\"nullable\"`\n\t// Optional human-readable video title for reports.\n\tVideoTitle string `json:\"video_title\" api:\"nullable\"`\n\t// Tab visibility when the event was recorded. Hidden does not imply paused\n\t// playback or identify the cause of a pause. Missing on older events; null when\n\t// unavailable.\n\t//\n\t// Any of \"visible\", \"hidden\".\n\tVisibilityState PlaybackRateChangedVisibilityState `json:\"visibility_state\" api:\"nullable\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tConnectorName               respjson.Field\n\t\tConnectorVersion            respjson.Field\n\t\tDeliveryHostname            respjson.Field\n\t\tEnvironment                 respjson.Field\n\t\tErrorCategory               respjson.Field\n\t\tErrorCode                   respjson.Field\n\t\tErrorFatal                  respjson.Field\n\t\tErrorPlayheadSeconds        respjson.Field\n\t\tEventID                     respjson.Field\n\t\tEventName                   respjson.Field\n\t\tOccurredAt                  respjson.Field\n\t\tPlaybackRate                respjson.Field\n\t\tPlayerName                  respjson.Field\n\t\tPlayerVersion               respjson.Field\n\t\tPlayheadSeconds             respjson.Field\n\t\tPreviousPlaybackRate        respjson.Field\n\t\tReason                      respjson.Field\n\t\tSchemaVersion               respjson.Field\n\t\tSDKName                     respjson.Field\n\t\tSDKVersion                  respjson.Field\n\t\tSequence                    respjson.Field\n\t\tStartupOutcome              respjson.Field\n\t\tVideoID                     respjson.Field\n\t\tViewID                      respjson.Field\n\t\tViewerID                    respjson.Field\n\t\tBrowserContext              respjson.Field\n\t\tDeliveryFormat              respjson.Field\n\t\tDeliveryRequestCount        respjson.Field\n\t\tDeliveryThroughputBps       respjson.Field\n\t\tDeliveryTransferredBytes    respjson.Field\n\t\tDroppedVideoFrames          respjson.Field\n\t\tFirstVideoFrameTimeMs       respjson.Field\n\t\tFurthestProgressRatio       respjson.Field\n\t\tMaximumPlayheadSeconds      respjson.Field\n\t\tMediaDurationSeconds        respjson.Field\n\t\tMediaHeightPx               respjson.Field\n\t\tMediaWidthPx                respjson.Field\n\t\tPlayerHeightPx              respjson.Field\n\t\tPlayerWidthPx               respjson.Field\n\t\tPlayingTimeMs               respjson.Field\n\t\tRebufferCount               respjson.Field\n\t\tRebufferDurationMs          respjson.Field\n\t\tRebufferRatio               respjson.Field\n\t\tRenditionPlayingTime        respjson.Field\n\t\tRenditionSwitchCount        respjson.Field\n\t\tSeekCount                   respjson.Field\n\t\tSeekDurationMs              respjson.Field\n\t\tSelectedRenditionBitrateBps respjson.Field\n\t\tSelectedRenditionCodec      respjson.Field\n\t\tSelectedRenditionHeight     respjson.Field\n\t\tSelectedRenditionWidth      respjson.Field\n\t\tStartupTimeMs               respjson.Field\n\t\tTotalVideoFrames            respjson.Field\n\t\tUserID                      respjson.Field\n\t\tVideoTitle                  respjson.Field\n\t\tVisibilityState             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 PlaybackRateChanged) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r PlaybackRateChanged) ToParam() PlaybackRateChangedParam\n```\nToParam converts this PlaybackRateChanged to a PlaybackRateChangedParam.\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 PlaybackRateChangedParam.Overrides()\n\n```go\nfunc (r *PlaybackRateChanged) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype PlaybackRateChangedDeliveryFormat string\n```\nHow the player receives the media: hls for an HLS stream, file for a single media file such as an MP4 rendition; null when unknown. Optional: older SDKs omit it. Reports read it from each view's first start. Unlike connector\\_name, it does not depend on the playback engine: Safari's native HLS reports html-media.\n\n```go\nconst (\n\tPlaybackRateChangedDeliveryFormatHls  PlaybackRateChangedDeliveryFormat = \"hls\"\n\tPlaybackRateChangedDeliveryFormatFile PlaybackRateChangedDeliveryFormat = \"file\"\n)\n```\n\n```go\ntype PlaybackRateChangedErrorCategory string\n```\n\n```go\nconst (\n\tPlaybackRateChangedErrorCategoryAborted     PlaybackRateChangedErrorCategory = \"aborted\"\n\tPlaybackRateChangedErrorCategoryNetwork     PlaybackRateChangedErrorCategory = \"network\"\n\tPlaybackRateChangedErrorCategoryDecode      PlaybackRateChangedErrorCategory = \"decode\"\n\tPlaybackRateChangedErrorCategoryUnsupported PlaybackRateChangedErrorCategory = \"unsupported\"\n\tPlaybackRateChangedErrorCategoryUnknown     PlaybackRateChangedErrorCategory = \"unknown\"\n)\n```\n\n```go\ntype PlaybackRateChangedErrorCodeUnion struct {\n\t// This field will be present if the value is a [string] instead of an object.\n\tOfString string `json:\",inline\"`\n\t// This field will be present if the value is a [float64] instead of an object.\n\tOfFloat float64 `json:\",inline\"`\n\tJSON    struct {\n\t\tOfString respjson.Field\n\t\tOfFloat  respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nPlaybackRateChangedErrorCodeUnion contains all possible properties and values from \\[string], \\[float64].\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\nIf the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat]\n\n```go\nfunc (u PlaybackRateChangedErrorCodeUnion) AsFloat() (v float64)\n```\n\n```go\nfunc (u PlaybackRateChangedErrorCodeUnion) AsString() (v string)\n```\n\n```go\nfunc (u PlaybackRateChangedErrorCodeUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *PlaybackRateChangedErrorCodeUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype PlaybackRateChangedErrorCodeUnionParam struct {\n\tOfString param.Opt[string]  `json:\",omitzero,inline\"`\n\tOfFloat  param.Opt[float64] `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-analytics-go/packages/param#IsOmitted) to confirm if a field is set.\n\n```go\nfunc (u PlaybackRateChangedErrorCodeUnionParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (u *PlaybackRateChangedErrorCodeUnionParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype PlaybackRateChangedParam struct {\n\tConnectorVersion param.Opt[string] `json:\"connector_version,omitzero\" api:\"required\"`\n\tDeliveryHostname param.Opt[string] `json:\"delivery_hostname,omitzero\" api:\"required\"`\n\tEnvironment      param.Opt[string] `json:\"environment,omitzero\" api:\"required\"`\n\t// Any of \"aborted\", \"network\", \"decode\", \"unsupported\", \"unknown\".\n\tErrorCategory        param.Opt[PlaybackRateChangedErrorCategory] `json:\"error_category,omitzero\" api:\"required\"`\n\tErrorFatal           param.Opt[bool]                             `json:\"error_fatal,omitzero\" api:\"required\"`\n\tErrorPlayheadSeconds param.Opt[float64]                          `json:\"error_playhead_seconds,omitzero\" api:\"required\"`\n\t// Rate after the change.\n\tPlaybackRate    param.Opt[float64] `json:\"playback_rate,omitzero\" api:\"required\"`\n\tPlayerName      param.Opt[string]  `json:\"player_name,omitzero\" api:\"required\"`\n\tPlayerVersion   param.Opt[string]  `json:\"player_version,omitzero\" api:\"required\"`\n\tPlayheadSeconds param.Opt[float64] `json:\"playhead_seconds,omitzero\" api:\"required\"`\n\t// Rate before the change.\n\tPreviousPlaybackRate param.Opt[float64] `json:\"previous_playback_rate,omitzero\" api:\"required\"`\n\t// Any of \"ended\", \"destroyed\", \"source_changed\", \"page_exit\".\n\tReason param.Opt[PlaybackRateChangedReason] `json:\"reason,omitzero\" api:\"required\"`\n\t// Any of \"started\", \"failed_before_start\", \"ended_before_start\".\n\tStartupOutcome param.Opt[PlaybackRateChangedStartupOutcome] `json:\"startup_outcome,omitzero\" api:\"required\"`\n\t// Anonymous browser identifier generated by the Chunkify player SDK and stored in\n\t// the page's localStorage.\n\tViewerID      param.Opt[string]                      `json:\"viewer_id,omitzero\" api:\"required\"`\n\tErrorCode     PlaybackRateChangedErrorCodeUnionParam `json:\"error_code,omitzero\" api:\"required\"`\n\tConnectorName string                                 `json:\"connector_name\" api:\"required\"`\n\tEventID       string                                 `json:\"event_id\" api:\"required\" format:\"uuid\"`\n\tOccurredAt    time.Time                              `json:\"occurred_at\" api:\"required\" format:\"date-time\"`\n\t// Name of the SDK or integration that produced the event. Informational metadata,\n\t// preserved as received. Must contain at least one non-whitespace character.\n\tSDKName    string `json:\"sdk_name\" api:\"required\"`\n\tSDKVersion string `json:\"sdk_version\" api:\"required\"`\n\tSequence   int64  `json:\"sequence\" api:\"required\"`\n\tVideoID    string `json:\"video_id\" api:\"required\"`\n\tViewID     string `json:\"view_id\" api:\"required\" format:\"uuid\"`\n\t// How the player receives the media: hls for an HLS stream, file for a single\n\t// media file such as an MP4 rendition; null when unknown. Optional: older SDKs\n\t// omit it. Reports read it from each view's first start. Unlike connector_name, it\n\t// does not depend on the playback engine: Safari's native HLS reports html-media.\n\t//\n\t// Any of \"hls\", \"file\".\n\tDeliveryFormat              param.Opt[PlaybackRateChangedDeliveryFormat] `json:\"delivery_format,omitzero\"`\n\tDeliveryRequestCount        param.Opt[float64]                           `json:\"delivery_request_count,omitzero\"`\n\tDeliveryThroughputBps       param.Opt[float64]                           `json:\"delivery_throughput_bps,omitzero\"`\n\tDeliveryTransferredBytes    param.Opt[float64]                           `json:\"delivery_transferred_bytes,omitzero\"`\n\tDroppedVideoFrames          param.Opt[float64]                           `json:\"dropped_video_frames,omitzero\"`\n\tFirstVideoFrameTimeMs       param.Opt[float64]                           `json:\"first_video_frame_time_ms,omitzero\"`\n\tFurthestProgressRatio       param.Opt[float64]                           `json:\"furthest_progress_ratio,omitzero\"`\n\tMediaDurationSeconds        param.Opt[float64]                           `json:\"media_duration_seconds,omitzero\"`\n\tMediaHeightPx               param.Opt[float64]                           `json:\"media_height_px,omitzero\"`\n\tMediaWidthPx                param.Opt[float64]                           `json:\"media_width_px,omitzero\"`\n\tPlayerHeightPx              param.Opt[float64]                           `json:\"player_height_px,omitzero\"`\n\tPlayerWidthPx               param.Opt[float64]                           `json:\"player_width_px,omitzero\"`\n\tRebufferRatio               param.Opt[float64]                           `json:\"rebuffer_ratio,omitzero\"`\n\tRenditionSwitchCount        param.Opt[float64]                           `json:\"rendition_switch_count,omitzero\"`\n\tSelectedRenditionBitrateBps param.Opt[float64]                           `json:\"selected_rendition_bitrate_bps,omitzero\"`\n\tSelectedRenditionCodec      param.Opt[string]                            `json:\"selected_rendition_codec,omitzero\"`\n\tSelectedRenditionHeight     param.Opt[float64]                           `json:\"selected_rendition_height,omitzero\"`\n\tSelectedRenditionWidth      param.Opt[float64]                           `json:\"selected_rendition_width,omitzero\"`\n\tStartupTimeMs               param.Opt[float64]                           `json:\"startup_time_ms,omitzero\"`\n\tTotalVideoFrames            param.Opt[float64]                           `json:\"total_video_frames,omitzero\"`\n\t// Optional integrator-supplied user ID, used to link views to the integrator's own\n\t// users.\n\tUserID param.Opt[string] `json:\"user_id,omitzero\"`\n\t// Optional human-readable video title for reports.\n\tVideoTitle param.Opt[string] `json:\"video_title,omitzero\"`\n\t// Tab visibility when the event was recorded. Hidden does not imply paused\n\t// playback or identify the cause of a pause. Missing on older events; null when\n\t// unavailable.\n\t//\n\t// Any of \"visible\", \"hidden\".\n\tVisibilityState        param.Opt[PlaybackRateChangedVisibilityState] `json:\"visibility_state,omitzero\"`\n\tMaximumPlayheadSeconds param.Opt[float64]                            `json:\"maximum_playhead_seconds,omitzero\"`\n\tPlayingTimeMs          param.Opt[float64]                            `json:\"playing_time_ms,omitzero\"`\n\tRebufferCount          param.Opt[float64]                            `json:\"rebuffer_count,omitzero\"`\n\tRebufferDurationMs     param.Opt[float64]                            `json:\"rebuffer_duration_ms,omitzero\"`\n\tSeekCount              param.Opt[float64]                            `json:\"seek_count,omitzero\"`\n\tSeekDurationMs         param.Opt[float64]                            `json:\"seek_duration_ms,omitzero\"`\n\tRenditionPlayingTime   []shared.RenditionPlayingTimeParam            `json:\"rendition_playing_time,omitzero\"`\n\t// Browser and device information. The Chunkify player sends every field, with null\n\t// for unavailable measurements. Other integrations may omit any field except\n\t// schema_version. Extra properties are preserved.\n\tBrowserContext shared.BrowserContextParam `json:\"browser_context,omitzero\"`\n\t// This field can be elided, and will marshal its zero value as\n\t// \"chunkify.video.playback_rate_changed\".\n\tEventName constant.ChunkifyVideoPlaybackRateChanged `json:\"event_name\" default:\"chunkify.video.playback_rate_changed\"`\n\t// This field can be elided, and will marshal its zero value as 1.\n\tSchemaVersion float64 `json:\"schema_version,omitzero\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nThe properties ConnectorName, ConnectorVersion, DeliveryHostname, Environment, ErrorCategory, ErrorCode, ErrorFatal, ErrorPlayheadSeconds, EventID, EventName, OccurredAt, PlaybackRate, PlayerName, PlayerVersion, PlayheadSeconds, PreviousPlaybackRate, Reason, SchemaVersion, SDKName, SDKVersion, Sequence, StartupOutcome, VideoID, ViewID, ViewerID are required.\n\n```go\nfunc (r PlaybackRateChangedParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *PlaybackRateChangedParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype PlaybackRateChangedReason string\n```\n\n```go\nconst (\n\tPlaybackRateChangedReasonEnded         PlaybackRateChangedReason = \"ended\"\n\tPlaybackRateChangedReasonDestroyed     PlaybackRateChangedReason = \"destroyed\"\n\tPlaybackRateChangedReasonSourceChanged PlaybackRateChangedReason = \"source_changed\"\n\tPlaybackRateChangedReasonPageExit      PlaybackRateChangedReason = \"page_exit\"\n)\n```\n\n```go\ntype PlaybackRateChangedStartupOutcome string\n```\n\n```go\nconst (\n\tPlaybackRateChangedStartupOutcomeStarted           PlaybackRateChangedStartupOutcome = \"started\"\n\tPlaybackRateChangedStartupOutcomeFailedBeforeStart PlaybackRateChangedStartupOutcome = \"failed_before_start\"\n\tPlaybackRateChangedStartupOutcomeEndedBeforeStart  PlaybackRateChangedStartupOutcome = \"ended_before_start\"\n)\n```\n\n```go\ntype PlaybackRateChangedVisibilityState string\n```\nTab visibility when the event was recorded. Hidden does not imply paused playback or identify the cause of a pause. Missing on older events; null when unavailable.\n\n```go\nconst (\n\tPlaybackRateChangedVisibilityStateVisible PlaybackRateChangedVisibilityState = \"visible\"\n\tPlaybackRateChangedVisibilityStateHidden  PlaybackRateChangedVisibilityState = \"hidden\"\n)\n```\n\n```go\ntype PlaybackRateGetParams struct {\n\t// Exact browser name, such as Chrome. Missing values do not match.\n\tBrowserName param.Opt[string] `query:\"browser_name,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive city name from the local lookup, with 1 to 256 Unicode\n\t// characters. Use country alongside city to distinguish places with the same name.\n\t// Missing locations do not match.\n\tCity param.Opt[string] `query:\"city,omitzero\" json:\"-\"`\n\t// Exact uppercase ISO 3166-1 alpha-2 country code, such as GB. Missing locations\n\t// do not match.\n\tCountry param.Opt[string] `query:\"country,omitzero\" json:\"-\"`\n\t// Inclusive RFC3339 occurrence-time lower bound, with timezone. Summary/video\n\t// queries apply it to the selected view_started event. Must be before to.\n\tFrom param.Opt[time.Time] `query:\"from,omitzero\" format:\"date-time\" json:\"-\"`\n\t// Maximum rows on this page. Events and videos always support pagination; summary,\n\t// quality and engagement support it only with group_by.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Exact operating-system name, such as macOS. Missing values do not match.\n\tOsName param.Opt[string] `query:\"os_name,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive page origin captured by the player, such as\n\t// https://example.com. Metrics use the first retained view start; raw events use\n\t// each event context. Missing values do not match.\n\tPageOrigin param.Opt[string] `query:\"page_origin,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive page path captured by the player, such as /watch/video.\n\t// Filter by page_origin as well to distinguish identical paths on different sites.\n\t// Metrics use the first retained view start; raw events use each event context.\n\t// Missing values do not match.\n\tPagePath param.Opt[string] `query:\"page_path,omitzero\" json:\"-\"`\n\t// Playback rate from 0.01 to 16 with at most two decimals, such as 1, 1.5 or 2;\n\t// 2.0 and 2 are the same rate. Metrics use the rate on the first retained view\n\t// start; raw events use each event's value.\n\tPlaybackRate param.Opt[string] `query:\"playback_rate,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive, non-blank subtitle language tag, such as fr or en-US; und\n\t// for a subtitles track without a language. Metrics use the language showing on\n\t// the first retained view start; raw events use each event's value. Views without\n\t// subtitles at start do not match.\n\tSubtitleLanguage param.Opt[string] `query:\"subtitle_language,omitzero\" json:\"-\"`\n\t// Exclusive RFC3339 occurrence-time upper bound, with timezone. Summary/video\n\t// queries apply it to the selected view_started event.\n\tTo param.Opt[time.Time] `query:\"to,omitzero\" format:\"date-time\" json:\"-\"`\n\t// Exact integrator-supplied user ID. Selects views by their start event; event\n\t// lists match each event's own value. Missing/null user IDs do not match. Reports\n\t// with this filter read one stored row per view.\n\tUserID param.Opt[string] `query:\"user_id,omitzero\" json:\"-\"`\n\t// Exact video ID; must not be blank. Combined with all other filters using AND.\n\tVideoID param.Opt[string] `query:\"video_id,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive video title. Selects views by the title on their first\n\t// retained start; event lists match each event's own value. Views without a title\n\t// do not match. Reports with this filter read one stored row per view.\n\tVideoTitle param.Opt[string] `query:\"video_title,omitzero\" json:\"-\"`\n\t// Filter one playback attempt by view ID. Metrics use its first retained start.\n\tViewID param.Opt[string] `query:\"view_id,omitzero\" json:\"-\"`\n\t// Exact viewer ID. The Chunkify player SDK generates one per browser; missing/null\n\t// viewer IDs do not match.\n\tViewerID param.Opt[string] `query:\"viewer_id,omitzero\" json:\"-\"`\n\t// Exact continent code from the local lookup. Missing locations do not match.\n\t//\n\t// Any of \"AF\", \"AN\", \"AS\", \"EU\", \"NA\", \"OC\", \"SA\".\n\tContinent PlaybackRateGetParamsContinent `query:\"continent,omitzero\" json:\"-\"`\n\t// Delivery format on the first retained view start: hls for HLS streams, file for\n\t// a single media file such as an MP4 rendition. Metrics use the first retained\n\t// view start; raw events use each event's value. Views whose SDK did not report it\n\t// do not match. connector_name is not a substitute: Safari plays HLS natively and\n\t// reports html-media.\n\t//\n\t// Any of \"hls\", \"file\".\n\tDeliveryFormat PlaybackRateGetParamsDeliveryFormat `query:\"delivery_format,omitzero\" json:\"-\"`\n\t// Exact device class. unknown matches an explicit unknown value.\n\t//\n\t// Any of \"desktop\", \"mobile\", \"tablet\", \"unknown\".\n\tDeviceType PlaybackRateGetParamsDeviceType `query:\"device_type,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r PlaybackRateGetParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [PlaybackRateGetParams](#PlaybackRateGetParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype PlaybackRateGetParamsContinent string\n```\nExact continent code from the local lookup. Missing locations do not match.\n\n```go\nconst (\n\tPlaybackRateGetParamsContinentAf PlaybackRateGetParamsContinent = \"AF\"\n\tPlaybackRateGetParamsContinentAn PlaybackRateGetParamsContinent = \"AN\"\n\tPlaybackRateGetParamsContinentAs PlaybackRateGetParamsContinent = \"AS\"\n\tPlaybackRateGetParamsContinentEu PlaybackRateGetParamsContinent = \"EU\"\n\tPlaybackRateGetParamsContinentNa PlaybackRateGetParamsContinent = \"NA\"\n\tPlaybackRateGetParamsContinentOc PlaybackRateGetParamsContinent = \"OC\"\n\tPlaybackRateGetParamsContinentSa PlaybackRateGetParamsContinent = \"SA\"\n)\n```\n\n```go\ntype PlaybackRateGetParamsDeliveryFormat string\n```\nDelivery format on the first retained view start: hls for HLS streams, file for a single media file such as an MP4 rendition. Metrics use the first retained view start; raw events use each event's value. Views whose SDK did not report it do not match. connector\\_name is not a substitute: Safari plays HLS natively and reports html-media.\n\n```go\nconst (\n\tPlaybackRateGetParamsDeliveryFormatHls  PlaybackRateGetParamsDeliveryFormat = \"hls\"\n\tPlaybackRateGetParamsDeliveryFormatFile PlaybackRateGetParamsDeliveryFormat = \"file\"\n)\n```\n\n```go\ntype PlaybackRateGetParamsDeviceType string\n```\nExact device class. unknown matches an explicit unknown value.\n\n```go\nconst (\n\tPlaybackRateGetParamsDeviceTypeDesktop PlaybackRateGetParamsDeviceType = \"desktop\"\n\tPlaybackRateGetParamsDeviceTypeMobile  PlaybackRateGetParamsDeviceType = \"mobile\"\n\tPlaybackRateGetParamsDeviceTypeTablet  PlaybackRateGetParamsDeviceType = \"tablet\"\n\tPlaybackRateGetParamsDeviceTypeUnknown PlaybackRateGetParamsDeviceType = \"unknown\"\n)\n```\n\n```go\ntype PlaybackRateMetric struct {\n\t// Cumulative measured playing time at this rate, summed once per attempt.\n\tPlayingTimeMs float64 `json:\"playing_time_ms\" api:\"required\"`\n\t// Share of all measured playing time, including rows outside the returned limit.\n\tPlayingTimeRatio float64 `json:\"playing_time_ratio\" api:\"required\"`\n\t// Playback rate, rounded to two decimals.\n\tRate float64 `json:\"rate\" api:\"required\"`\n\t// Distinct attempts with positive playing time at this rate.\n\tViews int64 `json:\"views\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tPlayingTimeMs    respjson.Field\n\t\tPlayingTimeRatio respjson.Field\n\t\tRate             respjson.Field\n\t\tViews            respjson.Field\n\t\tExtraFields      map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nWatch time at one playback rate.\n\n```go\nfunc (r PlaybackRateMetric) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *PlaybackRateMetric) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype PlaybackRatePlayingTime = shared.PlaybackRatePlayingTime\n```\nThis is an alias to an internal type.\n\n```go\ntype PlaybackRatePlayingTimeParam = shared.PlaybackRatePlayingTimeParam\n```\nThis is an alias to an internal type.\n\n```go\ntype PlaybackRateReport struct {\n\t// Most-watched first, then value ascending with null first. Defaults to 100 rows,\n\t// maximum 1000. CSV exports include all matching rows.\n\tRates []PlaybackRateMetric `json:\"rates\" api:\"required\"`\n\t// Attempts with positive measured playing time in this report. Older SDKs send no\n\t// measurement.\n\tSampleViews int64 `json:\"sample_views\" api:\"required\"`\n\t// Total measured playing time across all matching rows.\n\tTotalPlayingTimeMs float64 `json:\"total_playing_time_ms\" api:\"required\"`\n\t// Number of distinct values before applying the row limit.\n\tTotalRates int64 `json:\"total_rates\" api:\"required\"`\n\t// All attempts in the filtered start cohort.\n\tViews int64 `json:\"views\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tRates              respjson.Field\n\t\tSampleViews        respjson.Field\n\t\tTotalPlayingTimeMs respjson.Field\n\t\tTotalRates         respjson.Field\n\t\tViews              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 PlaybackRateReport) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *PlaybackRateReport) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype PlaybackRateService struct {\n\tOptions []option.RequestOption\n}\n```\nPrivate retained-event and view-cohort queries.\n\nPlaybackRateService contains methods and other services that help with interacting with the Chunkify Analytics 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 [NewPlaybackRateService](#NewPlaybackRateService) method instead.\n\n```go\nfunc NewPlaybackRateService(opts ...option.RequestOption) (r PlaybackRateService)\n```\nNewPlaybackRateService 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 *PlaybackRateService) Get(ctx context.Context, query PlaybackRateGetParams, opts ...option.RequestOption) (res *PlaybackRateReport, err error)\n```\nSummarize watch time per playback rate. Expand each view's cumulative playback\\_rate\\_playing\\_time array once; rates are rounded to two decimals. Playing time is wall-clock time, so a minute at 2 covers about two minutes of media. Use only the selected final event, or latest snapshot when no final exists, for the filtered view-start cohort. Missing or empty measurements contribute no time; older SDKs send none. Rank by playing time descending, then value ascending with null first; limit bounds returned rows only, while totals cover every matching row. Views can contribute to several rows and must not be summed. No cursor, group\\_by, sort\\_by or order. Export resource=playback\\_rates includes all matching rows.\n\n```go\ntype PlaybackScore = shared.PlaybackScore\n```\nThis is an alias to an internal type.\n\n```go\ntype PlaybackStateChanged struct {\n\tConnectorName    string `json:\"connector_name\" api:\"required\"`\n\tConnectorVersion string `json:\"connector_version\" api:\"required\"`\n\tDeliveryHostname string `json:\"delivery_hostname\" api:\"required\"`\n\tEnvironment      string `json:\"environment\" api:\"required\"`\n\t// Any of \"aborted\", \"network\", \"decode\", \"unsupported\", \"unknown\".\n\tErrorCategory        PlaybackStateChangedErrorCategory          `json:\"error_category\" api:\"required\"`\n\tErrorCode            PlaybackStateChangedErrorCodeUnion         `json:\"error_code\" api:\"required\"`\n\tErrorFatal           bool                                       `json:\"error_fatal\" api:\"required\"`\n\tErrorPlayheadSeconds float64                                    `json:\"error_playhead_seconds\" api:\"required\"`\n\tEventID              string                                     `json:\"event_id\" api:\"required\" format:\"uuid\"`\n\tEventName            constant.ChunkifyVideoPlaybackStateChanged `json:\"event_name\" default:\"chunkify.video.playback_state_changed\"`\n\t// Any of \"startup\", \"resuming\", \"playing\", \"paused\", \"buffering\", \"seeking\",\n\t// \"error\", \"ended\", \"stopped\".\n\tFromState               PlaybackStateChangedFromState `json:\"from_state\" api:\"required\"`\n\tOccurredAt              time.Time                     `json:\"occurred_at\" api:\"required\" format:\"date-time\"`\n\tPlayerName              string                        `json:\"player_name\" api:\"required\"`\n\tPlayerVersion           string                        `json:\"player_version\" api:\"required\"`\n\tPlayheadSeconds         float64                       `json:\"playhead_seconds\" api:\"required\"`\n\tPreviousStateDurationMs float64                       `json:\"previous_state_duration_ms\" api:\"required\"`\n\t// Any of \"ended\", \"destroyed\", \"source_changed\", \"page_exit\".\n\tReason        PlaybackStateChangedReason `json:\"reason\" api:\"required\"`\n\tSchemaVersion float64                    `json:\"schema_version\" api:\"required\"`\n\t// Name of the SDK or integration that produced the event. Informational metadata,\n\t// preserved as received. Must contain at least one non-whitespace character.\n\tSDKName    string `json:\"sdk_name\" api:\"required\"`\n\tSDKVersion string `json:\"sdk_version\" api:\"required\"`\n\tSequence   int64  `json:\"sequence\" api:\"required\"`\n\t// Any of \"started\", \"failed_before_start\", \"ended_before_start\".\n\tStartupOutcome PlaybackStateChangedStartupOutcome `json:\"startup_outcome\" api:\"required\"`\n\t// Any of \"startup\", \"resuming\", \"playing\", \"paused\", \"buffering\", \"seeking\",\n\t// \"error\", \"ended\", \"stopped\".\n\tToState PlaybackStateChangedToState `json:\"to_state\" api:\"required\"`\n\tVideoID string                      `json:\"video_id\" api:\"required\"`\n\tViewID  string                      `json:\"view_id\" api:\"required\" format:\"uuid\"`\n\t// Anonymous browser identifier generated by the Chunkify player SDK and stored in\n\t// the page's localStorage.\n\tViewerID string `json:\"viewer_id\" api:\"required\"`\n\t// Browser and device information. The Chunkify player sends every field, with null\n\t// for unavailable measurements. Other integrations may omit any field except\n\t// schema_version. Extra properties are preserved.\n\tBrowserContext shared.BrowserContext `json:\"browser_context\" api:\"nullable\"`\n\t// How the player receives the media: hls for an HLS stream, file for a single\n\t// media file such as an MP4 rendition; null when unknown. Optional: older SDKs\n\t// omit it. Reports read it from each view's first start. Unlike connector_name, it\n\t// does not depend on the playback engine: Safari's native HLS reports html-media.\n\t//\n\t// Any of \"hls\", \"file\".\n\tDeliveryFormat              PlaybackStateChangedDeliveryFormat `json:\"delivery_format\" api:\"nullable\"`\n\tDeliveryRequestCount        float64                            `json:\"delivery_request_count\" api:\"nullable\"`\n\tDeliveryThroughputBps       float64                            `json:\"delivery_throughput_bps\" api:\"nullable\"`\n\tDeliveryTransferredBytes    float64                            `json:\"delivery_transferred_bytes\" api:\"nullable\"`\n\tDroppedVideoFrames          float64                            `json:\"dropped_video_frames\" api:\"nullable\"`\n\tFirstVideoFrameTimeMs       float64                            `json:\"first_video_frame_time_ms\" api:\"nullable\"`\n\tFurthestProgressRatio       float64                            `json:\"furthest_progress_ratio\" api:\"nullable\"`\n\tMaximumPlayheadSeconds      float64                            `json:\"maximum_playhead_seconds\"`\n\tMediaDurationSeconds        float64                            `json:\"media_duration_seconds\" api:\"nullable\"`\n\tMediaHeightPx               float64                            `json:\"media_height_px\" api:\"nullable\"`\n\tMediaWidthPx                float64                            `json:\"media_width_px\" api:\"nullable\"`\n\tPlayerHeightPx              float64                            `json:\"player_height_px\" api:\"nullable\"`\n\tPlayerWidthPx               float64                            `json:\"player_width_px\" api:\"nullable\"`\n\tPlayingTimeMs               float64                            `json:\"playing_time_ms\"`\n\tRebufferCount               float64                            `json:\"rebuffer_count\"`\n\tRebufferDurationMs          float64                            `json:\"rebuffer_duration_ms\"`\n\tRebufferRatio               float64                            `json:\"rebuffer_ratio\" api:\"nullable\"`\n\tRenditionPlayingTime        []shared.RenditionPlayingTime      `json:\"rendition_playing_time\" api:\"nullable\"`\n\tRenditionSwitchCount        float64                            `json:\"rendition_switch_count\" api:\"nullable\"`\n\tSeekCount                   float64                            `json:\"seek_count\"`\n\tSeekDurationMs              float64                            `json:\"seek_duration_ms\"`\n\tSelectedRenditionBitrateBps float64                            `json:\"selected_rendition_bitrate_bps\" api:\"nullable\"`\n\tSelectedRenditionCodec      string                             `json:\"selected_rendition_codec\" api:\"nullable\"`\n\tSelectedRenditionHeight     float64                            `json:\"selected_rendition_height\" api:\"nullable\"`\n\tSelectedRenditionWidth      float64                            `json:\"selected_rendition_width\" api:\"nullable\"`\n\tStartupTimeMs               float64                            `json:\"startup_time_ms\" api:\"nullable\"`\n\tTotalVideoFrames            float64                            `json:\"total_video_frames\" api:\"nullable\"`\n\t// Optional integrator-supplied user ID, used to link views to the integrator's own\n\t// users.\n\tUserID string `json:\"user_id\" api:\"nullable\"`\n\t// Optional human-readable video title for reports.\n\tVideoTitle string `json:\"video_title\" api:\"nullable\"`\n\t// Tab visibility when the event was recorded. Hidden does not imply paused\n\t// playback or identify the cause of a pause. Missing on older events; null when\n\t// unavailable.\n\t//\n\t// Any of \"visible\", \"hidden\".\n\tVisibilityState PlaybackStateChangedVisibilityState `json:\"visibility_state\" api:\"nullable\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tConnectorName               respjson.Field\n\t\tConnectorVersion            respjson.Field\n\t\tDeliveryHostname            respjson.Field\n\t\tEnvironment                 respjson.Field\n\t\tErrorCategory               respjson.Field\n\t\tErrorCode                   respjson.Field\n\t\tErrorFatal                  respjson.Field\n\t\tErrorPlayheadSeconds        respjson.Field\n\t\tEventID                     respjson.Field\n\t\tEventName                   respjson.Field\n\t\tFromState                   respjson.Field\n\t\tOccurredAt                  respjson.Field\n\t\tPlayerName                  respjson.Field\n\t\tPlayerVersion               respjson.Field\n\t\tPlayheadSeconds             respjson.Field\n\t\tPreviousStateDurationMs     respjson.Field\n\t\tReason                      respjson.Field\n\t\tSchemaVersion               respjson.Field\n\t\tSDKName                     respjson.Field\n\t\tSDKVersion                  respjson.Field\n\t\tSequence                    respjson.Field\n\t\tStartupOutcome              respjson.Field\n\t\tToState                     respjson.Field\n\t\tVideoID                     respjson.Field\n\t\tViewID                      respjson.Field\n\t\tViewerID                    respjson.Field\n\t\tBrowserContext              respjson.Field\n\t\tDeliveryFormat              respjson.Field\n\t\tDeliveryRequestCount        respjson.Field\n\t\tDeliveryThroughputBps       respjson.Field\n\t\tDeliveryTransferredBytes    respjson.Field\n\t\tDroppedVideoFrames          respjson.Field\n\t\tFirstVideoFrameTimeMs       respjson.Field\n\t\tFurthestProgressRatio       respjson.Field\n\t\tMaximumPlayheadSeconds      respjson.Field\n\t\tMediaDurationSeconds        respjson.Field\n\t\tMediaHeightPx               respjson.Field\n\t\tMediaWidthPx                respjson.Field\n\t\tPlayerHeightPx              respjson.Field\n\t\tPlayerWidthPx               respjson.Field\n\t\tPlayingTimeMs               respjson.Field\n\t\tRebufferCount               respjson.Field\n\t\tRebufferDurationMs          respjson.Field\n\t\tRebufferRatio               respjson.Field\n\t\tRenditionPlayingTime        respjson.Field\n\t\tRenditionSwitchCount        respjson.Field\n\t\tSeekCount                   respjson.Field\n\t\tSeekDurationMs              respjson.Field\n\t\tSelectedRenditionBitrateBps respjson.Field\n\t\tSelectedRenditionCodec      respjson.Field\n\t\tSelectedRenditionHeight     respjson.Field\n\t\tSelectedRenditionWidth      respjson.Field\n\t\tStartupTimeMs               respjson.Field\n\t\tTotalVideoFrames            respjson.Field\n\t\tUserID                      respjson.Field\n\t\tVideoTitle                  respjson.Field\n\t\tVisibilityState             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 PlaybackStateChanged) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r PlaybackStateChanged) ToParam() PlaybackStateChangedParam\n```\nToParam converts this PlaybackStateChanged to a PlaybackStateChangedParam.\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 PlaybackStateChangedParam.Overrides()\n\n```go\nfunc (r *PlaybackStateChanged) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype PlaybackStateChangedDeliveryFormat string\n```\nHow the player receives the media: hls for an HLS stream, file for a single media file such as an MP4 rendition; null when unknown. Optional: older SDKs omit it. Reports read it from each view's first start. Unlike connector\\_name, it does not depend on the playback engine: Safari's native HLS reports html-media.\n\n```go\nconst (\n\tPlaybackStateChangedDeliveryFormatHls  PlaybackStateChangedDeliveryFormat = \"hls\"\n\tPlaybackStateChangedDeliveryFormatFile PlaybackStateChangedDeliveryFormat = \"file\"\n)\n```\n\n```go\ntype PlaybackStateChangedErrorCategory string\n```\n\n```go\nconst (\n\tPlaybackStateChangedErrorCategoryAborted     PlaybackStateChangedErrorCategory = \"aborted\"\n\tPlaybackStateChangedErrorCategoryNetwork     PlaybackStateChangedErrorCategory = \"network\"\n\tPlaybackStateChangedErrorCategoryDecode      PlaybackStateChangedErrorCategory = \"decode\"\n\tPlaybackStateChangedErrorCategoryUnsupported PlaybackStateChangedErrorCategory = \"unsupported\"\n\tPlaybackStateChangedErrorCategoryUnknown     PlaybackStateChangedErrorCategory = \"unknown\"\n)\n```\n\n```go\ntype PlaybackStateChangedErrorCodeUnion struct {\n\t// This field will be present if the value is a [string] instead of an object.\n\tOfString string `json:\",inline\"`\n\t// This field will be present if the value is a [float64] instead of an object.\n\tOfFloat float64 `json:\",inline\"`\n\tJSON    struct {\n\t\tOfString respjson.Field\n\t\tOfFloat  respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nPlaybackStateChangedErrorCodeUnion contains all possible properties and values from \\[string], \\[float64].\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\nIf the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat]\n\n```go\nfunc (u PlaybackStateChangedErrorCodeUnion) AsFloat() (v float64)\n```\n\n```go\nfunc (u PlaybackStateChangedErrorCodeUnion) AsString() (v string)\n```\n\n```go\nfunc (u PlaybackStateChangedErrorCodeUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *PlaybackStateChangedErrorCodeUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype PlaybackStateChangedErrorCodeUnionParam struct {\n\tOfString param.Opt[string]  `json:\",omitzero,inline\"`\n\tOfFloat  param.Opt[float64] `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-analytics-go/packages/param#IsOmitted) to confirm if a field is set.\n\n```go\nfunc (u PlaybackStateChangedErrorCodeUnionParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (u *PlaybackStateChangedErrorCodeUnionParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype PlaybackStateChangedFromState string\n```\n\n```go\nconst (\n\tPlaybackStateChangedFromStateStartup   PlaybackStateChangedFromState = \"startup\"\n\tPlaybackStateChangedFromStateResuming  PlaybackStateChangedFromState = \"resuming\"\n\tPlaybackStateChangedFromStatePlaying   PlaybackStateChangedFromState = \"playing\"\n\tPlaybackStateChangedFromStatePaused    PlaybackStateChangedFromState = \"paused\"\n\tPlaybackStateChangedFromStateBuffering PlaybackStateChangedFromState = \"buffering\"\n\tPlaybackStateChangedFromStateSeeking   PlaybackStateChangedFromState = \"seeking\"\n\tPlaybackStateChangedFromStateError     PlaybackStateChangedFromState = \"error\"\n\tPlaybackStateChangedFromStateEnded     PlaybackStateChangedFromState = \"ended\"\n\tPlaybackStateChangedFromStateStopped   PlaybackStateChangedFromState = \"stopped\"\n)\n```\n\n```go\ntype PlaybackStateChangedParam struct {\n\tConnectorVersion param.Opt[string] `json:\"connector_version,omitzero\" api:\"required\"`\n\tDeliveryHostname param.Opt[string] `json:\"delivery_hostname,omitzero\" api:\"required\"`\n\tEnvironment      param.Opt[string] `json:\"environment,omitzero\" api:\"required\"`\n\t// Any of \"aborted\", \"network\", \"decode\", \"unsupported\", \"unknown\".\n\tErrorCategory        param.Opt[PlaybackStateChangedErrorCategory] `json:\"error_category,omitzero\" api:\"required\"`\n\tErrorFatal           param.Opt[bool]                              `json:\"error_fatal,omitzero\" api:\"required\"`\n\tErrorPlayheadSeconds param.Opt[float64]                           `json:\"error_playhead_seconds,omitzero\" api:\"required\"`\n\tPlayerName           param.Opt[string]                            `json:\"player_name,omitzero\" api:\"required\"`\n\tPlayerVersion        param.Opt[string]                            `json:\"player_version,omitzero\" api:\"required\"`\n\tPlayheadSeconds      param.Opt[float64]                           `json:\"playhead_seconds,omitzero\" api:\"required\"`\n\t// Any of \"ended\", \"destroyed\", \"source_changed\", \"page_exit\".\n\tReason param.Opt[PlaybackStateChangedReason] `json:\"reason,omitzero\" api:\"required\"`\n\t// Any of \"started\", \"failed_before_start\", \"ended_before_start\".\n\tStartupOutcome param.Opt[PlaybackStateChangedStartupOutcome] `json:\"startup_outcome,omitzero\" api:\"required\"`\n\t// Anonymous browser identifier generated by the Chunkify player SDK and stored in\n\t// the page's localStorage.\n\tViewerID      param.Opt[string]                       `json:\"viewer_id,omitzero\" api:\"required\"`\n\tErrorCode     PlaybackStateChangedErrorCodeUnionParam `json:\"error_code,omitzero\" api:\"required\"`\n\tConnectorName string                                  `json:\"connector_name\" api:\"required\"`\n\tEventID       string                                  `json:\"event_id\" api:\"required\" format:\"uuid\"`\n\t// Any of \"startup\", \"resuming\", \"playing\", \"paused\", \"buffering\", \"seeking\",\n\t// \"error\", \"ended\", \"stopped\".\n\tFromState               PlaybackStateChangedFromState `json:\"from_state,omitzero\" api:\"required\"`\n\tOccurredAt              time.Time                     `json:\"occurred_at\" api:\"required\" format:\"date-time\"`\n\tPreviousStateDurationMs float64                       `json:\"previous_state_duration_ms\" api:\"required\"`\n\t// Name of the SDK or integration that produced the event. Informational metadata,\n\t// preserved as received. Must contain at least one non-whitespace character.\n\tSDKName    string `json:\"sdk_name\" api:\"required\"`\n\tSDKVersion string `json:\"sdk_version\" api:\"required\"`\n\tSequence   int64  `json:\"sequence\" api:\"required\"`\n\t// Any of \"startup\", \"resuming\", \"playing\", \"paused\", \"buffering\", \"seeking\",\n\t// \"error\", \"ended\", \"stopped\".\n\tToState PlaybackStateChangedToState `json:\"to_state,omitzero\" api:\"required\"`\n\tVideoID string                      `json:\"video_id\" api:\"required\"`\n\tViewID  string                      `json:\"view_id\" api:\"required\" format:\"uuid\"`\n\t// How the player receives the media: hls for an HLS stream, file for a single\n\t// media file such as an MP4 rendition; null when unknown. Optional: older SDKs\n\t// omit it. Reports read it from each view's first start. Unlike connector_name, it\n\t// does not depend on the playback engine: Safari's native HLS reports html-media.\n\t//\n\t// Any of \"hls\", \"file\".\n\tDeliveryFormat              param.Opt[PlaybackStateChangedDeliveryFormat] `json:\"delivery_format,omitzero\"`\n\tDeliveryRequestCount        param.Opt[float64]                            `json:\"delivery_request_count,omitzero\"`\n\tDeliveryThroughputBps       param.Opt[float64]                            `json:\"delivery_throughput_bps,omitzero\"`\n\tDeliveryTransferredBytes    param.Opt[float64]                            `json:\"delivery_transferred_bytes,omitzero\"`\n\tDroppedVideoFrames          param.Opt[float64]                            `json:\"dropped_video_frames,omitzero\"`\n\tFirstVideoFrameTimeMs       param.Opt[float64]                            `json:\"first_video_frame_time_ms,omitzero\"`\n\tFurthestProgressRatio       param.Opt[float64]                            `json:\"furthest_progress_ratio,omitzero\"`\n\tMediaDurationSeconds        param.Opt[float64]                            `json:\"media_duration_seconds,omitzero\"`\n\tMediaHeightPx               param.Opt[float64]                            `json:\"media_height_px,omitzero\"`\n\tMediaWidthPx                param.Opt[float64]                            `json:\"media_width_px,omitzero\"`\n\tPlayerHeightPx              param.Opt[float64]                            `json:\"player_height_px,omitzero\"`\n\tPlayerWidthPx               param.Opt[float64]                            `json:\"player_width_px,omitzero\"`\n\tRebufferRatio               param.Opt[float64]                            `json:\"rebuffer_ratio,omitzero\"`\n\tRenditionSwitchCount        param.Opt[float64]                            `json:\"rendition_switch_count,omitzero\"`\n\tSelectedRenditionBitrateBps param.Opt[float64]                            `json:\"selected_rendition_bitrate_bps,omitzero\"`\n\tSelectedRenditionCodec      param.Opt[string]                             `json:\"selected_rendition_codec,omitzero\"`\n\tSelectedRenditionHeight     param.Opt[float64]                            `json:\"selected_rendition_height,omitzero\"`\n\tSelectedRenditionWidth      param.Opt[float64]                            `json:\"selected_rendition_width,omitzero\"`\n\tStartupTimeMs               param.Opt[float64]                            `json:\"startup_time_ms,omitzero\"`\n\tTotalVideoFrames            param.Opt[float64]                            `json:\"total_video_frames,omitzero\"`\n\t// Optional integrator-supplied user ID, used to link views to the integrator's own\n\t// users.\n\tUserID param.Opt[string] `json:\"user_id,omitzero\"`\n\t// Optional human-readable video title for reports.\n\tVideoTitle param.Opt[string] `json:\"video_title,omitzero\"`\n\t// Tab visibility when the event was recorded. Hidden does not imply paused\n\t// playback or identify the cause of a pause. Missing on older events; null when\n\t// unavailable.\n\t//\n\t// Any of \"visible\", \"hidden\".\n\tVisibilityState        param.Opt[PlaybackStateChangedVisibilityState] `json:\"visibility_state,omitzero\"`\n\tMaximumPlayheadSeconds param.Opt[float64]                             `json:\"maximum_playhead_seconds,omitzero\"`\n\tPlayingTimeMs          param.Opt[float64]                             `json:\"playing_time_ms,omitzero\"`\n\tRebufferCount          param.Opt[float64]                             `json:\"rebuffer_count,omitzero\"`\n\tRebufferDurationMs     param.Opt[float64]                             `json:\"rebuffer_duration_ms,omitzero\"`\n\tSeekCount              param.Opt[float64]                             `json:\"seek_count,omitzero\"`\n\tSeekDurationMs         param.Opt[float64]                             `json:\"seek_duration_ms,omitzero\"`\n\tRenditionPlayingTime   []shared.RenditionPlayingTimeParam             `json:\"rendition_playing_time,omitzero\"`\n\t// Browser and device information. The Chunkify player sends every field, with null\n\t// for unavailable measurements. Other integrations may omit any field except\n\t// schema_version. Extra properties are preserved.\n\tBrowserContext shared.BrowserContextParam `json:\"browser_context,omitzero\"`\n\t// This field can be elided, and will marshal its zero value as\n\t// \"chunkify.video.playback_state_changed\".\n\tEventName constant.ChunkifyVideoPlaybackStateChanged `json:\"event_name\" default:\"chunkify.video.playback_state_changed\"`\n\t// This field can be elided, and will marshal its zero value as 1.\n\tSchemaVersion float64 `json:\"schema_version,omitzero\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nThe properties ConnectorName, ConnectorVersion, DeliveryHostname, Environment, ErrorCategory, ErrorCode, ErrorFatal, ErrorPlayheadSeconds, EventID, EventName, FromState, OccurredAt, PlayerName, PlayerVersion, PlayheadSeconds, PreviousStateDurationMs, Reason, SchemaVersion, SDKName, SDKVersion, Sequence, StartupOutcome, ToState, VideoID, ViewID, ViewerID are required.\n\n```go\nfunc (r PlaybackStateChangedParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *PlaybackStateChangedParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype PlaybackStateChangedReason string\n```\n\n```go\nconst (\n\tPlaybackStateChangedReasonEnded         PlaybackStateChangedReason = \"ended\"\n\tPlaybackStateChangedReasonDestroyed     PlaybackStateChangedReason = \"destroyed\"\n\tPlaybackStateChangedReasonSourceChanged PlaybackStateChangedReason = \"source_changed\"\n\tPlaybackStateChangedReasonPageExit      PlaybackStateChangedReason = \"page_exit\"\n)\n```\n\n```go\ntype PlaybackStateChangedStartupOutcome string\n```\n\n```go\nconst (\n\tPlaybackStateChangedStartupOutcomeStarted           PlaybackStateChangedStartupOutcome = \"started\"\n\tPlaybackStateChangedStartupOutcomeFailedBeforeStart PlaybackStateChangedStartupOutcome = \"failed_before_start\"\n\tPlaybackStateChangedStartupOutcomeEndedBeforeStart  PlaybackStateChangedStartupOutcome = \"ended_before_start\"\n)\n```\n\n```go\ntype PlaybackStateChangedToState string\n```\n\n```go\nconst (\n\tPlaybackStateChangedToStateStartup   PlaybackStateChangedToState = \"startup\"\n\tPlaybackStateChangedToStateResuming  PlaybackStateChangedToState = \"resuming\"\n\tPlaybackStateChangedToStatePlaying   PlaybackStateChangedToState = \"playing\"\n\tPlaybackStateChangedToStatePaused    PlaybackStateChangedToState = \"paused\"\n\tPlaybackStateChangedToStateBuffering PlaybackStateChangedToState = \"buffering\"\n\tPlaybackStateChangedToStateSeeking   PlaybackStateChangedToState = \"seeking\"\n\tPlaybackStateChangedToStateError     PlaybackStateChangedToState = \"error\"\n\tPlaybackStateChangedToStateEnded     PlaybackStateChangedToState = \"ended\"\n\tPlaybackStateChangedToStateStopped   PlaybackStateChangedToState = \"stopped\"\n)\n```\n\n```go\ntype PlaybackStateChangedVisibilityState string\n```\nTab visibility when the event was recorded. Hidden does not imply paused playback or identify the cause of a pause. Missing on older events; null when unavailable.\n\n```go\nconst (\n\tPlaybackStateChangedVisibilityStateVisible PlaybackStateChangedVisibilityState = \"visible\"\n\tPlaybackStateChangedVisibilityStateHidden  PlaybackStateChangedVisibilityState = \"hidden\"\n)\n```\n\n```go\ntype PlayedRange = shared.PlayedRange\n```\nThis is an alias to an internal type.\n\n```go\ntype PlayedRangeParam = shared.PlayedRangeParam\n```\nThis is an alias to an internal type.\n\n```go\ntype ProgressReached = shared.ProgressReached\n```\nFurthest progress on the selected final event or latest snapshot. Only views with a positive known media duration and a progress ratio in \\[0,1] are samples. Each milestone ratio uses sample\\_views. Seeking can count; this is not watched coverage or audience retention.\n\nThis is an alias to an internal type.\n\n```go\ntype Project struct {\n\tAllowedOrigins []string `json:\"allowed_origins\" api:\"required\"`\n\t// Combined shared and project origins.\n\tEffectiveAllowedOrigins []string `json:\"effective_allowed_origins\" api:\"required\"`\n\t// Effective retention in seconds after resolving the installation default. 0\n\t// disables expiration.\n\tEffectiveRetentionSeconds int64  `json:\"effective_retention_seconds\" api:\"required\"`\n\tName                      string `json:\"name\" api:\"required\"`\n\tProjectID                 string `json:\"project_id\" api:\"required\"`\n\tRestartRequired           bool   `json:\"restart_required\" api:\"required\"`\n\t// Retention by server receipt time, in seconds. 0 disables expiration; null\n\t// inherits the installation default.\n\tRetentionSeconds int64  `json:\"retention_seconds\" api:\"required\"`\n\tWarning          string `json:\"warning\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAllowedOrigins            respjson.Field\n\t\tEffectiveAllowedOrigins   respjson.Field\n\t\tEffectiveRetentionSeconds respjson.Field\n\t\tName                      respjson.Field\n\t\tProjectID                 respjson.Field\n\t\tRestartRequired           respjson.Field\n\t\tRetentionSeconds          respjson.Field\n\t\tWarning                   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 ProjectKey struct {\n\tID   string `json:\"id\" api:\"required\"`\n\tName string `json:\"name\" api:\"required\"`\n\t// Any of \"public\", \"secret\".\n\tPermission ProjectKeyPermission `json:\"permission\" api:\"required\"`\n\t// True for a private key limited to analytics reads through HTTP and MCP. Public\n\t// keys always report false. Rotation preserves this setting.\n\tReadOnly bool `json:\"read_only\" 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\tName        respjson.Field\n\t\tPermission  respjson.Field\n\t\tReadOnly    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 ProjectKey) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProjectKey) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProjectKeyNewParams struct {\n\t// Key display name, up to 128 UTF-8 bytes. Whitespace-only names are rejected.\n\tName string `json:\"name\" api:\"required\"`\n\t// Any of \"public\", \"secret\".\n\tPermission ProjectKeyNewParamsPermission `json:\"permission,omitzero\" api:\"required\"`\n\t// Only secret keys can be read-only. False grants full project management access\n\t// to secret keys; public keys only ingest events.\n\tReadOnly param.Opt[bool] `json:\"read_only,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ProjectKeyNewParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ProjectKeyNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProjectKeyNewParamsPermission string\n```\n\n```go\nconst (\n\tProjectKeyNewParamsPermissionPublic ProjectKeyNewParamsPermission = \"public\"\n\tProjectKeyNewParamsPermissionSecret ProjectKeyNewParamsPermission = \"secret\"\n)\n```\n\n```go\ntype ProjectKeyPermission string\n```\n\n```go\nconst (\n\tProjectKeyPermissionPublic ProjectKeyPermission = \"public\"\n\tProjectKeyPermissionSecret ProjectKeyPermission = \"secret\"\n)\n```\n\n```go\ntype ProjectKeyService struct {\n\tOptions []option.RequestOption\n}\n```\nProject origins and keys.\n\nProjectKeyService contains methods and other services that help with interacting with the Chunkify Analytics 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 [NewProjectKeyService](#NewProjectKeyService) method instead.\n\n```go\nfunc NewProjectKeyService(opts ...option.RequestOption) (r ProjectKeyService)\n```\nNewProjectKeyService 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 *ProjectKeyService) List(ctx context.Context, opts ...option.RequestOption) (res *ProjectKeys, err error)\n```\nList key IDs, names, and types. Key values are not returned. Requires a full-access private key; read-only keys receive 403.\n\n```go\nfunc (r *ProjectKeyService) New(ctx context.Context, body ProjectKeyNewParams, opts ...option.RequestOption) (res *CreatedProjectKey, err error)\n```\nCreate a named public ingestion key or secret key in the authenticated project. Secret keys default to full project access; set read\\_only to true for analytics reads and exports only. Requires a full-access project secret key. Read-only keys receive 403 and the installation admin key is not accepted. The key is active immediately and its value is returned once; store it before leaving this response. Each project supports at most 64 active keys, including its initial keys.\n\n```go\nfunc (r *ProjectKeyService) Rotate(ctx context.Context, keyID string, opts ...option.RequestOption) (res *RotatedProjectKey, err error)\n```\nReplace a key in this project. The old value stops working immediately. Save the returned replacement. Requires a full-access private key; read-only keys receive 403. Only the selected key is rotated. If its replacement is lost, a trusted backend can rotate it again through the installation admin API.\n\n```go\ntype ProjectKeys struct {\n\tKeys      []ProjectKey `json:\"keys\" api:\"required\"`\n\tProjectID string       `json:\"project_id\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tKeys        respjson.Field\n\t\tProjectID   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 ProjectKeys) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProjectKeys) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProjectService struct {\n\tOptions []option.RequestOption\n\t// Project origins and keys.\n\tKeys ProjectKeyService\n}\n```\nProject origins and keys.\n\nProjectService contains methods and other services that help with interacting with the Chunkify Analytics 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, opts ...option.RequestOption) (res *DeletedProject, err error)\n```\nRevoke all project keys. Stored events remain until their retention expires. Requires a full-access private key; read-only keys receive 403.\n\n```go\nfunc (r *ProjectService) Update(ctx context.Context, body ProjectUpdateParams, opts ...option.RequestOption) (res *Project, err error)\n```\nUpdate the name, additional origins or retention of your project. Omitted fields stay unchanged. Set retention\\_seconds to null to inherit the installation default, or 0 to disable expiration. Changes apply to existing and new events without a restart. Requires a full-access private key; read-only keys receive 403.\n\n```go\ntype ProjectUpdateParams struct {\n\t// Retention by server receipt time, in seconds. 0 disables expiration; null\n\t// inherits the installation default. Omission leaves the current setting\n\t// unchanged. Applies to existing and new events; removed data cannot be recovered.\n\tRetentionSeconds param.Opt[int64]  `json:\"retention_seconds,omitzero\"`\n\tName             param.Opt[string] `json:\"name,omitzero\"`\n\t// Additional project origins. Shared TOML origins are always included.\n\tAllowedOrigins []string `json:\"allowed_origins,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 Quality struct {\n\t// Duration-weighted buffering. Startup wait, pauses and seeking are excluded by\n\t// the SDK. Unknown durations are not treated as zero.\n\tBuffering QualityBuffering `json:\"buffering\" api:\"required\"`\n\t// Observed fatal errors. Lost events can undercount this metric; absence of an\n\t// error is not proof of successful playback.\n\tFatalErrors   QualityFatalErrors   `json:\"fatal_errors\" api:\"required\"`\n\tPlaybackScore shared.PlaybackScore `json:\"playback_score\" api:\"required\"`\n\t// Mutually exclusive outcomes. An explicit startup_outcome on the selected final\n\t// event takes precedence. Otherwise an available startup time, including zero, or\n\t// positive playing time on the selected measurement proves started. All other\n\t// views are unknown. sample_views excludes unknown; every ratio uses all selected\n\t// attempts, including unknown. Missing final delivery does not prove an exit or\n\t// failure.\n\tStartupOutcomes shared.StartupOutcomes `json:\"startup_outcomes\" api:\"required\"`\n\t// Time from attempt to first playing, measured once per eligible view. This is not\n\t// first-frame timing.\n\tStartupTimeMs QualityStartupTimeMs `json:\"startup_time_ms\" api:\"required\"`\n\t// Selected playback attempts with a retained start, including failed attempts.\n\tViews int64 `json:\"views\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tBuffering       respjson.Field\n\t\tFatalErrors     respjson.Field\n\t\tPlaybackScore   respjson.Field\n\t\tStartupOutcomes respjson.Field\n\t\tStartupTimeMs   respjson.Field\n\t\tViews           respjson.Field\n\t\tExtraFields     map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nPlayback quality for the same start cohort as summary. All rates are fractions. Counts expose measurement coverage.\n\n```go\nfunc (r Quality) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *Quality) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype QualityBreakdownPage struct {\n\t// A custom dimension key, such as custom.plan.\n\tGroupBy    QualityBreakdownPageGroupBy `json:\"group_by\" api:\"required\"`\n\tGroups     []QualityBreakdownPageGroup `json:\"groups\" api:\"required\"`\n\tNextCursor string                      `json:\"next_cursor\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tGroupBy     respjson.Field\n\t\tGroups      respjson.Field\n\t\tNextCursor  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 QualityBreakdownPage) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *QualityBreakdownPage) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype QualityBreakdownPageGroup struct {\n\t// Playback quality for the same start cohort as summary. All rates are fractions.\n\t// Counts expose measurement coverage.\n\tData  Quality `json:\"data\" api:\"required\"`\n\tValue string  `json:\"value\" 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\tValue       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 QualityBreakdownPageGroup) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *QualityBreakdownPageGroup) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype QualityBreakdownPageGroupBy string\n```\n\n```go\nconst (\n\tQualityBreakdownPageGroupByBrowserName      QualityBreakdownPageGroupBy = \"browser_name\"\n\tQualityBreakdownPageGroupByOsName           QualityBreakdownPageGroupBy = \"os_name\"\n\tQualityBreakdownPageGroupByDeviceType       QualityBreakdownPageGroupBy = \"device_type\"\n\tQualityBreakdownPageGroupByContinent        QualityBreakdownPageGroupBy = \"continent\"\n\tQualityBreakdownPageGroupByCountry          QualityBreakdownPageGroupBy = \"country\"\n\tQualityBreakdownPageGroupByCity             QualityBreakdownPageGroupBy = \"city\"\n\tQualityBreakdownPageGroupByPageOrigin       QualityBreakdownPageGroupBy = \"page_origin\"\n\tQualityBreakdownPageGroupByPagePath         QualityBreakdownPageGroupBy = \"page_path\"\n\tQualityBreakdownPageGroupBySubtitleLanguage QualityBreakdownPageGroupBy = \"subtitle_language\"\n\tQualityBreakdownPageGroupByPlaybackRate     QualityBreakdownPageGroupBy = \"playback_rate\"\n\tQualityBreakdownPageGroupByDeliveryFormat   QualityBreakdownPageGroupBy = \"delivery_format\"\n\tQualityBreakdownPageGroupByVideoTitle       QualityBreakdownPageGroupBy = \"video_title\"\n\tQualityBreakdownPageGroupByUserID           QualityBreakdownPageGroupBy = \"user_id\"\n)\n```\n\n```go\ntype QualityBuffering struct {\n\t// Total rebuffer time divided by combined playing and rebuffer time. Null without\n\t// samples. Multiply by 100 for percent.\n\tRatio float64 `json:\"ratio\" api:\"required\"`\n\t// Views with playing and rebuffer durations available and positive combined\n\t// duration.\n\tSampleViews int64 `json:\"sample_views\" api:\"required\"`\n\t// Sum of playing time for eligible buffering samples only.\n\tTotalPlayingTimeMs float64 `json:\"total_playing_time_ms\" api:\"required\"`\n\t// Sum of rebuffer time for the same samples.\n\tTotalRebufferDurationMs float64 `json:\"total_rebuffer_duration_ms\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tRatio                   respjson.Field\n\t\tSampleViews             respjson.Field\n\t\tTotalPlayingTimeMs      respjson.Field\n\t\tTotalRebufferDurationMs respjson.Field\n\t\tExtraFields             map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nDuration-weighted buffering. Startup wait, pauses and seeking are excluded by the SDK. Unknown durations are not treated as zero.\n\n```go\nfunc (r QualityBuffering) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *QualityBuffering) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype QualityFatalErrors struct {\n\t// Distinct selected views with at least one observed matching fatal\n\t// playback_error, including before playback starts.\n\tAffectedViews int64 `json:\"affected_views\" api:\"required\"`\n\t// Affected views divided by all selected attempts; null when views is zero.\n\t// Multiply by 100 for percent.\n\tRatio float64 `json:\"ratio\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAffectedViews respjson.Field\n\t\tRatio         respjson.Field\n\t\tExtraFields   map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nObserved fatal errors. Lost events can undercount this metric; absence of an error is not proof of successful playback.\n\n```go\nfunc (r QualityFatalErrors) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *QualityFatalErrors) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype QualityGetParams struct {\n\t// Exact browser name, such as Chrome. Missing values do not match.\n\tBrowserName param.Opt[string] `query:\"browser_name,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive city name from the local lookup, with 1 to 256 Unicode\n\t// characters. Use country alongside city to distinguish places with the same name.\n\t// Missing locations do not match.\n\tCity param.Opt[string] `query:\"city,omitzero\" json:\"-\"`\n\t// Exact uppercase ISO 3166-1 alpha-2 country code, such as GB. Missing locations\n\t// do not match.\n\tCountry param.Opt[string] `query:\"country,omitzero\" json:\"-\"`\n\t// Use next_cursor from the previous page. Keep the same filters, sort_by and\n\t// order. Video cursors from earlier versions are invalid; start a new pagination\n\t// sequence after upgrading.\n\tCursor param.Opt[string] `query:\"cursor,omitzero\" json:\"-\"`\n\t// Inclusive RFC3339 occurrence-time lower bound, with timezone. Summary/video\n\t// queries apply it to the selected view_started event. Must be before to.\n\tFrom param.Opt[time.Time] `query:\"from,omitzero\" format:\"date-time\" json:\"-\"`\n\t// Maximum rows on this page. Events and videos always support pagination; summary,\n\t// quality and engagement support it only with group_by.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Exact operating-system name, such as macOS. Missing values do not match.\n\tOsName param.Opt[string] `query:\"os_name,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive page origin captured by the player, such as\n\t// https://example.com. Metrics use the first retained view start; raw events use\n\t// each event context. Missing values do not match.\n\tPageOrigin param.Opt[string] `query:\"page_origin,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive page path captured by the player, such as /watch/video.\n\t// Filter by page_origin as well to distinguish identical paths on different sites.\n\t// Metrics use the first retained view start; raw events use each event context.\n\t// Missing values do not match.\n\tPagePath param.Opt[string] `query:\"page_path,omitzero\" json:\"-\"`\n\t// Playback rate from 0.01 to 16 with at most two decimals, such as 1, 1.5 or 2;\n\t// 2.0 and 2 are the same rate. Metrics use the rate on the first retained view\n\t// start; raw events use each event's value.\n\tPlaybackRate param.Opt[string] `query:\"playback_rate,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive, non-blank subtitle language tag, such as fr or en-US; und\n\t// for a subtitles track without a language. Metrics use the language showing on\n\t// the first retained view start; raw events use each event's value. Views without\n\t// subtitles at start do not match.\n\tSubtitleLanguage param.Opt[string] `query:\"subtitle_language,omitzero\" json:\"-\"`\n\t// Exclusive RFC3339 occurrence-time upper bound, with timezone. Summary/video\n\t// queries apply it to the selected view_started event.\n\tTo param.Opt[time.Time] `query:\"to,omitzero\" format:\"date-time\" json:\"-\"`\n\t// Exact integrator-supplied user ID. Selects views by their start event; event\n\t// lists match each event's own value. Missing/null user IDs do not match. Reports\n\t// with this filter read one stored row per view.\n\tUserID param.Opt[string] `query:\"user_id,omitzero\" json:\"-\"`\n\t// Exact video ID; must not be blank. Combined with all other filters using AND.\n\tVideoID param.Opt[string] `query:\"video_id,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive video title. Selects views by the title on their first\n\t// retained start; event lists match each event's own value. Views without a title\n\t// do not match. Reports with this filter read one stored row per view.\n\tVideoTitle param.Opt[string] `query:\"video_title,omitzero\" json:\"-\"`\n\t// Filter one playback attempt by view ID. Metrics use its first retained start.\n\tViewID param.Opt[string] `query:\"view_id,omitzero\" json:\"-\"`\n\t// Exact viewer ID. The Chunkify player SDK generates one per browser; missing/null\n\t// viewer IDs do not match.\n\tViewerID param.Opt[string] `query:\"viewer_id,omitzero\" json:\"-\"`\n\t// Exact continent code from the local lookup. Missing locations do not match.\n\t//\n\t// Any of \"AF\", \"AN\", \"AS\", \"EU\", \"NA\", \"OC\", \"SA\".\n\tContinent QualityGetParamsContinent `query:\"continent,omitzero\" json:\"-\"`\n\t// Delivery format on the first retained view start: hls for HLS streams, file for\n\t// a single media file such as an MP4 rendition. Metrics use the first retained\n\t// view start; raw events use each event's value. Views whose SDK did not report it\n\t// do not match. connector_name is not a substitute: Safari plays HLS natively and\n\t// reports html-media.\n\t//\n\t// Any of \"hls\", \"file\".\n\tDeliveryFormat QualityGetParamsDeliveryFormat `query:\"delivery_format,omitzero\" json:\"-\"`\n\t// Exact device class. unknown matches an explicit unknown value.\n\t//\n\t// Any of \"desktop\", \"mobile\", \"tablet\", \"unknown\".\n\tDeviceType QualityGetParamsDeviceType `query:\"device_type,omitzero\" json:\"-\"`\n\t// Optional on summary, quality and engagement. Group views by this field on their\n\t// first retained start. Missing, null and nonstring context forms a null group;\n\t// the literal device type unknown stays separate. Groups sort by views descending,\n\t// then value ascending with null first for ties. Pagination is available only with\n\t// group_by. Location uses the first retained start too. City groups use the stored\n\t// name; filter by country to avoid combining names shared by different countries.\n\t// Page groups use the first retained start even if playback continues after\n\t// navigation. Filter by page_origin when grouping page_path to distinguish\n\t// identical paths on different sites. video_title groups by the title on each\n\t// view's first retained start, so a renamed video counts each view under the title\n\t// it started with. delivery_format groups by hls or file on each view's first\n\t// retained start; views from SDKs that do not report it form the null group.\n\t// user_id groups by the user ID on each view's first retained start. Use\n\t// custom.\u003ckey\u003e, such as custom.plan, to group by a custom dimension; views without\n\t// the key form the null group.\n\tGroupBy QualityGetParamsGroupBy `query:\"group_by,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r QualityGetParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [QualityGetParams](#QualityGetParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype QualityGetParamsContinent string\n```\nExact continent code from the local lookup. Missing locations do not match.\n\n```go\nconst (\n\tQualityGetParamsContinentAf QualityGetParamsContinent = \"AF\"\n\tQualityGetParamsContinentAn QualityGetParamsContinent = \"AN\"\n\tQualityGetParamsContinentAs QualityGetParamsContinent = \"AS\"\n\tQualityGetParamsContinentEu QualityGetParamsContinent = \"EU\"\n\tQualityGetParamsContinentNa QualityGetParamsContinent = \"NA\"\n\tQualityGetParamsContinentOc QualityGetParamsContinent = \"OC\"\n\tQualityGetParamsContinentSa QualityGetParamsContinent = \"SA\"\n)\n```\n\n```go\ntype QualityGetParamsDeliveryFormat string\n```\nDelivery format on the first retained view start: hls for HLS streams, file for a single media file such as an MP4 rendition. Metrics use the first retained view start; raw events use each event's value. Views whose SDK did not report it do not match. connector\\_name is not a substitute: Safari plays HLS natively and reports html-media.\n\n```go\nconst (\n\tQualityGetParamsDeliveryFormatHls  QualityGetParamsDeliveryFormat = \"hls\"\n\tQualityGetParamsDeliveryFormatFile QualityGetParamsDeliveryFormat = \"file\"\n)\n```\n\n```go\ntype QualityGetParamsDeviceType string\n```\nExact device class. unknown matches an explicit unknown value.\n\n```go\nconst (\n\tQualityGetParamsDeviceTypeDesktop QualityGetParamsDeviceType = \"desktop\"\n\tQualityGetParamsDeviceTypeMobile  QualityGetParamsDeviceType = \"mobile\"\n\tQualityGetParamsDeviceTypeTablet  QualityGetParamsDeviceType = \"tablet\"\n\tQualityGetParamsDeviceTypeUnknown QualityGetParamsDeviceType = \"unknown\"\n)\n```\n\n```go\ntype QualityGetParamsGroupBy string\n```\nOptional on summary, quality and engagement. Group views by this field on their first retained start. Missing, null and nonstring context forms a null group; the literal device type unknown stays separate. Groups sort by views descending, then value ascending with null first for ties. Pagination is available only with group\\_by. Location uses the first retained start too. City groups use the stored name; filter by country to avoid combining names shared by different countries. Page groups use the first retained start even if playback continues after navigation. Filter by page\\_origin when grouping page\\_path to distinguish identical paths on different sites. video\\_title groups by the title on each view's first retained start, so a renamed video counts each view under the title it started with. delivery\\_format groups by hls or file on each view's first retained start; views from SDKs that do not report it form the null group. user\\_id groups by the user ID on each view's first retained start. Use custom.\\\u003ckey\u003e, such as custom.plan, to group by a custom dimension; views without the key form the null group.\n\n```go\nconst (\n\tQualityGetParamsGroupByBrowserName      QualityGetParamsGroupBy = \"browser_name\"\n\tQualityGetParamsGroupByOsName           QualityGetParamsGroupBy = \"os_name\"\n\tQualityGetParamsGroupByDeviceType       QualityGetParamsGroupBy = \"device_type\"\n\tQualityGetParamsGroupByContinent        QualityGetParamsGroupBy = \"continent\"\n\tQualityGetParamsGroupByCountry          QualityGetParamsGroupBy = \"country\"\n\tQualityGetParamsGroupByCity             QualityGetParamsGroupBy = \"city\"\n\tQualityGetParamsGroupByPageOrigin       QualityGetParamsGroupBy = \"page_origin\"\n\tQualityGetParamsGroupByPagePath         QualityGetParamsGroupBy = \"page_path\"\n\tQualityGetParamsGroupBySubtitleLanguage QualityGetParamsGroupBy = \"subtitle_language\"\n\tQualityGetParamsGroupByPlaybackRate     QualityGetParamsGroupBy = \"playback_rate\"\n\tQualityGetParamsGroupByDeliveryFormat   QualityGetParamsGroupBy = \"delivery_format\"\n\tQualityGetParamsGroupByVideoTitle       QualityGetParamsGroupBy = \"video_title\"\n\tQualityGetParamsGroupByUserID           QualityGetParamsGroupBy = \"user_id\"\n)\n```\n\n```go\ntype QualityResponseUnion struct {\n\t// This field is from variant [Quality].\n\tBuffering QualityBuffering `json:\"buffering\"`\n\t// This field is from variant [Quality].\n\tFatalErrors QualityFatalErrors `json:\"fatal_errors\"`\n\t// This field is from variant [Quality].\n\tPlaybackScore shared.PlaybackScore `json:\"playback_score\"`\n\t// This field is from variant [Quality].\n\tStartupOutcomes shared.StartupOutcomes `json:\"startup_outcomes\"`\n\t// This field is from variant [Quality].\n\tStartupTimeMs QualityStartupTimeMs `json:\"startup_time_ms\"`\n\t// This field is from variant [Quality].\n\tViews int64 `json:\"views\"`\n\t// This field is from variant [QualityBreakdownPage].\n\tGroupBy QualityBreakdownPageGroupBy `json:\"group_by\"`\n\t// This field is from variant [QualityBreakdownPage].\n\tGroups []QualityBreakdownPageGroup `json:\"groups\"`\n\t// This field is from variant [QualityBreakdownPage].\n\tNextCursor string `json:\"next_cursor\"`\n\tJSON       struct {\n\t\tBuffering       respjson.Field\n\t\tFatalErrors     respjson.Field\n\t\tPlaybackScore   respjson.Field\n\t\tStartupOutcomes respjson.Field\n\t\tStartupTimeMs   respjson.Field\n\t\tViews           respjson.Field\n\t\tGroupBy         respjson.Field\n\t\tGroups          respjson.Field\n\t\tNextCursor      respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nQualityResponseUnion contains all possible properties and values from [Quality](#Quality), [QualityBreakdownPage](#QualityBreakdownPage).\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\n```go\nfunc (u QualityResponseUnion) AsQuality() (v Quality)\n```\n\n```go\nfunc (u QualityResponseUnion) AsQualityBreakdownPage() (v QualityBreakdownPage)\n```\n\n```go\nfunc (u QualityResponseUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *QualityResponseUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype QualityService struct {\n\tOptions []option.RequestOption\n}\n```\nPrivate retained-event and view-cohort queries.\n\nQualityService contains methods and other services that help with interacting with the Chunkify Analytics 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 [NewQualityService](#NewQualityService) method instead.\n\n```go\nfunc NewQualityService(opts ...option.RequestOption) (r QualityService)\n```\nNewQualityService 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 *QualityService) Get(ctx context.Context, query QualityGetParams, opts ...option.RequestOption) (res *QualityResponseUnion, err error)\n```\nGet startup time, buffering, and observed fatal errors for matching playback attempts. Null means unavailable. Optionally group the full filtered view-start cohort with group\\_by=browser\\_name, os\\_name, device\\_type, continent, country or city. Without group\\_by the totals response is unchanged. With group\\_by, return paginated groups sorted by views descending. Equal view counts sort by value ascending, null first. Context comes from the first retained start; missing, null and nonstring values form a null group. Keep group\\_by and filters unchanged with each cursor. Unique viewers must not be summed across groups. Includes mutually exclusive startup outcomes; unknown outcomes remain explicit.\n\n```go\ntype QualityStartupTimeMs struct {\n\t// Continuous median startup time in milliseconds, or null without samples.\n\tMedian float64 `json:\"median\" api:\"required\"`\n\t// Continuous 95th percentile startup time in milliseconds, or null without\n\t// samples.\n\tP95 float64 `json:\"p95\" api:\"required\"`\n\t// Views with a non-null startup measurement on the selected final event or latest\n\t// snapshot.\n\tSampleViews int64 `json:\"sample_views\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tMedian      respjson.Field\n\t\tP95         respjson.Field\n\t\tSampleViews respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nTime from attempt to first playing, measured once per eligible view. This is not first-frame timing.\n\n```go\nfunc (r QualityStartupTimeMs) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *QualityStartupTimeMs) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype QualityTimeseries struct {\n\tBuckets []QualityTimeseriesBucket `json:\"buckets\" api:\"required\"`\n\t// Inclusive query bound normalized to UTC milliseconds.\n\tFrom time.Time `json:\"from\" api:\"required\" format:\"date-time\"`\n\t// Any of \"hour\", \"day\".\n\tInterval QualityTimeseriesInterval `json:\"interval\" api:\"required\"`\n\tKind     constant.Quality          `json:\"kind\" default:\"quality\"`\n\tTimezone constant.Utc              `json:\"timezone\" default:\"UTC\"`\n\t// Exclusive query bound normalized to UTC milliseconds.\n\tTo time.Time `json:\"to\" api:\"required\" format:\"date-time\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tBuckets     respjson.Field\n\t\tFrom        respjson.Field\n\t\tInterval    respjson.Field\n\t\tKind        respjson.Field\n\t\tTimezone    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```\n\n```go\nfunc (r QualityTimeseries) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *QualityTimeseries) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype QualityTimeseriesBucket struct {\n\tBucketStart time.Time `json:\"bucket_start\" api:\"required\" format:\"date-time\"`\n\t// Duration-weighted buffering. Startup wait, pauses and seeking are excluded by\n\t// the SDK. Unknown durations are not treated as zero.\n\tBuffering QualityTimeseriesBucketBuffering `json:\"buffering\" api:\"required\"`\n\t// Observed fatal errors. Lost events can undercount this metric; absence of an\n\t// error is not proof of successful playback.\n\tFatalErrors   QualityTimeseriesBucketFatalErrors `json:\"fatal_errors\" api:\"required\"`\n\tPlaybackScore shared.PlaybackScore               `json:\"playback_score\" api:\"required\"`\n\t// Mutually exclusive outcomes. An explicit startup_outcome on the selected final\n\t// event takes precedence. Otherwise an available startup time, including zero, or\n\t// positive playing time on the selected measurement proves started. All other\n\t// views are unknown. sample_views excludes unknown; every ratio uses all selected\n\t// attempts, including unknown. Missing final delivery does not prove an exit or\n\t// failure.\n\tStartupOutcomes shared.StartupOutcomes `json:\"startup_outcomes\" api:\"required\"`\n\t// Time from attempt to first playing, measured once per eligible view. This is not\n\t// first-frame timing.\n\tStartupTimeMs QualityTimeseriesBucketStartupTimeMs `json:\"startup_time_ms\" api:\"required\"`\n\t// Selected playback attempts with a retained start, including failed attempts.\n\tViews int64 `json:\"views\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tBucketStart     respjson.Field\n\t\tBuffering       respjson.Field\n\t\tFatalErrors     respjson.Field\n\t\tPlaybackScore   respjson.Field\n\t\tStartupOutcomes respjson.Field\n\t\tStartupTimeMs   respjson.Field\n\t\tViews           respjson.Field\n\t\tExtraFields     map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nPlayback quality for the same start cohort as summary. All rates are fractions. Counts expose measurement coverage.\n\n```go\nfunc (r QualityTimeseriesBucket) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *QualityTimeseriesBucket) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype QualityTimeseriesBucketBuffering struct {\n\t// Total rebuffer time divided by combined playing and rebuffer time. Null without\n\t// samples. Multiply by 100 for percent.\n\tRatio float64 `json:\"ratio\" api:\"required\"`\n\t// Views with playing and rebuffer durations available and positive combined\n\t// duration.\n\tSampleViews int64 `json:\"sample_views\" api:\"required\"`\n\t// Sum of playing time for eligible buffering samples only.\n\tTotalPlayingTimeMs float64 `json:\"total_playing_time_ms\" api:\"required\"`\n\t// Sum of rebuffer time for the same samples.\n\tTotalRebufferDurationMs float64 `json:\"total_rebuffer_duration_ms\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tRatio                   respjson.Field\n\t\tSampleViews             respjson.Field\n\t\tTotalPlayingTimeMs      respjson.Field\n\t\tTotalRebufferDurationMs respjson.Field\n\t\tExtraFields             map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nDuration-weighted buffering. Startup wait, pauses and seeking are excluded by the SDK. Unknown durations are not treated as zero.\n\n```go\nfunc (r QualityTimeseriesBucketBuffering) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *QualityTimeseriesBucketBuffering) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype QualityTimeseriesBucketFatalErrors struct {\n\t// Distinct selected views with at least one observed matching fatal\n\t// playback_error, including before playback starts.\n\tAffectedViews int64 `json:\"affected_views\" api:\"required\"`\n\t// Affected views divided by all selected attempts; null when views is zero.\n\t// Multiply by 100 for percent.\n\tRatio float64 `json:\"ratio\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAffectedViews respjson.Field\n\t\tRatio         respjson.Field\n\t\tExtraFields   map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nObserved fatal errors. Lost events can undercount this metric; absence of an error is not proof of successful playback.\n\n```go\nfunc (r QualityTimeseriesBucketFatalErrors) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *QualityTimeseriesBucketFatalErrors) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype QualityTimeseriesBucketStartupTimeMs struct {\n\t// Continuous median startup time in milliseconds, or null without samples.\n\tMedian float64 `json:\"median\" api:\"required\"`\n\t// Continuous 95th percentile startup time in milliseconds, or null without\n\t// samples.\n\tP95 float64 `json:\"p95\" api:\"required\"`\n\t// Views with a non-null startup measurement on the selected final event or latest\n\t// snapshot.\n\tSampleViews int64 `json:\"sample_views\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tMedian      respjson.Field\n\t\tP95         respjson.Field\n\t\tSampleViews respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nTime from attempt to first playing, measured once per eligible view. This is not first-frame timing.\n\n```go\nfunc (r QualityTimeseriesBucketStartupTimeMs) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *QualityTimeseriesBucketStartupTimeMs) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype QualityTimeseriesInterval string\n```\n\n```go\nconst (\n\tQualityTimeseriesIntervalHour QualityTimeseriesInterval = \"hour\"\n\tQualityTimeseriesIntervalDay  QualityTimeseriesInterval = \"day\"\n)\n```\n\n```go\ntype RenditionChanged struct {\n\tConnectorName    string `json:\"connector_name\" api:\"required\"`\n\tConnectorVersion string `json:\"connector_version\" api:\"required\"`\n\tDeliveryHostname string `json:\"delivery_hostname\" api:\"required\"`\n\tEnvironment      string `json:\"environment\" api:\"required\"`\n\t// Any of \"aborted\", \"network\", \"decode\", \"unsupported\", \"unknown\".\n\tErrorCategory               RenditionChangedErrorCategory          `json:\"error_category\" api:\"required\"`\n\tErrorCode                   RenditionChangedErrorCodeUnion         `json:\"error_code\" api:\"required\"`\n\tErrorFatal                  bool                                   `json:\"error_fatal\" api:\"required\"`\n\tErrorPlayheadSeconds        float64                                `json:\"error_playhead_seconds\" api:\"required\"`\n\tEventID                     string                                 `json:\"event_id\" api:\"required\" format:\"uuid\"`\n\tEventName                   constant.ChunkifyVideoRenditionChanged `json:\"event_name\" default:\"chunkify.video.rendition_changed\"`\n\tOccurredAt                  time.Time                              `json:\"occurred_at\" api:\"required\" format:\"date-time\"`\n\tPlayerHeightPx              float64                                `json:\"player_height_px\" api:\"required\"`\n\tPlayerName                  string                                 `json:\"player_name\" api:\"required\"`\n\tPlayerVersion               string                                 `json:\"player_version\" api:\"required\"`\n\tPlayerWidthPx               float64                                `json:\"player_width_px\" api:\"required\"`\n\tPlayheadSeconds             float64                                `json:\"playhead_seconds\" api:\"required\"`\n\tPreviousRenditionBitrateBps float64                                `json:\"previous_rendition_bitrate_bps\" api:\"required\"`\n\tPreviousRenditionCodec      string                                 `json:\"previous_rendition_codec\" api:\"required\"`\n\tPreviousRenditionFrameRate  float64                                `json:\"previous_rendition_frame_rate\" api:\"required\"`\n\tPreviousRenditionHeight     float64                                `json:\"previous_rendition_height\" api:\"required\"`\n\tPreviousRenditionWidth      float64                                `json:\"previous_rendition_width\" api:\"required\"`\n\t// Any of \"ended\", \"destroyed\", \"source_changed\", \"page_exit\".\n\tReason        RenditionChangedReason `json:\"reason\" api:\"required\"`\n\tSchemaVersion float64                `json:\"schema_version\" api:\"required\"`\n\t// Name of the SDK or integration that produced the event. Informational metadata,\n\t// preserved as received. Must contain at least one non-whitespace character.\n\tSDKName                     string  `json:\"sdk_name\" api:\"required\"`\n\tSDKVersion                  string  `json:\"sdk_version\" api:\"required\"`\n\tSelectedRenditionBitrateBps float64 `json:\"selected_rendition_bitrate_bps\" api:\"required\"`\n\tSelectedRenditionCodec      string  `json:\"selected_rendition_codec\" api:\"required\"`\n\tSelectedRenditionFrameRate  float64 `json:\"selected_rendition_frame_rate\" api:\"required\"`\n\tSelectedRenditionHeight     float64 `json:\"selected_rendition_height\" api:\"required\"`\n\tSelectedRenditionWidth      float64 `json:\"selected_rendition_width\" api:\"required\"`\n\tSequence                    int64   `json:\"sequence\" api:\"required\"`\n\t// Any of \"started\", \"failed_before_start\", \"ended_before_start\".\n\tStartupOutcome RenditionChangedStartupOutcome `json:\"startup_outcome\" api:\"required\"`\n\tVideoID        string                         `json:\"video_id\" api:\"required\"`\n\tViewID         string                         `json:\"view_id\" api:\"required\" format:\"uuid\"`\n\t// Anonymous browser identifier generated by the Chunkify player SDK and stored in\n\t// the page's localStorage.\n\tViewerID string `json:\"viewer_id\" api:\"required\"`\n\t// Browser and device information. The Chunkify player sends every field, with null\n\t// for unavailable measurements. Other integrations may omit any field except\n\t// schema_version. Extra properties are preserved.\n\tBrowserContext shared.BrowserContext `json:\"browser_context\" api:\"nullable\"`\n\t// How the player receives the media: hls for an HLS stream, file for a single\n\t// media file such as an MP4 rendition; null when unknown. Optional: older SDKs\n\t// omit it. Reports read it from each view's first start. Unlike connector_name, it\n\t// does not depend on the playback engine: Safari's native HLS reports html-media.\n\t//\n\t// Any of \"hls\", \"file\".\n\tDeliveryFormat           RenditionChangedDeliveryFormat `json:\"delivery_format\" api:\"nullable\"`\n\tDeliveryRequestCount     float64                        `json:\"delivery_request_count\" api:\"nullable\"`\n\tDeliveryThroughputBps    float64                        `json:\"delivery_throughput_bps\" api:\"nullable\"`\n\tDeliveryTransferredBytes float64                        `json:\"delivery_transferred_bytes\" api:\"nullable\"`\n\tDroppedVideoFrames       float64                        `json:\"dropped_video_frames\" api:\"nullable\"`\n\tFirstVideoFrameTimeMs    float64                        `json:\"first_video_frame_time_ms\" api:\"nullable\"`\n\tFurthestProgressRatio    float64                        `json:\"furthest_progress_ratio\" api:\"nullable\"`\n\tMaximumPlayheadSeconds   float64                        `json:\"maximum_playhead_seconds\"`\n\tMediaDurationSeconds     float64                        `json:\"media_duration_seconds\" api:\"nullable\"`\n\tMediaHeightPx            float64                        `json:\"media_height_px\" api:\"nullable\"`\n\tMediaWidthPx             float64                        `json:\"media_width_px\" api:\"nullable\"`\n\tPlayingTimeMs            float64                        `json:\"playing_time_ms\"`\n\tRebufferCount            float64                        `json:\"rebuffer_count\"`\n\tRebufferDurationMs       float64                        `json:\"rebuffer_duration_ms\"`\n\tRebufferRatio            float64                        `json:\"rebuffer_ratio\" api:\"nullable\"`\n\tRenditionPlayingTime     []shared.RenditionPlayingTime  `json:\"rendition_playing_time\" api:\"nullable\"`\n\tRenditionSwitchCount     float64                        `json:\"rendition_switch_count\" api:\"nullable\"`\n\tSeekCount                float64                        `json:\"seek_count\"`\n\tSeekDurationMs           float64                        `json:\"seek_duration_ms\"`\n\tStartupTimeMs            float64                        `json:\"startup_time_ms\" api:\"nullable\"`\n\tTotalVideoFrames         float64                        `json:\"total_video_frames\" api:\"nullable\"`\n\t// Optional integrator-supplied user ID, used to link views to the integrator's own\n\t// users.\n\tUserID string `json:\"user_id\" api:\"nullable\"`\n\t// Optional human-readable video title for reports.\n\tVideoTitle string `json:\"video_title\" api:\"nullable\"`\n\t// Tab visibility when the event was recorded. Hidden does not imply paused\n\t// playback or identify the cause of a pause. Missing on older events; null when\n\t// unavailable.\n\t//\n\t// Any of \"visible\", \"hidden\".\n\tVisibilityState RenditionChangedVisibilityState `json:\"visibility_state\" api:\"nullable\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tConnectorName               respjson.Field\n\t\tConnectorVersion            respjson.Field\n\t\tDeliveryHostname            respjson.Field\n\t\tEnvironment                 respjson.Field\n\t\tErrorCategory               respjson.Field\n\t\tErrorCode                   respjson.Field\n\t\tErrorFatal                  respjson.Field\n\t\tErrorPlayheadSeconds        respjson.Field\n\t\tEventID                     respjson.Field\n\t\tEventName                   respjson.Field\n\t\tOccurredAt                  respjson.Field\n\t\tPlayerHeightPx              respjson.Field\n\t\tPlayerName                  respjson.Field\n\t\tPlayerVersion               respjson.Field\n\t\tPlayerWidthPx               respjson.Field\n\t\tPlayheadSeconds             respjson.Field\n\t\tPreviousRenditionBitrateBps respjson.Field\n\t\tPreviousRenditionCodec      respjson.Field\n\t\tPreviousRenditionFrameRate  respjson.Field\n\t\tPreviousRenditionHeight     respjson.Field\n\t\tPreviousRenditionWidth      respjson.Field\n\t\tReason                      respjson.Field\n\t\tSchemaVersion               respjson.Field\n\t\tSDKName                     respjson.Field\n\t\tSDKVersion                  respjson.Field\n\t\tSelectedRenditionBitrateBps respjson.Field\n\t\tSelectedRenditionCodec      respjson.Field\n\t\tSelectedRenditionFrameRate  respjson.Field\n\t\tSelectedRenditionHeight     respjson.Field\n\t\tSelectedRenditionWidth      respjson.Field\n\t\tSequence                    respjson.Field\n\t\tStartupOutcome              respjson.Field\n\t\tVideoID                     respjson.Field\n\t\tViewID                      respjson.Field\n\t\tViewerID                    respjson.Field\n\t\tBrowserContext              respjson.Field\n\t\tDeliveryFormat              respjson.Field\n\t\tDeliveryRequestCount        respjson.Field\n\t\tDeliveryThroughputBps       respjson.Field\n\t\tDeliveryTransferredBytes    respjson.Field\n\t\tDroppedVideoFrames          respjson.Field\n\t\tFirstVideoFrameTimeMs       respjson.Field\n\t\tFurthestProgressRatio       respjson.Field\n\t\tMaximumPlayheadSeconds      respjson.Field\n\t\tMediaDurationSeconds        respjson.Field\n\t\tMediaHeightPx               respjson.Field\n\t\tMediaWidthPx                respjson.Field\n\t\tPlayingTimeMs               respjson.Field\n\t\tRebufferCount               respjson.Field\n\t\tRebufferDurationMs          respjson.Field\n\t\tRebufferRatio               respjson.Field\n\t\tRenditionPlayingTime        respjson.Field\n\t\tRenditionSwitchCount        respjson.Field\n\t\tSeekCount                   respjson.Field\n\t\tSeekDurationMs              respjson.Field\n\t\tStartupTimeMs               respjson.Field\n\t\tTotalVideoFrames            respjson.Field\n\t\tUserID                      respjson.Field\n\t\tVideoTitle                  respjson.Field\n\t\tVisibilityState             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 RenditionChanged) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r RenditionChanged) ToParam() RenditionChangedParam\n```\nToParam converts this RenditionChanged to a RenditionChangedParam.\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 RenditionChangedParam.Overrides()\n\n```go\nfunc (r *RenditionChanged) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype RenditionChangedDeliveryFormat string\n```\nHow the player receives the media: hls for an HLS stream, file for a single media file such as an MP4 rendition; null when unknown. Optional: older SDKs omit it. Reports read it from each view's first start. Unlike connector\\_name, it does not depend on the playback engine: Safari's native HLS reports html-media.\n\n```go\nconst (\n\tRenditionChangedDeliveryFormatHls  RenditionChangedDeliveryFormat = \"hls\"\n\tRenditionChangedDeliveryFormatFile RenditionChangedDeliveryFormat = \"file\"\n)\n```\n\n```go\ntype RenditionChangedErrorCategory string\n```\n\n```go\nconst (\n\tRenditionChangedErrorCategoryAborted     RenditionChangedErrorCategory = \"aborted\"\n\tRenditionChangedErrorCategoryNetwork     RenditionChangedErrorCategory = \"network\"\n\tRenditionChangedErrorCategoryDecode      RenditionChangedErrorCategory = \"decode\"\n\tRenditionChangedErrorCategoryUnsupported RenditionChangedErrorCategory = \"unsupported\"\n\tRenditionChangedErrorCategoryUnknown     RenditionChangedErrorCategory = \"unknown\"\n)\n```\n\n```go\ntype RenditionChangedErrorCodeUnion struct {\n\t// This field will be present if the value is a [string] instead of an object.\n\tOfString string `json:\",inline\"`\n\t// This field will be present if the value is a [float64] instead of an object.\n\tOfFloat float64 `json:\",inline\"`\n\tJSON    struct {\n\t\tOfString respjson.Field\n\t\tOfFloat  respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nRenditionChangedErrorCodeUnion contains all possible properties and values from \\[string], \\[float64].\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\nIf the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat]\n\n```go\nfunc (u RenditionChangedErrorCodeUnion) AsFloat() (v float64)\n```\n\n```go\nfunc (u RenditionChangedErrorCodeUnion) AsString() (v string)\n```\n\n```go\nfunc (u RenditionChangedErrorCodeUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *RenditionChangedErrorCodeUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype RenditionChangedErrorCodeUnionParam struct {\n\tOfString param.Opt[string]  `json:\",omitzero,inline\"`\n\tOfFloat  param.Opt[float64] `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-analytics-go/packages/param#IsOmitted) to confirm if a field is set.\n\n```go\nfunc (u RenditionChangedErrorCodeUnionParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (u *RenditionChangedErrorCodeUnionParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype RenditionChangedParam struct {\n\tConnectorVersion param.Opt[string] `json:\"connector_version,omitzero\" api:\"required\"`\n\tDeliveryHostname param.Opt[string] `json:\"delivery_hostname,omitzero\" api:\"required\"`\n\tEnvironment      param.Opt[string] `json:\"environment,omitzero\" api:\"required\"`\n\t// Any of \"aborted\", \"network\", \"decode\", \"unsupported\", \"unknown\".\n\tErrorCategory               param.Opt[RenditionChangedErrorCategory] `json:\"error_category,omitzero\" api:\"required\"`\n\tErrorFatal                  param.Opt[bool]                          `json:\"error_fatal,omitzero\" api:\"required\"`\n\tErrorPlayheadSeconds        param.Opt[float64]                       `json:\"error_playhead_seconds,omitzero\" api:\"required\"`\n\tPlayerHeightPx              param.Opt[float64]                       `json:\"player_height_px,omitzero\" api:\"required\"`\n\tPlayerName                  param.Opt[string]                        `json:\"player_name,omitzero\" api:\"required\"`\n\tPlayerVersion               param.Opt[string]                        `json:\"player_version,omitzero\" api:\"required\"`\n\tPlayerWidthPx               param.Opt[float64]                       `json:\"player_width_px,omitzero\" api:\"required\"`\n\tPlayheadSeconds             param.Opt[float64]                       `json:\"playhead_seconds,omitzero\" api:\"required\"`\n\tPreviousRenditionBitrateBps param.Opt[float64]                       `json:\"previous_rendition_bitrate_bps,omitzero\" api:\"required\"`\n\tPreviousRenditionCodec      param.Opt[string]                        `json:\"previous_rendition_codec,omitzero\" api:\"required\"`\n\tPreviousRenditionFrameRate  param.Opt[float64]                       `json:\"previous_rendition_frame_rate,omitzero\" api:\"required\"`\n\tPreviousRenditionHeight     param.Opt[float64]                       `json:\"previous_rendition_height,omitzero\" api:\"required\"`\n\tPreviousRenditionWidth      param.Opt[float64]                       `json:\"previous_rendition_width,omitzero\" api:\"required\"`\n\t// Any of \"ended\", \"destroyed\", \"source_changed\", \"page_exit\".\n\tReason                      param.Opt[RenditionChangedReason] `json:\"reason,omitzero\" api:\"required\"`\n\tSelectedRenditionBitrateBps param.Opt[float64]                `json:\"selected_rendition_bitrate_bps,omitzero\" api:\"required\"`\n\tSelectedRenditionCodec      param.Opt[string]                 `json:\"selected_rendition_codec,omitzero\" api:\"required\"`\n\tSelectedRenditionFrameRate  param.Opt[float64]                `json:\"selected_rendition_frame_rate,omitzero\" api:\"required\"`\n\tSelectedRenditionHeight     param.Opt[float64]                `json:\"selected_rendition_height,omitzero\" api:\"required\"`\n\tSelectedRenditionWidth      param.Opt[float64]                `json:\"selected_rendition_width,omitzero\" api:\"required\"`\n\t// Any of \"started\", \"failed_before_start\", \"ended_before_start\".\n\tStartupOutcome param.Opt[RenditionChangedStartupOutcome] `json:\"startup_outcome,omitzero\" api:\"required\"`\n\t// Anonymous browser identifier generated by the Chunkify player SDK and stored in\n\t// the page's localStorage.\n\tViewerID      param.Opt[string]                   `json:\"viewer_id,omitzero\" api:\"required\"`\n\tErrorCode     RenditionChangedErrorCodeUnionParam `json:\"error_code,omitzero\" api:\"required\"`\n\tConnectorName string                              `json:\"connector_name\" api:\"required\"`\n\tEventID       string                              `json:\"event_id\" api:\"required\" format:\"uuid\"`\n\tOccurredAt    time.Time                           `json:\"occurred_at\" api:\"required\" format:\"date-time\"`\n\t// Name of the SDK or integration that produced the event. Informational metadata,\n\t// preserved as received. Must contain at least one non-whitespace character.\n\tSDKName    string `json:\"sdk_name\" api:\"required\"`\n\tSDKVersion string `json:\"sdk_version\" api:\"required\"`\n\tSequence   int64  `json:\"sequence\" api:\"required\"`\n\tVideoID    string `json:\"video_id\" api:\"required\"`\n\tViewID     string `json:\"view_id\" api:\"required\" format:\"uuid\"`\n\t// How the player receives the media: hls for an HLS stream, file for a single\n\t// media file such as an MP4 rendition; null when unknown. Optional: older SDKs\n\t// omit it. Reports read it from each view's first start. Unlike connector_name, it\n\t// does not depend on the playback engine: Safari's native HLS reports html-media.\n\t//\n\t// Any of \"hls\", \"file\".\n\tDeliveryFormat           param.Opt[RenditionChangedDeliveryFormat] `json:\"delivery_format,omitzero\"`\n\tDeliveryRequestCount     param.Opt[float64]                        `json:\"delivery_request_count,omitzero\"`\n\tDeliveryThroughputBps    param.Opt[float64]                        `json:\"delivery_throughput_bps,omitzero\"`\n\tDeliveryTransferredBytes param.Opt[float64]                        `json:\"delivery_transferred_bytes,omitzero\"`\n\tDroppedVideoFrames       param.Opt[float64]                        `json:\"dropped_video_frames,omitzero\"`\n\tFirstVideoFrameTimeMs    param.Opt[float64]                        `json:\"first_video_frame_time_ms,omitzero\"`\n\tFurthestProgressRatio    param.Opt[float64]                        `json:\"furthest_progress_ratio,omitzero\"`\n\tMediaDurationSeconds     param.Opt[float64]                        `json:\"media_duration_seconds,omitzero\"`\n\tMediaHeightPx            param.Opt[float64]                        `json:\"media_height_px,omitzero\"`\n\tMediaWidthPx             param.Opt[float64]                        `json:\"media_width_px,omitzero\"`\n\tRebufferRatio            param.Opt[float64]                        `json:\"rebuffer_ratio,omitzero\"`\n\tRenditionSwitchCount     param.Opt[float64]                        `json:\"rendition_switch_count,omitzero\"`\n\tStartupTimeMs            param.Opt[float64]                        `json:\"startup_time_ms,omitzero\"`\n\tTotalVideoFrames         param.Opt[float64]                        `json:\"total_video_frames,omitzero\"`\n\t// Optional integrator-supplied user ID, used to link views to the integrator's own\n\t// users.\n\tUserID param.Opt[string] `json:\"user_id,omitzero\"`\n\t// Optional human-readable video title for reports.\n\tVideoTitle param.Opt[string] `json:\"video_title,omitzero\"`\n\t// Tab visibility when the event was recorded. Hidden does not imply paused\n\t// playback or identify the cause of a pause. Missing on older events; null when\n\t// unavailable.\n\t//\n\t// Any of \"visible\", \"hidden\".\n\tVisibilityState        param.Opt[RenditionChangedVisibilityState] `json:\"visibility_state,omitzero\"`\n\tMaximumPlayheadSeconds param.Opt[float64]                         `json:\"maximum_playhead_seconds,omitzero\"`\n\tPlayingTimeMs          param.Opt[float64]                         `json:\"playing_time_ms,omitzero\"`\n\tRebufferCount          param.Opt[float64]                         `json:\"rebuffer_count,omitzero\"`\n\tRebufferDurationMs     param.Opt[float64]                         `json:\"rebuffer_duration_ms,omitzero\"`\n\tSeekCount              param.Opt[float64]                         `json:\"seek_count,omitzero\"`\n\tSeekDurationMs         param.Opt[float64]                         `json:\"seek_duration_ms,omitzero\"`\n\tRenditionPlayingTime   []shared.RenditionPlayingTimeParam         `json:\"rendition_playing_time,omitzero\"`\n\t// Browser and device information. The Chunkify player sends every field, with null\n\t// for unavailable measurements. Other integrations may omit any field except\n\t// schema_version. Extra properties are preserved.\n\tBrowserContext shared.BrowserContextParam `json:\"browser_context,omitzero\"`\n\t// This field can be elided, and will marshal its zero value as\n\t// \"chunkify.video.rendition_changed\".\n\tEventName constant.ChunkifyVideoRenditionChanged `json:\"event_name\" default:\"chunkify.video.rendition_changed\"`\n\t// This field can be elided, and will marshal its zero value as 1.\n\tSchemaVersion float64 `json:\"schema_version,omitzero\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nThe properties ConnectorName, ConnectorVersion, DeliveryHostname, Environment, ErrorCategory, ErrorCode, ErrorFatal, ErrorPlayheadSeconds, EventID, EventName, OccurredAt, PlayerHeightPx, PlayerName, PlayerVersion, PlayerWidthPx, PlayheadSeconds, PreviousRenditionBitrateBps, PreviousRenditionCodec, PreviousRenditionFrameRate, PreviousRenditionHeight, PreviousRenditionWidth, Reason, SchemaVersion, SDKName, SDKVersion, SelectedRenditionBitrateBps, SelectedRenditionCodec, SelectedRenditionFrameRate, SelectedRenditionHeight, SelectedRenditionWidth, Sequence, StartupOutcome, VideoID, ViewID, ViewerID are required.\n\n```go\nfunc (r RenditionChangedParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *RenditionChangedParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype RenditionChangedReason string\n```\n\n```go\nconst (\n\tRenditionChangedReasonEnded         RenditionChangedReason = \"ended\"\n\tRenditionChangedReasonDestroyed     RenditionChangedReason = \"destroyed\"\n\tRenditionChangedReasonSourceChanged RenditionChangedReason = \"source_changed\"\n\tRenditionChangedReasonPageExit      RenditionChangedReason = \"page_exit\"\n)\n```\n\n```go\ntype RenditionChangedStartupOutcome string\n```\n\n```go\nconst (\n\tRenditionChangedStartupOutcomeStarted           RenditionChangedStartupOutcome = \"started\"\n\tRenditionChangedStartupOutcomeFailedBeforeStart RenditionChangedStartupOutcome = \"failed_before_start\"\n\tRenditionChangedStartupOutcomeEndedBeforeStart  RenditionChangedStartupOutcome = \"ended_before_start\"\n)\n```\n\n```go\ntype RenditionChangedVisibilityState string\n```\nTab visibility when the event was recorded. Hidden does not imply paused playback or identify the cause of a pause. Missing on older events; null when unavailable.\n\n```go\nconst (\n\tRenditionChangedVisibilityStateVisible RenditionChangedVisibilityState = \"visible\"\n\tRenditionChangedVisibilityStateHidden  RenditionChangedVisibilityState = \"hidden\"\n)\n```\n\n```go\ntype RenditionGetParams struct {\n\t// Exact browser name, such as Chrome. Missing values do not match.\n\tBrowserName param.Opt[string] `query:\"browser_name,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive city name from the local lookup, with 1 to 256 Unicode\n\t// characters. Use country alongside city to distinguish places with the same name.\n\t// Missing locations do not match.\n\tCity param.Opt[string] `query:\"city,omitzero\" json:\"-\"`\n\t// Exact uppercase ISO 3166-1 alpha-2 country code, such as GB. Missing locations\n\t// do not match.\n\tCountry param.Opt[string] `query:\"country,omitzero\" json:\"-\"`\n\t// Inclusive RFC3339 occurrence-time lower bound, with timezone. Summary/video\n\t// queries apply it to the selected view_started event. Must be before to.\n\tFrom param.Opt[time.Time] `query:\"from,omitzero\" format:\"date-time\" json:\"-\"`\n\t// Maximum rows on this page. Events and videos always support pagination; summary,\n\t// quality and engagement support it only with group_by.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Exact operating-system name, such as macOS. Missing values do not match.\n\tOsName param.Opt[string] `query:\"os_name,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive page origin captured by the player, such as\n\t// https://example.com. Metrics use the first retained view start; raw events use\n\t// each event context. Missing values do not match.\n\tPageOrigin param.Opt[string] `query:\"page_origin,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive page path captured by the player, such as /watch/video.\n\t// Filter by page_origin as well to distinguish identical paths on different sites.\n\t// Metrics use the first retained view start; raw events use each event context.\n\t// Missing values do not match.\n\tPagePath param.Opt[string] `query:\"page_path,omitzero\" json:\"-\"`\n\t// Playback rate from 0.01 to 16 with at most two decimals, such as 1, 1.5 or 2;\n\t// 2.0 and 2 are the same rate. Metrics use the rate on the first retained view\n\t// start; raw events use each event's value.\n\tPlaybackRate param.Opt[string] `query:\"playback_rate,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive, non-blank subtitle language tag, such as fr or en-US; und\n\t// for a subtitles track without a language. Metrics use the language showing on\n\t// the first retained view start; raw events use each event's value. Views without\n\t// subtitles at start do not match.\n\tSubtitleLanguage param.Opt[string] `query:\"subtitle_language,omitzero\" json:\"-\"`\n\t// Exclusive RFC3339 occurrence-time upper bound, with timezone. Summary/video\n\t// queries apply it to the selected view_started event.\n\tTo param.Opt[time.Time] `query:\"to,omitzero\" format:\"date-time\" json:\"-\"`\n\t// Exact integrator-supplied user ID. Selects views by their start event; event\n\t// lists match each event's own value. Missing/null user IDs do not match. Reports\n\t// with this filter read one stored row per view.\n\tUserID param.Opt[string] `query:\"user_id,omitzero\" json:\"-\"`\n\t// Exact video ID; must not be blank. Combined with all other filters using AND.\n\tVideoID param.Opt[string] `query:\"video_id,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive video title. Selects views by the title on their first\n\t// retained start; event lists match each event's own value. Views without a title\n\t// do not match. Reports with this filter read one stored row per view.\n\tVideoTitle param.Opt[string] `query:\"video_title,omitzero\" json:\"-\"`\n\t// Filter one playback attempt by view ID. Metrics use its first retained start.\n\tViewID param.Opt[string] `query:\"view_id,omitzero\" json:\"-\"`\n\t// Exact viewer ID. The Chunkify player SDK generates one per browser; missing/null\n\t// viewer IDs do not match.\n\tViewerID param.Opt[string] `query:\"viewer_id,omitzero\" json:\"-\"`\n\t// Exact continent code from the local lookup. Missing locations do not match.\n\t//\n\t// Any of \"AF\", \"AN\", \"AS\", \"EU\", \"NA\", \"OC\", \"SA\".\n\tContinent RenditionGetParamsContinent `query:\"continent,omitzero\" json:\"-\"`\n\t// Delivery format on the first retained view start: hls for HLS streams, file for\n\t// a single media file such as an MP4 rendition. Metrics use the first retained\n\t// view start; raw events use each event's value. Views whose SDK did not report it\n\t// do not match. connector_name is not a substitute: Safari plays HLS natively and\n\t// reports html-media.\n\t//\n\t// Any of \"hls\", \"file\".\n\tDeliveryFormat RenditionGetParamsDeliveryFormat `query:\"delivery_format,omitzero\" json:\"-\"`\n\t// Exact device class. unknown matches an explicit unknown value.\n\t//\n\t// Any of \"desktop\", \"mobile\", \"tablet\", \"unknown\".\n\tDeviceType RenditionGetParamsDeviceType `query:\"device_type,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r RenditionGetParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [RenditionGetParams](#RenditionGetParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype RenditionGetParamsContinent string\n```\nExact continent code from the local lookup. Missing locations do not match.\n\n```go\nconst (\n\tRenditionGetParamsContinentAf RenditionGetParamsContinent = \"AF\"\n\tRenditionGetParamsContinentAn RenditionGetParamsContinent = \"AN\"\n\tRenditionGetParamsContinentAs RenditionGetParamsContinent = \"AS\"\n\tRenditionGetParamsContinentEu RenditionGetParamsContinent = \"EU\"\n\tRenditionGetParamsContinentNa RenditionGetParamsContinent = \"NA\"\n\tRenditionGetParamsContinentOc RenditionGetParamsContinent = \"OC\"\n\tRenditionGetParamsContinentSa RenditionGetParamsContinent = \"SA\"\n)\n```\n\n```go\ntype RenditionGetParamsDeliveryFormat string\n```\nDelivery format on the first retained view start: hls for HLS streams, file for a single media file such as an MP4 rendition. Metrics use the first retained view start; raw events use each event's value. Views whose SDK did not report it do not match. connector\\_name is not a substitute: Safari plays HLS natively and reports html-media.\n\n```go\nconst (\n\tRenditionGetParamsDeliveryFormatHls  RenditionGetParamsDeliveryFormat = \"hls\"\n\tRenditionGetParamsDeliveryFormatFile RenditionGetParamsDeliveryFormat = \"file\"\n)\n```\n\n```go\ntype RenditionGetParamsDeviceType string\n```\nExact device class. unknown matches an explicit unknown value.\n\n```go\nconst (\n\tRenditionGetParamsDeviceTypeDesktop RenditionGetParamsDeviceType = \"desktop\"\n\tRenditionGetParamsDeviceTypeMobile  RenditionGetParamsDeviceType = \"mobile\"\n\tRenditionGetParamsDeviceTypeTablet  RenditionGetParamsDeviceType = \"tablet\"\n\tRenditionGetParamsDeviceTypeUnknown RenditionGetParamsDeviceType = \"unknown\"\n)\n```\n\n```go\ntype RenditionMetric struct {\n\t// Declared rendition bitrate in bits per second, not measured network throughput.\n\tBitrateBps float64 `json:\"bitrate_bps\" api:\"required\"`\n\t// Reported codec; null when unknown.\n\tCodec string `json:\"codec\" api:\"required\"`\n\t// Reported frames per second; null when unknown.\n\tFrameRate float64 `json:\"frame_rate\" api:\"required\"`\n\t// Reported height in pixels; null when unknown.\n\tHeight float64 `json:\"height\" api:\"required\"`\n\t// Cumulative measured playing time for this rendition, summed once per attempt.\n\tPlayingTimeMs float64 `json:\"playing_time_ms\" api:\"required\"`\n\t// Share of all measured rendition playing time, including rows outside the\n\t// returned limit.\n\tPlayingTimeRatio float64 `json:\"playing_time_ratio\" api:\"required\"`\n\t// Distinct attempts with positive playing time for this rendition.\n\tViews int64 `json:\"views\" api:\"required\"`\n\t// Reported width in pixels; null when unknown.\n\tWidth float64 `json:\"width\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tBitrateBps       respjson.Field\n\t\tCodec            respjson.Field\n\t\tFrameRate        respjson.Field\n\t\tHeight           respjson.Field\n\t\tPlayingTimeMs    respjson.Field\n\t\tPlayingTimeRatio respjson.Field\n\t\tViews            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 rendition identified by its dimensions, codec, declared bitrate and frame rate.\n\n```go\nfunc (r RenditionMetric) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *RenditionMetric) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype RenditionPlayingTime = shared.RenditionPlayingTime\n```\nThis is an alias to an internal type.\n\n```go\ntype RenditionPlayingTimeParam = shared.RenditionPlayingTimeParam\n```\nThis is an alias to an internal type.\n\n```go\ntype RenditionReport struct {\n\t// Time-weighted mean declared bitrate. Null without playing time with a known\n\t// bitrate.\n\tAverageBitrateBps float64 `json:\"average_bitrate_bps\" api:\"required\"`\n\t// Measured playing time with a known rendition bitrate, used as the average\n\t// denominator.\n\tBitrateSamplePlayingTimeMs float64 `json:\"bitrate_sample_playing_time_ms\" api:\"required\"`\n\t// Most-played renditions first. Defaults to 100 rows, maximum 1000. CSV exports\n\t// include all matching rows.\n\tRenditions []RenditionMetric `json:\"renditions\" api:\"required\"`\n\t// Attempts with positive measured rendition playing time.\n\tSampleViews int64 `json:\"sample_views\" api:\"required\"`\n\t// Total measured rendition playing time across all matching rows. Can be less than\n\t// overall watch time when rendition information is missing.\n\tTotalPlayingTimeMs float64 `json:\"total_playing_time_ms\" api:\"required\"`\n\t// Number of distinct renditions before applying the row limit.\n\tTotalRenditions int64 `json:\"total_renditions\" api:\"required\"`\n\t// All attempts in the filtered start cohort.\n\tViews int64 `json:\"views\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAverageBitrateBps          respjson.Field\n\t\tBitrateSamplePlayingTimeMs respjson.Field\n\t\tRenditions                 respjson.Field\n\t\tSampleViews                respjson.Field\n\t\tTotalPlayingTimeMs         respjson.Field\n\t\tTotalRenditions            respjson.Field\n\t\tViews                      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 RenditionReport) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *RenditionReport) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype RenditionService struct {\n\tOptions []option.RequestOption\n}\n```\nPrivate retained-event and view-cohort queries.\n\nRenditionService contains methods and other services that help with interacting with the Chunkify Analytics 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 [NewRenditionService](#NewRenditionService) method instead.\n\n```go\nfunc NewRenditionService(opts ...option.RequestOption) (r RenditionService)\n```\nNewRenditionService 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 *RenditionService) Get(ctx context.Context, query RenditionGetParams, opts ...option.RequestOption) (res *RenditionReport, err error)\n```\nSummarize rendition measurements for the filtered view-start cohort. Use only the selected final event, or latest snapshot when no final exists. Expand its cumulative rendition\\_playing\\_time array once per view. Missing or empty measurements contribute no rendition time. Rank by playing time descending; limit bounds returned rows only, while totals and average cover every matching rendition. Average bitrate is sum(bitrate\\_bps \\\\\\* playing\\_time\\_ms) divided by playing time with a known bitrate. Dimensions, codec, bitrate and frame rate together identify a rendition. Views can contribute to several renditions and must not be summed. No cursor, group\\_by, sort\\_by or order. Export resource=renditions includes all matching rows.\n\n```go\ntype RetentionBucket struct {\n\t// Exclusive end of the section, capped at the reported duration.\n\tEndSeconds float64 `json:\"end_seconds\" api:\"required\"`\n\t// views divided by sample_views.\n\tRatio float64 `json:\"ratio\" api:\"required\"`\n\t// Inclusive start of the video section.\n\tStartSeconds float64 `json:\"start_seconds\" api:\"required\"`\n\t// Distinct attempts that played any part of this section. Each attempt counts at\n\t// most once.\n\tViews int64 `json:\"views\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tEndSeconds   respjson.Field\n\t\tRatio        respjson.Field\n\t\tStartSeconds respjson.Field\n\t\tViews        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 RetentionBucket) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *RetentionBucket) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype RetentionGetParams struct {\n\t// Video to report. Retention measures one video at a time.\n\tVideoID string `query:\"video_id\" api:\"required\" json:\"-\"`\n\t// Exact browser name, such as Chrome. Missing values do not match.\n\tBrowserName param.Opt[string] `query:\"browser_name,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive city name from the local lookup, with 1 to 256 Unicode\n\t// characters. Use country alongside city to distinguish places with the same name.\n\t// Missing locations do not match.\n\tCity param.Opt[string] `query:\"city,omitzero\" json:\"-\"`\n\t// Exact uppercase ISO 3166-1 alpha-2 country code, such as GB. Missing locations\n\t// do not match.\n\tCountry param.Opt[string] `query:\"country,omitzero\" json:\"-\"`\n\t// Inclusive RFC3339 occurrence-time lower bound, with timezone. Summary/video\n\t// queries apply it to the selected view_started event. Must be before to.\n\tFrom param.Opt[time.Time] `query:\"from,omitzero\" format:\"date-time\" json:\"-\"`\n\t// Exact operating-system name, such as macOS. Missing values do not match.\n\tOsName param.Opt[string] `query:\"os_name,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive page origin captured by the player, such as\n\t// https://example.com. Metrics use the first retained view start; raw events use\n\t// each event context. Missing values do not match.\n\tPageOrigin param.Opt[string] `query:\"page_origin,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive page path captured by the player, such as /watch/video.\n\t// Filter by page_origin as well to distinguish identical paths on different sites.\n\t// Metrics use the first retained view start; raw events use each event context.\n\t// Missing values do not match.\n\tPagePath param.Opt[string] `query:\"page_path,omitzero\" json:\"-\"`\n\t// Playback rate from 0.01 to 16 with at most two decimals, such as 1, 1.5 or 2;\n\t// 2.0 and 2 are the same rate. Metrics use the rate on the first retained view\n\t// start; raw events use each event's value.\n\tPlaybackRate param.Opt[string] `query:\"playback_rate,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive, non-blank subtitle language tag, such as fr or en-US; und\n\t// for a subtitles track without a language. Metrics use the language showing on\n\t// the first retained view start; raw events use each event's value. Views without\n\t// subtitles at start do not match.\n\tSubtitleLanguage param.Opt[string] `query:\"subtitle_language,omitzero\" json:\"-\"`\n\t// Exclusive RFC3339 occurrence-time upper bound, with timezone. Summary/video\n\t// queries apply it to the selected view_started event.\n\tTo param.Opt[time.Time] `query:\"to,omitzero\" format:\"date-time\" json:\"-\"`\n\t// Exact integrator-supplied user ID. Selects views by their start event; event\n\t// lists match each event's own value. Missing/null user IDs do not match. Reports\n\t// with this filter read one stored row per view.\n\tUserID param.Opt[string] `query:\"user_id,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive video title. Selects views by the title on their first\n\t// retained start; event lists match each event's own value. Views without a title\n\t// do not match. Reports with this filter read one stored row per view.\n\tVideoTitle param.Opt[string] `query:\"video_title,omitzero\" json:\"-\"`\n\t// Filter one playback attempt by view ID. Metrics use its first retained start.\n\tViewID param.Opt[string] `query:\"view_id,omitzero\" json:\"-\"`\n\t// Exact viewer ID. The Chunkify player SDK generates one per browser; missing/null\n\t// viewer IDs do not match.\n\tViewerID param.Opt[string] `query:\"viewer_id,omitzero\" json:\"-\"`\n\t// Exact continent code from the local lookup. Missing locations do not match.\n\t//\n\t// Any of \"AF\", \"AN\", \"AS\", \"EU\", \"NA\", \"OC\", \"SA\".\n\tContinent RetentionGetParamsContinent `query:\"continent,omitzero\" json:\"-\"`\n\t// Delivery format on the first retained view start: hls for HLS streams, file for\n\t// a single media file such as an MP4 rendition. Metrics use the first retained\n\t// view start; raw events use each event's value. Views whose SDK did not report it\n\t// do not match. connector_name is not a substitute: Safari plays HLS natively and\n\t// reports html-media.\n\t//\n\t// Any of \"hls\", \"file\".\n\tDeliveryFormat RetentionGetParamsDeliveryFormat `query:\"delivery_format,omitzero\" json:\"-\"`\n\t// Exact device class. unknown matches an explicit unknown value.\n\t//\n\t// Any of \"desktop\", \"mobile\", \"tablet\", \"unknown\".\n\tDeviceType RetentionGetParamsDeviceType `query:\"device_type,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r RetentionGetParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [RetentionGetParams](#RetentionGetParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype RetentionGetParamsContinent string\n```\nExact continent code from the local lookup. Missing locations do not match.\n\n```go\nconst (\n\tRetentionGetParamsContinentAf RetentionGetParamsContinent = \"AF\"\n\tRetentionGetParamsContinentAn RetentionGetParamsContinent = \"AN\"\n\tRetentionGetParamsContinentAs RetentionGetParamsContinent = \"AS\"\n\tRetentionGetParamsContinentEu RetentionGetParamsContinent = \"EU\"\n\tRetentionGetParamsContinentNa RetentionGetParamsContinent = \"NA\"\n\tRetentionGetParamsContinentOc RetentionGetParamsContinent = \"OC\"\n\tRetentionGetParamsContinentSa RetentionGetParamsContinent = \"SA\"\n)\n```\n\n```go\ntype RetentionGetParamsDeliveryFormat string\n```\nDelivery format on the first retained view start: hls for HLS streams, file for a single media file such as an MP4 rendition. Metrics use the first retained view start; raw events use each event's value. Views whose SDK did not report it do not match. connector\\_name is not a substitute: Safari plays HLS natively and reports html-media.\n\n```go\nconst (\n\tRetentionGetParamsDeliveryFormatHls  RetentionGetParamsDeliveryFormat = \"hls\"\n\tRetentionGetParamsDeliveryFormatFile RetentionGetParamsDeliveryFormat = \"file\"\n)\n```\n\n```go\ntype RetentionGetParamsDeviceType string\n```\nExact device class. unknown matches an explicit unknown value.\n\n```go\nconst (\n\tRetentionGetParamsDeviceTypeDesktop RetentionGetParamsDeviceType = \"desktop\"\n\tRetentionGetParamsDeviceTypeMobile  RetentionGetParamsDeviceType = \"mobile\"\n\tRetentionGetParamsDeviceTypeTablet  RetentionGetParamsDeviceType = \"tablet\"\n\tRetentionGetParamsDeviceTypeUnknown RetentionGetParamsDeviceType = \"unknown\"\n)\n```\n\n```go\ntype RetentionReport struct {\n\tBuckets []RetentionBucket `json:\"buckets\" api:\"required\"`\n\t// Longest measured duration in this selection. Null when there are no measured\n\t// attempts.\n\tDurationSeconds float64 `json:\"duration_seconds\" api:\"required\"`\n\t// Bucket width, ceil(duration_seconds / 200), with a minimum of one second. Null\n\t// without measurements.\n\tIntervalSeconds float64 `json:\"interval_seconds\" api:\"required\"`\n\t// Attempts whose selected final or latest snapshot contains played ranges and a\n\t// finite positive media duration. Includes measured empty ranges.\n\tSampleViews int64 `json:\"sample_views\" api:\"required\"`\n\t// All matching attempts with a retained start.\n\tViews int64 `json:\"views\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tBuckets         respjson.Field\n\t\tDurationSeconds respjson.Field\n\t\tIntervalSeconds respjson.Field\n\t\tSampleViews     respjson.Field\n\t\tViews           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 RetentionReport) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *RetentionReport) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype RetentionService struct {\n\tOptions []option.RequestOption\n}\n```\nPrivate retained-event and view-cohort queries.\n\nRetentionService contains methods and other services that help with interacting with the Chunkify Analytics 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 [NewRetentionService](#NewRetentionService) method instead.\n\n```go\nfunc NewRetentionService(opts ...option.RequestOption) (r RetentionService)\n```\nNewRetentionService 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 *RetentionService) Get(ctx context.Context, query RetentionGetParams, opts ...option.RequestOption) (res *RetentionReport, err error)\n```\nCount views along the video using recorded played ranges. Requires video\\_id. Uses the final measurement, or the latest snapshot without an end event, for each retained start matching the date and audience filters. Each attempt counts once in each section it overlapped, including replays. Skipped sections do not count. Older events without played ranges and attempts without a finite positive duration are excluded from sample\\_views. Returns at most 200 consecutive buckets, including zero counts, at a width of at least one second. This is media position, not wall-clock time.\n\n```go\ntype RotatedProjectKey struct {\n\t// New key value. Save it now; it is returned once.\n\tKey   string `json:\"key\" api:\"required\"`\n\tKeyID string `json:\"key_id\" api:\"required\"`\n\t// Any of \"public\", \"secret\".\n\tPermission RotatedProjectKeyPermission `json:\"permission\" api:\"required\"`\n\tProjectID  string                      `json:\"project_id\" api:\"required\"`\n\t// True for a private key limited to analytics reads through HTTP and MCP. Public\n\t// keys always report false. Rotation preserves this setting.\n\tReadOnly        bool   `json:\"read_only\" api:\"required\"`\n\tRestartRequired bool   `json:\"restart_required\" api:\"required\"`\n\tWarning         string `json:\"warning\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tKey             respjson.Field\n\t\tKeyID           respjson.Field\n\t\tPermission      respjson.Field\n\t\tProjectID       respjson.Field\n\t\tReadOnly        respjson.Field\n\t\tRestartRequired respjson.Field\n\t\tWarning         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 RotatedProjectKey) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *RotatedProjectKey) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype RotatedProjectKeyPermission string\n```\n\n```go\nconst (\n\tRotatedProjectKeyPermissionPublic RotatedProjectKeyPermission = \"public\"\n\tRotatedProjectKeyPermissionSecret RotatedProjectKeyPermission = \"secret\"\n)\n```\n\n```go\ntype SeekCompleted struct {\n\tConnectorName    string `json:\"connector_name\" api:\"required\"`\n\tConnectorVersion string `json:\"connector_version\" api:\"required\"`\n\tDeliveryHostname string `json:\"delivery_hostname\" api:\"required\"`\n\tEnvironment      string `json:\"environment\" api:\"required\"`\n\t// Any of \"aborted\", \"network\", \"decode\", \"unsupported\", \"unknown\".\n\tErrorCategory        SeekCompletedErrorCategory          `json:\"error_category\" api:\"required\"`\n\tErrorCode            SeekCompletedErrorCodeUnion         `json:\"error_code\" api:\"required\"`\n\tErrorFatal           bool                                `json:\"error_fatal\" api:\"required\"`\n\tErrorPlayheadSeconds float64                             `json:\"error_playhead_seconds\" api:\"required\"`\n\tEventID              string                              `json:\"event_id\" api:\"required\" format:\"uuid\"`\n\tEventName            constant.ChunkifyVideoSeekCompleted `json:\"event_name\" default:\"chunkify.video.seek_completed\"`\n\tFromPlayheadSeconds  float64                             `json:\"from_playhead_seconds\" api:\"required\"`\n\tLastSeekedAt         time.Time                           `json:\"last_seeked_at\" api:\"required\" format:\"date-time\"`\n\tOccurredAt           time.Time                           `json:\"occurred_at\" api:\"required\" format:\"date-time\"`\n\tPlaybackResumedAt    time.Time                           `json:\"playback_resumed_at\" api:\"required\" format:\"date-time\"`\n\tPlayerName           string                              `json:\"player_name\" api:\"required\"`\n\tPlayerVersion        string                              `json:\"player_version\" api:\"required\"`\n\t// Any of \"ended\", \"destroyed\", \"source_changed\", \"page_exit\".\n\tReason        SeekCompletedReason `json:\"reason\" api:\"required\"`\n\tSchemaVersion float64             `json:\"schema_version\" api:\"required\"`\n\t// Name of the SDK or integration that produced the event. Informational metadata,\n\t// preserved as received. Must contain at least one non-whitespace character.\n\tSDKName                   string  `json:\"sdk_name\" api:\"required\"`\n\tSDKVersion                string  `json:\"sdk_version\" api:\"required\"`\n\tSeekInteractionDurationMs float64 `json:\"seek_interaction_duration_ms\" api:\"required\"`\n\t// Any of \"resumed\", \"paused\", \"interrupted\".\n\tSeekOutcome      SeekCompletedSeekOutcome `json:\"seek_outcome\" api:\"required\"`\n\tSeekResumeWaitMs float64                  `json:\"seek_resume_wait_ms\" api:\"required\"`\n\tSeekStartedAt    time.Time                `json:\"seek_started_at\" api:\"required\" format:\"date-time\"`\n\tSequence         int64                    `json:\"sequence\" api:\"required\"`\n\t// Any of \"started\", \"failed_before_start\", \"ended_before_start\".\n\tStartupOutcome SeekCompletedStartupOutcome `json:\"startup_outcome\" api:\"required\"`\n\t// Any of \"startup\", \"resuming\", \"playing\", \"paused\", \"buffering\", \"seeking\",\n\t// \"error\", \"ended\", \"stopped\".\n\tStateAfterSeek SeekCompletedStateAfterSeek `json:\"state_after_seek\" api:\"required\"`\n\t// Any of \"startup\", \"resuming\", \"playing\", \"paused\", \"buffering\", \"seeking\",\n\t// \"error\", \"ended\", \"stopped\".\n\tStateBeforeSeek   SeekCompletedStateBeforeSeek `json:\"state_before_seek\" api:\"required\"`\n\tToPlayheadSeconds float64                      `json:\"to_playhead_seconds\" api:\"required\"`\n\tVideoID           string                       `json:\"video_id\" api:\"required\"`\n\tViewID            string                       `json:\"view_id\" api:\"required\" format:\"uuid\"`\n\t// Anonymous browser identifier generated by the Chunkify player SDK and stored in\n\t// the page's localStorage.\n\tViewerID string `json:\"viewer_id\" api:\"required\"`\n\t// Browser and device information. The Chunkify player sends every field, with null\n\t// for unavailable measurements. Other integrations may omit any field except\n\t// schema_version. Extra properties are preserved.\n\tBrowserContext shared.BrowserContext `json:\"browser_context\" api:\"nullable\"`\n\t// How the player receives the media: hls for an HLS stream, file for a single\n\t// media file such as an MP4 rendition; null when unknown. Optional: older SDKs\n\t// omit it. Reports read it from each view's first start. Unlike connector_name, it\n\t// does not depend on the playback engine: Safari's native HLS reports html-media.\n\t//\n\t// Any of \"hls\", \"file\".\n\tDeliveryFormat           SeekCompletedDeliveryFormat `json:\"delivery_format\" api:\"nullable\"`\n\tDeliveryRequestCount     float64                     `json:\"delivery_request_count\" api:\"nullable\"`\n\tDeliveryThroughputBps    float64                     `json:\"delivery_throughput_bps\" api:\"nullable\"`\n\tDeliveryTransferredBytes float64                     `json:\"delivery_transferred_bytes\" api:\"nullable\"`\n\tDroppedVideoFrames       float64                     `json:\"dropped_video_frames\" api:\"nullable\"`\n\tFirstVideoFrameTimeMs    float64                     `json:\"first_video_frame_time_ms\" api:\"nullable\"`\n\tFurthestProgressRatio    float64                     `json:\"furthest_progress_ratio\" api:\"nullable\"`\n\tMaximumPlayheadSeconds   float64                     `json:\"maximum_playhead_seconds\"`\n\tMediaDurationSeconds     float64                     `json:\"media_duration_seconds\" api:\"nullable\"`\n\tMediaHeightPx            float64                     `json:\"media_height_px\" api:\"nullable\"`\n\tMediaWidthPx             float64                     `json:\"media_width_px\" api:\"nullable\"`\n\tPlayerHeightPx           float64                     `json:\"player_height_px\" api:\"nullable\"`\n\tPlayerWidthPx            float64                     `json:\"player_width_px\" api:\"nullable\"`\n\tPlayingTimeMs            float64                     `json:\"playing_time_ms\"`\n\t// Wall-clock time spent in state_before_seek until the seek started, excluding the\n\t// seek. The state after the seek is timed from when the seek ends, so each stretch\n\t// is reported once. Omitted by older SDKs.\n\tPreviousStateDurationMs     float64                       `json:\"previous_state_duration_ms\"`\n\tRebufferCount               float64                       `json:\"rebuffer_count\"`\n\tRebufferDurationMs          float64                       `json:\"rebuffer_duration_ms\"`\n\tRebufferRatio               float64                       `json:\"rebuffer_ratio\" api:\"nullable\"`\n\tRenditionPlayingTime        []shared.RenditionPlayingTime `json:\"rendition_playing_time\" api:\"nullable\"`\n\tRenditionSwitchCount        float64                       `json:\"rendition_switch_count\" api:\"nullable\"`\n\tSeekCount                   float64                       `json:\"seek_count\"`\n\tSeekDurationMs              float64                       `json:\"seek_duration_ms\"`\n\tSelectedRenditionBitrateBps float64                       `json:\"selected_rendition_bitrate_bps\" api:\"nullable\"`\n\tSelectedRenditionCodec      string                        `json:\"selected_rendition_codec\" api:\"nullable\"`\n\tSelectedRenditionHeight     float64                       `json:\"selected_rendition_height\" api:\"nullable\"`\n\tSelectedRenditionWidth      float64                       `json:\"selected_rendition_width\" api:\"nullable\"`\n\tStartupTimeMs               float64                       `json:\"startup_time_ms\" api:\"nullable\"`\n\tTotalVideoFrames            float64                       `json:\"total_video_frames\" api:\"nullable\"`\n\t// Optional integrator-supplied user ID, used to link views to the integrator's own\n\t// users.\n\tUserID string `json:\"user_id\" api:\"nullable\"`\n\t// Optional human-readable video title for reports.\n\tVideoTitle string `json:\"video_title\" api:\"nullable\"`\n\t// Tab visibility when the event was recorded. Hidden does not imply paused\n\t// playback or identify the cause of a pause. Missing on older events; null when\n\t// unavailable.\n\t//\n\t// Any of \"visible\", \"hidden\".\n\tVisibilityState SeekCompletedVisibilityState `json:\"visibility_state\" api:\"nullable\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tConnectorName               respjson.Field\n\t\tConnectorVersion            respjson.Field\n\t\tDeliveryHostname            respjson.Field\n\t\tEnvironment                 respjson.Field\n\t\tErrorCategory               respjson.Field\n\t\tErrorCode                   respjson.Field\n\t\tErrorFatal                  respjson.Field\n\t\tErrorPlayheadSeconds        respjson.Field\n\t\tEventID                     respjson.Field\n\t\tEventName                   respjson.Field\n\t\tFromPlayheadSeconds         respjson.Field\n\t\tLastSeekedAt                respjson.Field\n\t\tOccurredAt                  respjson.Field\n\t\tPlaybackResumedAt           respjson.Field\n\t\tPlayerName                  respjson.Field\n\t\tPlayerVersion               respjson.Field\n\t\tReason                      respjson.Field\n\t\tSchemaVersion               respjson.Field\n\t\tSDKName                     respjson.Field\n\t\tSDKVersion                  respjson.Field\n\t\tSeekInteractionDurationMs   respjson.Field\n\t\tSeekOutcome                 respjson.Field\n\t\tSeekResumeWaitMs            respjson.Field\n\t\tSeekStartedAt               respjson.Field\n\t\tSequence                    respjson.Field\n\t\tStartupOutcome              respjson.Field\n\t\tStateAfterSeek              respjson.Field\n\t\tStateBeforeSeek             respjson.Field\n\t\tToPlayheadSeconds           respjson.Field\n\t\tVideoID                     respjson.Field\n\t\tViewID                      respjson.Field\n\t\tViewerID                    respjson.Field\n\t\tBrowserContext              respjson.Field\n\t\tDeliveryFormat              respjson.Field\n\t\tDeliveryRequestCount        respjson.Field\n\t\tDeliveryThroughputBps       respjson.Field\n\t\tDeliveryTransferredBytes    respjson.Field\n\t\tDroppedVideoFrames          respjson.Field\n\t\tFirstVideoFrameTimeMs       respjson.Field\n\t\tFurthestProgressRatio       respjson.Field\n\t\tMaximumPlayheadSeconds      respjson.Field\n\t\tMediaDurationSeconds        respjson.Field\n\t\tMediaHeightPx               respjson.Field\n\t\tMediaWidthPx                respjson.Field\n\t\tPlayerHeightPx              respjson.Field\n\t\tPlayerWidthPx               respjson.Field\n\t\tPlayingTimeMs               respjson.Field\n\t\tPreviousStateDurationMs     respjson.Field\n\t\tRebufferCount               respjson.Field\n\t\tRebufferDurationMs          respjson.Field\n\t\tRebufferRatio               respjson.Field\n\t\tRenditionPlayingTime        respjson.Field\n\t\tRenditionSwitchCount        respjson.Field\n\t\tSeekCount                   respjson.Field\n\t\tSeekDurationMs              respjson.Field\n\t\tSelectedRenditionBitrateBps respjson.Field\n\t\tSelectedRenditionCodec      respjson.Field\n\t\tSelectedRenditionHeight     respjson.Field\n\t\tSelectedRenditionWidth      respjson.Field\n\t\tStartupTimeMs               respjson.Field\n\t\tTotalVideoFrames            respjson.Field\n\t\tUserID                      respjson.Field\n\t\tVideoTitle                  respjson.Field\n\t\tVisibilityState             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 SeekCompleted) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r SeekCompleted) ToParam() SeekCompletedParam\n```\nToParam converts this SeekCompleted to a SeekCompletedParam.\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 SeekCompletedParam.Overrides()\n\n```go\nfunc (r *SeekCompleted) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype SeekCompletedDeliveryFormat string\n```\nHow the player receives the media: hls for an HLS stream, file for a single media file such as an MP4 rendition; null when unknown. Optional: older SDKs omit it. Reports read it from each view's first start. Unlike connector\\_name, it does not depend on the playback engine: Safari's native HLS reports html-media.\n\n```go\nconst (\n\tSeekCompletedDeliveryFormatHls  SeekCompletedDeliveryFormat = \"hls\"\n\tSeekCompletedDeliveryFormatFile SeekCompletedDeliveryFormat = \"file\"\n)\n```\n\n```go\ntype SeekCompletedErrorCategory string\n```\n\n```go\nconst (\n\tSeekCompletedErrorCategoryAborted     SeekCompletedErrorCategory = \"aborted\"\n\tSeekCompletedErrorCategoryNetwork     SeekCompletedErrorCategory = \"network\"\n\tSeekCompletedErrorCategoryDecode      SeekCompletedErrorCategory = \"decode\"\n\tSeekCompletedErrorCategoryUnsupported SeekCompletedErrorCategory = \"unsupported\"\n\tSeekCompletedErrorCategoryUnknown     SeekCompletedErrorCategory = \"unknown\"\n)\n```\n\n```go\ntype SeekCompletedErrorCodeUnion struct {\n\t// This field will be present if the value is a [string] instead of an object.\n\tOfString string `json:\",inline\"`\n\t// This field will be present if the value is a [float64] instead of an object.\n\tOfFloat float64 `json:\",inline\"`\n\tJSON    struct {\n\t\tOfString respjson.Field\n\t\tOfFloat  respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nSeekCompletedErrorCodeUnion contains all possible properties and values from \\[string], \\[float64].\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\nIf the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat]\n\n```go\nfunc (u SeekCompletedErrorCodeUnion) AsFloat() (v float64)\n```\n\n```go\nfunc (u SeekCompletedErrorCodeUnion) AsString() (v string)\n```\n\n```go\nfunc (u SeekCompletedErrorCodeUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *SeekCompletedErrorCodeUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype SeekCompletedErrorCodeUnionParam struct {\n\tOfString param.Opt[string]  `json:\",omitzero,inline\"`\n\tOfFloat  param.Opt[float64] `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-analytics-go/packages/param#IsOmitted) to confirm if a field is set.\n\n```go\nfunc (u SeekCompletedErrorCodeUnionParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (u *SeekCompletedErrorCodeUnionParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype SeekCompletedParam struct {\n\tConnectorVersion param.Opt[string] `json:\"connector_version,omitzero\" api:\"required\"`\n\tDeliveryHostname param.Opt[string] `json:\"delivery_hostname,omitzero\" api:\"required\"`\n\tEnvironment      param.Opt[string] `json:\"environment,omitzero\" api:\"required\"`\n\t// Any of \"aborted\", \"network\", \"decode\", \"unsupported\", \"unknown\".\n\tErrorCategory        param.Opt[SeekCompletedErrorCategory] `json:\"error_category,omitzero\" api:\"required\"`\n\tErrorFatal           param.Opt[bool]                       `json:\"error_fatal,omitzero\" api:\"required\"`\n\tErrorPlayheadSeconds param.Opt[float64]                    `json:\"error_playhead_seconds,omitzero\" api:\"required\"`\n\tFromPlayheadSeconds  param.Opt[float64]                    `json:\"from_playhead_seconds,omitzero\" api:\"required\"`\n\tLastSeekedAt         param.Opt[time.Time]                  `json:\"last_seeked_at,omitzero\" api:\"required\" format:\"date-time\"`\n\tPlaybackResumedAt    param.Opt[time.Time]                  `json:\"playback_resumed_at,omitzero\" api:\"required\" format:\"date-time\"`\n\tPlayerName           param.Opt[string]                     `json:\"player_name,omitzero\" api:\"required\"`\n\tPlayerVersion        param.Opt[string]                     `json:\"player_version,omitzero\" api:\"required\"`\n\t// Any of \"ended\", \"destroyed\", \"source_changed\", \"page_exit\".\n\tReason           param.Opt[SeekCompletedReason] `json:\"reason,omitzero\" api:\"required\"`\n\tSeekResumeWaitMs param.Opt[float64]             `json:\"seek_resume_wait_ms,omitzero\" api:\"required\"`\n\t// Any of \"started\", \"failed_before_start\", \"ended_before_start\".\n\tStartupOutcome    param.Opt[SeekCompletedStartupOutcome] `json:\"startup_outcome,omitzero\" api:\"required\"`\n\tToPlayheadSeconds param.Opt[float64]                     `json:\"to_playhead_seconds,omitzero\" api:\"required\"`\n\t// Anonymous browser identifier generated by the Chunkify player SDK and stored in\n\t// the page's localStorage.\n\tViewerID      param.Opt[string]                `json:\"viewer_id,omitzero\" api:\"required\"`\n\tErrorCode     SeekCompletedErrorCodeUnionParam `json:\"error_code,omitzero\" api:\"required\"`\n\tConnectorName string                           `json:\"connector_name\" api:\"required\"`\n\tEventID       string                           `json:\"event_id\" api:\"required\" format:\"uuid\"`\n\tOccurredAt    time.Time                        `json:\"occurred_at\" api:\"required\" format:\"date-time\"`\n\t// Name of the SDK or integration that produced the event. Informational metadata,\n\t// preserved as received. Must contain at least one non-whitespace character.\n\tSDKName                   string  `json:\"sdk_name\" api:\"required\"`\n\tSDKVersion                string  `json:\"sdk_version\" api:\"required\"`\n\tSeekInteractionDurationMs float64 `json:\"seek_interaction_duration_ms\" api:\"required\"`\n\t// Any of \"resumed\", \"paused\", \"interrupted\".\n\tSeekOutcome   SeekCompletedSeekOutcome `json:\"seek_outcome,omitzero\" api:\"required\"`\n\tSeekStartedAt time.Time                `json:\"seek_started_at\" api:\"required\" format:\"date-time\"`\n\tSequence      int64                    `json:\"sequence\" api:\"required\"`\n\t// Any of \"startup\", \"resuming\", \"playing\", \"paused\", \"buffering\", \"seeking\",\n\t// \"error\", \"ended\", \"stopped\".\n\tStateAfterSeek SeekCompletedStateAfterSeek `json:\"state_after_seek,omitzero\" api:\"required\"`\n\t// Any of \"startup\", \"resuming\", \"playing\", \"paused\", \"buffering\", \"seeking\",\n\t// \"error\", \"ended\", \"stopped\".\n\tStateBeforeSeek SeekCompletedStateBeforeSeek `json:\"state_before_seek,omitzero\" api:\"required\"`\n\tVideoID         string                       `json:\"video_id\" api:\"required\"`\n\tViewID          string                       `json:\"view_id\" api:\"required\" format:\"uuid\"`\n\t// How the player receives the media: hls for an HLS stream, file for a single\n\t// media file such as an MP4 rendition; null when unknown. Optional: older SDKs\n\t// omit it. Reports read it from each view's first start. Unlike connector_name, it\n\t// does not depend on the playback engine: Safari's native HLS reports html-media.\n\t//\n\t// Any of \"hls\", \"file\".\n\tDeliveryFormat              param.Opt[SeekCompletedDeliveryFormat] `json:\"delivery_format,omitzero\"`\n\tDeliveryRequestCount        param.Opt[float64]                     `json:\"delivery_request_count,omitzero\"`\n\tDeliveryThroughputBps       param.Opt[float64]                     `json:\"delivery_throughput_bps,omitzero\"`\n\tDeliveryTransferredBytes    param.Opt[float64]                     `json:\"delivery_transferred_bytes,omitzero\"`\n\tDroppedVideoFrames          param.Opt[float64]                     `json:\"dropped_video_frames,omitzero\"`\n\tFirstVideoFrameTimeMs       param.Opt[float64]                     `json:\"first_video_frame_time_ms,omitzero\"`\n\tFurthestProgressRatio       param.Opt[float64]                     `json:\"furthest_progress_ratio,omitzero\"`\n\tMediaDurationSeconds        param.Opt[float64]                     `json:\"media_duration_seconds,omitzero\"`\n\tMediaHeightPx               param.Opt[float64]                     `json:\"media_height_px,omitzero\"`\n\tMediaWidthPx                param.Opt[float64]                     `json:\"media_width_px,omitzero\"`\n\tPlayerHeightPx              param.Opt[float64]                     `json:\"player_height_px,omitzero\"`\n\tPlayerWidthPx               param.Opt[float64]                     `json:\"player_width_px,omitzero\"`\n\tRebufferRatio               param.Opt[float64]                     `json:\"rebuffer_ratio,omitzero\"`\n\tRenditionSwitchCount        param.Opt[float64]                     `json:\"rendition_switch_count,omitzero\"`\n\tSelectedRenditionBitrateBps param.Opt[float64]                     `json:\"selected_rendition_bitrate_bps,omitzero\"`\n\tSelectedRenditionCodec      param.Opt[string]                      `json:\"selected_rendition_codec,omitzero\"`\n\tSelectedRenditionHeight     param.Opt[float64]                     `json:\"selected_rendition_height,omitzero\"`\n\tSelectedRenditionWidth      param.Opt[float64]                     `json:\"selected_rendition_width,omitzero\"`\n\tStartupTimeMs               param.Opt[float64]                     `json:\"startup_time_ms,omitzero\"`\n\tTotalVideoFrames            param.Opt[float64]                     `json:\"total_video_frames,omitzero\"`\n\t// Optional integrator-supplied user ID, used to link views to the integrator's own\n\t// users.\n\tUserID param.Opt[string] `json:\"user_id,omitzero\"`\n\t// Optional human-readable video title for reports.\n\tVideoTitle param.Opt[string] `json:\"video_title,omitzero\"`\n\t// Tab visibility when the event was recorded. Hidden does not imply paused\n\t// playback or identify the cause of a pause. Missing on older events; null when\n\t// unavailable.\n\t//\n\t// Any of \"visible\", \"hidden\".\n\tVisibilityState        param.Opt[SeekCompletedVisibilityState] `json:\"visibility_state,omitzero\"`\n\tMaximumPlayheadSeconds param.Opt[float64]                      `json:\"maximum_playhead_seconds,omitzero\"`\n\tPlayingTimeMs          param.Opt[float64]                      `json:\"playing_time_ms,omitzero\"`\n\t// Wall-clock time spent in state_before_seek until the seek started, excluding the\n\t// seek. The state after the seek is timed from when the seek ends, so each stretch\n\t// is reported once. Omitted by older SDKs.\n\tPreviousStateDurationMs param.Opt[float64]                 `json:\"previous_state_duration_ms,omitzero\"`\n\tRebufferCount           param.Opt[float64]                 `json:\"rebuffer_count,omitzero\"`\n\tRebufferDurationMs      param.Opt[float64]                 `json:\"rebuffer_duration_ms,omitzero\"`\n\tSeekCount               param.Opt[float64]                 `json:\"seek_count,omitzero\"`\n\tSeekDurationMs          param.Opt[float64]                 `json:\"seek_duration_ms,omitzero\"`\n\tRenditionPlayingTime    []shared.RenditionPlayingTimeParam `json:\"rendition_playing_time,omitzero\"`\n\t// Browser and device information. The Chunkify player sends every field, with null\n\t// for unavailable measurements. Other integrations may omit any field except\n\t// schema_version. Extra properties are preserved.\n\tBrowserContext shared.BrowserContextParam `json:\"browser_context,omitzero\"`\n\t// This field can be elided, and will marshal its zero value as\n\t// \"chunkify.video.seek_completed\".\n\tEventName constant.ChunkifyVideoSeekCompleted `json:\"event_name\" default:\"chunkify.video.seek_completed\"`\n\t// This field can be elided, and will marshal its zero value as 1.\n\tSchemaVersion float64 `json:\"schema_version,omitzero\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nThe properties ConnectorName, ConnectorVersion, DeliveryHostname, Environment, ErrorCategory, ErrorCode, ErrorFatal, ErrorPlayheadSeconds, EventID, EventName, FromPlayheadSeconds, LastSeekedAt, OccurredAt, PlaybackResumedAt, PlayerName, PlayerVersion, Reason, SchemaVersion, SDKName, SDKVersion, SeekInteractionDurationMs, SeekOutcome, SeekResumeWaitMs, SeekStartedAt, Sequence, StartupOutcome, StateAfterSeek, StateBeforeSeek, ToPlayheadSeconds, VideoID, ViewID, ViewerID are required.\n\n```go\nfunc (r SeekCompletedParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *SeekCompletedParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype SeekCompletedReason string\n```\n\n```go\nconst (\n\tSeekCompletedReasonEnded         SeekCompletedReason = \"ended\"\n\tSeekCompletedReasonDestroyed     SeekCompletedReason = \"destroyed\"\n\tSeekCompletedReasonSourceChanged SeekCompletedReason = \"source_changed\"\n\tSeekCompletedReasonPageExit      SeekCompletedReason = \"page_exit\"\n)\n```\n\n```go\ntype SeekCompletedSeekOutcome string\n```\n\n```go\nconst (\n\tSeekCompletedSeekOutcomeResumed     SeekCompletedSeekOutcome = \"resumed\"\n\tSeekCompletedSeekOutcomePaused      SeekCompletedSeekOutcome = \"paused\"\n\tSeekCompletedSeekOutcomeInterrupted SeekCompletedSeekOutcome = \"interrupted\"\n)\n```\n\n```go\ntype SeekCompletedStartupOutcome string\n```\n\n```go\nconst (\n\tSeekCompletedStartupOutcomeStarted           SeekCompletedStartupOutcome = \"started\"\n\tSeekCompletedStartupOutcomeFailedBeforeStart SeekCompletedStartupOutcome = \"failed_before_start\"\n\tSeekCompletedStartupOutcomeEndedBeforeStart  SeekCompletedStartupOutcome = \"ended_before_start\"\n)\n```\n\n```go\ntype SeekCompletedStateAfterSeek string\n```\n\n```go\nconst (\n\tSeekCompletedStateAfterSeekStartup   SeekCompletedStateAfterSeek = \"startup\"\n\tSeekCompletedStateAfterSeekResuming  SeekCompletedStateAfterSeek = \"resuming\"\n\tSeekCompletedStateAfterSeekPlaying   SeekCompletedStateAfterSeek = \"playing\"\n\tSeekCompletedStateAfterSeekPaused    SeekCompletedStateAfterSeek = \"paused\"\n\tSeekCompletedStateAfterSeekBuffering SeekCompletedStateAfterSeek = \"buffering\"\n\tSeekCompletedStateAfterSeekSeeking   SeekCompletedStateAfterSeek = \"seeking\"\n\tSeekCompletedStateAfterSeekError     SeekCompletedStateAfterSeek = \"error\"\n\tSeekCompletedStateAfterSeekEnded     SeekCompletedStateAfterSeek = \"ended\"\n\tSeekCompletedStateAfterSeekStopped   SeekCompletedStateAfterSeek = \"stopped\"\n)\n```\n\n```go\ntype SeekCompletedStateBeforeSeek string\n```\n\n```go\nconst (\n\tSeekCompletedStateBeforeSeekStartup   SeekCompletedStateBeforeSeek = \"startup\"\n\tSeekCompletedStateBeforeSeekResuming  SeekCompletedStateBeforeSeek = \"resuming\"\n\tSeekCompletedStateBeforeSeekPlaying   SeekCompletedStateBeforeSeek = \"playing\"\n\tSeekCompletedStateBeforeSeekPaused    SeekCompletedStateBeforeSeek = \"paused\"\n\tSeekCompletedStateBeforeSeekBuffering SeekCompletedStateBeforeSeek = \"buffering\"\n\tSeekCompletedStateBeforeSeekSeeking   SeekCompletedStateBeforeSeek = \"seeking\"\n\tSeekCompletedStateBeforeSeekError     SeekCompletedStateBeforeSeek = \"error\"\n\tSeekCompletedStateBeforeSeekEnded     SeekCompletedStateBeforeSeek = \"ended\"\n\tSeekCompletedStateBeforeSeekStopped   SeekCompletedStateBeforeSeek = \"stopped\"\n)\n```\n\n```go\ntype SeekCompletedVisibilityState string\n```\nTab visibility when the event was recorded. Hidden does not imply paused playback or identify the cause of a pause. Missing on older events; null when unavailable.\n\n```go\nconst (\n\tSeekCompletedVisibilityStateVisible SeekCompletedVisibilityState = \"visible\"\n\tSeekCompletedVisibilityStateHidden  SeekCompletedVisibilityState = \"hidden\"\n)\n```\n\n```go\ntype StartupOutcomes = shared.StartupOutcomes\n```\nMutually exclusive outcomes. An explicit startup\\_outcome on the selected final event takes precedence. Otherwise an available startup time, including zero, or positive playing time on the selected measurement proves started. All other views are unknown. sample\\_views excludes unknown; every ratio uses all selected attempts, including unknown. Missing final delivery does not prove an exit or failure.\n\nThis is an alias to an internal type.\n\n```go\ntype StoredEvent struct {\n\t// A schema version 1 playback event. Extra properties are preserved.\n\tEvent AnalyticsEventUnion `json:\"event\" api:\"required\"`\n\t// ID of the public key used to receive this event. Null when unavailable.\n\tIngestKeyID string `json:\"ingest_key_id\" api:\"required\"`\n\t// Trusted project identifier resolved from the public key. Historical events\n\t// migrate to default.\n\tProjectID  string    `json:\"project_id\" api:\"required\"`\n\tReceivedAt time.Time `json:\"received_at\" api:\"required\" format:\"date-time\"`\n\t// Browser context and locally derived continent/country/city. Request IP addresses\n\t// are never added to events or stored context.\n\tEventContext shared.EventContext `json:\"event_context\"`\n\t// Legacy context present for an event received through OTLP by an earlier\n\t// collector version. Existing context remains readable; new ingestion accepts\n\t// native JSON events only.\n\tOtlp shared.StoredOtlpContext `json:\"otlp\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tEvent        respjson.Field\n\t\tIngestKeyID  respjson.Field\n\t\tProjectID    respjson.Field\n\t\tReceivedAt   respjson.Field\n\t\tEventContext respjson.Field\n\t\tOtlp         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 StoredEvent) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *StoredEvent) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype StoredOtlpContext = shared.StoredOtlpContext\n```\nLegacy context present for an event received through OTLP by an earlier collector version. Existing context remains readable; new ingestion accepts native JSON events only.\n\nThis is an alias to an internal type.\n\n```go\ntype StoredOtlpContextResourceLogs = shared.StoredOtlpContextResourceLogs\n```\nOriginal resource group excluding scopeLogs.\n\nThis is an alias to an internal type.\n\n```go\ntype StoredOtlpContextScopeLogs = shared.StoredOtlpContextScopeLogs\n```\nOriginal scope group excluding logRecords.\n\nThis is an alias to an internal type.\n\n```go\ntype SubtitleChanged struct {\n\tConnectorName    string `json:\"connector_name\" api:\"required\"`\n\tConnectorVersion string `json:\"connector_version\" api:\"required\"`\n\tDeliveryHostname string `json:\"delivery_hostname\" api:\"required\"`\n\tEnvironment      string `json:\"environment\" api:\"required\"`\n\t// Any of \"aborted\", \"network\", \"decode\", \"unsupported\", \"unknown\".\n\tErrorCategory        SubtitleChangedErrorCategory          `json:\"error_category\" api:\"required\"`\n\tErrorCode            SubtitleChangedErrorCodeUnion         `json:\"error_code\" api:\"required\"`\n\tErrorFatal           bool                                  `json:\"error_fatal\" api:\"required\"`\n\tErrorPlayheadSeconds float64                               `json:\"error_playhead_seconds\" api:\"required\"`\n\tEventID              string                                `json:\"event_id\" api:\"required\" format:\"uuid\"`\n\tEventName            constant.ChunkifyVideoSubtitleChanged `json:\"event_name\" default:\"chunkify.video.subtitle_changed\"`\n\tOccurredAt           time.Time                             `json:\"occurred_at\" api:\"required\" format:\"date-time\"`\n\tPlayerName           string                                `json:\"player_name\" api:\"required\"`\n\tPlayerVersion        string                                `json:\"player_version\" api:\"required\"`\n\tPlayheadSeconds      float64                               `json:\"playhead_seconds\" api:\"required\"`\n\t// Language before the change; null when subtitles were off.\n\tPreviousSubtitleLanguage string `json:\"previous_subtitle_language\" api:\"required\"`\n\t// Any of \"ended\", \"destroyed\", \"source_changed\", \"page_exit\".\n\tReason        SubtitleChangedReason `json:\"reason\" api:\"required\"`\n\tSchemaVersion float64               `json:\"schema_version\" api:\"required\"`\n\t// Name of the SDK or integration that produced the event. Informational metadata,\n\t// preserved as received. Must contain at least one non-whitespace character.\n\tSDKName    string `json:\"sdk_name\" api:\"required\"`\n\tSDKVersion string `json:\"sdk_version\" api:\"required\"`\n\tSequence   int64  `json:\"sequence\" api:\"required\"`\n\t// Any of \"started\", \"failed_before_start\", \"ended_before_start\".\n\tStartupOutcome SubtitleChangedStartupOutcome `json:\"startup_outcome\" api:\"required\"`\n\t// Language after the change; null when subtitles are now off.\n\tSubtitleLanguage string `json:\"subtitle_language\" api:\"required\"`\n\tVideoID          string `json:\"video_id\" api:\"required\"`\n\tViewID           string `json:\"view_id\" api:\"required\" format:\"uuid\"`\n\t// Anonymous browser identifier generated by the Chunkify player SDK and stored in\n\t// the page's localStorage.\n\tViewerID string `json:\"viewer_id\" api:\"required\"`\n\t// Browser and device information. The Chunkify player sends every field, with null\n\t// for unavailable measurements. Other integrations may omit any field except\n\t// schema_version. Extra properties are preserved.\n\tBrowserContext shared.BrowserContext `json:\"browser_context\" api:\"nullable\"`\n\t// How the player receives the media: hls for an HLS stream, file for a single\n\t// media file such as an MP4 rendition; null when unknown. Optional: older SDKs\n\t// omit it. Reports read it from each view's first start. Unlike connector_name, it\n\t// does not depend on the playback engine: Safari's native HLS reports html-media.\n\t//\n\t// Any of \"hls\", \"file\".\n\tDeliveryFormat              SubtitleChangedDeliveryFormat `json:\"delivery_format\" api:\"nullable\"`\n\tDeliveryRequestCount        float64                       `json:\"delivery_request_count\" api:\"nullable\"`\n\tDeliveryThroughputBps       float64                       `json:\"delivery_throughput_bps\" api:\"nullable\"`\n\tDeliveryTransferredBytes    float64                       `json:\"delivery_transferred_bytes\" api:\"nullable\"`\n\tDroppedVideoFrames          float64                       `json:\"dropped_video_frames\" api:\"nullable\"`\n\tFirstVideoFrameTimeMs       float64                       `json:\"first_video_frame_time_ms\" api:\"nullable\"`\n\tFurthestProgressRatio       float64                       `json:\"furthest_progress_ratio\" api:\"nullable\"`\n\tMaximumPlayheadSeconds      float64                       `json:\"maximum_playhead_seconds\"`\n\tMediaDurationSeconds        float64                       `json:\"media_duration_seconds\" api:\"nullable\"`\n\tMediaHeightPx               float64                       `json:\"media_height_px\" api:\"nullable\"`\n\tMediaWidthPx                float64                       `json:\"media_width_px\" api:\"nullable\"`\n\tPlayerHeightPx              float64                       `json:\"player_height_px\" api:\"nullable\"`\n\tPlayerWidthPx               float64                       `json:\"player_width_px\" api:\"nullable\"`\n\tPlayingTimeMs               float64                       `json:\"playing_time_ms\"`\n\tRebufferCount               float64                       `json:\"rebuffer_count\"`\n\tRebufferDurationMs          float64                       `json:\"rebuffer_duration_ms\"`\n\tRebufferRatio               float64                       `json:\"rebuffer_ratio\" api:\"nullable\"`\n\tRenditionPlayingTime        []shared.RenditionPlayingTime `json:\"rendition_playing_time\" api:\"nullable\"`\n\tRenditionSwitchCount        float64                       `json:\"rendition_switch_count\" api:\"nullable\"`\n\tSeekCount                   float64                       `json:\"seek_count\"`\n\tSeekDurationMs              float64                       `json:\"seek_duration_ms\"`\n\tSelectedRenditionBitrateBps float64                       `json:\"selected_rendition_bitrate_bps\" api:\"nullable\"`\n\tSelectedRenditionCodec      string                        `json:\"selected_rendition_codec\" api:\"nullable\"`\n\tSelectedRenditionHeight     float64                       `json:\"selected_rendition_height\" api:\"nullable\"`\n\tSelectedRenditionWidth      float64                       `json:\"selected_rendition_width\" api:\"nullable\"`\n\tStartupTimeMs               float64                       `json:\"startup_time_ms\" api:\"nullable\"`\n\tTotalVideoFrames            float64                       `json:\"total_video_frames\" api:\"nullable\"`\n\t// Optional integrator-supplied user ID, used to link views to the integrator's own\n\t// users.\n\tUserID string `json:\"user_id\" api:\"nullable\"`\n\t// Optional human-readable video title for reports.\n\tVideoTitle string `json:\"video_title\" api:\"nullable\"`\n\t// Tab visibility when the event was recorded. Hidden does not imply paused\n\t// playback or identify the cause of a pause. Missing on older events; null when\n\t// unavailable.\n\t//\n\t// Any of \"visible\", \"hidden\".\n\tVisibilityState SubtitleChangedVisibilityState `json:\"visibility_state\" api:\"nullable\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tConnectorName               respjson.Field\n\t\tConnectorVersion            respjson.Field\n\t\tDeliveryHostname            respjson.Field\n\t\tEnvironment                 respjson.Field\n\t\tErrorCategory               respjson.Field\n\t\tErrorCode                   respjson.Field\n\t\tErrorFatal                  respjson.Field\n\t\tErrorPlayheadSeconds        respjson.Field\n\t\tEventID                     respjson.Field\n\t\tEventName                   respjson.Field\n\t\tOccurredAt                  respjson.Field\n\t\tPlayerName                  respjson.Field\n\t\tPlayerVersion               respjson.Field\n\t\tPlayheadSeconds             respjson.Field\n\t\tPreviousSubtitleLanguage    respjson.Field\n\t\tReason                      respjson.Field\n\t\tSchemaVersion               respjson.Field\n\t\tSDKName                     respjson.Field\n\t\tSDKVersion                  respjson.Field\n\t\tSequence                    respjson.Field\n\t\tStartupOutcome              respjson.Field\n\t\tSubtitleLanguage            respjson.Field\n\t\tVideoID                     respjson.Field\n\t\tViewID                      respjson.Field\n\t\tViewerID                    respjson.Field\n\t\tBrowserContext              respjson.Field\n\t\tDeliveryFormat              respjson.Field\n\t\tDeliveryRequestCount        respjson.Field\n\t\tDeliveryThroughputBps       respjson.Field\n\t\tDeliveryTransferredBytes    respjson.Field\n\t\tDroppedVideoFrames          respjson.Field\n\t\tFirstVideoFrameTimeMs       respjson.Field\n\t\tFurthestProgressRatio       respjson.Field\n\t\tMaximumPlayheadSeconds      respjson.Field\n\t\tMediaDurationSeconds        respjson.Field\n\t\tMediaHeightPx               respjson.Field\n\t\tMediaWidthPx                respjson.Field\n\t\tPlayerHeightPx              respjson.Field\n\t\tPlayerWidthPx               respjson.Field\n\t\tPlayingTimeMs               respjson.Field\n\t\tRebufferCount               respjson.Field\n\t\tRebufferDurationMs          respjson.Field\n\t\tRebufferRatio               respjson.Field\n\t\tRenditionPlayingTime        respjson.Field\n\t\tRenditionSwitchCount        respjson.Field\n\t\tSeekCount                   respjson.Field\n\t\tSeekDurationMs              respjson.Field\n\t\tSelectedRenditionBitrateBps respjson.Field\n\t\tSelectedRenditionCodec      respjson.Field\n\t\tSelectedRenditionHeight     respjson.Field\n\t\tSelectedRenditionWidth      respjson.Field\n\t\tStartupTimeMs               respjson.Field\n\t\tTotalVideoFrames            respjson.Field\n\t\tUserID                      respjson.Field\n\t\tVideoTitle                  respjson.Field\n\t\tVisibilityState             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 SubtitleChanged) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r SubtitleChanged) ToParam() SubtitleChangedParam\n```\nToParam converts this SubtitleChanged to a SubtitleChangedParam.\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 SubtitleChangedParam.Overrides()\n\n```go\nfunc (r *SubtitleChanged) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype SubtitleChangedDeliveryFormat string\n```\nHow the player receives the media: hls for an HLS stream, file for a single media file such as an MP4 rendition; null when unknown. Optional: older SDKs omit it. Reports read it from each view's first start. Unlike connector\\_name, it does not depend on the playback engine: Safari's native HLS reports html-media.\n\n```go\nconst (\n\tSubtitleChangedDeliveryFormatHls  SubtitleChangedDeliveryFormat = \"hls\"\n\tSubtitleChangedDeliveryFormatFile SubtitleChangedDeliveryFormat = \"file\"\n)\n```\n\n```go\ntype SubtitleChangedErrorCategory string\n```\n\n```go\nconst (\n\tSubtitleChangedErrorCategoryAborted     SubtitleChangedErrorCategory = \"aborted\"\n\tSubtitleChangedErrorCategoryNetwork     SubtitleChangedErrorCategory = \"network\"\n\tSubtitleChangedErrorCategoryDecode      SubtitleChangedErrorCategory = \"decode\"\n\tSubtitleChangedErrorCategoryUnsupported SubtitleChangedErrorCategory = \"unsupported\"\n\tSubtitleChangedErrorCategoryUnknown     SubtitleChangedErrorCategory = \"unknown\"\n)\n```\n\n```go\ntype SubtitleChangedErrorCodeUnion struct {\n\t// This field will be present if the value is a [string] instead of an object.\n\tOfString string `json:\",inline\"`\n\t// This field will be present if the value is a [float64] instead of an object.\n\tOfFloat float64 `json:\",inline\"`\n\tJSON    struct {\n\t\tOfString respjson.Field\n\t\tOfFloat  respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nSubtitleChangedErrorCodeUnion contains all possible properties and values from \\[string], \\[float64].\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\nIf the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat]\n\n```go\nfunc (u SubtitleChangedErrorCodeUnion) AsFloat() (v float64)\n```\n\n```go\nfunc (u SubtitleChangedErrorCodeUnion) AsString() (v string)\n```\n\n```go\nfunc (u SubtitleChangedErrorCodeUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *SubtitleChangedErrorCodeUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype SubtitleChangedErrorCodeUnionParam struct {\n\tOfString param.Opt[string]  `json:\",omitzero,inline\"`\n\tOfFloat  param.Opt[float64] `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-analytics-go/packages/param#IsOmitted) to confirm if a field is set.\n\n```go\nfunc (u SubtitleChangedErrorCodeUnionParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (u *SubtitleChangedErrorCodeUnionParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype SubtitleChangedParam struct {\n\tConnectorVersion param.Opt[string] `json:\"connector_version,omitzero\" api:\"required\"`\n\tDeliveryHostname param.Opt[string] `json:\"delivery_hostname,omitzero\" api:\"required\"`\n\tEnvironment      param.Opt[string] `json:\"environment,omitzero\" api:\"required\"`\n\t// Any of \"aborted\", \"network\", \"decode\", \"unsupported\", \"unknown\".\n\tErrorCategory        param.Opt[SubtitleChangedErrorCategory] `json:\"error_category,omitzero\" api:\"required\"`\n\tErrorFatal           param.Opt[bool]                         `json:\"error_fatal,omitzero\" api:\"required\"`\n\tErrorPlayheadSeconds param.Opt[float64]                      `json:\"error_playhead_seconds,omitzero\" api:\"required\"`\n\tPlayerName           param.Opt[string]                       `json:\"player_name,omitzero\" api:\"required\"`\n\tPlayerVersion        param.Opt[string]                       `json:\"player_version,omitzero\" api:\"required\"`\n\tPlayheadSeconds      param.Opt[float64]                      `json:\"playhead_seconds,omitzero\" api:\"required\"`\n\t// Language before the change; null when subtitles were off.\n\tPreviousSubtitleLanguage param.Opt[string] `json:\"previous_subtitle_language,omitzero\" api:\"required\"`\n\t// Any of \"ended\", \"destroyed\", \"source_changed\", \"page_exit\".\n\tReason param.Opt[SubtitleChangedReason] `json:\"reason,omitzero\" api:\"required\"`\n\t// Any of \"started\", \"failed_before_start\", \"ended_before_start\".\n\tStartupOutcome param.Opt[SubtitleChangedStartupOutcome] `json:\"startup_outcome,omitzero\" api:\"required\"`\n\t// Language after the change; null when subtitles are now off.\n\tSubtitleLanguage param.Opt[string] `json:\"subtitle_language,omitzero\" api:\"required\"`\n\t// Anonymous browser identifier generated by the Chunkify player SDK and stored in\n\t// the page's localStorage.\n\tViewerID      param.Opt[string]                  `json:\"viewer_id,omitzero\" api:\"required\"`\n\tErrorCode     SubtitleChangedErrorCodeUnionParam `json:\"error_code,omitzero\" api:\"required\"`\n\tConnectorName string                             `json:\"connector_name\" api:\"required\"`\n\tEventID       string                             `json:\"event_id\" api:\"required\" format:\"uuid\"`\n\tOccurredAt    time.Time                          `json:\"occurred_at\" api:\"required\" format:\"date-time\"`\n\t// Name of the SDK or integration that produced the event. Informational metadata,\n\t// preserved as received. Must contain at least one non-whitespace character.\n\tSDKName    string `json:\"sdk_name\" api:\"required\"`\n\tSDKVersion string `json:\"sdk_version\" api:\"required\"`\n\tSequence   int64  `json:\"sequence\" api:\"required\"`\n\tVideoID    string `json:\"video_id\" api:\"required\"`\n\tViewID     string `json:\"view_id\" api:\"required\" format:\"uuid\"`\n\t// How the player receives the media: hls for an HLS stream, file for a single\n\t// media file such as an MP4 rendition; null when unknown. Optional: older SDKs\n\t// omit it. Reports read it from each view's first start. Unlike connector_name, it\n\t// does not depend on the playback engine: Safari's native HLS reports html-media.\n\t//\n\t// Any of \"hls\", \"file\".\n\tDeliveryFormat              param.Opt[SubtitleChangedDeliveryFormat] `json:\"delivery_format,omitzero\"`\n\tDeliveryRequestCount        param.Opt[float64]                       `json:\"delivery_request_count,omitzero\"`\n\tDeliveryThroughputBps       param.Opt[float64]                       `json:\"delivery_throughput_bps,omitzero\"`\n\tDeliveryTransferredBytes    param.Opt[float64]                       `json:\"delivery_transferred_bytes,omitzero\"`\n\tDroppedVideoFrames          param.Opt[float64]                       `json:\"dropped_video_frames,omitzero\"`\n\tFirstVideoFrameTimeMs       param.Opt[float64]                       `json:\"first_video_frame_time_ms,omitzero\"`\n\tFurthestProgressRatio       param.Opt[float64]                       `json:\"furthest_progress_ratio,omitzero\"`\n\tMediaDurationSeconds        param.Opt[float64]                       `json:\"media_duration_seconds,omitzero\"`\n\tMediaHeightPx               param.Opt[float64]                       `json:\"media_height_px,omitzero\"`\n\tMediaWidthPx                param.Opt[float64]                       `json:\"media_width_px,omitzero\"`\n\tPlayerHeightPx              param.Opt[float64]                       `json:\"player_height_px,omitzero\"`\n\tPlayerWidthPx               param.Opt[float64]                       `json:\"player_width_px,omitzero\"`\n\tRebufferRatio               param.Opt[float64]                       `json:\"rebuffer_ratio,omitzero\"`\n\tRenditionSwitchCount        param.Opt[float64]                       `json:\"rendition_switch_count,omitzero\"`\n\tSelectedRenditionBitrateBps param.Opt[float64]                       `json:\"selected_rendition_bitrate_bps,omitzero\"`\n\tSelectedRenditionCodec      param.Opt[string]                        `json:\"selected_rendition_codec,omitzero\"`\n\tSelectedRenditionHeight     param.Opt[float64]                       `json:\"selected_rendition_height,omitzero\"`\n\tSelectedRenditionWidth      param.Opt[float64]                       `json:\"selected_rendition_width,omitzero\"`\n\tStartupTimeMs               param.Opt[float64]                       `json:\"startup_time_ms,omitzero\"`\n\tTotalVideoFrames            param.Opt[float64]                       `json:\"total_video_frames,omitzero\"`\n\t// Optional integrator-supplied user ID, used to link views to the integrator's own\n\t// users.\n\tUserID param.Opt[string] `json:\"user_id,omitzero\"`\n\t// Optional human-readable video title for reports.\n\tVideoTitle param.Opt[string] `json:\"video_title,omitzero\"`\n\t// Tab visibility when the event was recorded. Hidden does not imply paused\n\t// playback or identify the cause of a pause. Missing on older events; null when\n\t// unavailable.\n\t//\n\t// Any of \"visible\", \"hidden\".\n\tVisibilityState        param.Opt[SubtitleChangedVisibilityState] `json:\"visibility_state,omitzero\"`\n\tMaximumPlayheadSeconds param.Opt[float64]                        `json:\"maximum_playhead_seconds,omitzero\"`\n\tPlayingTimeMs          param.Opt[float64]                        `json:\"playing_time_ms,omitzero\"`\n\tRebufferCount          param.Opt[float64]                        `json:\"rebuffer_count,omitzero\"`\n\tRebufferDurationMs     param.Opt[float64]                        `json:\"rebuffer_duration_ms,omitzero\"`\n\tSeekCount              param.Opt[float64]                        `json:\"seek_count,omitzero\"`\n\tSeekDurationMs         param.Opt[float64]                        `json:\"seek_duration_ms,omitzero\"`\n\tRenditionPlayingTime   []shared.RenditionPlayingTimeParam        `json:\"rendition_playing_time,omitzero\"`\n\t// Browser and device information. The Chunkify player sends every field, with null\n\t// for unavailable measurements. Other integrations may omit any field except\n\t// schema_version. Extra properties are preserved.\n\tBrowserContext shared.BrowserContextParam `json:\"browser_context,omitzero\"`\n\t// This field can be elided, and will marshal its zero value as\n\t// \"chunkify.video.subtitle_changed\".\n\tEventName constant.ChunkifyVideoSubtitleChanged `json:\"event_name\" default:\"chunkify.video.subtitle_changed\"`\n\t// This field can be elided, and will marshal its zero value as 1.\n\tSchemaVersion float64 `json:\"schema_version,omitzero\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nThe properties ConnectorName, ConnectorVersion, DeliveryHostname, Environment, ErrorCategory, ErrorCode, ErrorFatal, ErrorPlayheadSeconds, EventID, EventName, OccurredAt, PlayerName, PlayerVersion, PlayheadSeconds, PreviousSubtitleLanguage, Reason, SchemaVersion, SDKName, SDKVersion, Sequence, StartupOutcome, SubtitleLanguage, VideoID, ViewID, ViewerID are required.\n\n```go\nfunc (r SubtitleChangedParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *SubtitleChangedParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype SubtitleChangedReason string\n```\n\n```go\nconst (\n\tSubtitleChangedReasonEnded         SubtitleChangedReason = \"ended\"\n\tSubtitleChangedReasonDestroyed     SubtitleChangedReason = \"destroyed\"\n\tSubtitleChangedReasonSourceChanged SubtitleChangedReason = \"source_changed\"\n\tSubtitleChangedReasonPageExit      SubtitleChangedReason = \"page_exit\"\n)\n```\n\n```go\ntype SubtitleChangedStartupOutcome string\n```\n\n```go\nconst (\n\tSubtitleChangedStartupOutcomeStarted           SubtitleChangedStartupOutcome = \"started\"\n\tSubtitleChangedStartupOutcomeFailedBeforeStart SubtitleChangedStartupOutcome = \"failed_before_start\"\n\tSubtitleChangedStartupOutcomeEndedBeforeStart  SubtitleChangedStartupOutcome = \"ended_before_start\"\n)\n```\n\n```go\ntype SubtitleChangedVisibilityState string\n```\nTab visibility when the event was recorded. Hidden does not imply paused playback or identify the cause of a pause. Missing on older events; null when unavailable.\n\n```go\nconst (\n\tSubtitleChangedVisibilityStateVisible SubtitleChangedVisibilityState = \"visible\"\n\tSubtitleChangedVisibilityStateHidden  SubtitleChangedVisibilityState = \"hidden\"\n)\n```\n\n```go\ntype SubtitleGetParams struct {\n\t// Exact browser name, such as Chrome. Missing values do not match.\n\tBrowserName param.Opt[string] `query:\"browser_name,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive city name from the local lookup, with 1 to 256 Unicode\n\t// characters. Use country alongside city to distinguish places with the same name.\n\t// Missing locations do not match.\n\tCity param.Opt[string] `query:\"city,omitzero\" json:\"-\"`\n\t// Exact uppercase ISO 3166-1 alpha-2 country code, such as GB. Missing locations\n\t// do not match.\n\tCountry param.Opt[string] `query:\"country,omitzero\" json:\"-\"`\n\t// Inclusive RFC3339 occurrence-time lower bound, with timezone. Summary/video\n\t// queries apply it to the selected view_started event. Must be before to.\n\tFrom param.Opt[time.Time] `query:\"from,omitzero\" format:\"date-time\" json:\"-\"`\n\t// Maximum rows on this page. Events and videos always support pagination; summary,\n\t// quality and engagement support it only with group_by.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Exact operating-system name, such as macOS. Missing values do not match.\n\tOsName param.Opt[string] `query:\"os_name,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive page origin captured by the player, such as\n\t// https://example.com. Metrics use the first retained view start; raw events use\n\t// each event context. Missing values do not match.\n\tPageOrigin param.Opt[string] `query:\"page_origin,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive page path captured by the player, such as /watch/video.\n\t// Filter by page_origin as well to distinguish identical paths on different sites.\n\t// Metrics use the first retained view start; raw events use each event context.\n\t// Missing values do not match.\n\tPagePath param.Opt[string] `query:\"page_path,omitzero\" json:\"-\"`\n\t// Playback rate from 0.01 to 16 with at most two decimals, such as 1, 1.5 or 2;\n\t// 2.0 and 2 are the same rate. Metrics use the rate on the first retained view\n\t// start; raw events use each event's value.\n\tPlaybackRate param.Opt[string] `query:\"playback_rate,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive, non-blank subtitle language tag, such as fr or en-US; und\n\t// for a subtitles track without a language. Metrics use the language showing on\n\t// the first retained view start; raw events use each event's value. Views without\n\t// subtitles at start do not match.\n\tSubtitleLanguage param.Opt[string] `query:\"subtitle_language,omitzero\" json:\"-\"`\n\t// Exclusive RFC3339 occurrence-time upper bound, with timezone. Summary/video\n\t// queries apply it to the selected view_started event.\n\tTo param.Opt[time.Time] `query:\"to,omitzero\" format:\"date-time\" json:\"-\"`\n\t// Exact integrator-supplied user ID. Selects views by their start event; event\n\t// lists match each event's own value. Missing/null user IDs do not match. Reports\n\t// with this filter read one stored row per view.\n\tUserID param.Opt[string] `query:\"user_id,omitzero\" json:\"-\"`\n\t// Exact video ID; must not be blank. Combined with all other filters using AND.\n\tVideoID param.Opt[string] `query:\"video_id,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive video title. Selects views by the title on their first\n\t// retained start; event lists match each event's own value. Views without a title\n\t// do not match. Reports with this filter read one stored row per view.\n\tVideoTitle param.Opt[string] `query:\"video_title,omitzero\" json:\"-\"`\n\t// Filter one playback attempt by view ID. Metrics use its first retained start.\n\tViewID param.Opt[string] `query:\"view_id,omitzero\" json:\"-\"`\n\t// Exact viewer ID. The Chunkify player SDK generates one per browser; missing/null\n\t// viewer IDs do not match.\n\tViewerID param.Opt[string] `query:\"viewer_id,omitzero\" json:\"-\"`\n\t// Exact continent code from the local lookup. Missing locations do not match.\n\t//\n\t// Any of \"AF\", \"AN\", \"AS\", \"EU\", \"NA\", \"OC\", \"SA\".\n\tContinent SubtitleGetParamsContinent `query:\"continent,omitzero\" json:\"-\"`\n\t// Delivery format on the first retained view start: hls for HLS streams, file for\n\t// a single media file such as an MP4 rendition. Metrics use the first retained\n\t// view start; raw events use each event's value. Views whose SDK did not report it\n\t// do not match. connector_name is not a substitute: Safari plays HLS natively and\n\t// reports html-media.\n\t//\n\t// Any of \"hls\", \"file\".\n\tDeliveryFormat SubtitleGetParamsDeliveryFormat `query:\"delivery_format,omitzero\" json:\"-\"`\n\t// Exact device class. unknown matches an explicit unknown value.\n\t//\n\t// Any of \"desktop\", \"mobile\", \"tablet\", \"unknown\".\n\tDeviceType SubtitleGetParamsDeviceType `query:\"device_type,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r SubtitleGetParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [SubtitleGetParams](#SubtitleGetParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype SubtitleGetParamsContinent string\n```\nExact continent code from the local lookup. Missing locations do not match.\n\n```go\nconst (\n\tSubtitleGetParamsContinentAf SubtitleGetParamsContinent = \"AF\"\n\tSubtitleGetParamsContinentAn SubtitleGetParamsContinent = \"AN\"\n\tSubtitleGetParamsContinentAs SubtitleGetParamsContinent = \"AS\"\n\tSubtitleGetParamsContinentEu SubtitleGetParamsContinent = \"EU\"\n\tSubtitleGetParamsContinentNa SubtitleGetParamsContinent = \"NA\"\n\tSubtitleGetParamsContinentOc SubtitleGetParamsContinent = \"OC\"\n\tSubtitleGetParamsContinentSa SubtitleGetParamsContinent = \"SA\"\n)\n```\n\n```go\ntype SubtitleGetParamsDeliveryFormat string\n```\nDelivery format on the first retained view start: hls for HLS streams, file for a single media file such as an MP4 rendition. Metrics use the first retained view start; raw events use each event's value. Views whose SDK did not report it do not match. connector\\_name is not a substitute: Safari plays HLS natively and reports html-media.\n\n```go\nconst (\n\tSubtitleGetParamsDeliveryFormatHls  SubtitleGetParamsDeliveryFormat = \"hls\"\n\tSubtitleGetParamsDeliveryFormatFile SubtitleGetParamsDeliveryFormat = \"file\"\n)\n```\n\n```go\ntype SubtitleGetParamsDeviceType string\n```\nExact device class. unknown matches an explicit unknown value.\n\n```go\nconst (\n\tSubtitleGetParamsDeviceTypeDesktop SubtitleGetParamsDeviceType = \"desktop\"\n\tSubtitleGetParamsDeviceTypeMobile  SubtitleGetParamsDeviceType = \"mobile\"\n\tSubtitleGetParamsDeviceTypeTablet  SubtitleGetParamsDeviceType = \"tablet\"\n\tSubtitleGetParamsDeviceTypeUnknown SubtitleGetParamsDeviceType = \"unknown\"\n)\n```\n\n```go\ntype SubtitleMetric struct {\n\t// Subtitle language tag; und for a track without a language; null for subtitles\n\t// off.\n\tLanguage string `json:\"language\" api:\"required\"`\n\t// Cumulative measured playing time in this language, summed once per attempt.\n\tPlayingTimeMs float64 `json:\"playing_time_ms\" api:\"required\"`\n\t// Share of all measured playing time, including rows outside the returned limit.\n\tPlayingTimeRatio float64 `json:\"playing_time_ratio\" api:\"required\"`\n\t// Distinct attempts with positive playing time in this language.\n\tViews int64 `json:\"views\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tLanguage         respjson.Field\n\t\tPlayingTimeMs    respjson.Field\n\t\tPlayingTimeRatio respjson.Field\n\t\tViews            respjson.Field\n\t\tExtraFields      map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nWatch time with one subtitle language, or with subtitles off.\n\n```go\nfunc (r SubtitleMetric) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *SubtitleMetric) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype SubtitlePlayingTime = shared.SubtitlePlayingTime\n```\nThis is an alias to an internal type.\n\n```go\ntype SubtitlePlayingTimeParam = shared.SubtitlePlayingTimeParam\n```\nThis is an alias to an internal type.\n\n```go\ntype SubtitleReport struct {\n\t// Most-watched first, then value ascending with null first. Defaults to 100 rows,\n\t// maximum 1000. CSV exports include all matching rows.\n\tLanguages []SubtitleMetric `json:\"languages\" api:\"required\"`\n\t// Attempts with positive measured playing time in this report. Older SDKs send no\n\t// measurement.\n\tSampleViews int64 `json:\"sample_views\" api:\"required\"`\n\t// Number of distinct values before applying the row limit.\n\tTotalLanguages int64 `json:\"total_languages\" api:\"required\"`\n\t// Total measured playing time across all matching rows.\n\tTotalPlayingTimeMs float64 `json:\"total_playing_time_ms\" api:\"required\"`\n\t// All attempts in the filtered start cohort.\n\tViews int64 `json:\"views\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tLanguages          respjson.Field\n\t\tSampleViews        respjson.Field\n\t\tTotalLanguages     respjson.Field\n\t\tTotalPlayingTimeMs respjson.Field\n\t\tViews              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 SubtitleReport) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *SubtitleReport) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype SubtitleService struct {\n\tOptions []option.RequestOption\n}\n```\nPrivate retained-event and view-cohort queries.\n\nSubtitleService contains methods and other services that help with interacting with the Chunkify Analytics 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 [NewSubtitleService](#NewSubtitleService) method instead.\n\n```go\nfunc NewSubtitleService(opts ...option.RequestOption) (r SubtitleService)\n```\nNewSubtitleService 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 *SubtitleService) Get(ctx context.Context, query SubtitleGetParams, opts ...option.RequestOption) (res *SubtitleReport, err error)\n```\nSummarize watch time per subtitle language. Expand each view's cumulative subtitle\\_playing\\_time array once; a null language is time with subtitles off. Use only the selected final event, or latest snapshot when no final exists, for the filtered view-start cohort. Missing or empty measurements contribute no time; older SDKs send none. Rank by playing time descending, then value ascending with null first; limit bounds returned rows only, while totals cover every matching row. Views can contribute to several rows and must not be summed. No cursor, group\\_by, sort\\_by or order. Export resource=subtitles includes all matching rows.\n\n```go\ntype SummaryGetParams struct {\n\t// Exact browser name, such as Chrome. Missing values do not match.\n\tBrowserName param.Opt[string] `query:\"browser_name,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive city name from the local lookup, with 1 to 256 Unicode\n\t// characters. Use country alongside city to distinguish places with the same name.\n\t// Missing locations do not match.\n\tCity param.Opt[string] `query:\"city,omitzero\" json:\"-\"`\n\t// Exact uppercase ISO 3166-1 alpha-2 country code, such as GB. Missing locations\n\t// do not match.\n\tCountry param.Opt[string] `query:\"country,omitzero\" json:\"-\"`\n\t// Use next_cursor from the previous page. Keep the same filters, sort_by and\n\t// order. Video cursors from earlier versions are invalid; start a new pagination\n\t// sequence after upgrading.\n\tCursor param.Opt[string] `query:\"cursor,omitzero\" json:\"-\"`\n\t// Inclusive RFC3339 occurrence-time lower bound, with timezone. Summary/video\n\t// queries apply it to the selected view_started event. Must be before to.\n\tFrom param.Opt[time.Time] `query:\"from,omitzero\" format:\"date-time\" json:\"-\"`\n\t// Maximum rows on this page. Events and videos always support pagination; summary,\n\t// quality and engagement support it only with group_by.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Exact operating-system name, such as macOS. Missing values do not match.\n\tOsName param.Opt[string] `query:\"os_name,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive page origin captured by the player, such as\n\t// https://example.com. Metrics use the first retained view start; raw events use\n\t// each event context. Missing values do not match.\n\tPageOrigin param.Opt[string] `query:\"page_origin,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive page path captured by the player, such as /watch/video.\n\t// Filter by page_origin as well to distinguish identical paths on different sites.\n\t// Metrics use the first retained view start; raw events use each event context.\n\t// Missing values do not match.\n\tPagePath param.Opt[string] `query:\"page_path,omitzero\" json:\"-\"`\n\t// Playback rate from 0.01 to 16 with at most two decimals, such as 1, 1.5 or 2;\n\t// 2.0 and 2 are the same rate. Metrics use the rate on the first retained view\n\t// start; raw events use each event's value.\n\tPlaybackRate param.Opt[string] `query:\"playback_rate,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive, non-blank subtitle language tag, such as fr or en-US; und\n\t// for a subtitles track without a language. Metrics use the language showing on\n\t// the first retained view start; raw events use each event's value. Views without\n\t// subtitles at start do not match.\n\tSubtitleLanguage param.Opt[string] `query:\"subtitle_language,omitzero\" json:\"-\"`\n\t// Exclusive RFC3339 occurrence-time upper bound, with timezone. Summary/video\n\t// queries apply it to the selected view_started event.\n\tTo param.Opt[time.Time] `query:\"to,omitzero\" format:\"date-time\" json:\"-\"`\n\t// Exact integrator-supplied user ID. Selects views by their start event; event\n\t// lists match each event's own value. Missing/null user IDs do not match. Reports\n\t// with this filter read one stored row per view.\n\tUserID param.Opt[string] `query:\"user_id,omitzero\" json:\"-\"`\n\t// Exact video ID; must not be blank. Combined with all other filters using AND.\n\tVideoID param.Opt[string] `query:\"video_id,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive video title. Selects views by the title on their first\n\t// retained start; event lists match each event's own value. Views without a title\n\t// do not match. Reports with this filter read one stored row per view.\n\tVideoTitle param.Opt[string] `query:\"video_title,omitzero\" json:\"-\"`\n\t// Filter one playback attempt by view ID. Metrics use its first retained start.\n\tViewID param.Opt[string] `query:\"view_id,omitzero\" json:\"-\"`\n\t// Exact viewer ID. The Chunkify player SDK generates one per browser; missing/null\n\t// viewer IDs do not match.\n\tViewerID param.Opt[string] `query:\"viewer_id,omitzero\" json:\"-\"`\n\t// Exact continent code from the local lookup. Missing locations do not match.\n\t//\n\t// Any of \"AF\", \"AN\", \"AS\", \"EU\", \"NA\", \"OC\", \"SA\".\n\tContinent SummaryGetParamsContinent `query:\"continent,omitzero\" json:\"-\"`\n\t// Delivery format on the first retained view start: hls for HLS streams, file for\n\t// a single media file such as an MP4 rendition. Metrics use the first retained\n\t// view start; raw events use each event's value. Views whose SDK did not report it\n\t// do not match. connector_name is not a substitute: Safari plays HLS natively and\n\t// reports html-media.\n\t//\n\t// Any of \"hls\", \"file\".\n\tDeliveryFormat SummaryGetParamsDeliveryFormat `query:\"delivery_format,omitzero\" json:\"-\"`\n\t// Exact device class. unknown matches an explicit unknown value.\n\t//\n\t// Any of \"desktop\", \"mobile\", \"tablet\", \"unknown\".\n\tDeviceType SummaryGetParamsDeviceType `query:\"device_type,omitzero\" json:\"-\"`\n\t// Optional on summary, quality and engagement. Group views by this field on their\n\t// first retained start. Missing, null and nonstring context forms a null group;\n\t// the literal device type unknown stays separate. Groups sort by views descending,\n\t// then value ascending with null first for ties. Pagination is available only with\n\t// group_by. Location uses the first retained start too. City groups use the stored\n\t// name; filter by country to avoid combining names shared by different countries.\n\t// Page groups use the first retained start even if playback continues after\n\t// navigation. Filter by page_origin when grouping page_path to distinguish\n\t// identical paths on different sites. video_title groups by the title on each\n\t// view's first retained start, so a renamed video counts each view under the title\n\t// it started with. delivery_format groups by hls or file on each view's first\n\t// retained start; views from SDKs that do not report it form the null group.\n\t// user_id groups by the user ID on each view's first retained start. Use\n\t// custom.\u003ckey\u003e, such as custom.plan, to group by a custom dimension; views without\n\t// the key form the null group.\n\tGroupBy SummaryGetParamsGroupBy `query:\"group_by,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r SummaryGetParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [SummaryGetParams](#SummaryGetParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype SummaryGetParamsContinent string\n```\nExact continent code from the local lookup. Missing locations do not match.\n\n```go\nconst (\n\tSummaryGetParamsContinentAf SummaryGetParamsContinent = \"AF\"\n\tSummaryGetParamsContinentAn SummaryGetParamsContinent = \"AN\"\n\tSummaryGetParamsContinentAs SummaryGetParamsContinent = \"AS\"\n\tSummaryGetParamsContinentEu SummaryGetParamsContinent = \"EU\"\n\tSummaryGetParamsContinentNa SummaryGetParamsContinent = \"NA\"\n\tSummaryGetParamsContinentOc SummaryGetParamsContinent = \"OC\"\n\tSummaryGetParamsContinentSa SummaryGetParamsContinent = \"SA\"\n)\n```\n\n```go\ntype SummaryGetParamsDeliveryFormat string\n```\nDelivery format on the first retained view start: hls for HLS streams, file for a single media file such as an MP4 rendition. Metrics use the first retained view start; raw events use each event's value. Views whose SDK did not report it do not match. connector\\_name is not a substitute: Safari plays HLS natively and reports html-media.\n\n```go\nconst (\n\tSummaryGetParamsDeliveryFormatHls  SummaryGetParamsDeliveryFormat = \"hls\"\n\tSummaryGetParamsDeliveryFormatFile SummaryGetParamsDeliveryFormat = \"file\"\n)\n```\n\n```go\ntype SummaryGetParamsDeviceType string\n```\nExact device class. unknown matches an explicit unknown value.\n\n```go\nconst (\n\tSummaryGetParamsDeviceTypeDesktop SummaryGetParamsDeviceType = \"desktop\"\n\tSummaryGetParamsDeviceTypeMobile  SummaryGetParamsDeviceType = \"mobile\"\n\tSummaryGetParamsDeviceTypeTablet  SummaryGetParamsDeviceType = \"tablet\"\n\tSummaryGetParamsDeviceTypeUnknown SummaryGetParamsDeviceType = \"unknown\"\n)\n```\n\n```go\ntype SummaryGetParamsGroupBy string\n```\nOptional on summary, quality and engagement. Group views by this field on their first retained start. Missing, null and nonstring context forms a null group; the literal device type unknown stays separate. Groups sort by views descending, then value ascending with null first for ties. Pagination is available only with group\\_by. Location uses the first retained start too. City groups use the stored name; filter by country to avoid combining names shared by different countries. Page groups use the first retained start even if playback continues after navigation. Filter by page\\_origin when grouping page\\_path to distinguish identical paths on different sites. video\\_title groups by the title on each view's first retained start, so a renamed video counts each view under the title it started with. delivery\\_format groups by hls or file on each view's first retained start; views from SDKs that do not report it form the null group. user\\_id groups by the user ID on each view's first retained start. Use custom.\\\u003ckey\u003e, such as custom.plan, to group by a custom dimension; views without the key form the null group.\n\n```go\nconst (\n\tSummaryGetParamsGroupByBrowserName      SummaryGetParamsGroupBy = \"browser_name\"\n\tSummaryGetParamsGroupByOsName           SummaryGetParamsGroupBy = \"os_name\"\n\tSummaryGetParamsGroupByDeviceType       SummaryGetParamsGroupBy = \"device_type\"\n\tSummaryGetParamsGroupByContinent        SummaryGetParamsGroupBy = \"continent\"\n\tSummaryGetParamsGroupByCountry          SummaryGetParamsGroupBy = \"country\"\n\tSummaryGetParamsGroupByCity             SummaryGetParamsGroupBy = \"city\"\n\tSummaryGetParamsGroupByPageOrigin       SummaryGetParamsGroupBy = \"page_origin\"\n\tSummaryGetParamsGroupByPagePath         SummaryGetParamsGroupBy = \"page_path\"\n\tSummaryGetParamsGroupBySubtitleLanguage SummaryGetParamsGroupBy = \"subtitle_language\"\n\tSummaryGetParamsGroupByPlaybackRate     SummaryGetParamsGroupBy = \"playback_rate\"\n\tSummaryGetParamsGroupByDeliveryFormat   SummaryGetParamsGroupBy = \"delivery_format\"\n\tSummaryGetParamsGroupByVideoTitle       SummaryGetParamsGroupBy = \"video_title\"\n\tSummaryGetParamsGroupByUserID           SummaryGetParamsGroupBy = \"user_id\"\n)\n```\n\n```go\ntype SummaryService struct {\n\tOptions []option.RequestOption\n}\n```\nPrivate retained-event and view-cohort queries.\n\nSummaryService contains methods and other services that help with interacting with the Chunkify Analytics 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 [NewSummaryService](#NewSummaryService) method instead.\n\n```go\nfunc NewSummaryService(opts ...option.RequestOption) (r SummaryService)\n```\nNewSummaryService 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 *SummaryService) Get(ctx context.Context, query SummaryGetParams, opts ...option.RequestOption) (res *MetricsResponseUnion, err error)\n```\nGet views, unique viewer IDs, and playing time for matching playback attempts. Optionally group the full filtered view-start cohort with group\\_by=browser\\_name, os\\_name, device\\_type, continent, country or city. Without group\\_by the totals response is unchanged. With group\\_by, return paginated groups sorted by views descending. Equal view counts sort by value ascending, null first. Context comes from the first retained start; missing, null and nonstring values form a null group. Keep group\\_by and filters unchanged with each cursor. Unique viewers must not be summed across groups.\n\n```go\ntype TimeBucket struct {\n\t// UTC interval start in RFC3339 with milliseconds and Z. May precede from in a\n\t// partial first bucket; only starts inside [from, to) contribute.\n\tBucketStart        time.Time `json:\"bucket_start\" api:\"required\" format:\"date-time\"`\n\tTotalPlayingTimeMs float64   `json:\"total_playing_time_ms\" api:\"required\"`\n\tUniqueViewers      int64     `json:\"unique_viewers\" api:\"required\"`\n\tViews              int64     `json:\"views\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tBucketStart        respjson.Field\n\t\tTotalPlayingTimeMs respjson.Field\n\t\tUniqueViewers      respjson.Field\n\t\tViews              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 TimeBucket) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *TimeBucket) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype Timeseries struct {\n\tBuckets []TimeBucket `json:\"buckets\" api:\"required\"`\n\t// Inclusive query bound normalized to UTC milliseconds.\n\tFrom time.Time `json:\"from\" api:\"required\" format:\"date-time\"`\n\t// Any of \"hour\", \"day\".\n\tInterval TimeseriesInterval `json:\"interval\" api:\"required\"`\n\tKind     constant.Summary   `json:\"kind\" default:\"summary\"`\n\tTimezone constant.Utc       `json:\"timezone\" default:\"UTC\"`\n\t// Exclusive query bound normalized to UTC milliseconds.\n\tTo time.Time `json:\"to\" api:\"required\" format:\"date-time\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tBuckets     respjson.Field\n\t\tFrom        respjson.Field\n\t\tInterval    respjson.Field\n\t\tKind        respjson.Field\n\t\tTimezone    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```\n\n```go\nfunc (r Timeseries) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *Timeseries) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype TimeseriesInterval string\n```\n\n```go\nconst (\n\tTimeseriesIntervalHour TimeseriesInterval = \"hour\"\n\tTimeseriesIntervalDay  TimeseriesInterval = \"day\"\n)\n```\n\n```go\ntype TimeseriesResponseUnion struct {\n\t// This field is a union of [[]TimeBucket], [[]QualityTimeseriesBucket],\n\t// [[]EngagementTimeseriesBucket]\n\tBuckets  TimeseriesResponseUnionBuckets `json:\"buckets\"`\n\tFrom     time.Time                      `json:\"from\"`\n\tInterval string                         `json:\"interval\"`\n\tKind     string                         `json:\"kind\"`\n\t// This field is from variant [Timeseries].\n\tTimezone constant.Utc `json:\"timezone\"`\n\tTo       time.Time    `json:\"to\"`\n\tJSON     struct {\n\t\tBuckets  respjson.Field\n\t\tFrom     respjson.Field\n\t\tInterval respjson.Field\n\t\tKind     respjson.Field\n\t\tTimezone respjson.Field\n\t\tTo       respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nTimeseriesResponseUnion contains all possible properties and values from [Timeseries](#Timeseries), [QualityTimeseries](#QualityTimeseries), [EngagementTimeseries](#EngagementTimeseries).\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\n```go\nfunc (u TimeseriesResponseUnion) AsEngagementTimeseries() (v EngagementTimeseries)\n```\n\n```go\nfunc (u TimeseriesResponseUnion) AsQualityTimeseries() (v QualityTimeseries)\n```\n\n```go\nfunc (u TimeseriesResponseUnion) AsTimeseries() (v Timeseries)\n```\n\n```go\nfunc (u TimeseriesResponseUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *TimeseriesResponseUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype TimeseriesResponseUnionBuckets struct {\n\t// This field will be present if the value is a [[]TimeBucket] instead of an\n\t// object.\n\tOfTimeBucketArray []TimeBucket `json:\",inline\"`\n\t// This field will be present if the value is a [[]QualityTimeseriesBucket] instead\n\t// of an object.\n\tOfQualityTimeseriesBucketArray []QualityTimeseriesBucket `json:\",inline\"`\n\t// This field will be present if the value is a [[]EngagementTimeseriesBucket]\n\t// instead of an object.\n\tOfEngagementTimeseriesBucketArray []EngagementTimeseriesBucket `json:\",inline\"`\n\tJSON                              struct {\n\t\tOfTimeBucketArray                 respjson.Field\n\t\tOfQualityTimeseriesBucketArray    respjson.Field\n\t\tOfEngagementTimeseriesBucketArray respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nTimeseriesResponseUnionBuckets is an implicit subunion of [TimeseriesResponseUnion](#TimeseriesResponseUnion). TimeseriesResponseUnionBuckets provides convenient access to the sub-properties of the union.\n\nFor type safety it is recommended to directly use a variant of the [TimeseriesResponseUnion](#TimeseriesResponseUnion).\n\nIf the underlying value is not a json object, one of the following properties will be valid: OfTimeBucketArray OfQualityTimeseriesBucketArray OfEngagementTimeseriesBucketArray]\n\n```go\nfunc (r *TimeseriesResponseUnionBuckets) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype TimeseryGetParams struct {\n\t// Inclusive view-start time in RFC3339 format with a timezone.\n\tFrom time.Time `query:\"from\" api:\"required\" format:\"date-time\" json:\"-\"`\n\t// UTC hour or day. The requested range can contain at most 1000 buckets.\n\t//\n\t// Any of \"hour\", \"day\".\n\tInterval TimeseryGetParamsInterval `query:\"interval,omitzero\" api:\"required\" json:\"-\"`\n\t// Exclusive view-start time in RFC3339 format with a timezone. Must be later than\n\t// from.\n\tTo time.Time `query:\"to\" api:\"required\" format:\"date-time\" json:\"-\"`\n\t// Exact browser name, such as Chrome. Missing values do not match.\n\tBrowserName param.Opt[string] `query:\"browser_name,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive city name from the local lookup, with 1 to 256 Unicode\n\t// characters. Use country alongside city to distinguish places with the same name.\n\t// Missing locations do not match.\n\tCity param.Opt[string] `query:\"city,omitzero\" json:\"-\"`\n\t// Exact uppercase ISO 3166-1 alpha-2 country code, such as GB. Missing locations\n\t// do not match.\n\tCountry param.Opt[string] `query:\"country,omitzero\" json:\"-\"`\n\t// Exact operating-system name, such as macOS. Missing values do not match.\n\tOsName param.Opt[string] `query:\"os_name,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive page origin captured by the player, such as\n\t// https://example.com. Metrics use the first retained view start; raw events use\n\t// each event context. Missing values do not match.\n\tPageOrigin param.Opt[string] `query:\"page_origin,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive page path captured by the player, such as /watch/video.\n\t// Filter by page_origin as well to distinguish identical paths on different sites.\n\t// Metrics use the first retained view start; raw events use each event context.\n\t// Missing values do not match.\n\tPagePath param.Opt[string] `query:\"page_path,omitzero\" json:\"-\"`\n\t// Playback rate from 0.01 to 16 with at most two decimals, such as 1, 1.5 or 2;\n\t// 2.0 and 2 are the same rate. Metrics use the rate on the first retained view\n\t// start; raw events use each event's value.\n\tPlaybackRate param.Opt[string] `query:\"playback_rate,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive, non-blank subtitle language tag, such as fr or en-US; und\n\t// for a subtitles track without a language. Metrics use the language showing on\n\t// the first retained view start; raw events use each event's value. Views without\n\t// subtitles at start do not match.\n\tSubtitleLanguage param.Opt[string] `query:\"subtitle_language,omitzero\" json:\"-\"`\n\t// Exact integrator-supplied user ID. Selects views by their start event; event\n\t// lists match each event's own value. Missing/null user IDs do not match. Reports\n\t// with this filter read one stored row per view.\n\tUserID param.Opt[string] `query:\"user_id,omitzero\" json:\"-\"`\n\t// Exact video ID; must not be blank. Combined with all other filters using AND.\n\tVideoID param.Opt[string] `query:\"video_id,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive video title. Selects views by the title on their first\n\t// retained start; event lists match each event's own value. Views without a title\n\t// do not match. Reports with this filter read one stored row per view.\n\tVideoTitle param.Opt[string] `query:\"video_title,omitzero\" json:\"-\"`\n\t// Filter one playback attempt by view ID. Metrics use its first retained start.\n\tViewID param.Opt[string] `query:\"view_id,omitzero\" json:\"-\"`\n\t// Exact viewer ID. The Chunkify player SDK generates one per browser; missing/null\n\t// viewer IDs do not match.\n\tViewerID param.Opt[string] `query:\"viewer_id,omitzero\" json:\"-\"`\n\t// Exact continent code from the local lookup. Missing locations do not match.\n\t//\n\t// Any of \"AF\", \"AN\", \"AS\", \"EU\", \"NA\", \"OC\", \"SA\".\n\tContinent TimeseryGetParamsContinent `query:\"continent,omitzero\" json:\"-\"`\n\t// Delivery format on the first retained view start: hls for HLS streams, file for\n\t// a single media file such as an MP4 rendition. Metrics use the first retained\n\t// view start; raw events use each event's value. Views whose SDK did not report it\n\t// do not match. connector_name is not a substitute: Safari plays HLS natively and\n\t// reports html-media.\n\t//\n\t// Any of \"hls\", \"file\".\n\tDeliveryFormat TimeseryGetParamsDeliveryFormat `query:\"delivery_format,omitzero\" json:\"-\"`\n\t// Exact device class. unknown matches an explicit unknown value.\n\t//\n\t// Any of \"desktop\", \"mobile\", \"tablet\", \"unknown\".\n\tDeviceType TimeseryGetParamsDeviceType `query:\"device_type,omitzero\" json:\"-\"`\n\t// Metric set for every time bucket. Uses the same calculations and sample counts\n\t// as the corresponding totals route.\n\t//\n\t// Any of \"summary\", \"quality\", \"engagement\".\n\tKind TimeseryGetParamsKind `query:\"kind,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r TimeseryGetParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [TimeseryGetParams](#TimeseryGetParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype TimeseryGetParamsContinent string\n```\nExact continent code from the local lookup. Missing locations do not match.\n\n```go\nconst (\n\tTimeseryGetParamsContinentAf TimeseryGetParamsContinent = \"AF\"\n\tTimeseryGetParamsContinentAn TimeseryGetParamsContinent = \"AN\"\n\tTimeseryGetParamsContinentAs TimeseryGetParamsContinent = \"AS\"\n\tTimeseryGetParamsContinentEu TimeseryGetParamsContinent = \"EU\"\n\tTimeseryGetParamsContinentNa TimeseryGetParamsContinent = \"NA\"\n\tTimeseryGetParamsContinentOc TimeseryGetParamsContinent = \"OC\"\n\tTimeseryGetParamsContinentSa TimeseryGetParamsContinent = \"SA\"\n)\n```\n\n```go\ntype TimeseryGetParamsDeliveryFormat string\n```\nDelivery format on the first retained view start: hls for HLS streams, file for a single media file such as an MP4 rendition. Metrics use the first retained view start; raw events use each event's value. Views whose SDK did not report it do not match. connector\\_name is not a substitute: Safari plays HLS natively and reports html-media.\n\n```go\nconst (\n\tTimeseryGetParamsDeliveryFormatHls  TimeseryGetParamsDeliveryFormat = \"hls\"\n\tTimeseryGetParamsDeliveryFormatFile TimeseryGetParamsDeliveryFormat = \"file\"\n)\n```\n\n```go\ntype TimeseryGetParamsDeviceType string\n```\nExact device class. unknown matches an explicit unknown value.\n\n```go\nconst (\n\tTimeseryGetParamsDeviceTypeDesktop TimeseryGetParamsDeviceType = \"desktop\"\n\tTimeseryGetParamsDeviceTypeMobile  TimeseryGetParamsDeviceType = \"mobile\"\n\tTimeseryGetParamsDeviceTypeTablet  TimeseryGetParamsDeviceType = \"tablet\"\n\tTimeseryGetParamsDeviceTypeUnknown TimeseryGetParamsDeviceType = \"unknown\"\n)\n```\n\n```go\ntype TimeseryGetParamsInterval string\n```\nUTC hour or day. The requested range can contain at most 1000 buckets.\n\n```go\nconst (\n\tTimeseryGetParamsIntervalHour TimeseryGetParamsInterval = \"hour\"\n\tTimeseryGetParamsIntervalDay  TimeseryGetParamsInterval = \"day\"\n)\n```\n\n```go\ntype TimeseryGetParamsKind string\n```\nMetric set for every time bucket. Uses the same calculations and sample counts as the corresponding totals route.\n\n```go\nconst (\n\tTimeseryGetParamsKindSummary    TimeseryGetParamsKind = \"summary\"\n\tTimeseryGetParamsKindQuality    TimeseryGetParamsKind = \"quality\"\n\tTimeseryGetParamsKindEngagement TimeseryGetParamsKind = \"engagement\"\n)\n```\n\n```go\ntype TimeseryService struct {\n\tOptions []option.RequestOption\n}\n```\nPrivate retained-event and view-cohort queries.\n\nTimeseryService contains methods and other services that help with interacting with the Chunkify Analytics 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 [NewTimeseryService](#NewTimeseryService) method instead.\n\n```go\nfunc NewTimeseryService(opts ...option.RequestOption) (r TimeseryService)\n```\nNewTimeseryService 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 *TimeseryService) Get(ctx context.Context, query TimeseryGetParams, opts ...option.RequestOption) (res *TimeseriesResponseUnion, err error)\n```\nSupply from, to and interval=hour|day. kind defaults to summary and also accepts quality or engagement. Every bucket selects first retained starts in its UTC interval and includes each selected view's whole retained measurement and errors, even after to. Empty buckets have zero counts and null unavailable measurements or ratios. At most 1000 buckets. Unique viewer counts are not additive.\n\n```go\ntype VideoListParams struct {\n\t// Exact browser name, such as Chrome. Missing values do not match.\n\tBrowserName param.Opt[string] `query:\"browser_name,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive city name from the local lookup, with 1 to 256 Unicode\n\t// characters. Use country alongside city to distinguish places with the same name.\n\t// Missing locations do not match.\n\tCity param.Opt[string] `query:\"city,omitzero\" json:\"-\"`\n\t// Exact uppercase ISO 3166-1 alpha-2 country code, such as GB. Missing locations\n\t// do not match.\n\tCountry param.Opt[string] `query:\"country,omitzero\" json:\"-\"`\n\t// Use next_cursor from the previous page. Keep the same filters, sort_by and\n\t// order. Video cursors from earlier versions are invalid; start a new pagination\n\t// sequence after upgrading.\n\tCursor param.Opt[string] `query:\"cursor,omitzero\" json:\"-\"`\n\t// Inclusive RFC3339 occurrence-time lower bound, with timezone. Summary/video\n\t// queries apply it to the selected view_started event. Must be before to.\n\tFrom param.Opt[time.Time] `query:\"from,omitzero\" format:\"date-time\" json:\"-\"`\n\t// Maximum rows on this page. Events and videos always support pagination; summary,\n\t// quality and engagement support it only with group_by.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Exact operating-system name, such as macOS. Missing values do not match.\n\tOsName param.Opt[string] `query:\"os_name,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive page origin captured by the player, such as\n\t// https://example.com. Metrics use the first retained view start; raw events use\n\t// each event context. Missing values do not match.\n\tPageOrigin param.Opt[string] `query:\"page_origin,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive page path captured by the player, such as /watch/video.\n\t// Filter by page_origin as well to distinguish identical paths on different sites.\n\t// Metrics use the first retained view start; raw events use each event context.\n\t// Missing values do not match.\n\tPagePath param.Opt[string] `query:\"page_path,omitzero\" json:\"-\"`\n\t// Playback rate from 0.01 to 16 with at most two decimals, such as 1, 1.5 or 2;\n\t// 2.0 and 2 are the same rate. Metrics use the rate on the first retained view\n\t// start; raw events use each event's value.\n\tPlaybackRate param.Opt[string] `query:\"playback_rate,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive, non-blank subtitle language tag, such as fr or en-US; und\n\t// for a subtitles track without a language. Metrics use the language showing on\n\t// the first retained view start; raw events use each event's value. Views without\n\t// subtitles at start do not match.\n\tSubtitleLanguage param.Opt[string] `query:\"subtitle_language,omitzero\" json:\"-\"`\n\t// Exclusive RFC3339 occurrence-time upper bound, with timezone. Summary/video\n\t// queries apply it to the selected view_started event.\n\tTo param.Opt[time.Time] `query:\"to,omitzero\" format:\"date-time\" json:\"-\"`\n\t// Exact integrator-supplied user ID. Selects views by their start event; event\n\t// lists match each event's own value. Missing/null user IDs do not match. Reports\n\t// with this filter read one stored row per view.\n\tUserID param.Opt[string] `query:\"user_id,omitzero\" json:\"-\"`\n\t// Exact video ID; must not be blank. Combined with all other filters using AND.\n\tVideoID param.Opt[string] `query:\"video_id,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive video title. Selects views by the title on their first\n\t// retained start; event lists match each event's own value. Views without a title\n\t// do not match. Reports with this filter read one stored row per view.\n\tVideoTitle param.Opt[string] `query:\"video_title,omitzero\" json:\"-\"`\n\t// Filter one playback attempt by view ID. Metrics use its first retained start.\n\tViewID param.Opt[string] `query:\"view_id,omitzero\" json:\"-\"`\n\t// Exact viewer ID. The Chunkify player SDK generates one per browser; missing/null\n\t// viewer IDs do not match.\n\tViewerID param.Opt[string] `query:\"viewer_id,omitzero\" json:\"-\"`\n\t// Exact continent code from the local lookup. Missing locations do not match.\n\t//\n\t// Any of \"AF\", \"AN\", \"AS\", \"EU\", \"NA\", \"OC\", \"SA\".\n\tContinent VideoListParamsContinent `query:\"continent,omitzero\" json:\"-\"`\n\t// Delivery format on the first retained view start: hls for HLS streams, file for\n\t// a single media file such as an MP4 rendition. Metrics use the first retained\n\t// view start; raw events use each event's value. Views whose SDK did not report it\n\t// do not match. connector_name is not a substitute: Safari plays HLS natively and\n\t// reports html-media.\n\t//\n\t// Any of \"hls\", \"file\".\n\tDeliveryFormat VideoListParamsDeliveryFormat `query:\"delivery_format,omitzero\" json:\"-\"`\n\t// Exact device class. unknown matches an explicit unknown value.\n\t//\n\t// Any of \"desktop\", \"mobile\", \"tablet\", \"unknown\".\n\tDeviceType VideoListParamsDeviceType `query:\"device_type,omitzero\" json:\"-\"`\n\t// Sort direction. Events and videos default to asc; views default to desc. Events\n\t// sort by ingestion sequence. Videos and views sort by sort_by with missing values\n\t// last. View ties use view_id in the requested direction; video metric ties use\n\t// video_id ascending.\n\t//\n\t// Any of \"asc\", \"desc\".\n\tOrder VideoListParamsOrder `query:\"order,omitzero\" json:\"-\"`\n\t// Rank all matching videos before pagination. Missing scores come last in both\n\t// directions. Metric ties use video_id ascending. Keep sort_by, order and filters\n\t// unchanged with a cursor.\n\t//\n\t// Any of \"video_id\", \"views\", \"unique_viewers\", \"total_playing_time_ms\",\n\t// \"playback_score\".\n\tSortBy VideoListParamsSortBy `query:\"sort_by,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r VideoListParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [VideoListParams](#VideoListParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype VideoListParamsContinent string\n```\nExact continent code from the local lookup. Missing locations do not match.\n\n```go\nconst (\n\tVideoListParamsContinentAf VideoListParamsContinent = \"AF\"\n\tVideoListParamsContinentAn VideoListParamsContinent = \"AN\"\n\tVideoListParamsContinentAs VideoListParamsContinent = \"AS\"\n\tVideoListParamsContinentEu VideoListParamsContinent = \"EU\"\n\tVideoListParamsContinentNa VideoListParamsContinent = \"NA\"\n\tVideoListParamsContinentOc VideoListParamsContinent = \"OC\"\n\tVideoListParamsContinentSa VideoListParamsContinent = \"SA\"\n)\n```\n\n```go\ntype VideoListParamsDeliveryFormat string\n```\nDelivery format on the first retained view start: hls for HLS streams, file for a single media file such as an MP4 rendition. Metrics use the first retained view start; raw events use each event's value. Views whose SDK did not report it do not match. connector\\_name is not a substitute: Safari plays HLS natively and reports html-media.\n\n```go\nconst (\n\tVideoListParamsDeliveryFormatHls  VideoListParamsDeliveryFormat = \"hls\"\n\tVideoListParamsDeliveryFormatFile VideoListParamsDeliveryFormat = \"file\"\n)\n```\n\n```go\ntype VideoListParamsDeviceType string\n```\nExact device class. unknown matches an explicit unknown value.\n\n```go\nconst (\n\tVideoListParamsDeviceTypeDesktop VideoListParamsDeviceType = \"desktop\"\n\tVideoListParamsDeviceTypeMobile  VideoListParamsDeviceType = \"mobile\"\n\tVideoListParamsDeviceTypeTablet  VideoListParamsDeviceType = \"tablet\"\n\tVideoListParamsDeviceTypeUnknown VideoListParamsDeviceType = \"unknown\"\n)\n```\n\n```go\ntype VideoListParamsOrder string\n```\nSort direction. Events and videos default to asc; views default to desc. Events sort by ingestion sequence. Videos and views sort by sort\\_by with missing values last. View ties use view\\_id in the requested direction; video metric ties use video\\_id ascending.\n\n```go\nconst (\n\tVideoListParamsOrderAsc  VideoListParamsOrder = \"asc\"\n\tVideoListParamsOrderDesc VideoListParamsOrder = \"desc\"\n)\n```\n\n```go\ntype VideoListParamsSortBy string\n```\nRank all matching videos before pagination. Missing scores come last in both directions. Metric ties use video\\_id ascending. Keep sort\\_by, order and filters unchanged with a cursor.\n\n```go\nconst (\n\tVideoListParamsSortByVideoID            VideoListParamsSortBy = \"video_id\"\n\tVideoListParamsSortByViews              VideoListParamsSortBy = \"views\"\n\tVideoListParamsSortByUniqueViewers      VideoListParamsSortBy = \"unique_viewers\"\n\tVideoListParamsSortByTotalPlayingTimeMs VideoListParamsSortBy = \"total_playing_time_ms\"\n\tVideoListParamsSortByPlaybackScore      VideoListParamsSortBy = \"playback_score\"\n)\n```\n\n```go\ntype VideoMetrics struct {\n\tPlaybackScore      shared.PlaybackScore `json:\"playback_score\" api:\"required\"`\n\tTotalPlayingTimeMs float64              `json:\"total_playing_time_ms\" api:\"required\"`\n\tUniqueViewers      int64                `json:\"unique_viewers\" api:\"required\"`\n\tVideoID            string               `json:\"video_id\" api:\"required\"`\n\t// Title from the most recently received selected start that supplied one.\n\tVideoTitle string `json:\"video_title\" api:\"required\"`\n\tViews      int64  `json:\"views\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tPlaybackScore      respjson.Field\n\t\tTotalPlayingTimeMs respjson.Field\n\t\tUniqueViewers      respjson.Field\n\t\tVideoID            respjson.Field\n\t\tVideoTitle         respjson.Field\n\t\tViews              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 VideoMetrics) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *VideoMetrics) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VideoPage struct {\n\tNextCursor string         `json:\"next_cursor\" api:\"required\"`\n\tVideos     []VideoMetrics `json:\"videos\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tNextCursor  respjson.Field\n\t\tVideos      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 VideoPage) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *VideoPage) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype VideoService struct {\n\tOptions []option.RequestOption\n}\n```\nPrivate retained-event and view-cohort queries.\n\nVideoService contains methods and other services that help with interacting with the Chunkify Analytics 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 [NewVideoService](#NewVideoService) method instead.\n\n```go\nfunc NewVideoService(opts ...option.RequestOption) (r VideoService)\n```\nNewVideoService 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 *VideoService) List(ctx context.Context, query VideoListParams, opts ...option.RequestOption) (res *pagination.VideosPage[VideoMetrics], err error)\n```\nList per-video totals. Sort the entire filtered cohort by video\\_id, views, unique\\_viewers, total\\_playing\\_time\\_ms or playback\\_score before pagination. Defaults to video\\_id ascending. Missing scores come last; metric ties use video\\_id ascending in both directions. Unique viewer counts cannot be added across videos. Keep sort\\_by, order and filters unchanged with a cursor.\n\n```go\nfunc (r *VideoService) ListAutoPaging(ctx context.Context, query VideoListParams, opts ...option.RequestOption) *pagination.VideosPageAutoPager[VideoMetrics]\n```\nList per-video totals. Sort the entire filtered cohort by video\\_id, views, unique\\_viewers, total\\_playing\\_time\\_ms or playback\\_score before pagination. Defaults to video\\_id ascending. Missing scores come last; metric ties use video\\_id ascending in both directions. Unique viewer counts cannot be added across videos. Keep sort\\_by, order and filters unchanged with a cursor.\n\n```go\ntype View struct {\n\tBrowserName        string               `json:\"browser_name\" api:\"required\"`\n\tDeviceType         string               `json:\"device_type\" api:\"required\"`\n\tHasEndedEvent      bool                 `json:\"has_ended_event\" api:\"required\"`\n\tHasFatalError      bool                 `json:\"has_fatal_error\" api:\"required\"`\n\tOsName             string               `json:\"os_name\" api:\"required\"`\n\tPlaybackScore      shared.PlaybackScore `json:\"playback_score\" api:\"required\"`\n\tPlayingTimeMs      float64              `json:\"playing_time_ms\" api:\"required\"`\n\tReachedEnd         bool                 `json:\"reached_end\" api:\"required\"`\n\tRebufferDurationMs float64              `json:\"rebuffer_duration_ms\" api:\"required\"`\n\tStartedAt          time.Time            `json:\"started_at\" api:\"required\" format:\"date-time\"`\n\tStartupTimeMs      float64              `json:\"startup_time_ms\" api:\"required\"`\n\tUserID             string               `json:\"user_id\" api:\"required\"`\n\tVideoID            string               `json:\"video_id\" api:\"required\"`\n\tVideoTitle         string               `json:\"video_title\" api:\"required\"`\n\tViewID             string               `json:\"view_id\" api:\"required\"`\n\tViewerID           string               `json:\"viewer_id\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tBrowserName        respjson.Field\n\t\tDeviceType         respjson.Field\n\t\tHasEndedEvent      respjson.Field\n\t\tHasFatalError      respjson.Field\n\t\tOsName             respjson.Field\n\t\tPlaybackScore      respjson.Field\n\t\tPlayingTimeMs      respjson.Field\n\t\tReachedEnd         respjson.Field\n\t\tRebufferDurationMs respjson.Field\n\t\tStartedAt          respjson.Field\n\t\tStartupTimeMs      respjson.Field\n\t\tUserID             respjson.Field\n\t\tVideoID            respjson.Field\n\t\tVideoTitle         respjson.Field\n\t\tViewID             respjson.Field\n\t\tViewerID           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 View) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *View) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ViewDetail struct {\n\tEvents     []StoredEvent `json:\"events\" api:\"required\"`\n\tNextCursor string        `json:\"next_cursor\" api:\"required\"`\n\tView       View          `json:\"view\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tEvents      respjson.Field\n\t\tNextCursor  respjson.Field\n\t\tView        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 ViewDetail) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ViewDetail) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ViewEnded struct {\n\tConnectorName            string  `json:\"connector_name\" api:\"required\"`\n\tConnectorVersion         string  `json:\"connector_version\" api:\"required\"`\n\tDeliveryHostname         string  `json:\"delivery_hostname\" api:\"required\"`\n\tDeliveryRequestCount     float64 `json:\"delivery_request_count\" api:\"required\"`\n\tDeliveryThroughputBps    float64 `json:\"delivery_throughput_bps\" api:\"required\"`\n\tDeliveryTransferredBytes float64 `json:\"delivery_transferred_bytes\" api:\"required\"`\n\tDroppedVideoFrames       float64 `json:\"dropped_video_frames\" api:\"required\"`\n\tEnvironment              string  `json:\"environment\" api:\"required\"`\n\t// Any of \"aborted\", \"network\", \"decode\", \"unsupported\", \"unknown\".\n\tErrorCategory          ViewEndedErrorCategory          `json:\"error_category\" api:\"required\"`\n\tErrorCode              ViewEndedErrorCodeUnion         `json:\"error_code\" api:\"required\"`\n\tErrorFatal             bool                            `json:\"error_fatal\" api:\"required\"`\n\tErrorPlayheadSeconds   float64                         `json:\"error_playhead_seconds\" api:\"required\"`\n\tEventID                string                          `json:\"event_id\" api:\"required\" format:\"uuid\"`\n\tEventName              constant.ChunkifyVideoViewEnded `json:\"event_name\" default:\"chunkify.video.view_ended\"`\n\tFirstVideoFrameTimeMs  float64                         `json:\"first_video_frame_time_ms\" api:\"required\"`\n\tFurthestProgressRatio  float64                         `json:\"furthest_progress_ratio\" api:\"required\"`\n\tMaximumPlayheadSeconds float64                         `json:\"maximum_playhead_seconds\" api:\"required\"`\n\tMediaDurationSeconds   float64                         `json:\"media_duration_seconds\" api:\"required\"`\n\tMediaHeightPx          float64                         `json:\"media_height_px\" api:\"required\"`\n\tMediaWidthPx           float64                         `json:\"media_width_px\" api:\"required\"`\n\tOccurredAt             time.Time                       `json:\"occurred_at\" api:\"required\" format:\"date-time\"`\n\tPlayerHeightPx         float64                         `json:\"player_height_px\" api:\"required\"`\n\tPlayerName             string                          `json:\"player_name\" api:\"required\"`\n\tPlayerVersion          string                          `json:\"player_version\" api:\"required\"`\n\tPlayerWidthPx          float64                         `json:\"player_width_px\" api:\"required\"`\n\tPlayingTimeMs          float64                         `json:\"playing_time_ms\" api:\"required\"`\n\t// Any of \"ended\", \"destroyed\", \"source_changed\", \"page_exit\".\n\tReason               ViewEndedReason               `json:\"reason\" api:\"required\"`\n\tRebufferCount        float64                       `json:\"rebuffer_count\" api:\"required\"`\n\tRebufferDurationMs   float64                       `json:\"rebuffer_duration_ms\" api:\"required\"`\n\tRebufferRatio        float64                       `json:\"rebuffer_ratio\" api:\"required\"`\n\tRenditionPlayingTime []shared.RenditionPlayingTime `json:\"rendition_playing_time\" api:\"required\"`\n\tRenditionSwitchCount float64                       `json:\"rendition_switch_count\" api:\"required\"`\n\tSchemaVersion        float64                       `json:\"schema_version\" api:\"required\"`\n\t// Name of the SDK or integration that produced the event. Informational metadata,\n\t// preserved as received. Must contain at least one non-whitespace character.\n\tSDKName                     string  `json:\"sdk_name\" api:\"required\"`\n\tSDKVersion                  string  `json:\"sdk_version\" api:\"required\"`\n\tSeekCount                   float64 `json:\"seek_count\" api:\"required\"`\n\tSeekDurationMs              float64 `json:\"seek_duration_ms\" api:\"required\"`\n\tSelectedRenditionBitrateBps float64 `json:\"selected_rendition_bitrate_bps\" api:\"required\"`\n\tSelectedRenditionCodec      string  `json:\"selected_rendition_codec\" api:\"required\"`\n\tSelectedRenditionHeight     float64 `json:\"selected_rendition_height\" api:\"required\"`\n\tSelectedRenditionWidth      float64 `json:\"selected_rendition_width\" api:\"required\"`\n\tSequence                    int64   `json:\"sequence\" api:\"required\"`\n\t// Any of \"started\", \"failed_before_start\", \"ended_before_start\".\n\tStartupOutcome   ViewEndedStartupOutcome `json:\"startup_outcome\" api:\"required\"`\n\tStartupTimeMs    float64                 `json:\"startup_time_ms\" api:\"required\"`\n\tTotalVideoFrames float64                 `json:\"total_video_frames\" api:\"required\"`\n\tVideoID          string                  `json:\"video_id\" api:\"required\"`\n\tViewID           string                  `json:\"view_id\" api:\"required\" format:\"uuid\"`\n\t// Anonymous browser identifier generated by the Chunkify player SDK and stored in\n\t// the page's localStorage.\n\tViewerID string `json:\"viewer_id\" api:\"required\"`\n\t// Browser and device information. The Chunkify player sends every field, with null\n\t// for unavailable measurements. Other integrations may omit any field except\n\t// schema_version. Extra properties are preserved.\n\tBrowserContext shared.BrowserContext `json:\"browser_context\" api:\"nullable\"`\n\t// How the player receives the media: hls for an HLS stream, file for a single\n\t// media file such as an MP4 rendition; null when unknown. Optional: older SDKs\n\t// omit it. Reports read it from each view's first start. Unlike connector_name, it\n\t// does not depend on the playback engine: Safari's native HLS reports html-media.\n\t//\n\t// Any of \"hls\", \"file\".\n\tDeliveryFormat ViewEndedDeliveryFormat `json:\"delivery_format\" api:\"nullable\"`\n\t// Current playback rate, rounded to two decimals, such as 1, 1.5 or 2; from 0.01\n\t// to 16. Optional.\n\tPlaybackRate float64 `json:\"playback_rate\" api:\"nullable\"`\n\t// Cumulative playing time per playback rate for this attempt. At most 32 entries.\n\t// Optional.\n\tPlaybackRatePlayingTime []shared.PlaybackRatePlayingTime `json:\"playback_rate_playing_time\" api:\"nullable\"`\n\t// Cumulative played media ranges for this attempt, sorted and merged without\n\t// overlaps. Seeking, pauses and buffering are excluded. Missing or null means\n\t// unavailable; an empty array means measured but no section played. Replaying a\n\t// section does not add another range.\n\tPlayedRanges []shared.PlayedRange `json:\"played_ranges\" api:\"nullable\"`\n\t// Current media position at this event, not the maximum reached.\n\tPlayheadSeconds float64 `json:\"playhead_seconds\" api:\"nullable\"`\n\t// Language tag (BCP 47) of the showing subtitles or captions track; und when the\n\t// track declares no language; null when subtitles are off. Optional.\n\tSubtitleLanguage string `json:\"subtitle_language\" api:\"nullable\"`\n\t// Cumulative playing time per subtitle language for this attempt, null language\n\t// meaning subtitles off. At most 32 entries. Optional.\n\tSubtitlePlayingTime []shared.SubtitlePlayingTime `json:\"subtitle_playing_time\" api:\"nullable\"`\n\t// Optional integrator-supplied user ID, used to link views to the integrator's own\n\t// users.\n\tUserID string `json:\"user_id\" api:\"nullable\"`\n\t// Optional human-readable video title for reports.\n\tVideoTitle string `json:\"video_title\" api:\"nullable\"`\n\t// Tab visibility when the event was recorded. Hidden does not imply paused\n\t// playback or identify the cause of a pause. Missing on older events; null when\n\t// unavailable.\n\t//\n\t// Any of \"visible\", \"hidden\".\n\tVisibilityState ViewEndedVisibilityState `json:\"visibility_state\" api:\"nullable\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tConnectorName               respjson.Field\n\t\tConnectorVersion            respjson.Field\n\t\tDeliveryHostname            respjson.Field\n\t\tDeliveryRequestCount        respjson.Field\n\t\tDeliveryThroughputBps       respjson.Field\n\t\tDeliveryTransferredBytes    respjson.Field\n\t\tDroppedVideoFrames          respjson.Field\n\t\tEnvironment                 respjson.Field\n\t\tErrorCategory               respjson.Field\n\t\tErrorCode                   respjson.Field\n\t\tErrorFatal                  respjson.Field\n\t\tErrorPlayheadSeconds        respjson.Field\n\t\tEventID                     respjson.Field\n\t\tEventName                   respjson.Field\n\t\tFirstVideoFrameTimeMs       respjson.Field\n\t\tFurthestProgressRatio       respjson.Field\n\t\tMaximumPlayheadSeconds      respjson.Field\n\t\tMediaDurationSeconds        respjson.Field\n\t\tMediaHeightPx               respjson.Field\n\t\tMediaWidthPx                respjson.Field\n\t\tOccurredAt                  respjson.Field\n\t\tPlayerHeightPx              respjson.Field\n\t\tPlayerName                  respjson.Field\n\t\tPlayerVersion               respjson.Field\n\t\tPlayerWidthPx               respjson.Field\n\t\tPlayingTimeMs               respjson.Field\n\t\tReason                      respjson.Field\n\t\tRebufferCount               respjson.Field\n\t\tRebufferDurationMs          respjson.Field\n\t\tRebufferRatio               respjson.Field\n\t\tRenditionPlayingTime        respjson.Field\n\t\tRenditionSwitchCount        respjson.Field\n\t\tSchemaVersion               respjson.Field\n\t\tSDKName                     respjson.Field\n\t\tSDKVersion                  respjson.Field\n\t\tSeekCount                   respjson.Field\n\t\tSeekDurationMs              respjson.Field\n\t\tSelectedRenditionBitrateBps respjson.Field\n\t\tSelectedRenditionCodec      respjson.Field\n\t\tSelectedRenditionHeight     respjson.Field\n\t\tSelectedRenditionWidth      respjson.Field\n\t\tSequence                    respjson.Field\n\t\tStartupOutcome              respjson.Field\n\t\tStartupTimeMs               respjson.Field\n\t\tTotalVideoFrames            respjson.Field\n\t\tVideoID                     respjson.Field\n\t\tViewID                      respjson.Field\n\t\tViewerID                    respjson.Field\n\t\tBrowserContext              respjson.Field\n\t\tDeliveryFormat              respjson.Field\n\t\tPlaybackRate                respjson.Field\n\t\tPlaybackRatePlayingTime     respjson.Field\n\t\tPlayedRanges                respjson.Field\n\t\tPlayheadSeconds             respjson.Field\n\t\tSubtitleLanguage            respjson.Field\n\t\tSubtitlePlayingTime         respjson.Field\n\t\tUserID                      respjson.Field\n\t\tVideoTitle                  respjson.Field\n\t\tVisibilityState             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 ViewEnded) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r ViewEnded) ToParam() ViewEndedParam\n```\nToParam converts this ViewEnded to a ViewEndedParam.\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 ViewEndedParam.Overrides()\n\n```go\nfunc (r *ViewEnded) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ViewEndedDeliveryFormat string\n```\nHow the player receives the media: hls for an HLS stream, file for a single media file such as an MP4 rendition; null when unknown. Optional: older SDKs omit it. Reports read it from each view's first start. Unlike connector\\_name, it does not depend on the playback engine: Safari's native HLS reports html-media.\n\n```go\nconst (\n\tViewEndedDeliveryFormatHls  ViewEndedDeliveryFormat = \"hls\"\n\tViewEndedDeliveryFormatFile ViewEndedDeliveryFormat = \"file\"\n)\n```\n\n```go\ntype ViewEndedErrorCategory string\n```\n\n```go\nconst (\n\tViewEndedErrorCategoryAborted     ViewEndedErrorCategory = \"aborted\"\n\tViewEndedErrorCategoryNetwork     ViewEndedErrorCategory = \"network\"\n\tViewEndedErrorCategoryDecode      ViewEndedErrorCategory = \"decode\"\n\tViewEndedErrorCategoryUnsupported ViewEndedErrorCategory = \"unsupported\"\n\tViewEndedErrorCategoryUnknown     ViewEndedErrorCategory = \"unknown\"\n)\n```\n\n```go\ntype ViewEndedErrorCodeUnion struct {\n\t// This field will be present if the value is a [string] instead of an object.\n\tOfString string `json:\",inline\"`\n\t// This field will be present if the value is a [float64] instead of an object.\n\tOfFloat float64 `json:\",inline\"`\n\tJSON    struct {\n\t\tOfString respjson.Field\n\t\tOfFloat  respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nViewEndedErrorCodeUnion contains all possible properties and values from \\[string], \\[float64].\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\nIf the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat]\n\n```go\nfunc (u ViewEndedErrorCodeUnion) AsFloat() (v float64)\n```\n\n```go\nfunc (u ViewEndedErrorCodeUnion) AsString() (v string)\n```\n\n```go\nfunc (u ViewEndedErrorCodeUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ViewEndedErrorCodeUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ViewEndedErrorCodeUnionParam struct {\n\tOfString param.Opt[string]  `json:\",omitzero,inline\"`\n\tOfFloat  param.Opt[float64] `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-analytics-go/packages/param#IsOmitted) to confirm if a field is set.\n\n```go\nfunc (u ViewEndedErrorCodeUnionParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (u *ViewEndedErrorCodeUnionParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ViewEndedParam struct {\n\tConnectorVersion         param.Opt[string]  `json:\"connector_version,omitzero\" api:\"required\"`\n\tDeliveryHostname         param.Opt[string]  `json:\"delivery_hostname,omitzero\" api:\"required\"`\n\tDeliveryRequestCount     param.Opt[float64] `json:\"delivery_request_count,omitzero\" api:\"required\"`\n\tDeliveryThroughputBps    param.Opt[float64] `json:\"delivery_throughput_bps,omitzero\" api:\"required\"`\n\tDeliveryTransferredBytes param.Opt[float64] `json:\"delivery_transferred_bytes,omitzero\" api:\"required\"`\n\tDroppedVideoFrames       param.Opt[float64] `json:\"dropped_video_frames,omitzero\" api:\"required\"`\n\tEnvironment              param.Opt[string]  `json:\"environment,omitzero\" api:\"required\"`\n\t// Any of \"aborted\", \"network\", \"decode\", \"unsupported\", \"unknown\".\n\tErrorCategory         param.Opt[ViewEndedErrorCategory] `json:\"error_category,omitzero\" api:\"required\"`\n\tErrorFatal            param.Opt[bool]                   `json:\"error_fatal,omitzero\" api:\"required\"`\n\tErrorPlayheadSeconds  param.Opt[float64]                `json:\"error_playhead_seconds,omitzero\" api:\"required\"`\n\tFirstVideoFrameTimeMs param.Opt[float64]                `json:\"first_video_frame_time_ms,omitzero\" api:\"required\"`\n\tFurthestProgressRatio param.Opt[float64]                `json:\"furthest_progress_ratio,omitzero\" api:\"required\"`\n\tMediaDurationSeconds  param.Opt[float64]                `json:\"media_duration_seconds,omitzero\" api:\"required\"`\n\tMediaHeightPx         param.Opt[float64]                `json:\"media_height_px,omitzero\" api:\"required\"`\n\tMediaWidthPx          param.Opt[float64]                `json:\"media_width_px,omitzero\" api:\"required\"`\n\tPlayerHeightPx        param.Opt[float64]                `json:\"player_height_px,omitzero\" api:\"required\"`\n\tPlayerName            param.Opt[string]                 `json:\"player_name,omitzero\" api:\"required\"`\n\tPlayerVersion         param.Opt[string]                 `json:\"player_version,omitzero\" api:\"required\"`\n\tPlayerWidthPx         param.Opt[float64]                `json:\"player_width_px,omitzero\" api:\"required\"`\n\t// Any of \"ended\", \"destroyed\", \"source_changed\", \"page_exit\".\n\tReason                      param.Opt[ViewEndedReason] `json:\"reason,omitzero\" api:\"required\"`\n\tRebufferRatio               param.Opt[float64]         `json:\"rebuffer_ratio,omitzero\" api:\"required\"`\n\tRenditionSwitchCount        param.Opt[float64]         `json:\"rendition_switch_count,omitzero\" api:\"required\"`\n\tSelectedRenditionBitrateBps param.Opt[float64]         `json:\"selected_rendition_bitrate_bps,omitzero\" api:\"required\"`\n\tSelectedRenditionCodec      param.Opt[string]          `json:\"selected_rendition_codec,omitzero\" api:\"required\"`\n\tSelectedRenditionHeight     param.Opt[float64]         `json:\"selected_rendition_height,omitzero\" api:\"required\"`\n\tSelectedRenditionWidth      param.Opt[float64]         `json:\"selected_rendition_width,omitzero\" api:\"required\"`\n\t// Any of \"started\", \"failed_before_start\", \"ended_before_start\".\n\tStartupOutcome   param.Opt[ViewEndedStartupOutcome] `json:\"startup_outcome,omitzero\" api:\"required\"`\n\tStartupTimeMs    param.Opt[float64]                 `json:\"startup_time_ms,omitzero\" api:\"required\"`\n\tTotalVideoFrames param.Opt[float64]                 `json:\"total_video_frames,omitzero\" api:\"required\"`\n\t// Anonymous browser identifier generated by the Chunkify player SDK and stored in\n\t// the page's localStorage.\n\tViewerID               param.Opt[string]                  `json:\"viewer_id,omitzero\" api:\"required\"`\n\tErrorCode              ViewEndedErrorCodeUnionParam       `json:\"error_code,omitzero\" api:\"required\"`\n\tRenditionPlayingTime   []shared.RenditionPlayingTimeParam `json:\"rendition_playing_time,omitzero\" api:\"required\"`\n\tConnectorName          string                             `json:\"connector_name\" api:\"required\"`\n\tEventID                string                             `json:\"event_id\" api:\"required\" format:\"uuid\"`\n\tMaximumPlayheadSeconds float64                            `json:\"maximum_playhead_seconds\" api:\"required\"`\n\tOccurredAt             time.Time                          `json:\"occurred_at\" api:\"required\" format:\"date-time\"`\n\tPlayingTimeMs          float64                            `json:\"playing_time_ms\" api:\"required\"`\n\tRebufferCount          float64                            `json:\"rebuffer_count\" api:\"required\"`\n\tRebufferDurationMs     float64                            `json:\"rebuffer_duration_ms\" api:\"required\"`\n\t// Name of the SDK or integration that produced the event. Informational metadata,\n\t// preserved as received. Must contain at least one non-whitespace character.\n\tSDKName        string  `json:\"sdk_name\" api:\"required\"`\n\tSDKVersion     string  `json:\"sdk_version\" api:\"required\"`\n\tSeekCount      float64 `json:\"seek_count\" api:\"required\"`\n\tSeekDurationMs float64 `json:\"seek_duration_ms\" api:\"required\"`\n\tSequence       int64   `json:\"sequence\" api:\"required\"`\n\tVideoID        string  `json:\"video_id\" api:\"required\"`\n\tViewID         string  `json:\"view_id\" api:\"required\" format:\"uuid\"`\n\t// How the player receives the media: hls for an HLS stream, file for a single\n\t// media file such as an MP4 rendition; null when unknown. Optional: older SDKs\n\t// omit it. Reports read it from each view's first start. Unlike connector_name, it\n\t// does not depend on the playback engine: Safari's native HLS reports html-media.\n\t//\n\t// Any of \"hls\", \"file\".\n\tDeliveryFormat param.Opt[ViewEndedDeliveryFormat] `json:\"delivery_format,omitzero\"`\n\t// Current playback rate, rounded to two decimals, such as 1, 1.5 or 2; from 0.01\n\t// to 16. Optional.\n\tPlaybackRate param.Opt[float64] `json:\"playback_rate,omitzero\"`\n\t// Current media position at this event, not the maximum reached.\n\tPlayheadSeconds param.Opt[float64] `json:\"playhead_seconds,omitzero\"`\n\t// Language tag (BCP 47) of the showing subtitles or captions track; und when the\n\t// track declares no language; null when subtitles are off. Optional.\n\tSubtitleLanguage param.Opt[string] `json:\"subtitle_language,omitzero\"`\n\t// Optional integrator-supplied user ID, used to link views to the integrator's own\n\t// users.\n\tUserID param.Opt[string] `json:\"user_id,omitzero\"`\n\t// Optional human-readable video title for reports.\n\tVideoTitle param.Opt[string] `json:\"video_title,omitzero\"`\n\t// Tab visibility when the event was recorded. Hidden does not imply paused\n\t// playback or identify the cause of a pause. Missing on older events; null when\n\t// unavailable.\n\t//\n\t// Any of \"visible\", \"hidden\".\n\tVisibilityState param.Opt[ViewEndedVisibilityState] `json:\"visibility_state,omitzero\"`\n\t// Cumulative playing time per playback rate for this attempt. At most 32 entries.\n\t// Optional.\n\tPlaybackRatePlayingTime []shared.PlaybackRatePlayingTimeParam `json:\"playback_rate_playing_time,omitzero\"`\n\t// Cumulative played media ranges for this attempt, sorted and merged without\n\t// overlaps. Seeking, pauses and buffering are excluded. Missing or null means\n\t// unavailable; an empty array means measured but no section played. Replaying a\n\t// section does not add another range.\n\tPlayedRanges []shared.PlayedRangeParam `json:\"played_ranges,omitzero\"`\n\t// Cumulative playing time per subtitle language for this attempt, null language\n\t// meaning subtitles off. At most 32 entries. Optional.\n\tSubtitlePlayingTime []shared.SubtitlePlayingTimeParam `json:\"subtitle_playing_time,omitzero\"`\n\t// Browser and device information. The Chunkify player sends every field, with null\n\t// for unavailable measurements. Other integrations may omit any field except\n\t// schema_version. Extra properties are preserved.\n\tBrowserContext shared.BrowserContextParam `json:\"browser_context,omitzero\"`\n\t// This field can be elided, and will marshal its zero value as\n\t// \"chunkify.video.view_ended\".\n\tEventName constant.ChunkifyVideoViewEnded `json:\"event_name\" default:\"chunkify.video.view_ended\"`\n\t// This field can be elided, and will marshal its zero value as 1.\n\tSchemaVersion float64 `json:\"schema_version,omitzero\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nThe properties ConnectorName, ConnectorVersion, DeliveryHostname, DeliveryRequestCount, DeliveryThroughputBps, DeliveryTransferredBytes, DroppedVideoFrames, Environment, ErrorCategory, ErrorCode, ErrorFatal, ErrorPlayheadSeconds, EventID, EventName, FirstVideoFrameTimeMs, FurthestProgressRatio, MaximumPlayheadSeconds, MediaDurationSeconds, MediaHeightPx, MediaWidthPx, OccurredAt, PlayerHeightPx, PlayerName, PlayerVersion, PlayerWidthPx, PlayingTimeMs, Reason, RebufferCount, RebufferDurationMs, RebufferRatio, RenditionPlayingTime, RenditionSwitchCount, SchemaVersion, SDKName, SDKVersion, SeekCount, SeekDurationMs, SelectedRenditionBitrateBps, SelectedRenditionCodec, SelectedRenditionHeight, SelectedRenditionWidth, Sequence, StartupOutcome, StartupTimeMs, TotalVideoFrames, VideoID, ViewID, ViewerID are required.\n\n```go\nfunc (r ViewEndedParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ViewEndedParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ViewEndedReason string\n```\n\n```go\nconst (\n\tViewEndedReasonEnded         ViewEndedReason = \"ended\"\n\tViewEndedReasonDestroyed     ViewEndedReason = \"destroyed\"\n\tViewEndedReasonSourceChanged ViewEndedReason = \"source_changed\"\n\tViewEndedReasonPageExit      ViewEndedReason = \"page_exit\"\n)\n```\n\n```go\ntype ViewEndedStartupOutcome string\n```\n\n```go\nconst (\n\tViewEndedStartupOutcomeStarted           ViewEndedStartupOutcome = \"started\"\n\tViewEndedStartupOutcomeFailedBeforeStart ViewEndedStartupOutcome = \"failed_before_start\"\n\tViewEndedStartupOutcomeEndedBeforeStart  ViewEndedStartupOutcome = \"ended_before_start\"\n)\n```\n\n```go\ntype ViewEndedVisibilityState string\n```\nTab visibility when the event was recorded. Hidden does not imply paused playback or identify the cause of a pause. Missing on older events; null when unavailable.\n\n```go\nconst (\n\tViewEndedVisibilityStateVisible ViewEndedVisibilityState = \"visible\"\n\tViewEndedVisibilityStateHidden  ViewEndedVisibilityState = \"hidden\"\n)\n```\n\n```go\ntype ViewGetParams struct {\n\t// Use next_cursor from the previous page. Keep the same filters, sort_by and\n\t// order. Video cursors from earlier versions are invalid; start a new pagination\n\t// sequence after upgrading.\n\tCursor param.Opt[string] `query:\"cursor,omitzero\" json:\"-\"`\n\t// Maximum rows on this page. Events and videos always support pagination; summary,\n\t// quality and engagement support it only with group_by.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ViewGetParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [ViewGetParams](#ViewGetParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype ViewListParams struct {\n\t// Exact browser name, such as Chrome. Missing values do not match.\n\tBrowserName param.Opt[string] `query:\"browser_name,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive city name from the local lookup, with 1 to 256 Unicode\n\t// characters. Use country alongside city to distinguish places with the same name.\n\t// Missing locations do not match.\n\tCity param.Opt[string] `query:\"city,omitzero\" json:\"-\"`\n\t// Exact uppercase ISO 3166-1 alpha-2 country code, such as GB. Missing locations\n\t// do not match.\n\tCountry param.Opt[string] `query:\"country,omitzero\" json:\"-\"`\n\t// Use next_cursor from the previous page. Keep the same filters, sort_by and\n\t// order. Video cursors from earlier versions are invalid; start a new pagination\n\t// sequence after upgrading.\n\tCursor param.Opt[string] `query:\"cursor,omitzero\" json:\"-\"`\n\t// Inclusive RFC3339 occurrence-time lower bound, with timezone. Summary/video\n\t// queries apply it to the selected view_started event. Must be before to.\n\tFrom param.Opt[time.Time] `query:\"from,omitzero\" format:\"date-time\" json:\"-\"`\n\t// Select attempts with or without an observed fatal error. Absence of an observed\n\t// error does not prove successful playback.\n\tHasFatalError param.Opt[bool] `query:\"has_fatal_error,omitzero\" json:\"-\"`\n\t// Maximum rows on this page. Events and videos always support pagination; summary,\n\t// quality and engagement support it only with group_by.\n\tLimit param.Opt[int64] `query:\"limit,omitzero\" json:\"-\"`\n\t// Exact operating-system name, such as macOS. Missing values do not match.\n\tOsName param.Opt[string] `query:\"os_name,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive page origin captured by the player, such as\n\t// https://example.com. Metrics use the first retained view start; raw events use\n\t// each event context. Missing values do not match.\n\tPageOrigin param.Opt[string] `query:\"page_origin,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive page path captured by the player, such as /watch/video.\n\t// Filter by page_origin as well to distinguish identical paths on different sites.\n\t// Metrics use the first retained view start; raw events use each event context.\n\t// Missing values do not match.\n\tPagePath param.Opt[string] `query:\"page_path,omitzero\" json:\"-\"`\n\t// Playback rate from 0.01 to 16 with at most two decimals, such as 1, 1.5 or 2;\n\t// 2.0 and 2 are the same rate. Metrics use the rate on the first retained view\n\t// start; raw events use each event's value.\n\tPlaybackRate param.Opt[string] `query:\"playback_rate,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive, non-blank subtitle language tag, such as fr or en-US; und\n\t// for a subtitles track without a language. Metrics use the language showing on\n\t// the first retained view start; raw events use each event's value. Views without\n\t// subtitles at start do not match.\n\tSubtitleLanguage param.Opt[string] `query:\"subtitle_language,omitzero\" json:\"-\"`\n\t// Exclusive RFC3339 occurrence-time upper bound, with timezone. Summary/video\n\t// queries apply it to the selected view_started event.\n\tTo param.Opt[time.Time] `query:\"to,omitzero\" format:\"date-time\" json:\"-\"`\n\t// Exact integrator-supplied user ID. Selects views by their start event; event\n\t// lists match each event's own value. Missing/null user IDs do not match. Reports\n\t// with this filter read one stored row per view.\n\tUserID param.Opt[string] `query:\"user_id,omitzero\" json:\"-\"`\n\t// Exact video ID; must not be blank. Combined with all other filters using AND.\n\tVideoID param.Opt[string] `query:\"video_id,omitzero\" json:\"-\"`\n\t// Exact, case-sensitive video title. Selects views by the title on their first\n\t// retained start; event lists match each event's own value. Views without a title\n\t// do not match. Reports with this filter read one stored row per view.\n\tVideoTitle param.Opt[string] `query:\"video_title,omitzero\" json:\"-\"`\n\t// Filter one playback attempt by view ID. Metrics use its first retained start.\n\tViewID param.Opt[string] `query:\"view_id,omitzero\" json:\"-\"`\n\t// Exact viewer ID. The Chunkify player SDK generates one per browser; missing/null\n\t// viewer IDs do not match.\n\tViewerID param.Opt[string] `query:\"viewer_id,omitzero\" json:\"-\"`\n\t// Exact continent code from the local lookup. Missing locations do not match.\n\t//\n\t// Any of \"AF\", \"AN\", \"AS\", \"EU\", \"NA\", \"OC\", \"SA\".\n\tContinent ViewListParamsContinent `query:\"continent,omitzero\" json:\"-\"`\n\t// Delivery format on the first retained view start: hls for HLS streams, file for\n\t// a single media file such as an MP4 rendition. Metrics use the first retained\n\t// view start; raw events use each event's value. Views whose SDK did not report it\n\t// do not match. connector_name is not a substitute: Safari plays HLS natively and\n\t// reports html-media.\n\t//\n\t// Any of \"hls\", \"file\".\n\tDeliveryFormat ViewListParamsDeliveryFormat `query:\"delivery_format,omitzero\" json:\"-\"`\n\t// Exact device class. unknown matches an explicit unknown value.\n\t//\n\t// Any of \"desktop\", \"mobile\", \"tablet\", \"unknown\".\n\tDeviceType ViewListParamsDeviceType `query:\"device_type,omitzero\" json:\"-\"`\n\t// Sort by started_at and then view_id in this direction. Defaults to newest first.\n\t// Keep the same order with each cursor.\n\t//\n\t// Any of \"asc\", \"desc\".\n\tOrder ViewListParamsOrder `query:\"order,omitzero\" json:\"-\"`\n\t// Sort all matching sessions before pagination. Missing values come last in both\n\t// directions. Ties use view_id in the requested direction. Keep sort_by, order and\n\t// filters unchanged with a cursor.\n\t//\n\t// Any of \"started_at\", \"video_id\", \"view_id\", \"device_type\", \"playing_time_ms\",\n\t// \"startup_time_ms\", \"rebuffer_duration_ms\", \"playback_score\".\n\tSortBy ViewListParamsSortBy `query:\"sort_by,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r ViewListParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [ViewListParams](#ViewListParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype ViewListParamsContinent string\n```\nExact continent code from the local lookup. Missing locations do not match.\n\n```go\nconst (\n\tViewListParamsContinentAf ViewListParamsContinent = \"AF\"\n\tViewListParamsContinentAn ViewListParamsContinent = \"AN\"\n\tViewListParamsContinentAs ViewListParamsContinent = \"AS\"\n\tViewListParamsContinentEu ViewListParamsContinent = \"EU\"\n\tViewListParamsContinentNa ViewListParamsContinent = \"NA\"\n\tViewListParamsContinentOc ViewListParamsContinent = \"OC\"\n\tViewListParamsContinentSa ViewListParamsContinent = \"SA\"\n)\n```\n\n```go\ntype ViewListParamsDeliveryFormat string\n```\nDelivery format on the first retained view start: hls for HLS streams, file for a single media file such as an MP4 rendition. Metrics use the first retained view start; raw events use each event's value. Views whose SDK did not report it do not match. connector\\_name is not a substitute: Safari plays HLS natively and reports html-media.\n\n```go\nconst (\n\tViewListParamsDeliveryFormatHls  ViewListParamsDeliveryFormat = \"hls\"\n\tViewListParamsDeliveryFormatFile ViewListParamsDeliveryFormat = \"file\"\n)\n```\n\n```go\ntype ViewListParamsDeviceType string\n```\nExact device class. unknown matches an explicit unknown value.\n\n```go\nconst (\n\tViewListParamsDeviceTypeDesktop ViewListParamsDeviceType = \"desktop\"\n\tViewListParamsDeviceTypeMobile  ViewListParamsDeviceType = \"mobile\"\n\tViewListParamsDeviceTypeTablet  ViewListParamsDeviceType = \"tablet\"\n\tViewListParamsDeviceTypeUnknown ViewListParamsDeviceType = \"unknown\"\n)\n```\n\n```go\ntype ViewListParamsOrder string\n```\nSort by started\\_at and then view\\_id in this direction. Defaults to newest first. Keep the same order with each cursor.\n\n```go\nconst (\n\tViewListParamsOrderAsc  ViewListParamsOrder = \"asc\"\n\tViewListParamsOrderDesc ViewListParamsOrder = \"desc\"\n)\n```\n\n```go\ntype ViewListParamsSortBy string\n```\nSort all matching sessions before pagination. Missing values come last in both directions. Ties use view\\_id in the requested direction. Keep sort\\_by, order and filters unchanged with a cursor.\n\n```go\nconst (\n\tViewListParamsSortByStartedAt          ViewListParamsSortBy = \"started_at\"\n\tViewListParamsSortByVideoID            ViewListParamsSortBy = \"video_id\"\n\tViewListParamsSortByViewID             ViewListParamsSortBy = \"view_id\"\n\tViewListParamsSortByDeviceType         ViewListParamsSortBy = \"device_type\"\n\tViewListParamsSortByPlayingTimeMs      ViewListParamsSortBy = \"playing_time_ms\"\n\tViewListParamsSortByStartupTimeMs      ViewListParamsSortBy = \"startup_time_ms\"\n\tViewListParamsSortByRebufferDurationMs ViewListParamsSortBy = \"rebuffer_duration_ms\"\n\tViewListParamsSortByPlaybackScore      ViewListParamsSortBy = \"playback_score\"\n)\n```\n\n```go\ntype ViewPage struct {\n\tNextCursor string `json:\"next_cursor\" api:\"required\"`\n\tViews      []View `json:\"views\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tNextCursor  respjson.Field\n\t\tViews       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 ViewPage) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ViewPage) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ViewService struct {\n\tOptions []option.RequestOption\n}\n```\nPrivate retained-event and view-cohort queries.\n\nViewService contains methods and other services that help with interacting with the Chunkify Analytics 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 [NewViewService](#NewViewService) method instead.\n\n```go\nfunc NewViewService(opts ...option.RequestOption) (r ViewService)\n```\nNewViewService 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 *ViewService) Get(ctx context.Context, viewID string, query ViewGetParams, opts ...option.RequestOption) (res *ViewDetail, err error)\n```\nReturns start context and selected measurements, plus a paginated history of all retained events for that view ID, in ingestion order. SDK sequence and occurrence times remain in each event. Follow next\\_cursor with the same view ID; the summary and event pages share the initial ingestion watermark. Orphaned events without a retained start remain available through /v1/events?view\\_id=... .\n\n```go\nfunc (r *ViewService) List(ctx context.Context, query ViewListParams, opts ...option.RequestOption) (res *pagination.ViewsPage[View], err error)\n```\nOne row per first retained start, using the same final/latest measurement selection as metrics. Filter by identity, context, dates or has\\_fatal\\_error. Order by started\\_at descending by default (newest first), or ascending with order=asc. Equal start times use view\\_id in the same direction. Cursors bind filters, order, fatal-error selection, project and ingestion watermark. Missing end or error events are not proof of an ongoing or successful playback. Sort the entire matching cohort by sort\\_by before pagination, with missing values last.\n\n```go\nfunc (r *ViewService) ListAutoPaging(ctx context.Context, query ViewListParams, opts ...option.RequestOption) *pagination.ViewsPageAutoPager[View]\n```\nOne row per first retained start, using the same final/latest measurement selection as metrics. Filter by identity, context, dates or has\\_fatal\\_error. Order by started\\_at descending by default (newest first), or ascending with order=asc. Equal start times use view\\_id in the same direction. Cursors bind filters, order, fatal-error selection, project and ingestion watermark. Missing end or error events are not proof of an ongoing or successful playback. Sort the entire matching cohort by sort\\_by before pagination, with missing values last.\n\n```go\ntype ViewSnapshot struct {\n\tConnectorName            string  `json:\"connector_name\" api:\"required\"`\n\tConnectorVersion         string  `json:\"connector_version\" api:\"required\"`\n\tDeliveryHostname         string  `json:\"delivery_hostname\" api:\"required\"`\n\tDeliveryRequestCount     float64 `json:\"delivery_request_count\" api:\"required\"`\n\tDeliveryThroughputBps    float64 `json:\"delivery_throughput_bps\" api:\"required\"`\n\tDeliveryTransferredBytes float64 `json:\"delivery_transferred_bytes\" api:\"required\"`\n\tDroppedVideoFrames       float64 `json:\"dropped_video_frames\" api:\"required\"`\n\tEnvironment              string  `json:\"environment\" api:\"required\"`\n\t// Any of \"aborted\", \"network\", \"decode\", \"unsupported\", \"unknown\".\n\tErrorCategory          ViewSnapshotErrorCategory          `json:\"error_category\" api:\"required\"`\n\tErrorCode              ViewSnapshotErrorCodeUnion         `json:\"error_code\" api:\"required\"`\n\tErrorFatal             bool                               `json:\"error_fatal\" api:\"required\"`\n\tErrorPlayheadSeconds   float64                            `json:\"error_playhead_seconds\" api:\"required\"`\n\tEventID                string                             `json:\"event_id\" api:\"required\" format:\"uuid\"`\n\tEventName              constant.ChunkifyVideoViewSnapshot `json:\"event_name\" default:\"chunkify.video.view_snapshot\"`\n\tFirstVideoFrameTimeMs  float64                            `json:\"first_video_frame_time_ms\" api:\"required\"`\n\tFurthestProgressRatio  float64                            `json:\"furthest_progress_ratio\" api:\"required\"`\n\tMaximumPlayheadSeconds float64                            `json:\"maximum_playhead_seconds\" api:\"required\"`\n\tMediaDurationSeconds   float64                            `json:\"media_duration_seconds\" api:\"required\"`\n\tMediaHeightPx          float64                            `json:\"media_height_px\" api:\"required\"`\n\tMediaWidthPx           float64                            `json:\"media_width_px\" api:\"required\"`\n\tOccurredAt             time.Time                          `json:\"occurred_at\" api:\"required\" format:\"date-time\"`\n\tPlayerHeightPx         float64                            `json:\"player_height_px\" api:\"required\"`\n\tPlayerName             string                             `json:\"player_name\" api:\"required\"`\n\tPlayerVersion          string                             `json:\"player_version\" api:\"required\"`\n\tPlayerWidthPx          float64                            `json:\"player_width_px\" api:\"required\"`\n\tPlayingTimeMs          float64                            `json:\"playing_time_ms\" api:\"required\"`\n\t// Any of \"ended\", \"destroyed\", \"source_changed\", \"page_exit\".\n\tReason               ViewSnapshotReason            `json:\"reason\" api:\"required\"`\n\tRebufferCount        float64                       `json:\"rebuffer_count\" api:\"required\"`\n\tRebufferDurationMs   float64                       `json:\"rebuffer_duration_ms\" api:\"required\"`\n\tRebufferRatio        float64                       `json:\"rebuffer_ratio\" api:\"required\"`\n\tRenditionPlayingTime []shared.RenditionPlayingTime `json:\"rendition_playing_time\" api:\"required\"`\n\tRenditionSwitchCount float64                       `json:\"rendition_switch_count\" api:\"required\"`\n\tSchemaVersion        float64                       `json:\"schema_version\" api:\"required\"`\n\t// Name of the SDK or integration that produced the event. Informational metadata,\n\t// preserved as received. Must contain at least one non-whitespace character.\n\tSDKName                     string  `json:\"sdk_name\" api:\"required\"`\n\tSDKVersion                  string  `json:\"sdk_version\" api:\"required\"`\n\tSeekCount                   float64 `json:\"seek_count\" api:\"required\"`\n\tSeekDurationMs              float64 `json:\"seek_duration_ms\" api:\"required\"`\n\tSelectedRenditionBitrateBps float64 `json:\"selected_rendition_bitrate_bps\" api:\"required\"`\n\tSelectedRenditionCodec      string  `json:\"selected_rendition_codec\" api:\"required\"`\n\tSelectedRenditionHeight     float64 `json:\"selected_rendition_height\" api:\"required\"`\n\tSelectedRenditionWidth      float64 `json:\"selected_rendition_width\" api:\"required\"`\n\tSequence                    int64   `json:\"sequence\" api:\"required\"`\n\t// Any of \"started\", \"failed_before_start\", \"ended_before_start\".\n\tStartupOutcome   ViewSnapshotStartupOutcome `json:\"startup_outcome\" api:\"required\"`\n\tStartupTimeMs    float64                    `json:\"startup_time_ms\" api:\"required\"`\n\tTotalVideoFrames float64                    `json:\"total_video_frames\" api:\"required\"`\n\tVideoID          string                     `json:\"video_id\" api:\"required\"`\n\tViewID           string                     `json:\"view_id\" api:\"required\" format:\"uuid\"`\n\t// Anonymous browser identifier generated by the Chunkify player SDK and stored in\n\t// the page's localStorage.\n\tViewerID string `json:\"viewer_id\" api:\"required\"`\n\t// Browser and device information. The Chunkify player sends every field, with null\n\t// for unavailable measurements. Other integrations may omit any field except\n\t// schema_version. Extra properties are preserved.\n\tBrowserContext shared.BrowserContext `json:\"browser_context\" api:\"nullable\"`\n\t// How the player receives the media: hls for an HLS stream, file for a single\n\t// media file such as an MP4 rendition; null when unknown. Optional: older SDKs\n\t// omit it. Reports read it from each view's first start. Unlike connector_name, it\n\t// does not depend on the playback engine: Safari's native HLS reports html-media.\n\t//\n\t// Any of \"hls\", \"file\".\n\tDeliveryFormat ViewSnapshotDeliveryFormat `json:\"delivery_format\" api:\"nullable\"`\n\t// Current playback rate, rounded to two decimals, such as 1, 1.5 or 2; from 0.01\n\t// to 16. Optional.\n\tPlaybackRate float64 `json:\"playback_rate\" api:\"nullable\"`\n\t// Cumulative playing time per playback rate for this attempt. At most 32 entries.\n\t// Optional.\n\tPlaybackRatePlayingTime []shared.PlaybackRatePlayingTime `json:\"playback_rate_playing_time\" api:\"nullable\"`\n\t// Cumulative played media ranges for this attempt, sorted and merged without\n\t// overlaps. Seeking, pauses and buffering are excluded. Missing or null means\n\t// unavailable; an empty array means measured but no section played. Replaying a\n\t// section does not add another range.\n\tPlayedRanges []shared.PlayedRange `json:\"played_ranges\" api:\"nullable\"`\n\t// Current media position at this event, not the maximum reached.\n\tPlayheadSeconds float64 `json:\"playhead_seconds\" api:\"nullable\"`\n\t// Language tag (BCP 47) of the showing subtitles or captions track; und when the\n\t// track declares no language; null when subtitles are off. Optional.\n\tSubtitleLanguage string `json:\"subtitle_language\" api:\"nullable\"`\n\t// Cumulative playing time per subtitle language for this attempt, null language\n\t// meaning subtitles off. At most 32 entries. Optional.\n\tSubtitlePlayingTime []shared.SubtitlePlayingTime `json:\"subtitle_playing_time\" api:\"nullable\"`\n\t// Optional integrator-supplied user ID, used to link views to the integrator's own\n\t// users.\n\tUserID string `json:\"user_id\" api:\"nullable\"`\n\t// Optional human-readable video title for reports.\n\tVideoTitle string `json:\"video_title\" api:\"nullable\"`\n\t// Tab visibility when the event was recorded. Hidden does not imply paused\n\t// playback or identify the cause of a pause. Missing on older events; null when\n\t// unavailable.\n\t//\n\t// Any of \"visible\", \"hidden\".\n\tVisibilityState ViewSnapshotVisibilityState `json:\"visibility_state\" api:\"nullable\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tConnectorName               respjson.Field\n\t\tConnectorVersion            respjson.Field\n\t\tDeliveryHostname            respjson.Field\n\t\tDeliveryRequestCount        respjson.Field\n\t\tDeliveryThroughputBps       respjson.Field\n\t\tDeliveryTransferredBytes    respjson.Field\n\t\tDroppedVideoFrames          respjson.Field\n\t\tEnvironment                 respjson.Field\n\t\tErrorCategory               respjson.Field\n\t\tErrorCode                   respjson.Field\n\t\tErrorFatal                  respjson.Field\n\t\tErrorPlayheadSeconds        respjson.Field\n\t\tEventID                     respjson.Field\n\t\tEventName                   respjson.Field\n\t\tFirstVideoFrameTimeMs       respjson.Field\n\t\tFurthestProgressRatio       respjson.Field\n\t\tMaximumPlayheadSeconds      respjson.Field\n\t\tMediaDurationSeconds        respjson.Field\n\t\tMediaHeightPx               respjson.Field\n\t\tMediaWidthPx                respjson.Field\n\t\tOccurredAt                  respjson.Field\n\t\tPlayerHeightPx              respjson.Field\n\t\tPlayerName                  respjson.Field\n\t\tPlayerVersion               respjson.Field\n\t\tPlayerWidthPx               respjson.Field\n\t\tPlayingTimeMs               respjson.Field\n\t\tReason                      respjson.Field\n\t\tRebufferCount               respjson.Field\n\t\tRebufferDurationMs          respjson.Field\n\t\tRebufferRatio               respjson.Field\n\t\tRenditionPlayingTime        respjson.Field\n\t\tRenditionSwitchCount        respjson.Field\n\t\tSchemaVersion               respjson.Field\n\t\tSDKName                     respjson.Field\n\t\tSDKVersion                  respjson.Field\n\t\tSeekCount                   respjson.Field\n\t\tSeekDurationMs              respjson.Field\n\t\tSelectedRenditionBitrateBps respjson.Field\n\t\tSelectedRenditionCodec      respjson.Field\n\t\tSelectedRenditionHeight     respjson.Field\n\t\tSelectedRenditionWidth      respjson.Field\n\t\tSequence                    respjson.Field\n\t\tStartupOutcome              respjson.Field\n\t\tStartupTimeMs               respjson.Field\n\t\tTotalVideoFrames            respjson.Field\n\t\tVideoID                     respjson.Field\n\t\tViewID                      respjson.Field\n\t\tViewerID                    respjson.Field\n\t\tBrowserContext              respjson.Field\n\t\tDeliveryFormat              respjson.Field\n\t\tPlaybackRate                respjson.Field\n\t\tPlaybackRatePlayingTime     respjson.Field\n\t\tPlayedRanges                respjson.Field\n\t\tPlayheadSeconds             respjson.Field\n\t\tSubtitleLanguage            respjson.Field\n\t\tSubtitlePlayingTime         respjson.Field\n\t\tUserID                      respjson.Field\n\t\tVideoTitle                  respjson.Field\n\t\tVisibilityState             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 ViewSnapshot) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r ViewSnapshot) ToParam() ViewSnapshotParam\n```\nToParam converts this ViewSnapshot to a ViewSnapshotParam.\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 ViewSnapshotParam.Overrides()\n\n```go\nfunc (r *ViewSnapshot) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ViewSnapshotDeliveryFormat string\n```\nHow the player receives the media: hls for an HLS stream, file for a single media file such as an MP4 rendition; null when unknown. Optional: older SDKs omit it. Reports read it from each view's first start. Unlike connector\\_name, it does not depend on the playback engine: Safari's native HLS reports html-media.\n\n```go\nconst (\n\tViewSnapshotDeliveryFormatHls  ViewSnapshotDeliveryFormat = \"hls\"\n\tViewSnapshotDeliveryFormatFile ViewSnapshotDeliveryFormat = \"file\"\n)\n```\n\n```go\ntype ViewSnapshotErrorCategory string\n```\n\n```go\nconst (\n\tViewSnapshotErrorCategoryAborted     ViewSnapshotErrorCategory = \"aborted\"\n\tViewSnapshotErrorCategoryNetwork     ViewSnapshotErrorCategory = \"network\"\n\tViewSnapshotErrorCategoryDecode      ViewSnapshotErrorCategory = \"decode\"\n\tViewSnapshotErrorCategoryUnsupported ViewSnapshotErrorCategory = \"unsupported\"\n\tViewSnapshotErrorCategoryUnknown     ViewSnapshotErrorCategory = \"unknown\"\n)\n```\n\n```go\ntype ViewSnapshotErrorCodeUnion struct {\n\t// This field will be present if the value is a [string] instead of an object.\n\tOfString string `json:\",inline\"`\n\t// This field will be present if the value is a [float64] instead of an object.\n\tOfFloat float64 `json:\",inline\"`\n\tJSON    struct {\n\t\tOfString respjson.Field\n\t\tOfFloat  respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nViewSnapshotErrorCodeUnion contains all possible properties and values from \\[string], \\[float64].\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\nIf the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat]\n\n```go\nfunc (u ViewSnapshotErrorCodeUnion) AsFloat() (v float64)\n```\n\n```go\nfunc (u ViewSnapshotErrorCodeUnion) AsString() (v string)\n```\n\n```go\nfunc (u ViewSnapshotErrorCodeUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ViewSnapshotErrorCodeUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ViewSnapshotErrorCodeUnionParam struct {\n\tOfString param.Opt[string]  `json:\",omitzero,inline\"`\n\tOfFloat  param.Opt[float64] `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-analytics-go/packages/param#IsOmitted) to confirm if a field is set.\n\n```go\nfunc (u ViewSnapshotErrorCodeUnionParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (u *ViewSnapshotErrorCodeUnionParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ViewSnapshotParam struct {\n\tConnectorVersion         param.Opt[string]  `json:\"connector_version,omitzero\" api:\"required\"`\n\tDeliveryHostname         param.Opt[string]  `json:\"delivery_hostname,omitzero\" api:\"required\"`\n\tDeliveryRequestCount     param.Opt[float64] `json:\"delivery_request_count,omitzero\" api:\"required\"`\n\tDeliveryThroughputBps    param.Opt[float64] `json:\"delivery_throughput_bps,omitzero\" api:\"required\"`\n\tDeliveryTransferredBytes param.Opt[float64] `json:\"delivery_transferred_bytes,omitzero\" api:\"required\"`\n\tDroppedVideoFrames       param.Opt[float64] `json:\"dropped_video_frames,omitzero\" api:\"required\"`\n\tEnvironment              param.Opt[string]  `json:\"environment,omitzero\" api:\"required\"`\n\t// Any of \"aborted\", \"network\", \"decode\", \"unsupported\", \"unknown\".\n\tErrorCategory         param.Opt[ViewSnapshotErrorCategory] `json:\"error_category,omitzero\" api:\"required\"`\n\tErrorFatal            param.Opt[bool]                      `json:\"error_fatal,omitzero\" api:\"required\"`\n\tErrorPlayheadSeconds  param.Opt[float64]                   `json:\"error_playhead_seconds,omitzero\" api:\"required\"`\n\tFirstVideoFrameTimeMs param.Opt[float64]                   `json:\"first_video_frame_time_ms,omitzero\" api:\"required\"`\n\tFurthestProgressRatio param.Opt[float64]                   `json:\"furthest_progress_ratio,omitzero\" api:\"required\"`\n\tMediaDurationSeconds  param.Opt[float64]                   `json:\"media_duration_seconds,omitzero\" api:\"required\"`\n\tMediaHeightPx         param.Opt[float64]                   `json:\"media_height_px,omitzero\" api:\"required\"`\n\tMediaWidthPx          param.Opt[float64]                   `json:\"media_width_px,omitzero\" api:\"required\"`\n\tPlayerHeightPx        param.Opt[float64]                   `json:\"player_height_px,omitzero\" api:\"required\"`\n\tPlayerName            param.Opt[string]                    `json:\"player_name,omitzero\" api:\"required\"`\n\tPlayerVersion         param.Opt[string]                    `json:\"player_version,omitzero\" api:\"required\"`\n\tPlayerWidthPx         param.Opt[float64]                   `json:\"player_width_px,omitzero\" api:\"required\"`\n\t// Any of \"ended\", \"destroyed\", \"source_changed\", \"page_exit\".\n\tReason                      param.Opt[ViewSnapshotReason] `json:\"reason,omitzero\" api:\"required\"`\n\tRebufferRatio               param.Opt[float64]            `json:\"rebuffer_ratio,omitzero\" api:\"required\"`\n\tRenditionSwitchCount        param.Opt[float64]            `json:\"rendition_switch_count,omitzero\" api:\"required\"`\n\tSelectedRenditionBitrateBps param.Opt[float64]            `json:\"selected_rendition_bitrate_bps,omitzero\" api:\"required\"`\n\tSelectedRenditionCodec      param.Opt[string]             `json:\"selected_rendition_codec,omitzero\" api:\"required\"`\n\tSelectedRenditionHeight     param.Opt[float64]            `json:\"selected_rendition_height,omitzero\" api:\"required\"`\n\tSelectedRenditionWidth      param.Opt[float64]            `json:\"selected_rendition_width,omitzero\" api:\"required\"`\n\t// Any of \"started\", \"failed_before_start\", \"ended_before_start\".\n\tStartupOutcome   param.Opt[ViewSnapshotStartupOutcome] `json:\"startup_outcome,omitzero\" api:\"required\"`\n\tStartupTimeMs    param.Opt[float64]                    `json:\"startup_time_ms,omitzero\" api:\"required\"`\n\tTotalVideoFrames param.Opt[float64]                    `json:\"total_video_frames,omitzero\" api:\"required\"`\n\t// Anonymous browser identifier generated by the Chunkify player SDK and stored in\n\t// the page's localStorage.\n\tViewerID               param.Opt[string]                  `json:\"viewer_id,omitzero\" api:\"required\"`\n\tErrorCode              ViewSnapshotErrorCodeUnionParam    `json:\"error_code,omitzero\" api:\"required\"`\n\tRenditionPlayingTime   []shared.RenditionPlayingTimeParam `json:\"rendition_playing_time,omitzero\" api:\"required\"`\n\tConnectorName          string                             `json:\"connector_name\" api:\"required\"`\n\tEventID                string                             `json:\"event_id\" api:\"required\" format:\"uuid\"`\n\tMaximumPlayheadSeconds float64                            `json:\"maximum_playhead_seconds\" api:\"required\"`\n\tOccurredAt             time.Time                          `json:\"occurred_at\" api:\"required\" format:\"date-time\"`\n\tPlayingTimeMs          float64                            `json:\"playing_time_ms\" api:\"required\"`\n\tRebufferCount          float64                            `json:\"rebuffer_count\" api:\"required\"`\n\tRebufferDurationMs     float64                            `json:\"rebuffer_duration_ms\" api:\"required\"`\n\t// Name of the SDK or integration that produced the event. Informational metadata,\n\t// preserved as received. Must contain at least one non-whitespace character.\n\tSDKName        string  `json:\"sdk_name\" api:\"required\"`\n\tSDKVersion     string  `json:\"sdk_version\" api:\"required\"`\n\tSeekCount      float64 `json:\"seek_count\" api:\"required\"`\n\tSeekDurationMs float64 `json:\"seek_duration_ms\" api:\"required\"`\n\tSequence       int64   `json:\"sequence\" api:\"required\"`\n\tVideoID        string  `json:\"video_id\" api:\"required\"`\n\tViewID         string  `json:\"view_id\" api:\"required\" format:\"uuid\"`\n\t// How the player receives the media: hls for an HLS stream, file for a single\n\t// media file such as an MP4 rendition; null when unknown. Optional: older SDKs\n\t// omit it. Reports read it from each view's first start. Unlike connector_name, it\n\t// does not depend on the playback engine: Safari's native HLS reports html-media.\n\t//\n\t// Any of \"hls\", \"file\".\n\tDeliveryFormat param.Opt[ViewSnapshotDeliveryFormat] `json:\"delivery_format,omitzero\"`\n\t// Current playback rate, rounded to two decimals, such as 1, 1.5 or 2; from 0.01\n\t// to 16. Optional.\n\tPlaybackRate param.Opt[float64] `json:\"playback_rate,omitzero\"`\n\t// Current media position at this event, not the maximum reached.\n\tPlayheadSeconds param.Opt[float64] `json:\"playhead_seconds,omitzero\"`\n\t// Language tag (BCP 47) of the showing subtitles or captions track; und when the\n\t// track declares no language; null when subtitles are off. Optional.\n\tSubtitleLanguage param.Opt[string] `json:\"subtitle_language,omitzero\"`\n\t// Optional integrator-supplied user ID, used to link views to the integrator's own\n\t// users.\n\tUserID param.Opt[string] `json:\"user_id,omitzero\"`\n\t// Optional human-readable video title for reports.\n\tVideoTitle param.Opt[string] `json:\"video_title,omitzero\"`\n\t// Tab visibility when the event was recorded. Hidden does not imply paused\n\t// playback or identify the cause of a pause. Missing on older events; null when\n\t// unavailable.\n\t//\n\t// Any of \"visible\", \"hidden\".\n\tVisibilityState param.Opt[ViewSnapshotVisibilityState] `json:\"visibility_state,omitzero\"`\n\t// Cumulative playing time per playback rate for this attempt. At most 32 entries.\n\t// Optional.\n\tPlaybackRatePlayingTime []shared.PlaybackRatePlayingTimeParam `json:\"playback_rate_playing_time,omitzero\"`\n\t// Cumulative played media ranges for this attempt, sorted and merged without\n\t// overlaps. Seeking, pauses and buffering are excluded. Missing or null means\n\t// unavailable; an empty array means measured but no section played. Replaying a\n\t// section does not add another range.\n\tPlayedRanges []shared.PlayedRangeParam `json:\"played_ranges,omitzero\"`\n\t// Cumulative playing time per subtitle language for this attempt, null language\n\t// meaning subtitles off. At most 32 entries. Optional.\n\tSubtitlePlayingTime []shared.SubtitlePlayingTimeParam `json:\"subtitle_playing_time,omitzero\"`\n\t// Browser and device information. The Chunkify player sends every field, with null\n\t// for unavailable measurements. Other integrations may omit any field except\n\t// schema_version. Extra properties are preserved.\n\tBrowserContext shared.BrowserContextParam `json:\"browser_context,omitzero\"`\n\t// This field can be elided, and will marshal its zero value as\n\t// \"chunkify.video.view_snapshot\".\n\tEventName constant.ChunkifyVideoViewSnapshot `json:\"event_name\" default:\"chunkify.video.view_snapshot\"`\n\t// This field can be elided, and will marshal its zero value as 1.\n\tSchemaVersion float64 `json:\"schema_version,omitzero\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nThe properties ConnectorName, ConnectorVersion, DeliveryHostname, DeliveryRequestCount, DeliveryThroughputBps, DeliveryTransferredBytes, DroppedVideoFrames, Environment, ErrorCategory, ErrorCode, ErrorFatal, ErrorPlayheadSeconds, EventID, EventName, FirstVideoFrameTimeMs, FurthestProgressRatio, MaximumPlayheadSeconds, MediaDurationSeconds, MediaHeightPx, MediaWidthPx, OccurredAt, PlayerHeightPx, PlayerName, PlayerVersion, PlayerWidthPx, PlayingTimeMs, Reason, RebufferCount, RebufferDurationMs, RebufferRatio, RenditionPlayingTime, RenditionSwitchCount, SchemaVersion, SDKName, SDKVersion, SeekCount, SeekDurationMs, SelectedRenditionBitrateBps, SelectedRenditionCodec, SelectedRenditionHeight, SelectedRenditionWidth, Sequence, StartupOutcome, StartupTimeMs, TotalVideoFrames, VideoID, ViewID, ViewerID are required.\n\n```go\nfunc (r ViewSnapshotParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ViewSnapshotParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ViewSnapshotReason string\n```\n\n```go\nconst (\n\tViewSnapshotReasonEnded         ViewSnapshotReason = \"ended\"\n\tViewSnapshotReasonDestroyed     ViewSnapshotReason = \"destroyed\"\n\tViewSnapshotReasonSourceChanged ViewSnapshotReason = \"source_changed\"\n\tViewSnapshotReasonPageExit      ViewSnapshotReason = \"page_exit\"\n)\n```\n\n```go\ntype ViewSnapshotStartupOutcome string\n```\n\n```go\nconst (\n\tViewSnapshotStartupOutcomeStarted           ViewSnapshotStartupOutcome = \"started\"\n\tViewSnapshotStartupOutcomeFailedBeforeStart ViewSnapshotStartupOutcome = \"failed_before_start\"\n\tViewSnapshotStartupOutcomeEndedBeforeStart  ViewSnapshotStartupOutcome = \"ended_before_start\"\n)\n```\n\n```go\ntype ViewSnapshotVisibilityState string\n```\nTab visibility when the event was recorded. Hidden does not imply paused playback or identify the cause of a pause. Missing on older events; null when unavailable.\n\n```go\nconst (\n\tViewSnapshotVisibilityStateVisible ViewSnapshotVisibilityState = \"visible\"\n\tViewSnapshotVisibilityStateHidden  ViewSnapshotVisibilityState = \"hidden\"\n)\n```\n\n```go\ntype ViewStarted struct {\n\tConnectorName            string  `json:\"connector_name\" api:\"required\"`\n\tConnectorVersion         string  `json:\"connector_version\" api:\"required\"`\n\tDeliveryHostname         string  `json:\"delivery_hostname\" api:\"required\"`\n\tDeliveryRequestCount     float64 `json:\"delivery_request_count\" api:\"required\"`\n\tDeliveryThroughputBps    float64 `json:\"delivery_throughput_bps\" api:\"required\"`\n\tDeliveryTransferredBytes float64 `json:\"delivery_transferred_bytes\" api:\"required\"`\n\tDroppedVideoFrames       float64 `json:\"dropped_video_frames\" api:\"required\"`\n\tEnvironment              string  `json:\"environment\" api:\"required\"`\n\t// Any of \"aborted\", \"network\", \"decode\", \"unsupported\", \"unknown\".\n\tErrorCategory          ViewStartedErrorCategory          `json:\"error_category\" api:\"required\"`\n\tErrorCode              ViewStartedErrorCodeUnion         `json:\"error_code\" api:\"required\"`\n\tErrorFatal             bool                              `json:\"error_fatal\" api:\"required\"`\n\tErrorPlayheadSeconds   float64                           `json:\"error_playhead_seconds\" api:\"required\"`\n\tEventID                string                            `json:\"event_id\" api:\"required\" format:\"uuid\"`\n\tEventName              constant.ChunkifyVideoViewStarted `json:\"event_name\" default:\"chunkify.video.view_started\"`\n\tFirstVideoFrameTimeMs  float64                           `json:\"first_video_frame_time_ms\" api:\"required\"`\n\tFurthestProgressRatio  float64                           `json:\"furthest_progress_ratio\" api:\"required\"`\n\tMaximumPlayheadSeconds float64                           `json:\"maximum_playhead_seconds\" api:\"required\"`\n\tMediaDurationSeconds   float64                           `json:\"media_duration_seconds\" api:\"required\"`\n\tMediaHeightPx          float64                           `json:\"media_height_px\" api:\"required\"`\n\tMediaWidthPx           float64                           `json:\"media_width_px\" api:\"required\"`\n\tOccurredAt             time.Time                         `json:\"occurred_at\" api:\"required\" format:\"date-time\"`\n\tPlayerHeightPx         float64                           `json:\"player_height_px\" api:\"required\"`\n\tPlayerName             string                            `json:\"player_name\" api:\"required\"`\n\tPlayerVersion          string                            `json:\"player_version\" api:\"required\"`\n\tPlayerWidthPx          float64                           `json:\"player_width_px\" api:\"required\"`\n\tPlayingTimeMs          float64                           `json:\"playing_time_ms\" api:\"required\"`\n\t// Any of \"ended\", \"destroyed\", \"source_changed\", \"page_exit\".\n\tReason               ViewStartedReason             `json:\"reason\" api:\"required\"`\n\tRebufferCount        float64                       `json:\"rebuffer_count\" api:\"required\"`\n\tRebufferDurationMs   float64                       `json:\"rebuffer_duration_ms\" api:\"required\"`\n\tRebufferRatio        float64                       `json:\"rebuffer_ratio\" api:\"required\"`\n\tRenditionPlayingTime []shared.RenditionPlayingTime `json:\"rendition_playing_time\" api:\"required\"`\n\tRenditionSwitchCount float64                       `json:\"rendition_switch_count\" api:\"required\"`\n\tSchemaVersion        float64                       `json:\"schema_version\" api:\"required\"`\n\t// Name of the SDK or integration that produced the event. Informational metadata,\n\t// preserved as received. Must contain at least one non-whitespace character.\n\tSDKName                     string  `json:\"sdk_name\" api:\"required\"`\n\tSDKVersion                  string  `json:\"sdk_version\" api:\"required\"`\n\tSeekCount                   float64 `json:\"seek_count\" api:\"required\"`\n\tSeekDurationMs              float64 `json:\"seek_duration_ms\" api:\"required\"`\n\tSelectedRenditionBitrateBps float64 `json:\"selected_rendition_bitrate_bps\" api:\"required\"`\n\tSelectedRenditionCodec      string  `json:\"selected_rendition_codec\" api:\"required\"`\n\tSelectedRenditionHeight     float64 `json:\"selected_rendition_height\" api:\"required\"`\n\tSelectedRenditionWidth      float64 `json:\"selected_rendition_width\" api:\"required\"`\n\tSequence                    int64   `json:\"sequence\" api:\"required\"`\n\t// Any of \"started\", \"failed_before_start\", \"ended_before_start\".\n\tStartupOutcome   ViewStartedStartupOutcome `json:\"startup_outcome\" api:\"required\"`\n\tStartupTimeMs    float64                   `json:\"startup_time_ms\" api:\"required\"`\n\tTotalVideoFrames float64                   `json:\"total_video_frames\" api:\"required\"`\n\tVideoID          string                    `json:\"video_id\" api:\"required\"`\n\tViewID           string                    `json:\"view_id\" api:\"required\" format:\"uuid\"`\n\t// Anonymous browser identifier generated by the Chunkify player SDK and stored in\n\t// the page's localStorage.\n\tViewerID string `json:\"viewer_id\" api:\"required\"`\n\t// Browser and device information. The Chunkify player sends every field, with null\n\t// for unavailable measurements. Other integrations may omit any field except\n\t// schema_version. Extra properties are preserved.\n\tBrowserContext shared.BrowserContext `json:\"browser_context\" api:\"nullable\"`\n\t// Integrator-defined dimensions set once when the view starts: at most 10 keys of\n\t// 1 to 40 characters a-z, 0-9 and \\_, each with text of 1 to 256 characters, a\n\t// number or a boolean. Reports compare values as text, exactly and\n\t// case-sensitively: numbers as their JSON text (5, 5.5; send whole numbers without\n\t// a decimal part, as JavaScript does), booleans as true or false. Only\n\t// view_started accepts custom. Never put personal data here; use user_id for user\n\t// identity.\n\tCustom shared.CustomDimensions `json:\"custom\"`\n\t// How the player receives the media: hls for an HLS stream, file for a single\n\t// media file such as an MP4 rendition; null when unknown. Optional: older SDKs\n\t// omit it. Reports read it from each view's first start. Unlike connector_name, it\n\t// does not depend on the playback engine: Safari's native HLS reports html-media.\n\t//\n\t// Any of \"hls\", \"file\".\n\tDeliveryFormat ViewStartedDeliveryFormat `json:\"delivery_format\" api:\"nullable\"`\n\t// Current playback rate, rounded to two decimals, such as 1, 1.5 or 2; from 0.01\n\t// to 16. Optional.\n\tPlaybackRate float64 `json:\"playback_rate\" api:\"nullable\"`\n\t// Cumulative playing time per playback rate for this attempt. At most 32 entries.\n\t// Optional.\n\tPlaybackRatePlayingTime []shared.PlaybackRatePlayingTime `json:\"playback_rate_playing_time\" api:\"nullable\"`\n\t// Cumulative played media ranges for this attempt, sorted and merged without\n\t// overlaps. Seeking, pauses and buffering are excluded. Missing or null means\n\t// unavailable; an empty array means measured but no section played. Replaying a\n\t// section does not add another range.\n\tPlayedRanges []shared.PlayedRange `json:\"played_ranges\" api:\"nullable\"`\n\t// Current media position at this event, not the maximum reached.\n\tPlayheadSeconds float64 `json:\"playhead_seconds\" api:\"nullable\"`\n\t// Language tag (BCP 47) of the showing subtitles or captions track; und when the\n\t// track declares no language; null when subtitles are off. Optional.\n\tSubtitleLanguage string `json:\"subtitle_language\" api:\"nullable\"`\n\t// Cumulative playing time per subtitle language for this attempt, null language\n\t// meaning subtitles off. At most 32 entries. Optional.\n\tSubtitlePlayingTime []shared.SubtitlePlayingTime `json:\"subtitle_playing_time\" api:\"nullable\"`\n\t// Optional integrator-supplied user ID, used to link views to the integrator's own\n\t// users.\n\tUserID string `json:\"user_id\" api:\"nullable\"`\n\t// Optional human-readable video title for reports.\n\tVideoTitle string `json:\"video_title\" api:\"nullable\"`\n\t// Tab visibility when the event was recorded. Hidden does not imply paused\n\t// playback or identify the cause of a pause. Missing on older events; null when\n\t// unavailable.\n\t//\n\t// Any of \"visible\", \"hidden\".\n\tVisibilityState ViewStartedVisibilityState `json:\"visibility_state\" api:\"nullable\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tConnectorName               respjson.Field\n\t\tConnectorVersion            respjson.Field\n\t\tDeliveryHostname            respjson.Field\n\t\tDeliveryRequestCount        respjson.Field\n\t\tDeliveryThroughputBps       respjson.Field\n\t\tDeliveryTransferredBytes    respjson.Field\n\t\tDroppedVideoFrames          respjson.Field\n\t\tEnvironment                 respjson.Field\n\t\tErrorCategory               respjson.Field\n\t\tErrorCode                   respjson.Field\n\t\tErrorFatal                  respjson.Field\n\t\tErrorPlayheadSeconds        respjson.Field\n\t\tEventID                     respjson.Field\n\t\tEventName                   respjson.Field\n\t\tFirstVideoFrameTimeMs       respjson.Field\n\t\tFurthestProgressRatio       respjson.Field\n\t\tMaximumPlayheadSeconds      respjson.Field\n\t\tMediaDurationSeconds        respjson.Field\n\t\tMediaHeightPx               respjson.Field\n\t\tMediaWidthPx                respjson.Field\n\t\tOccurredAt                  respjson.Field\n\t\tPlayerHeightPx              respjson.Field\n\t\tPlayerName                  respjson.Field\n\t\tPlayerVersion               respjson.Field\n\t\tPlayerWidthPx               respjson.Field\n\t\tPlayingTimeMs               respjson.Field\n\t\tReason                      respjson.Field\n\t\tRebufferCount               respjson.Field\n\t\tRebufferDurationMs          respjson.Field\n\t\tRebufferRatio               respjson.Field\n\t\tRenditionPlayingTime        respjson.Field\n\t\tRenditionSwitchCount        respjson.Field\n\t\tSchemaVersion               respjson.Field\n\t\tSDKName                     respjson.Field\n\t\tSDKVersion                  respjson.Field\n\t\tSeekCount                   respjson.Field\n\t\tSeekDurationMs              respjson.Field\n\t\tSelectedRenditionBitrateBps respjson.Field\n\t\tSelectedRenditionCodec      respjson.Field\n\t\tSelectedRenditionHeight     respjson.Field\n\t\tSelectedRenditionWidth      respjson.Field\n\t\tSequence                    respjson.Field\n\t\tStartupOutcome              respjson.Field\n\t\tStartupTimeMs               respjson.Field\n\t\tTotalVideoFrames            respjson.Field\n\t\tVideoID                     respjson.Field\n\t\tViewID                      respjson.Field\n\t\tViewerID                    respjson.Field\n\t\tBrowserContext              respjson.Field\n\t\tCustom                      respjson.Field\n\t\tDeliveryFormat              respjson.Field\n\t\tPlaybackRate                respjson.Field\n\t\tPlaybackRatePlayingTime     respjson.Field\n\t\tPlayedRanges                respjson.Field\n\t\tPlayheadSeconds             respjson.Field\n\t\tSubtitleLanguage            respjson.Field\n\t\tSubtitlePlayingTime         respjson.Field\n\t\tUserID                      respjson.Field\n\t\tVideoTitle                  respjson.Field\n\t\tVisibilityState             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 ViewStarted) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r ViewStarted) ToParam() ViewStartedParam\n```\nToParam converts this ViewStarted to a ViewStartedParam.\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 ViewStartedParam.Overrides()\n\n```go\nfunc (r *ViewStarted) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ViewStartedDeliveryFormat string\n```\nHow the player receives the media: hls for an HLS stream, file for a single media file such as an MP4 rendition; null when unknown. Optional: older SDKs omit it. Reports read it from each view's first start. Unlike connector\\_name, it does not depend on the playback engine: Safari's native HLS reports html-media.\n\n```go\nconst (\n\tViewStartedDeliveryFormatHls  ViewStartedDeliveryFormat = \"hls\"\n\tViewStartedDeliveryFormatFile ViewStartedDeliveryFormat = \"file\"\n)\n```\n\n```go\ntype ViewStartedErrorCategory string\n```\n\n```go\nconst (\n\tViewStartedErrorCategoryAborted     ViewStartedErrorCategory = \"aborted\"\n\tViewStartedErrorCategoryNetwork     ViewStartedErrorCategory = \"network\"\n\tViewStartedErrorCategoryDecode      ViewStartedErrorCategory = \"decode\"\n\tViewStartedErrorCategoryUnsupported ViewStartedErrorCategory = \"unsupported\"\n\tViewStartedErrorCategoryUnknown     ViewStartedErrorCategory = \"unknown\"\n)\n```\n\n```go\ntype ViewStartedErrorCodeUnion struct {\n\t// This field will be present if the value is a [string] instead of an object.\n\tOfString string `json:\",inline\"`\n\t// This field will be present if the value is a [float64] instead of an object.\n\tOfFloat float64 `json:\",inline\"`\n\tJSON    struct {\n\t\tOfString respjson.Field\n\t\tOfFloat  respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nViewStartedErrorCodeUnion contains all possible properties and values from \\[string], \\[float64].\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\nIf the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat]\n\n```go\nfunc (u ViewStartedErrorCodeUnion) AsFloat() (v float64)\n```\n\n```go\nfunc (u ViewStartedErrorCodeUnion) AsString() (v string)\n```\n\n```go\nfunc (u ViewStartedErrorCodeUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ViewStartedErrorCodeUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ViewStartedErrorCodeUnionParam struct {\n\tOfString param.Opt[string]  `json:\",omitzero,inline\"`\n\tOfFloat  param.Opt[float64] `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-analytics-go/packages/param#IsOmitted) to confirm if a field is set.\n\n```go\nfunc (u ViewStartedErrorCodeUnionParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (u *ViewStartedErrorCodeUnionParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ViewStartedParam struct {\n\tConnectorVersion         param.Opt[string]  `json:\"connector_version,omitzero\" api:\"required\"`\n\tDeliveryHostname         param.Opt[string]  `json:\"delivery_hostname,omitzero\" api:\"required\"`\n\tDeliveryRequestCount     param.Opt[float64] `json:\"delivery_request_count,omitzero\" api:\"required\"`\n\tDeliveryThroughputBps    param.Opt[float64] `json:\"delivery_throughput_bps,omitzero\" api:\"required\"`\n\tDeliveryTransferredBytes param.Opt[float64] `json:\"delivery_transferred_bytes,omitzero\" api:\"required\"`\n\tDroppedVideoFrames       param.Opt[float64] `json:\"dropped_video_frames,omitzero\" api:\"required\"`\n\tEnvironment              param.Opt[string]  `json:\"environment,omitzero\" api:\"required\"`\n\t// Any of \"aborted\", \"network\", \"decode\", \"unsupported\", \"unknown\".\n\tErrorCategory         param.Opt[ViewStartedErrorCategory] `json:\"error_category,omitzero\" api:\"required\"`\n\tErrorFatal            param.Opt[bool]                     `json:\"error_fatal,omitzero\" api:\"required\"`\n\tErrorPlayheadSeconds  param.Opt[float64]                  `json:\"error_playhead_seconds,omitzero\" api:\"required\"`\n\tFirstVideoFrameTimeMs param.Opt[float64]                  `json:\"first_video_frame_time_ms,omitzero\" api:\"required\"`\n\tFurthestProgressRatio param.Opt[float64]                  `json:\"furthest_progress_ratio,omitzero\" api:\"required\"`\n\tMediaDurationSeconds  param.Opt[float64]                  `json:\"media_duration_seconds,omitzero\" api:\"required\"`\n\tMediaHeightPx         param.Opt[float64]                  `json:\"media_height_px,omitzero\" api:\"required\"`\n\tMediaWidthPx          param.Opt[float64]                  `json:\"media_width_px,omitzero\" api:\"required\"`\n\tPlayerHeightPx        param.Opt[float64]                  `json:\"player_height_px,omitzero\" api:\"required\"`\n\tPlayerName            param.Opt[string]                   `json:\"player_name,omitzero\" api:\"required\"`\n\tPlayerVersion         param.Opt[string]                   `json:\"player_version,omitzero\" api:\"required\"`\n\tPlayerWidthPx         param.Opt[float64]                  `json:\"player_width_px,omitzero\" api:\"required\"`\n\t// Any of \"ended\", \"destroyed\", \"source_changed\", \"page_exit\".\n\tReason                      param.Opt[ViewStartedReason] `json:\"reason,omitzero\" api:\"required\"`\n\tRebufferRatio               param.Opt[float64]           `json:\"rebuffer_ratio,omitzero\" api:\"required\"`\n\tRenditionSwitchCount        param.Opt[float64]           `json:\"rendition_switch_count,omitzero\" api:\"required\"`\n\tSelectedRenditionBitrateBps param.Opt[float64]           `json:\"selected_rendition_bitrate_bps,omitzero\" api:\"required\"`\n\tSelectedRenditionCodec      param.Opt[string]            `json:\"selected_rendition_codec,omitzero\" api:\"required\"`\n\tSelectedRenditionHeight     param.Opt[float64]           `json:\"selected_rendition_height,omitzero\" api:\"required\"`\n\tSelectedRenditionWidth      param.Opt[float64]           `json:\"selected_rendition_width,omitzero\" api:\"required\"`\n\t// Any of \"started\", \"failed_before_start\", \"ended_before_start\".\n\tStartupOutcome   param.Opt[ViewStartedStartupOutcome] `json:\"startup_outcome,omitzero\" api:\"required\"`\n\tStartupTimeMs    param.Opt[float64]                   `json:\"startup_time_ms,omitzero\" api:\"required\"`\n\tTotalVideoFrames param.Opt[float64]                   `json:\"total_video_frames,omitzero\" api:\"required\"`\n\t// Anonymous browser identifier generated by the Chunkify player SDK and stored in\n\t// the page's localStorage.\n\tViewerID               param.Opt[string]                  `json:\"viewer_id,omitzero\" api:\"required\"`\n\tErrorCode              ViewStartedErrorCodeUnionParam     `json:\"error_code,omitzero\" api:\"required\"`\n\tRenditionPlayingTime   []shared.RenditionPlayingTimeParam `json:\"rendition_playing_time,omitzero\" api:\"required\"`\n\tConnectorName          string                             `json:\"connector_name\" api:\"required\"`\n\tEventID                string                             `json:\"event_id\" api:\"required\" format:\"uuid\"`\n\tMaximumPlayheadSeconds float64                            `json:\"maximum_playhead_seconds\" api:\"required\"`\n\tOccurredAt             time.Time                          `json:\"occurred_at\" api:\"required\" format:\"date-time\"`\n\tPlayingTimeMs          float64                            `json:\"playing_time_ms\" api:\"required\"`\n\tRebufferCount          float64                            `json:\"rebuffer_count\" api:\"required\"`\n\tRebufferDurationMs     float64                            `json:\"rebuffer_duration_ms\" api:\"required\"`\n\t// Name of the SDK or integration that produced the event. Informational metadata,\n\t// preserved as received. Must contain at least one non-whitespace character.\n\tSDKName        string  `json:\"sdk_name\" api:\"required\"`\n\tSDKVersion     string  `json:\"sdk_version\" api:\"required\"`\n\tSeekCount      float64 `json:\"seek_count\" api:\"required\"`\n\tSeekDurationMs float64 `json:\"seek_duration_ms\" api:\"required\"`\n\tSequence       int64   `json:\"sequence\" api:\"required\"`\n\tVideoID        string  `json:\"video_id\" api:\"required\"`\n\tViewID         string  `json:\"view_id\" api:\"required\" format:\"uuid\"`\n\t// How the player receives the media: hls for an HLS stream, file for a single\n\t// media file such as an MP4 rendition; null when unknown. Optional: older SDKs\n\t// omit it. Reports read it from each view's first start. Unlike connector_name, it\n\t// does not depend on the playback engine: Safari's native HLS reports html-media.\n\t//\n\t// Any of \"hls\", \"file\".\n\tDeliveryFormat param.Opt[ViewStartedDeliveryFormat] `json:\"delivery_format,omitzero\"`\n\t// Current playback rate, rounded to two decimals, such as 1, 1.5 or 2; from 0.01\n\t// to 16. Optional.\n\tPlaybackRate param.Opt[float64] `json:\"playback_rate,omitzero\"`\n\t// Current media position at this event, not the maximum reached.\n\tPlayheadSeconds param.Opt[float64] `json:\"playhead_seconds,omitzero\"`\n\t// Language tag (BCP 47) of the showing subtitles or captions track; und when the\n\t// track declares no language; null when subtitles are off. Optional.\n\tSubtitleLanguage param.Opt[string] `json:\"subtitle_language,omitzero\"`\n\t// Optional integrator-supplied user ID, used to link views to the integrator's own\n\t// users.\n\tUserID param.Opt[string] `json:\"user_id,omitzero\"`\n\t// Optional human-readable video title for reports.\n\tVideoTitle param.Opt[string] `json:\"video_title,omitzero\"`\n\t// Tab visibility when the event was recorded. Hidden does not imply paused\n\t// playback or identify the cause of a pause. Missing on older events; null when\n\t// unavailable.\n\t//\n\t// Any of \"visible\", \"hidden\".\n\tVisibilityState param.Opt[ViewStartedVisibilityState] `json:\"visibility_state,omitzero\"`\n\t// Cumulative playing time per playback rate for this attempt. At most 32 entries.\n\t// Optional.\n\tPlaybackRatePlayingTime []shared.PlaybackRatePlayingTimeParam `json:\"playback_rate_playing_time,omitzero\"`\n\t// Cumulative played media ranges for this attempt, sorted and merged without\n\t// overlaps. Seeking, pauses and buffering are excluded. Missing or null means\n\t// unavailable; an empty array means measured but no section played. Replaying a\n\t// section does not add another range.\n\tPlayedRanges []shared.PlayedRangeParam `json:\"played_ranges,omitzero\"`\n\t// Cumulative playing time per subtitle language for this attempt, null language\n\t// meaning subtitles off. At most 32 entries. Optional.\n\tSubtitlePlayingTime []shared.SubtitlePlayingTimeParam `json:\"subtitle_playing_time,omitzero\"`\n\t// Browser and device information. The Chunkify player sends every field, with null\n\t// for unavailable measurements. Other integrations may omit any field except\n\t// schema_version. Extra properties are preserved.\n\tBrowserContext shared.BrowserContextParam `json:\"browser_context,omitzero\"`\n\t// Integrator-defined dimensions set once when the view starts: at most 10 keys of\n\t// 1 to 40 characters a-z, 0-9 and \\_, each with text of 1 to 256 characters, a\n\t// number or a boolean. Reports compare values as text, exactly and\n\t// case-sensitively: numbers as their JSON text (5, 5.5; send whole numbers without\n\t// a decimal part, as JavaScript does), booleans as true or false. Only\n\t// view_started accepts custom. Never put personal data here; use user_id for user\n\t// identity.\n\tCustom shared.CustomDimensionsParam `json:\"custom,omitzero\"`\n\t// This field can be elided, and will marshal its zero value as\n\t// \"chunkify.video.view_started\".\n\tEventName constant.ChunkifyVideoViewStarted `json:\"event_name\" default:\"chunkify.video.view_started\"`\n\t// This field can be elided, and will marshal its zero value as 1.\n\tSchemaVersion float64 `json:\"schema_version,omitzero\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nThe properties ConnectorName, ConnectorVersion, DeliveryHostname, DeliveryRequestCount, DeliveryThroughputBps, DeliveryTransferredBytes, DroppedVideoFrames, Environment, ErrorCategory, ErrorCode, ErrorFatal, ErrorPlayheadSeconds, EventID, EventName, FirstVideoFrameTimeMs, FurthestProgressRatio, MaximumPlayheadSeconds, MediaDurationSeconds, MediaHeightPx, MediaWidthPx, OccurredAt, PlayerHeightPx, PlayerName, PlayerVersion, PlayerWidthPx, PlayingTimeMs, Reason, RebufferCount, RebufferDurationMs, RebufferRatio, RenditionPlayingTime, RenditionSwitchCount, SchemaVersion, SDKName, SDKVersion, SeekCount, SeekDurationMs, SelectedRenditionBitrateBps, SelectedRenditionCodec, SelectedRenditionHeight, SelectedRenditionWidth, Sequence, StartupOutcome, StartupTimeMs, TotalVideoFrames, VideoID, ViewID, ViewerID are required.\n\n```go\nfunc (r ViewStartedParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *ViewStartedParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ViewStartedReason string\n```\n\n```go\nconst (\n\tViewStartedReasonEnded         ViewStartedReason = \"ended\"\n\tViewStartedReasonDestroyed     ViewStartedReason = \"destroyed\"\n\tViewStartedReasonSourceChanged ViewStartedReason = \"source_changed\"\n\tViewStartedReasonPageExit      ViewStartedReason = \"page_exit\"\n)\n```\n\n```go\ntype ViewStartedStartupOutcome string\n```\n\n```go\nconst (\n\tViewStartedStartupOutcomeStarted           ViewStartedStartupOutcome = \"started\"\n\tViewStartedStartupOutcomeFailedBeforeStart ViewStartedStartupOutcome = \"failed_before_start\"\n\tViewStartedStartupOutcomeEndedBeforeStart  ViewStartedStartupOutcome = \"ended_before_start\"\n)\n```\n\n```go\ntype ViewStartedVisibilityState string\n```\nTab visibility when the event was recorded. Hidden does not imply paused playback or identify the cause of a pause. Missing on older events; null when unavailable.\n\n```go\nconst (\n\tViewStartedVisibilityStateVisible ViewStartedVisibilityState = \"visible\"\n\tViewStartedVisibilityStateHidden  ViewStartedVisibilityState = \"hidden\"\n)\n```\n\n```go\ntype WatchTimeDistribution = shared.WatchTimeDistribution\n```\nPlaying time in milliseconds from one selected final event or latest snapshot per view. Measured zero is included; missing measurements are excluded. Percentiles use linear interpolation and are null without samples. This sample denominator differs from average\\_playing\\_time\\_ms, which uses all attempts.\n\nThis is an alias to an internal type.\n\n```go\ntype WatchTimeDistributionDistribution = shared.WatchTimeDistributionDistribution\n```\nMutually exclusive playing-time buckets: \\[0,10s), \\[10s,30s), \\[30s,60s), \\[1m,5m), \\[5m,infinity). Counts sum to sample\\_views.\n\nThis is an alias to an internal type.\n\n","path":"github.com/chunkifydev/chunkify-analytics-go","name":"chunkifyanalytics","synopsis":"","isRedistributable":true}
