From 1880aba97851d5d10221d87b79b09f5df99c2526 Mon Sep 17 00:00:00 2001 From: mrunal-pp <83420916+mrunal-pp@users.noreply.github.com> Date: Thu, 23 Oct 2025 16:32:17 +0000 Subject: [PATCH] re-generate sdk --- isp/.openapi-generator/FILES | 4 + isp/api_transcoder_telemetry.go | 259 +++++++++++++++ isp/model_channel_signaling.go | 2 +- ...del_channel_signaling_blackout_settings.go | 2 +- ...ignaling_blackout_settings_slates_inner.go | 2 +- ...hannel_signaling_segment_settings_inner.go | 2 +- ...annel_transcode_subtitle_encoders_inner.go | 36 ++ ...e_subtitle_encoders_inner_atsc_captions.go | 2 +- ...nscode_subtitle_encoders_inner_teletext.go | 2 +- ...e_subtitle_encoders_inner_transcription.go | 126 +++++++ ...l_list_content_segment_history_response.go | 162 +++++++++ ...history_response_content_segments_inner.go | 311 +++++++++++++++++ ...onse_content_segments_inner_upids_inner.go | 161 +++++++++ isp/model_segment.go | 2 +- isp/test/api_transcoder_telemetry_test.go | 15 + spec/isp.yaml | 313 +++++++++++++++++- 16 files changed, 1388 insertions(+), 13 deletions(-) create mode 100644 isp/model_channel_transcode_subtitle_encoders_inner_transcription.go create mode 100644 isp/model_list_content_segment_history_response.go create mode 100644 isp/model_list_content_segment_history_response_content_segments_inner.go create mode 100644 isp/model_list_content_segment_history_response_content_segments_inner_upids_inner.go diff --git a/isp/.openapi-generator/FILES b/isp/.openapi-generator/FILES index a35dc7f..0032aca 100644 --- a/isp/.openapi-generator/FILES +++ b/isp/.openapi-generator/FILES @@ -84,6 +84,7 @@ model_channel_transcode_segmenter.go model_channel_transcode_subtitle_encoders_inner.go model_channel_transcode_subtitle_encoders_inner_atsc_captions.go model_channel_transcode_subtitle_encoders_inner_teletext.go +model_channel_transcode_subtitle_encoders_inner_transcription.go model_channel_transcode_thumbnail_encoders_inner.go model_channel_transcode_video_encoders_inner.go model_channel_transcode_video_encoders_inner_h264.go @@ -160,6 +161,9 @@ model_list_clips_for_vod_response.go model_list_clips_for_vod_response_channel_clips_inner.go model_list_clips_for_vod_response_channel_clips_inner_clips_inner.go model_list_clips_response.go +model_list_content_segment_history_response.go +model_list_content_segment_history_response_content_segments_inner.go +model_list_content_segment_history_response_content_segments_inner_upids_inner.go model_list_products_response.go model_list_programs_response.go model_list_programs_response_programs_inner.go diff --git a/isp/api_transcoder_telemetry.go b/isp/api_transcoder_telemetry.go index d451396..4d18500 100644 --- a/isp/api_transcoder_telemetry.go +++ b/isp/api_transcoder_telemetry.go @@ -22,6 +22,23 @@ import ( type TranscoderTelemetryApi interface { + /* + ListContentSegmentHistory List Channel Content Segments History + + Returns content segment history for a channel. + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param org Organization name + @param channelId Unique channel identifier + @return ApiListContentSegmentHistoryRequest + */ + ListContentSegmentHistory(ctx context.Context, org string, channelId string) ApiListContentSegmentHistoryRequest + + // ListContentSegmentHistoryExecute executes the request + // @return ListContentSegmentHistoryResponse + ListContentSegmentHistoryExecute(r ApiListContentSegmentHistoryRequest) (*ListContentSegmentHistoryResponse, *http.Response, error) + /* ListRawScteHistory Get SCTE-35 History @@ -58,6 +75,248 @@ type TranscoderTelemetryApi interface { // TranscoderTelemetryApiService TranscoderTelemetryApi service type TranscoderTelemetryApiService service +type ApiListContentSegmentHistoryRequest struct { + ctx context.Context + ApiService TranscoderTelemetryApi + org string + channelId string + from *time.Time + to *time.Time + segmentTypes *[]string + upidType *int32 + upidId *string +} + +// ISO 8601 UTC timestamp for start range of date filtering +func (r ApiListContentSegmentHistoryRequest) From(from time.Time) ApiListContentSegmentHistoryRequest { + r.from = &from + return r +} + +// ISO 8601 UTC timestamp for end range of date filtering +func (r ApiListContentSegmentHistoryRequest) To(to time.Time) ApiListContentSegmentHistoryRequest { + r.to = &to + return r +} + +// Filter by segment types. If not specified, all segment types are returned. Corresponds to the ChannelProto channeldoc.SignalingSegment ENUM names. +func (r ApiListContentSegmentHistoryRequest) SegmentTypes(segmentTypes []string) ApiListContentSegmentHistoryRequest { + r.segmentTypes = &segmentTypes + return r +} + +// Type part of the UPID. Required when upid_id is provided. +func (r ApiListContentSegmentHistoryRequest) UpidType(upidType int32) ApiListContentSegmentHistoryRequest { + r.upidType = &upidType + return r +} + +// ID part of the UPID. Accepts plain text and hex-encoded values prefixed with a 0x. Required when upid_type is provided +func (r ApiListContentSegmentHistoryRequest) UpidId(upidId string) ApiListContentSegmentHistoryRequest { + r.upidId = &upidId + return r +} + +func (r ApiListContentSegmentHistoryRequest) Execute() (*ListContentSegmentHistoryResponse, *http.Response, error) { + return r.ApiService.ListContentSegmentHistoryExecute(r) +} + +/* +ListContentSegmentHistory List Channel Content Segments History + +Returns content segment history for a channel. + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param org Organization name + @param channelId Unique channel identifier + @return ApiListContentSegmentHistoryRequest +*/ +func (a *TranscoderTelemetryApiService) ListContentSegmentHistory(ctx context.Context, org string, channelId string) ApiListContentSegmentHistoryRequest { + return ApiListContentSegmentHistoryRequest{ + ApiService: a, + ctx: ctx, + org: org, + channelId: channelId, + } +} + +// Execute executes the request +// @return ListContentSegmentHistoryResponse +func (a *TranscoderTelemetryApiService) ListContentSegmentHistoryExecute(r ApiListContentSegmentHistoryRequest) (*ListContentSegmentHistoryResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ListContentSegmentHistoryResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TranscoderTelemetryApiService.ListContentSegmentHistory") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v2/{org}/channels/{channel-id}/content-segment-history" + localVarPath = strings.Replace(localVarPath, "{"+"org"+"}", url.PathEscape(parameterToString(r.org, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"channel-id"+"}", url.PathEscape(parameterToString(r.channelId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if strlen(r.channelId) > 60 { + return localVarReturnValue, nil, reportError("channelId must have less than 60 elements") + } + + if r.from != nil { + localVarQueryParams.Add("from", parameterToString(*r.from, "")) + } + if r.to != nil { + localVarQueryParams.Add("to", parameterToString(*r.to, "")) + } + if r.segmentTypes != nil { + localVarQueryParams.Add("segment_types", parameterToString(*r.segmentTypes, "csv")) + } + if r.upidType != nil { + localVarQueryParams.Add("upid_type", parameterToString(*r.upidType, "")) + } + if r.upidId != nil { + localVarQueryParams.Add("upid_id", parameterToString(*r.upidId, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/problem+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 413 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 422 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 501 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 503 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + if disablePaging := r.ctx.Value(ContextDisablePaging); disablePaging == nil { + if uri := GetLink(localVarHTTPResponse, RelNext); uri != nil { + // This response is paginated. Read all the pages and append the items. + items, resp, err := getAllPages(a.client, localVarReturnValue, localVarHTTPResponse) + if err.Error() != "" { + return localVarReturnValue, localVarHTTPResponse, err + } + localVarReturnValue = items.(*ListContentSegmentHistoryResponse) + localVarHTTPResponse = resp + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + type ApiListRawScteHistoryRequest struct { ctx context.Context ApiService TranscoderTelemetryApi diff --git a/isp/model_channel_signaling.go b/isp/model_channel_signaling.go index 3050bcf..3e7aa81 100644 --- a/isp/model_channel_signaling.go +++ b/isp/model_channel_signaling.go @@ -26,7 +26,7 @@ type ChannelSignaling struct { // Settings that apply to specific segments. SegmentSettings []ChannelSignalingSegmentSettingsInner `json:"segment_settings,omitempty" doc:"Settings that apply to specific segments."` // Segment types to process for in-band signaling. - Segments []string `json:"segments,omitempty" uniqueItems:"true" enum:"SPLICE_INSERT,CONTENT_ID,PROGRAM,PROGRAM_BLACKOUT_OVERRIDE,PROGRAM_BREAKAWAY,CHAPTER,BREAK,OPENING_CREDIT,CLOSING_CREDIT,PROVIDER_PLACEMENT_OP,DISTRIBUTOR_PLACEMENT_OP,PROVIDER_OVERLAY_OP,DISTRIBUTOR_OVERLAY_OP,PROVIDER_AD,DISTRIBUTOR_AD,UNSCHEDULED_EVENT,NETWORK,SLATE,NOT_INDICATED,TIMED_METADATA" doc:"Segment types to process for in-band signaling."` + Segments []string `json:"segments,omitempty" uniqueItems:"true" enum:"SPLICE_INSERT,CONTENT_ID,PROGRAM,PROGRAM_BLACKOUT_OVERRIDE,PROGRAM_BREAKAWAY,CHAPTER,BREAK,OPENING_CREDIT,CLOSING_CREDIT,PROVIDER_PLACEMENT_OP,DISTRIBUTOR_PLACEMENT_OP,PROVIDER_OVERLAY_OP,DISTRIBUTOR_OVERLAY_OP,PROVIDER_AD,DISTRIBUTOR_AD,UNSCHEDULED_EVENT,NETWORK,SLATE,NOT_INDICATED,TIMED_METADATA,TIMED_METADATA_MARKER_OVER_SLATE" doc:"Segment types to process for in-band signaling."` } // NewChannelSignaling instantiates a new ChannelSignaling object diff --git a/isp/model_channel_signaling_blackout_settings.go b/isp/model_channel_signaling_blackout_settings.go index 5eafdd1..13d892e 100644 --- a/isp/model_channel_signaling_blackout_settings.go +++ b/isp/model_channel_signaling_blackout_settings.go @@ -21,7 +21,7 @@ type ChannelSignalingBlackoutSettings struct { // Default slate URL to use for blackouts. Can be overridden by the 'slates' field. DefaultBlackoutSlateUrl *string `json:"default_blackout_slate_url,omitempty" format:"uri-reference" doc:"Default slate URL to use for blackouts. Can be overridden by the 'slates' field."` // List of signaling segment types to force blackout, e.g. add 'SPLICE_INSERT' to blackout all ads signaled via SCTE-35 splice_insert. - ForceBlackoutSegments []string `json:"force_blackout_segments,omitempty" enum:"SPLICE_INSERT,CONTENT_ID,PROGRAM,PROGRAM_BLACKOUT_OVERRIDE,PROGRAM_BREAKAWAY,CHAPTER,BREAK,OPENING_CREDIT,CLOSING_CREDIT,PROVIDER_PLACEMENT_OP,DISTRIBUTOR_PLACEMENT_OP,PROVIDER_OVERLAY_OP,DISTRIBUTOR_OVERLAY_OP,PROVIDER_AD,DISTRIBUTOR_AD,UNSCHEDULED_EVENT,NETWORK,SLATE,NOT_INDICATED,TIMED_METADATA" doc:"List of signaling segment types to force blackout, e.g. add 'SPLICE_INSERT' to blackout all ads signaled via SCTE-35 splice_insert."` + ForceBlackoutSegments []string `json:"force_blackout_segments,omitempty" enum:"SPLICE_INSERT,CONTENT_ID,PROGRAM,PROGRAM_BLACKOUT_OVERRIDE,PROGRAM_BREAKAWAY,CHAPTER,BREAK,OPENING_CREDIT,CLOSING_CREDIT,PROVIDER_PLACEMENT_OP,DISTRIBUTOR_PLACEMENT_OP,PROVIDER_OVERLAY_OP,DISTRIBUTOR_OVERLAY_OP,PROVIDER_AD,DISTRIBUTOR_AD,UNSCHEDULED_EVENT,NETWORK,SLATE,NOT_INDICATED,TIMED_METADATA,TIMED_METADATA_MARKER_OVER_SLATE" doc:"List of signaling segment types to force blackout, e.g. add 'SPLICE_INSERT' to blackout all ads signaled via SCTE-35 splice_insert."` // Determines whether to honor the web_delivery_allowed attribute in SCTE-35 segmentation descriptors. When this is enabled, a segmentation descriptor with web_delivery_allowed=false will trigger a blackout. HonorWebDeliveryRestriction *bool `json:"honor_web_delivery_restriction,omitempty" doc:"Determines whether to honor the web_delivery_allowed attribute in SCTE-35 segmentation descriptors. When this is enabled, a segmentation descriptor with web_delivery_allowed=false will trigger a blackout."` // Per-segment type slate overrides. diff --git a/isp/model_channel_signaling_blackout_settings_slates_inner.go b/isp/model_channel_signaling_blackout_settings_slates_inner.go index f03a827..5bcdb74 100644 --- a/isp/model_channel_signaling_blackout_settings_slates_inner.go +++ b/isp/model_channel_signaling_blackout_settings_slates_inner.go @@ -21,7 +21,7 @@ type ChannelSignalingBlackoutSettingsSlatesInner struct { // Blackout slate URL to use for the specified segments. It must have one audio and one video stream. Either MPEG2 or H.264 can be used. BlackoutSlateUrl *string `json:"blackout_slate_url,omitempty" format:"uri-reference" doc:"Blackout slate URL to use for the specified segments. It must have one audio and one video stream. Either MPEG2 or H.264 can be used."` // Segment types that shall utilize the blackout slate URL. Any segment type defined here _must_ also be present in the parent signaling configuration. - Segments []string `json:"segments,omitempty" enum:"SPLICE_INSERT,CONTENT_ID,PROGRAM,PROGRAM_BLACKOUT_OVERRIDE,PROGRAM_BREAKAWAY,CHAPTER,BREAK,OPENING_CREDIT,CLOSING_CREDIT,PROVIDER_PLACEMENT_OP,DISTRIBUTOR_PLACEMENT_OP,PROVIDER_OVERLAY_OP,DISTRIBUTOR_OVERLAY_OP,PROVIDER_AD,DISTRIBUTOR_AD,UNSCHEDULED_EVENT,NETWORK,SLATE,NOT_INDICATED,TIMED_METADATA" doc:"Segment types that shall utilize the blackout slate URL. Any segment type defined here _must_ also be present in the parent signaling configuration."` + Segments []string `json:"segments,omitempty" enum:"SPLICE_INSERT,CONTENT_ID,PROGRAM,PROGRAM_BLACKOUT_OVERRIDE,PROGRAM_BREAKAWAY,CHAPTER,BREAK,OPENING_CREDIT,CLOSING_CREDIT,PROVIDER_PLACEMENT_OP,DISTRIBUTOR_PLACEMENT_OP,PROVIDER_OVERLAY_OP,DISTRIBUTOR_OVERLAY_OP,PROVIDER_AD,DISTRIBUTOR_AD,UNSCHEDULED_EVENT,NETWORK,SLATE,NOT_INDICATED,TIMED_METADATA,TIMED_METADATA_MARKER_OVER_SLATE" doc:"Segment types that shall utilize the blackout slate URL. Any segment type defined here _must_ also be present in the parent signaling configuration."` // Exclusive list of hex string encoded colon separated UPID Type:ID pairs (e.g. '0A:1A2B3C4D') to enable this blackout slate on. Upids []string `json:"upids,omitempty" doc:"Exclusive list of hex string encoded colon separated UPID Type:ID pairs (e.g. '0A:1A2B3C4D') to enable this blackout slate on."` } diff --git a/isp/model_channel_signaling_segment_settings_inner.go b/isp/model_channel_signaling_segment_settings_inner.go index 233266c..0d40b89 100644 --- a/isp/model_channel_signaling_segment_settings_inner.go +++ b/isp/model_channel_signaling_segment_settings_inner.go @@ -27,7 +27,7 @@ type ChannelSignalingSegmentSettingsInner struct { // Determines which Segment End signaling mode to use for the provided segments. If unspecified, defaults to MATCH_END_EVENT_ID. SegmentEndMode *string `json:"segment_end_mode,omitempty" enum:"MATCH_END_EVENT_ID,IGNORE_END_EVENT_ID,IGNORE_END_SIGNAL" doc:"Determines which Segment End signaling mode to use for the provided segments. If unspecified, defaults to MATCH_END_EVENT_ID."` // Specifies the list of which segment types this setting applies to. Any segment type defined here _must_ also be present in the parent signaling configuration. - Segments []string `json:"segments,omitempty" uniqueItems:"true" enum:"SPLICE_INSERT,CONTENT_ID,PROGRAM,PROGRAM_BLACKOUT_OVERRIDE,PROGRAM_BREAKAWAY,CHAPTER,BREAK,OPENING_CREDIT,CLOSING_CREDIT,PROVIDER_PLACEMENT_OP,DISTRIBUTOR_PLACEMENT_OP,PROVIDER_OVERLAY_OP,DISTRIBUTOR_OVERLAY_OP,PROVIDER_AD,DISTRIBUTOR_AD,UNSCHEDULED_EVENT,NETWORK,SLATE,NOT_INDICATED,TIMED_METADATA" doc:"Specifies the list of which segment types this setting applies to. Any segment type defined here _must_ also be present in the parent signaling configuration."` + Segments []string `json:"segments,omitempty" uniqueItems:"true" enum:"SPLICE_INSERT,CONTENT_ID,PROGRAM,PROGRAM_BLACKOUT_OVERRIDE,PROGRAM_BREAKAWAY,CHAPTER,BREAK,OPENING_CREDIT,CLOSING_CREDIT,PROVIDER_PLACEMENT_OP,DISTRIBUTOR_PLACEMENT_OP,PROVIDER_OVERLAY_OP,DISTRIBUTOR_OVERLAY_OP,PROVIDER_AD,DISTRIBUTOR_AD,UNSCHEDULED_EVENT,NETWORK,SLATE,NOT_INDICATED,TIMED_METADATA,TIMED_METADATA_MARKER_OVER_SLATE" doc:"Specifies the list of which segment types this setting applies to. Any segment type defined here _must_ also be present in the parent signaling configuration."` TierFilter *ChannelSignalingSegmentSettingsInnerTierFilter `json:"tier_filter,omitempty"` } diff --git a/isp/model_channel_transcode_subtitle_encoders_inner.go b/isp/model_channel_transcode_subtitle_encoders_inner.go index 5f43038..684b0de 100644 --- a/isp/model_channel_transcode_subtitle_encoders_inner.go +++ b/isp/model_channel_transcode_subtitle_encoders_inner.go @@ -26,6 +26,7 @@ type ChannelTranscodeSubtitleEncodersInner struct { // Used by the player to map text tracks to a quadrant, which represents a single view in a multiview layout. This value is opaque and not used by Aventus. Tag *string `json:"tag,omitempty" doc:"Used by the player to map text tracks to a quadrant, which represents a single view in a multiview layout. This value is opaque and not used by Aventus."` Teletext *ChannelTranscodeSubtitleEncodersInnerTeletext `json:"teletext,omitempty"` + Transcription *ChannelTranscodeSubtitleEncodersInnerTranscription `json:"transcription,omitempty"` // Usage indicates how this encoder should be flagged in generated manifests. Usage *string `json:"usage,omitempty" enum:"CLOSED_CAPTIONS,SUBTITLES" doc:"Usage indicates how this encoder should be flagged in generated manifests."` } @@ -207,6 +208,38 @@ func (o *ChannelTranscodeSubtitleEncodersInner) SetTeletext(v ChannelTranscodeSu o.Teletext = &v } +// GetTranscription returns the Transcription field value if set, zero value otherwise. +func (o *ChannelTranscodeSubtitleEncodersInner) GetTranscription() ChannelTranscodeSubtitleEncodersInnerTranscription { + if o == nil || IsNil(o.Transcription) { + var ret ChannelTranscodeSubtitleEncodersInnerTranscription + return ret + } + return *o.Transcription +} + +// GetTranscriptionOk returns a tuple with the Transcription field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ChannelTranscodeSubtitleEncodersInner) GetTranscriptionOk() (*ChannelTranscodeSubtitleEncodersInnerTranscription, bool) { + if o == nil || IsNil(o.Transcription) { + return nil, false + } + return o.Transcription, true +} + +// HasTranscription returns a boolean if a field has been set. +func (o *ChannelTranscodeSubtitleEncodersInner) HasTranscription() bool { + if o != nil && !IsNil(o.Transcription) { + return true + } + + return false +} + +// SetTranscription gets a reference to the given ChannelTranscodeSubtitleEncodersInnerTranscription and assigns it to the Transcription field. +func (o *ChannelTranscodeSubtitleEncodersInner) SetTranscription(v ChannelTranscodeSubtitleEncodersInnerTranscription) { + o.Transcription = &v +} + // GetUsage returns the Usage field value if set, zero value otherwise. func (o *ChannelTranscodeSubtitleEncodersInner) GetUsage() string { if o == nil || IsNil(o.Usage) { @@ -264,6 +297,9 @@ func (o ChannelTranscodeSubtitleEncodersInner) ToMap() (map[string]interface{}, if !IsNil(o.Teletext) { toSerialize["teletext"] = o.Teletext } + if !IsNil(o.Transcription) { + toSerialize["transcription"] = o.Transcription + } if !IsNil(o.Usage) { toSerialize["usage"] = o.Usage } diff --git a/isp/model_channel_transcode_subtitle_encoders_inner_atsc_captions.go b/isp/model_channel_transcode_subtitle_encoders_inner_atsc_captions.go index 6fd4133..9cf747e 100644 --- a/isp/model_channel_transcode_subtitle_encoders_inner_atsc_captions.go +++ b/isp/model_channel_transcode_subtitle_encoders_inner_atsc_captions.go @@ -16,7 +16,7 @@ import ( // checks if the ChannelTranscodeSubtitleEncodersInnerAtscCaptions type satisfies the MappedNullable interface at compile time var _ MappedNullable = &ChannelTranscodeSubtitleEncodersInnerAtscCaptions{} -// ChannelTranscodeSubtitleEncodersInnerAtscCaptions Extract subtitles from the ATSC caption encodings. The captions themselves are first sourced according to the Source.captions_source field. Only one of ['teletext', 'atsc_captions'] may be set. +// ChannelTranscodeSubtitleEncodersInnerAtscCaptions Extract subtitles from the ATSC caption encodings. The captions themselves are first sourced according to the Source.captions_source field. Only one of ['teletext', 'atsc_captions', 'transcription'] may be set. type ChannelTranscodeSubtitleEncodersInnerAtscCaptions struct { // If non-zero, decode captions from the CEA-608 logical channel number identified by this number. If zero, only CTA-708 captions will be decoded. The 'logical channel number' refers to the CCx name commonly used in literature: - CC1 is the NTSC odd field subchannel 1, considered the primary caption stream. - CC2 is the NTSC odd field subchannel 2, considered the tertiary caption stream. - CC3 is the NTSC even field subchannel 1, considered the secondary caption stream. - CC4 is the NTSC even field subchannel 2, considered the quaternary caption stream. Cea608 *int32 `json:"cea608,omitempty" format:"int32" minimum:"0" maximum:"4" doc:"If non-zero, decode captions from the CEA-608 logical channel number identified by this number. If zero, only CTA-708 captions will be decoded. The 'logical channel number' refers to the CCx name commonly used in literature: - CC1 is the NTSC odd field subchannel 1, considered the primary caption stream. - CC2 is the NTSC odd field subchannel 2, considered the tertiary caption stream. - CC3 is the NTSC even field subchannel 1, considered the secondary caption stream. - CC4 is the NTSC even field subchannel 2, considered the quaternary caption stream."` diff --git a/isp/model_channel_transcode_subtitle_encoders_inner_teletext.go b/isp/model_channel_transcode_subtitle_encoders_inner_teletext.go index c5c9943..38466f2 100644 --- a/isp/model_channel_transcode_subtitle_encoders_inner_teletext.go +++ b/isp/model_channel_transcode_subtitle_encoders_inner_teletext.go @@ -16,7 +16,7 @@ import ( // checks if the ChannelTranscodeSubtitleEncodersInnerTeletext type satisfies the MappedNullable interface at compile time var _ MappedNullable = &ChannelTranscodeSubtitleEncodersInnerTeletext{} -// ChannelTranscodeSubtitleEncodersInnerTeletext Extract subtitles from an embedded Teletext stream. The teletext PID is determined automatically. Only one of ['teletext', 'atsc_captions'] may be set. +// ChannelTranscodeSubtitleEncodersInnerTeletext Extract subtitles from an embedded Teletext stream. The teletext PID is determined automatically. Only one of ['teletext', 'atsc_captions', 'transcription'] may be set. type ChannelTranscodeSubtitleEncodersInnerTeletext struct { // If set, forces interpretation of the National Option field to choose from character sets in this specific set of character sets. Determining the correct value for this configuration is non-trivial, but there are some guidelines. Usually, all languages in one Teletext stream will use the same charset set. If only one set can handle all the languages, it's probably that one. Some of the sets roughly correspond to geopolitical divisions from the Cold War era: SET3 is roughly Yugoslavia plus Romania; SET4 is the rest of the former USSR/Warsaw Pact, including East Germany but excluding Poland; SET8 is Africa; SET10 is the Middle East. There does not seem to be any standard name for this configuration. The standard calls it 'the upper four bits of Triplet 1', which is highly ambiguous and nonsensical outside of the context of that usage. The decoder ffmpeg uses calls it 'region', but most of the sets cannot cleanly be described as any particular geographic region. CharsetSet *string `json:"charset_set,omitempty" enum:"SET0,SET1,SET2,SET3,SET4,SET6,SET8,SET10" doc:"If set, forces interpretation of the National Option field to choose from character sets in this specific set of character sets. Determining the correct value for this configuration is non-trivial, but there are some guidelines. Usually, all languages in one Teletext stream will use the same charset set. If only one set can handle all the languages, it's probably that one. Some of the sets roughly correspond to geopolitical divisions from the Cold War era: SET3 is roughly Yugoslavia plus Romania; SET4 is the rest of the former USSR/Warsaw Pact, including East Germany but excluding Poland; SET8 is Africa; SET10 is the Middle East. There does not seem to be any standard name for this configuration. The standard calls it 'the upper four bits of Triplet 1', which is highly ambiguous and nonsensical outside of the context of that usage. The decoder ffmpeg uses calls it 'region', but most of the sets cannot cleanly be described as any particular geographic region."` diff --git a/isp/model_channel_transcode_subtitle_encoders_inner_transcription.go b/isp/model_channel_transcode_subtitle_encoders_inner_transcription.go new file mode 100644 index 0000000..fb6b71f --- /dev/null +++ b/isp/model_channel_transcode_subtitle_encoders_inner_transcription.go @@ -0,0 +1,126 @@ +/* + * WBD Aventus Channels API + * + * API version: 0.0.0 + * Contact: live-control-plane-devs@wbd.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package isp + +import ( + "encoding/json" +) + +// checks if the ChannelTranscodeSubtitleEncodersInnerTranscription type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ChannelTranscodeSubtitleEncodersInnerTranscription{} + +// ChannelTranscodeSubtitleEncodersInnerTranscription Generate subtitles via automatic transcription of an audio source. Only one of ['teletext', 'atsc_captions', 'transcription'] may be set. +type ChannelTranscodeSubtitleEncodersInnerTranscription struct { + // Identifies the 'AudioSource' to be transcribed. + AudioSourceId *string `json:"audio_source_id,omitempty" minLength:"1" doc:"Identifies the 'AudioSource' to be transcribed."` +} + +// NewChannelTranscodeSubtitleEncodersInnerTranscription instantiates a new ChannelTranscodeSubtitleEncodersInnerTranscription object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewChannelTranscodeSubtitleEncodersInnerTranscription() *ChannelTranscodeSubtitleEncodersInnerTranscription { + this := ChannelTranscodeSubtitleEncodersInnerTranscription{} + return &this +} + +// NewChannelTranscodeSubtitleEncodersInnerTranscriptionWithDefaults instantiates a new ChannelTranscodeSubtitleEncodersInnerTranscription object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewChannelTranscodeSubtitleEncodersInnerTranscriptionWithDefaults() *ChannelTranscodeSubtitleEncodersInnerTranscription { + this := ChannelTranscodeSubtitleEncodersInnerTranscription{} + return &this +} + +// GetAudioSourceId returns the AudioSourceId field value if set, zero value otherwise. +func (o *ChannelTranscodeSubtitleEncodersInnerTranscription) GetAudioSourceId() string { + if o == nil || IsNil(o.AudioSourceId) { + var ret string + return ret + } + return *o.AudioSourceId +} + +// GetAudioSourceIdOk returns a tuple with the AudioSourceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ChannelTranscodeSubtitleEncodersInnerTranscription) GetAudioSourceIdOk() (*string, bool) { + if o == nil || IsNil(o.AudioSourceId) { + return nil, false + } + return o.AudioSourceId, true +} + +// HasAudioSourceId returns a boolean if a field has been set. +func (o *ChannelTranscodeSubtitleEncodersInnerTranscription) HasAudioSourceId() bool { + if o != nil && !IsNil(o.AudioSourceId) { + return true + } + + return false +} + +// SetAudioSourceId gets a reference to the given string and assigns it to the AudioSourceId field. +func (o *ChannelTranscodeSubtitleEncodersInnerTranscription) SetAudioSourceId(v string) { + o.AudioSourceId = &v +} + +func (o ChannelTranscodeSubtitleEncodersInnerTranscription) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ChannelTranscodeSubtitleEncodersInnerTranscription) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AudioSourceId) { + toSerialize["audio_source_id"] = o.AudioSourceId + } + return toSerialize, nil +} + +type NullableChannelTranscodeSubtitleEncodersInnerTranscription struct { + value *ChannelTranscodeSubtitleEncodersInnerTranscription + isSet bool +} + +func (v NullableChannelTranscodeSubtitleEncodersInnerTranscription) Get() *ChannelTranscodeSubtitleEncodersInnerTranscription { + return v.value +} + +func (v *NullableChannelTranscodeSubtitleEncodersInnerTranscription) Set(val *ChannelTranscodeSubtitleEncodersInnerTranscription) { + v.value = val + v.isSet = true +} + +func (v NullableChannelTranscodeSubtitleEncodersInnerTranscription) IsSet() bool { + return v.isSet +} + +func (v *NullableChannelTranscodeSubtitleEncodersInnerTranscription) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableChannelTranscodeSubtitleEncodersInnerTranscription(val *ChannelTranscodeSubtitleEncodersInnerTranscription) *NullableChannelTranscodeSubtitleEncodersInnerTranscription { + return &NullableChannelTranscodeSubtitleEncodersInnerTranscription{value: val, isSet: true} +} + +func (v NullableChannelTranscodeSubtitleEncodersInnerTranscription) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableChannelTranscodeSubtitleEncodersInnerTranscription) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/isp/model_list_content_segment_history_response.go b/isp/model_list_content_segment_history_response.go new file mode 100644 index 0000000..412dfeb --- /dev/null +++ b/isp/model_list_content_segment_history_response.go @@ -0,0 +1,162 @@ +/* + * WBD Aventus Channels API + * + * API version: 0.0.0 + * Contact: live-control-plane-devs@wbd.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package isp + +import ( + "encoding/json" +) + +// checks if the ListContentSegmentHistoryResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ListContentSegmentHistoryResponse{} + +// ListContentSegmentHistoryResponse struct for ListContentSegmentHistoryResponse +type ListContentSegmentHistoryResponse struct { + // An optional URL to a JSON Schema document describing this resource + Schema *string `json:"$schema,omitempty" format:"uri" doc:"An optional URL to a JSON Schema document describing this resource"` + ContentSegments []ListContentSegmentHistoryResponseContentSegmentsInner `json:"content_segments,omitempty"` +} + +// NewListContentSegmentHistoryResponse instantiates a new ListContentSegmentHistoryResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewListContentSegmentHistoryResponse() *ListContentSegmentHistoryResponse { + this := ListContentSegmentHistoryResponse{} + return &this +} + +// NewListContentSegmentHistoryResponseWithDefaults instantiates a new ListContentSegmentHistoryResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewListContentSegmentHistoryResponseWithDefaults() *ListContentSegmentHistoryResponse { + this := ListContentSegmentHistoryResponse{} + return &this +} + +// GetSchema returns the Schema field value if set, zero value otherwise. +func (o *ListContentSegmentHistoryResponse) GetSchema() string { + if o == nil || IsNil(o.Schema) { + var ret string + return ret + } + return *o.Schema +} + +// GetSchemaOk returns a tuple with the Schema field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListContentSegmentHistoryResponse) GetSchemaOk() (*string, bool) { + if o == nil || IsNil(o.Schema) { + return nil, false + } + return o.Schema, true +} + +// HasSchema returns a boolean if a field has been set. +func (o *ListContentSegmentHistoryResponse) HasSchema() bool { + if o != nil && !IsNil(o.Schema) { + return true + } + + return false +} + +// SetSchema gets a reference to the given string and assigns it to the Schema field. +func (o *ListContentSegmentHistoryResponse) SetSchema(v string) { + o.Schema = &v +} + +// GetContentSegments returns the ContentSegments field value if set, zero value otherwise. +func (o *ListContentSegmentHistoryResponse) GetContentSegments() []ListContentSegmentHistoryResponseContentSegmentsInner { + if o == nil || IsNil(o.ContentSegments) { + var ret []ListContentSegmentHistoryResponseContentSegmentsInner + return ret + } + return o.ContentSegments +} + +// GetContentSegmentsOk returns a tuple with the ContentSegments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListContentSegmentHistoryResponse) GetContentSegmentsOk() ([]ListContentSegmentHistoryResponseContentSegmentsInner, bool) { + if o == nil || IsNil(o.ContentSegments) { + return nil, false + } + return o.ContentSegments, true +} + +// HasContentSegments returns a boolean if a field has been set. +func (o *ListContentSegmentHistoryResponse) HasContentSegments() bool { + if o != nil && !IsNil(o.ContentSegments) { + return true + } + + return false +} + +// SetContentSegments gets a reference to the given []ListContentSegmentHistoryResponseContentSegmentsInner and assigns it to the ContentSegments field. +func (o *ListContentSegmentHistoryResponse) SetContentSegments(v []ListContentSegmentHistoryResponseContentSegmentsInner) { + o.ContentSegments = v +} + +func (o ListContentSegmentHistoryResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ListContentSegmentHistoryResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Schema) { + toSerialize["$schema"] = o.Schema + } + if !IsNil(o.ContentSegments) { + toSerialize["content_segments"] = o.ContentSegments + } + return toSerialize, nil +} + +type NullableListContentSegmentHistoryResponse struct { + value *ListContentSegmentHistoryResponse + isSet bool +} + +func (v NullableListContentSegmentHistoryResponse) Get() *ListContentSegmentHistoryResponse { + return v.value +} + +func (v *NullableListContentSegmentHistoryResponse) Set(val *ListContentSegmentHistoryResponse) { + v.value = val + v.isSet = true +} + +func (v NullableListContentSegmentHistoryResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableListContentSegmentHistoryResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableListContentSegmentHistoryResponse(val *ListContentSegmentHistoryResponse) *NullableListContentSegmentHistoryResponse { + return &NullableListContentSegmentHistoryResponse{value: val, isSet: true} +} + +func (v NullableListContentSegmentHistoryResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableListContentSegmentHistoryResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/isp/model_list_content_segment_history_response_content_segments_inner.go b/isp/model_list_content_segment_history_response_content_segments_inner.go new file mode 100644 index 0000000..999c328 --- /dev/null +++ b/isp/model_list_content_segment_history_response_content_segments_inner.go @@ -0,0 +1,311 @@ +/* + * WBD Aventus Channels API + * + * API version: 0.0.0 + * Contact: live-control-plane-devs@wbd.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package isp + +import ( + "encoding/json" + "time" +) + +// checks if the ListContentSegmentHistoryResponseContentSegmentsInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ListContentSegmentHistoryResponseContentSegmentsInner{} + +// ListContentSegmentHistoryResponseContentSegmentsInner struct for ListContentSegmentHistoryResponseContentSegmentsInner +type ListContentSegmentHistoryResponseContentSegmentsInner struct { + // end is the timestamp when the content segment ended. + End *time.Time `json:"end,omitempty" format:"date-time" doc:"end is the timestamp when the content segment ended."` + // segment_id is a unique id assigned by the transcoder + SegmentId *int32 `json:"segment_id,omitempty" format:"int32" minimum:"0" doc:"segment_id is a unique id assigned by the transcoder"` + // signal_source denotes whether the content segment was initiated by an in-band signaling event or an out-of-band signaling event where in-band signals are received in the source consumed by the transcoder. + SignalSource *string `json:"signal_source,omitempty" enum:"SIGNAL_SOURCE_UNDEFINED,SIGNAL_SOURCE_IN_BAND,SIGNAL_SOURCE_OUT_OF_BAND" doc:"signal_source denotes whether the content segment was initiated by an in-band signaling event or an out-of-band signaling event where in-band signals are received in the source consumed by the transcoder."` + // start is the timestamp when the content segment started. + Start *time.Time `json:"start,omitempty" format:"date-time" doc:"start is the timestamp when the content segment started."` + // The type of content segment. Currently only supports PROGRAM, CHAPTER, or BREAK. + Type *string `json:"type,omitempty" enum:"SPLICE_INSERT,CONTENT_ID,PROGRAM,PROGRAM_BLACKOUT_OVERRIDE,PROGRAM_BREAKAWAY,CHAPTER,BREAK,OPENING_CREDIT,CLOSING_CREDIT,PROVIDER_PLACEMENT_OP,DISTRIBUTOR_PLACEMENT_OP,PROVIDER_OVERLAY_OP,DISTRIBUTOR_OVERLAY_OP,PROVIDER_AD,DISTRIBUTOR_AD,UNSCHEDULED_EVENT,NETWORK,SLATE,NOT_INDICATED,TIMED_METADATA,TIMED_METADATA_MARKER_OVER_SLATE" doc:"The type of content segment. Currently only supports PROGRAM, CHAPTER, or BREAK."` + Upids []ListContentSegmentHistoryResponseContentSegmentsInnerUpidsInner `json:"upids,omitempty"` +} + +// NewListContentSegmentHistoryResponseContentSegmentsInner instantiates a new ListContentSegmentHistoryResponseContentSegmentsInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewListContentSegmentHistoryResponseContentSegmentsInner() *ListContentSegmentHistoryResponseContentSegmentsInner { + this := ListContentSegmentHistoryResponseContentSegmentsInner{} + return &this +} + +// NewListContentSegmentHistoryResponseContentSegmentsInnerWithDefaults instantiates a new ListContentSegmentHistoryResponseContentSegmentsInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewListContentSegmentHistoryResponseContentSegmentsInnerWithDefaults() *ListContentSegmentHistoryResponseContentSegmentsInner { + this := ListContentSegmentHistoryResponseContentSegmentsInner{} + return &this +} + +// GetEnd returns the End field value if set, zero value otherwise. +func (o *ListContentSegmentHistoryResponseContentSegmentsInner) GetEnd() time.Time { + if o == nil || IsNil(o.End) { + var ret time.Time + return ret + } + return *o.End +} + +// GetEndOk returns a tuple with the End field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListContentSegmentHistoryResponseContentSegmentsInner) GetEndOk() (*time.Time, bool) { + if o == nil || IsNil(o.End) { + return nil, false + } + return o.End, true +} + +// HasEnd returns a boolean if a field has been set. +func (o *ListContentSegmentHistoryResponseContentSegmentsInner) HasEnd() bool { + if o != nil && !IsNil(o.End) { + return true + } + + return false +} + +// SetEnd gets a reference to the given time.Time and assigns it to the End field. +func (o *ListContentSegmentHistoryResponseContentSegmentsInner) SetEnd(v time.Time) { + o.End = &v +} + +// GetSegmentId returns the SegmentId field value if set, zero value otherwise. +func (o *ListContentSegmentHistoryResponseContentSegmentsInner) GetSegmentId() int32 { + if o == nil || IsNil(o.SegmentId) { + var ret int32 + return ret + } + return *o.SegmentId +} + +// GetSegmentIdOk returns a tuple with the SegmentId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListContentSegmentHistoryResponseContentSegmentsInner) GetSegmentIdOk() (*int32, bool) { + if o == nil || IsNil(o.SegmentId) { + return nil, false + } + return o.SegmentId, true +} + +// HasSegmentId returns a boolean if a field has been set. +func (o *ListContentSegmentHistoryResponseContentSegmentsInner) HasSegmentId() bool { + if o != nil && !IsNil(o.SegmentId) { + return true + } + + return false +} + +// SetSegmentId gets a reference to the given int32 and assigns it to the SegmentId field. +func (o *ListContentSegmentHistoryResponseContentSegmentsInner) SetSegmentId(v int32) { + o.SegmentId = &v +} + +// GetSignalSource returns the SignalSource field value if set, zero value otherwise. +func (o *ListContentSegmentHistoryResponseContentSegmentsInner) GetSignalSource() string { + if o == nil || IsNil(o.SignalSource) { + var ret string + return ret + } + return *o.SignalSource +} + +// GetSignalSourceOk returns a tuple with the SignalSource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListContentSegmentHistoryResponseContentSegmentsInner) GetSignalSourceOk() (*string, bool) { + if o == nil || IsNil(o.SignalSource) { + return nil, false + } + return o.SignalSource, true +} + +// HasSignalSource returns a boolean if a field has been set. +func (o *ListContentSegmentHistoryResponseContentSegmentsInner) HasSignalSource() bool { + if o != nil && !IsNil(o.SignalSource) { + return true + } + + return false +} + +// SetSignalSource gets a reference to the given string and assigns it to the SignalSource field. +func (o *ListContentSegmentHistoryResponseContentSegmentsInner) SetSignalSource(v string) { + o.SignalSource = &v +} + +// GetStart returns the Start field value if set, zero value otherwise. +func (o *ListContentSegmentHistoryResponseContentSegmentsInner) GetStart() time.Time { + if o == nil || IsNil(o.Start) { + var ret time.Time + return ret + } + return *o.Start +} + +// GetStartOk returns a tuple with the Start field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListContentSegmentHistoryResponseContentSegmentsInner) GetStartOk() (*time.Time, bool) { + if o == nil || IsNil(o.Start) { + return nil, false + } + return o.Start, true +} + +// HasStart returns a boolean if a field has been set. +func (o *ListContentSegmentHistoryResponseContentSegmentsInner) HasStart() bool { + if o != nil && !IsNil(o.Start) { + return true + } + + return false +} + +// SetStart gets a reference to the given time.Time and assigns it to the Start field. +func (o *ListContentSegmentHistoryResponseContentSegmentsInner) SetStart(v time.Time) { + o.Start = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *ListContentSegmentHistoryResponseContentSegmentsInner) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListContentSegmentHistoryResponseContentSegmentsInner) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *ListContentSegmentHistoryResponseContentSegmentsInner) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *ListContentSegmentHistoryResponseContentSegmentsInner) SetType(v string) { + o.Type = &v +} + +// GetUpids returns the Upids field value if set, zero value otherwise. +func (o *ListContentSegmentHistoryResponseContentSegmentsInner) GetUpids() []ListContentSegmentHistoryResponseContentSegmentsInnerUpidsInner { + if o == nil || IsNil(o.Upids) { + var ret []ListContentSegmentHistoryResponseContentSegmentsInnerUpidsInner + return ret + } + return o.Upids +} + +// GetUpidsOk returns a tuple with the Upids field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListContentSegmentHistoryResponseContentSegmentsInner) GetUpidsOk() ([]ListContentSegmentHistoryResponseContentSegmentsInnerUpidsInner, bool) { + if o == nil || IsNil(o.Upids) { + return nil, false + } + return o.Upids, true +} + +// HasUpids returns a boolean if a field has been set. +func (o *ListContentSegmentHistoryResponseContentSegmentsInner) HasUpids() bool { + if o != nil && !IsNil(o.Upids) { + return true + } + + return false +} + +// SetUpids gets a reference to the given []ListContentSegmentHistoryResponseContentSegmentsInnerUpidsInner and assigns it to the Upids field. +func (o *ListContentSegmentHistoryResponseContentSegmentsInner) SetUpids(v []ListContentSegmentHistoryResponseContentSegmentsInnerUpidsInner) { + o.Upids = v +} + +func (o ListContentSegmentHistoryResponseContentSegmentsInner) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ListContentSegmentHistoryResponseContentSegmentsInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.End) { + toSerialize["end"] = o.End + } + if !IsNil(o.SegmentId) { + toSerialize["segment_id"] = o.SegmentId + } + if !IsNil(o.SignalSource) { + toSerialize["signal_source"] = o.SignalSource + } + if !IsNil(o.Start) { + toSerialize["start"] = o.Start + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.Upids) { + toSerialize["upids"] = o.Upids + } + return toSerialize, nil +} + +type NullableListContentSegmentHistoryResponseContentSegmentsInner struct { + value *ListContentSegmentHistoryResponseContentSegmentsInner + isSet bool +} + +func (v NullableListContentSegmentHistoryResponseContentSegmentsInner) Get() *ListContentSegmentHistoryResponseContentSegmentsInner { + return v.value +} + +func (v *NullableListContentSegmentHistoryResponseContentSegmentsInner) Set(val *ListContentSegmentHistoryResponseContentSegmentsInner) { + v.value = val + v.isSet = true +} + +func (v NullableListContentSegmentHistoryResponseContentSegmentsInner) IsSet() bool { + return v.isSet +} + +func (v *NullableListContentSegmentHistoryResponseContentSegmentsInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableListContentSegmentHistoryResponseContentSegmentsInner(val *ListContentSegmentHistoryResponseContentSegmentsInner) *NullableListContentSegmentHistoryResponseContentSegmentsInner { + return &NullableListContentSegmentHistoryResponseContentSegmentsInner{value: val, isSet: true} +} + +func (v NullableListContentSegmentHistoryResponseContentSegmentsInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableListContentSegmentHistoryResponseContentSegmentsInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/isp/model_list_content_segment_history_response_content_segments_inner_upids_inner.go b/isp/model_list_content_segment_history_response_content_segments_inner_upids_inner.go new file mode 100644 index 0000000..6ceca0f --- /dev/null +++ b/isp/model_list_content_segment_history_response_content_segments_inner_upids_inner.go @@ -0,0 +1,161 @@ +/* + * WBD Aventus Channels API + * + * API version: 0.0.0 + * Contact: live-control-plane-devs@wbd.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package isp + +import ( + "encoding/json" +) + +// checks if the ListContentSegmentHistoryResponseContentSegmentsInnerUpidsInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ListContentSegmentHistoryResponseContentSegmentsInnerUpidsInner{} + +// ListContentSegmentHistoryResponseContentSegmentsInnerUpidsInner struct for ListContentSegmentHistoryResponseContentSegmentsInnerUpidsInner +type ListContentSegmentHistoryResponseContentSegmentsInnerUpidsInner struct { + Id *string `json:"id,omitempty"` + Type *int32 `json:"type,omitempty" format:"int32"` +} + +// NewListContentSegmentHistoryResponseContentSegmentsInnerUpidsInner instantiates a new ListContentSegmentHistoryResponseContentSegmentsInnerUpidsInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewListContentSegmentHistoryResponseContentSegmentsInnerUpidsInner() *ListContentSegmentHistoryResponseContentSegmentsInnerUpidsInner { + this := ListContentSegmentHistoryResponseContentSegmentsInnerUpidsInner{} + return &this +} + +// NewListContentSegmentHistoryResponseContentSegmentsInnerUpidsInnerWithDefaults instantiates a new ListContentSegmentHistoryResponseContentSegmentsInnerUpidsInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewListContentSegmentHistoryResponseContentSegmentsInnerUpidsInnerWithDefaults() *ListContentSegmentHistoryResponseContentSegmentsInnerUpidsInner { + this := ListContentSegmentHistoryResponseContentSegmentsInnerUpidsInner{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ListContentSegmentHistoryResponseContentSegmentsInnerUpidsInner) GetId() string { + if o == nil || IsNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListContentSegmentHistoryResponseContentSegmentsInnerUpidsInner) GetIdOk() (*string, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ListContentSegmentHistoryResponseContentSegmentsInnerUpidsInner) HasId() bool { + if o != nil && !IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *ListContentSegmentHistoryResponseContentSegmentsInnerUpidsInner) SetId(v string) { + o.Id = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *ListContentSegmentHistoryResponseContentSegmentsInnerUpidsInner) GetType() int32 { + if o == nil || IsNil(o.Type) { + var ret int32 + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListContentSegmentHistoryResponseContentSegmentsInnerUpidsInner) GetTypeOk() (*int32, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *ListContentSegmentHistoryResponseContentSegmentsInnerUpidsInner) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given int32 and assigns it to the Type field. +func (o *ListContentSegmentHistoryResponseContentSegmentsInnerUpidsInner) SetType(v int32) { + o.Type = &v +} + +func (o ListContentSegmentHistoryResponseContentSegmentsInnerUpidsInner) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ListContentSegmentHistoryResponseContentSegmentsInnerUpidsInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + return toSerialize, nil +} + +type NullableListContentSegmentHistoryResponseContentSegmentsInnerUpidsInner struct { + value *ListContentSegmentHistoryResponseContentSegmentsInnerUpidsInner + isSet bool +} + +func (v NullableListContentSegmentHistoryResponseContentSegmentsInnerUpidsInner) Get() *ListContentSegmentHistoryResponseContentSegmentsInnerUpidsInner { + return v.value +} + +func (v *NullableListContentSegmentHistoryResponseContentSegmentsInnerUpidsInner) Set(val *ListContentSegmentHistoryResponseContentSegmentsInnerUpidsInner) { + v.value = val + v.isSet = true +} + +func (v NullableListContentSegmentHistoryResponseContentSegmentsInnerUpidsInner) IsSet() bool { + return v.isSet +} + +func (v *NullableListContentSegmentHistoryResponseContentSegmentsInnerUpidsInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableListContentSegmentHistoryResponseContentSegmentsInnerUpidsInner(val *ListContentSegmentHistoryResponseContentSegmentsInnerUpidsInner) *NullableListContentSegmentHistoryResponseContentSegmentsInnerUpidsInner { + return &NullableListContentSegmentHistoryResponseContentSegmentsInnerUpidsInner{value: val, isSet: true} +} + +func (v NullableListContentSegmentHistoryResponseContentSegmentsInnerUpidsInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableListContentSegmentHistoryResponseContentSegmentsInnerUpidsInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/isp/model_segment.go b/isp/model_segment.go index 29773b3..80cb498 100644 --- a/isp/model_segment.go +++ b/isp/model_segment.go @@ -33,7 +33,7 @@ type Segment struct { TimedMetadataPayload *string `json:"timed_metadata_payload,omitempty" doc:"Timed metadata opaque payload data."` // The timed metadata signal's type. TimedMetadataType *string `json:"timed_metadata_type,omitempty" doc:"The timed metadata signal's type."` - Type *string `json:"type,omitempty" enum:"SPLICE_INSERT,CONTENT_ID,PROGRAM,PROGRAM_BLACKOUT_OVERRIDE,PROGRAM_BREAKAWAY,CHAPTER,BREAK,OPENING_CREDIT,CLOSING_CREDIT,PROVIDER_PLACEMENT_OP,DISTRIBUTOR_PLACEMENT_OP,PROVIDER_OVERLAY_OP,DISTRIBUTOR_OVERLAY_OP,PROVIDER_AD,DISTRIBUTOR_AD,UNSCHEDULED_EVENT,NETWORK,SLATE,NOT_INDICATED,TIMED_METADATA"` + Type *string `json:"type,omitempty" enum:"SPLICE_INSERT,CONTENT_ID,PROGRAM,PROGRAM_BLACKOUT_OVERRIDE,PROGRAM_BREAKAWAY,CHAPTER,BREAK,OPENING_CREDIT,CLOSING_CREDIT,PROVIDER_PLACEMENT_OP,DISTRIBUTOR_PLACEMENT_OP,PROVIDER_OVERLAY_OP,DISTRIBUTOR_OVERLAY_OP,PROVIDER_AD,DISTRIBUTOR_AD,UNSCHEDULED_EVENT,NETWORK,SLATE,NOT_INDICATED,TIMED_METADATA,TIMED_METADATA_MARKER_OVER_SLATE"` } // NewSegment instantiates a new Segment object diff --git a/isp/test/api_transcoder_telemetry_test.go b/isp/test/api_transcoder_telemetry_test.go index cab1dbd..fab8e9b 100644 --- a/isp/test/api_transcoder_telemetry_test.go +++ b/isp/test/api_transcoder_telemetry_test.go @@ -22,6 +22,21 @@ func Test_isp_TranscoderTelemetryApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) + t.Run("Test TranscoderTelemetryApiService ListContentSegmentHistory", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var org string + var channelId string + + resp, httpRes, err := apiClient.TranscoderTelemetryApi.ListContentSegmentHistory(context.Background(), org, channelId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test TranscoderTelemetryApiService ListRawScteHistory", func(t *testing.T) { t.Skip("skip test") // remove to run test diff --git a/spec/isp.yaml b/spec/isp.yaml index 7d1dd09..9696422 100644 --- a/spec/isp.yaml +++ b/spec/isp.yaml @@ -1131,6 +1131,7 @@ components: - SLATE - NOT_INDICATED - TIMED_METADATA + - TIMED_METADATA_MARKER_OVER_SLATE honor_web_delivery_restriction: type: boolean description: Determines whether to honor the web_delivery_allowed attribute in SCTE-35 segmentation descriptors. When this is enabled, a segmentation descriptor with web_delivery_allowed=false will trigger a blackout. @@ -1171,6 +1172,7 @@ components: - SLATE - NOT_INDICATED - TIMED_METADATA + - TIMED_METADATA_MARKER_OVER_SLATE upids: type: array description: Exclusive list of hex string encoded colon separated UPID Type:ID pairs (e.g. '0A:1A2B3C4D') to enable this blackout slate on. @@ -1240,6 +1242,7 @@ components: - SLATE - NOT_INDICATED - TIMED_METADATA + - TIMED_METADATA_MARKER_OVER_SLATE uniqueItems: true tier_filter: type: object @@ -1283,6 +1286,7 @@ components: - SLATE - NOT_INDICATED - TIMED_METADATA + - TIMED_METADATA_MARKER_OVER_SLATE uniqueItems: true additionalProperties: false tags: @@ -1510,7 +1514,7 @@ components: properties: atsc_captions: type: object - description: Extract subtitles from the ATSC caption encodings. The captions themselves are first sourced according to the Source.captions_source field. Only one of ['teletext', 'atsc_captions'] may be set. + description: Extract subtitles from the ATSC caption encodings. The captions themselves are first sourced according to the Source.captions_source field. Only one of ['teletext', 'atsc_captions', 'transcription'] may be set. properties: cea608: type: integer @@ -1541,7 +1545,7 @@ components: description: Used by the player to map text tracks to a quadrant, which represents a single view in a multiview layout. This value is opaque and not used by Aventus. teletext: type: object - description: Extract subtitles from an embedded Teletext stream. The teletext PID is determined automatically. Only one of ['teletext', 'atsc_captions'] may be set. + description: Extract subtitles from an embedded Teletext stream. The teletext PID is determined automatically. Only one of ['teletext', 'atsc_captions', 'transcription'] may be set. properties: charset_set: type: string @@ -1581,6 +1585,15 @@ components: - PAGE_TYPE_PROGRAMME_SCHEDULE - PAGE_TYPE_SUBTITLE_HEARING_IMPAIRED additionalProperties: false + transcription: + type: object + description: Generate subtitles via automatic transcription of an audio source. Only one of ['teletext', 'atsc_captions', 'transcription'] may be set. + properties: + audio_source_id: + type: string + description: Identifies the 'AudioSource' to be transcribed. + minLength: 1 + additionalProperties: false usage: type: string description: Usage indicates how this encoder should be flagged in generated manifests. @@ -4538,6 +4551,76 @@ components: required: - channel_clips - errors + ListContentSegmentHistoryResponse: + type: object + properties: + $schema: + type: string + description: An optional URL to a JSON Schema document describing this resource + format: uri + content_segments: + type: array + items: + type: object + properties: + end: + type: string + description: end is the timestamp when the content segment ended. + format: date-time + segment_id: + type: integer + description: segment_id is a unique id assigned by the transcoder + format: int32 + minimum: 0 + signal_source: + type: string + description: signal_source denotes whether the content segment was initiated by an in-band signaling event or an out-of-band signaling event where in-band signals are received in the source consumed by the transcoder. + enum: + - SIGNAL_SOURCE_UNDEFINED + - SIGNAL_SOURCE_IN_BAND + - SIGNAL_SOURCE_OUT_OF_BAND + start: + type: string + description: start is the timestamp when the content segment started. + format: date-time + type: + type: string + description: The type of content segment. Currently only supports PROGRAM, CHAPTER, or BREAK. + enum: + - SPLICE_INSERT + - CONTENT_ID + - PROGRAM + - PROGRAM_BLACKOUT_OVERRIDE + - PROGRAM_BREAKAWAY + - CHAPTER + - BREAK + - OPENING_CREDIT + - CLOSING_CREDIT + - PROVIDER_PLACEMENT_OP + - DISTRIBUTOR_PLACEMENT_OP + - PROVIDER_OVERLAY_OP + - DISTRIBUTOR_OVERLAY_OP + - PROVIDER_AD + - DISTRIBUTOR_AD + - UNSCHEDULED_EVENT + - NETWORK + - SLATE + - NOT_INDICATED + - TIMED_METADATA + - TIMED_METADATA_MARKER_OVER_SLATE + upids: + type: array + items: + type: object + properties: + id: + type: string + type: + type: integer + format: int32 + additionalProperties: false + additionalProperties: false + additionalProperties: false ListProductsResponse: type: object properties: @@ -5288,6 +5371,7 @@ components: - SLATE - NOT_INDICATED - TIMED_METADATA + - TIMED_METADATA_MARKER_OVER_SLATE additionalProperties: false SegmentList: type: array @@ -7990,6 +8074,7 @@ components: - SLATE - NOT_INDICATED - TIMED_METADATA + - TIMED_METADATA_MARKER_OVER_SLATE honor_web_delivery_restriction: type: boolean description: Determines whether to honor the web_delivery_allowed attribute in SCTE-35 segmentation descriptors. When this is enabled, a segmentation descriptor with web_delivery_allowed=false will trigger a blackout. @@ -8030,6 +8115,7 @@ components: - SLATE - NOT_INDICATED - TIMED_METADATA + - TIMED_METADATA_MARKER_OVER_SLATE upids: type: array description: Exclusive list of hex string encoded colon separated UPID Type:ID pairs (e.g. '0A:1A2B3C4D') to enable this blackout slate on. @@ -8099,6 +8185,7 @@ components: - SLATE - NOT_INDICATED - TIMED_METADATA + - TIMED_METADATA_MARKER_OVER_SLATE uniqueItems: true tier_filter: type: object @@ -8142,6 +8229,7 @@ components: - SLATE - NOT_INDICATED - TIMED_METADATA + - TIMED_METADATA_MARKER_OVER_SLATE uniqueItems: true additionalProperties: false tags: @@ -8369,7 +8457,7 @@ components: properties: atsc_captions: type: object - description: Extract subtitles from the ATSC caption encodings. The captions themselves are first sourced according to the Source.captions_source field. Only one of ['teletext', 'atsc_captions'] may be set. + description: Extract subtitles from the ATSC caption encodings. The captions themselves are first sourced according to the Source.captions_source field. Only one of ['teletext', 'atsc_captions', 'transcription'] may be set. properties: cea608: type: integer @@ -8400,7 +8488,7 @@ components: description: Used by the player to map text tracks to a quadrant, which represents a single view in a multiview layout. This value is opaque and not used by Aventus. teletext: type: object - description: Extract subtitles from an embedded Teletext stream. The teletext PID is determined automatically. Only one of ['teletext', 'atsc_captions'] may be set. + description: Extract subtitles from an embedded Teletext stream. The teletext PID is determined automatically. Only one of ['teletext', 'atsc_captions', 'transcription'] may be set. properties: charset_set: type: string @@ -8440,6 +8528,15 @@ components: - PAGE_TYPE_PROGRAMME_SCHEDULE - PAGE_TYPE_SUBTITLE_HEARING_IMPAIRED additionalProperties: false + transcription: + type: object + description: Generate subtitles via automatic transcription of an audio source. Only one of ['teletext', 'atsc_captions', 'transcription'] may be set. + properties: + audio_source_id: + type: string + description: Identifies the 'AudioSource' to be transcribed. + minLength: 1 + additionalProperties: false usage: type: string description: Usage indicates how this encoder should be flagged in generated manifests. @@ -9746,6 +9843,7 @@ components: - SLATE - NOT_INDICATED - TIMED_METADATA + - TIMED_METADATA_MARKER_OVER_SLATE honor_web_delivery_restriction: type: boolean description: Determines whether to honor the web_delivery_allowed attribute in SCTE-35 segmentation descriptors. When this is enabled, a segmentation descriptor with web_delivery_allowed=false will trigger a blackout. @@ -9786,6 +9884,7 @@ components: - SLATE - NOT_INDICATED - TIMED_METADATA + - TIMED_METADATA_MARKER_OVER_SLATE upids: type: array description: Exclusive list of hex string encoded colon separated UPID Type:ID pairs (e.g. '0A:1A2B3C4D') to enable this blackout slate on. @@ -9855,6 +9954,7 @@ components: - SLATE - NOT_INDICATED - TIMED_METADATA + - TIMED_METADATA_MARKER_OVER_SLATE uniqueItems: true tier_filter: type: object @@ -9898,6 +9998,7 @@ components: - SLATE - NOT_INDICATED - TIMED_METADATA + - TIMED_METADATA_MARKER_OVER_SLATE uniqueItems: true additionalProperties: false tags: @@ -10125,7 +10226,7 @@ components: properties: atsc_captions: type: object - description: Extract subtitles from the ATSC caption encodings. The captions themselves are first sourced according to the Source.captions_source field. Only one of ['teletext', 'atsc_captions'] may be set. + description: Extract subtitles from the ATSC caption encodings. The captions themselves are first sourced according to the Source.captions_source field. Only one of ['teletext', 'atsc_captions', 'transcription'] may be set. properties: cea608: type: integer @@ -10156,7 +10257,7 @@ components: description: Used by the player to map text tracks to a quadrant, which represents a single view in a multiview layout. This value is opaque and not used by Aventus. teletext: type: object - description: Extract subtitles from an embedded Teletext stream. The teletext PID is determined automatically. Only one of ['teletext', 'atsc_captions'] may be set. + description: Extract subtitles from an embedded Teletext stream. The teletext PID is determined automatically. Only one of ['teletext', 'atsc_captions', 'transcription'] may be set. properties: charset_set: type: string @@ -10196,6 +10297,15 @@ components: - PAGE_TYPE_PROGRAMME_SCHEDULE - PAGE_TYPE_SUBTITLE_HEARING_IMPAIRED additionalProperties: false + transcription: + type: object + description: Generate subtitles via automatic transcription of an audio source. Only one of ['teletext', 'atsc_captions', 'transcription'] may be set. + properties: + audio_source_id: + type: string + description: Identifies the 'AudioSource' to be transcribed. + minLength: 1 + additionalProperties: false usage: type: string description: Usage indicates how this encoder should be flagged in generated manifests. @@ -14528,6 +14638,197 @@ paths: summary: Get a playurl for a clip tags: - Live2VOD for Organization + /v2/{org}/channels/{channel-id}/content-segment-history: + get: + description: | + Returns content segment history for a channel. + operationId: list-content-segment-history + parameters: + - name: org + description: Organization name + in: path + required: true + schema: + type: string + description: Organization name + - name: channel-id + description: Unique channel identifier + in: path + required: true + schema: + type: string + description: Unique channel identifier + maxLength: 60 + pattern: ^([a-z0-9]+(-*[a-z0-9]+)*)$ + - name: from + description: ISO 8601 UTC timestamp for start range of date filtering + in: query + schema: + type: string + description: ISO 8601 UTC timestamp for start range of date filtering + format: date-time + explode: false + - name: to + description: ISO 8601 UTC timestamp for end range of date filtering + in: query + schema: + type: string + description: ISO 8601 UTC timestamp for end range of date filtering + format: date-time + explode: false + - name: segment_types + description: Filter by segment types. If not specified, all segment types are returned. Corresponds to the ChannelProto channeldoc.SignalingSegment ENUM names. + in: query + schema: + type: array + description: Filter by segment types. If not specified, all segment types are returned. Corresponds to the ChannelProto channeldoc.SignalingSegment ENUM names. + items: + type: string + example: + - PROGRAM + minItems: 1 + explode: false + - name: upid_type + description: Type part of the UPID. Required when upid_id is provided. + in: query + schema: + type: integer + description: Type part of the UPID. Required when upid_id is provided. + format: int32 + example: 12 + explode: false + - name: upid_id + description: ID part of the UPID. Accepts plain text and hex-encoded values prefixed with a 0x. Required when upid_type is provided + in: query + schema: + type: string + description: ID part of the UPID. Accepts plain text and hex-encoded values prefixed with a 0x. Required when upid_type is provided + example: DISC279973-169 + explode: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ListContentSegmentHistoryResponse' + description: OK + headers: + Content-Type: + description: Content-Type + schema: + type: string + Link: + description: Link + schema: + type: string + "400": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: Bad Request + headers: + Content-Type: + description: Content-Type + schema: + type: string + Link: + description: Link + schema: + type: string + "404": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: Not Found + headers: + Content-Type: + description: Content-Type + schema: + type: string + Link: + description: Link + schema: + type: string + "413": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: Request Entity Too Large + headers: + Content-Type: + description: Content-Type + schema: + type: string + Link: + description: Link + schema: + type: string + "422": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: Unprocessable Entity + headers: + Content-Type: + description: Content-Type + schema: + type: string + Link: + description: Link + schema: + type: string + "500": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: Internal Server Error + headers: + Content-Type: + description: Content-Type + schema: + type: string + Link: + description: Link + schema: + type: string + "501": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: Not Implemented + headers: + Content-Type: + description: Content-Type + schema: + type: string + Link: + description: Link + schema: + type: string + "503": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: Service Unavailable + headers: + Content-Type: + description: Content-Type + schema: + type: string + Link: + description: Link + schema: + type: string + summary: List Channel Content Segments History + tags: + - Transcoder Telemetry /v2/{org}/channels/{channel-id}/desired-state: put: operationId: put-org-channel-desired-state