diff --git a/CHANGELOG.md b/CHANGELOG.md index cddc015..9167416 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ # Changelog All changes to this project will be documented in this file. +## [1.4.7] - 2024-11-06 +- AI summary updates + ## [1.4.6] - 2024-11-04 - Analytics updates (ccv, views, ...) diff --git a/api/openapi.yaml b/api/openapi.yaml index 1aa8baf..e11311f 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -1330,7 +1330,7 @@ paths: x-group-parameters: true x-client-paginated: true post: - description: Generate a title, abstract, and key takeaways for a video. + description: Generate an abstract and key takeaways for a video. operationId: POST_summaries requestBody: content: @@ -1418,7 +1418,7 @@ paths: - Summaries x-client-action: create x-client-description: - default: Generate a title, abstract, and key takeaways for a video. + default: Generate an abstract and key takeaways for a video. /summaries/{summaryId}: delete: description: Delete a summary tied to a video. @@ -1550,8 +1550,7 @@ paths: x-client-description: default: Get all details for a summary. patch: - description: Update details for a summary. Note that this operation is only - allowed for summary objects where `sourceStatus` is `missing`. + description: Update details for a summary. operationId: PATCH_summaries-summaryId-source parameters: - description: The unique identifier of the summary source you want to update. @@ -1601,7 +1600,7 @@ paths: content: application/json: examples: - Summary already exists: + Summary generation still in progress: value: type: https://docs.api.video/reference/summary-already-exists title: A summary already exists or is being created on this video. @@ -1637,8 +1636,7 @@ paths: - Summaries x-client-action: update x-client-description: - default: Update details for a summary. Note that this operation is only allowed - for summary objects where `sourceStatus` is `missing`. + default: Update details for a summary. /videos/{videoId}/source: post: description: Ingest a video from a source or file. @@ -16566,6 +16564,10 @@ components: playerId: pl45KFKdlddgk654dspkze language: en transcript: true + transcriptSummary: true + transcriptSummaryAttributes: + - abstract + - takeaways tags: - maths - string theory @@ -16694,6 +16696,16 @@ components: - The default value is `false`. - If you define a video language using the `language` parameter, the API uses that language to summarize the video. If you do not define a language, the API detects it based on the video. type: boolean + transcriptSummaryAttributes: + description: Use this parameter to define the elements of a summary that + you want to generate. If you do not define this parameter, the API generates + a full summary with all attributes. + items: + enum: + - abstract + - takeaways + type: string + type: array required: - title title: VideoCreationPayload @@ -16715,15 +16727,21 @@ components: - auto example: auto type: string + attributes: + description: Use this parameter to define the elements of a summary that + you want to generate. If you do not define this parameter, the API generates + a full summary with all attributes. + items: + enum: + - abstract + - takeaways + type: string + type: array required: - videoId type: object summary-update-payload: properties: - title: - description: A video title, based on the contents of the video. - example: A short lecture on quantum theory - type: string abstract: description: A short outline of the contents of the video. example: In this lecture, we discuss how complicated quantum theory is, @@ -16768,12 +16786,7 @@ components: abstract: In this lecture, we discuss how complicated quantum theory is, using the famous example of Schrödingers cat. We also discuss practical applications like quantum computing. - title: A short lecture on quantum theory properties: - title: - description: A video title, based on the contents of the video. - example: A short lecture on quantum theory - type: string abstract: description: A short outline of the contents of the video. The length of an `abstract` depends on the amount of content in a video that can be @@ -16946,6 +16959,9 @@ components: language: en transcript: true transcriptSummary: true + transcriptSummaryAttributes: + - abstract + - takeaways panoramic: false mp4Support: true tags: @@ -17058,6 +17074,16 @@ components: \ video. If you do not define a language, the API detects it based on\ \ the video." type: boolean + transcriptSummaryAttributes: + description: Use this parameter to define the elements of a summary that + you want to generate. If you do not define this parameter, the API generates + a full summary with all attributes. + items: + enum: + - abstract + - takeaways + type: string + type: array title: VideoUpdatePayload type: object discarded-video-update-payload: diff --git a/api_summaries.go b/api_summaries.go index 17830f2..2f9119d 100644 --- a/api_summaries.go +++ b/api_summaries.go @@ -152,7 +152,7 @@ type SummariesService struct { /* * Create Generate video summary - * Generate a title, abstract, and key takeaways for a video. + * Generate an abstract and key takeaways for a video. * @return SummariesApiCreateRequest */ @@ -165,7 +165,7 @@ func (s *SummariesService) Create(summaryCreationPayload SummaryCreationPayload) /* * Create Generate video summary - * Generate a title, abstract, and key takeaways for a video. + * Generate an abstract and key takeaways for a video. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return SummariesApiCreateRequest */ @@ -199,7 +199,7 @@ func (s *SummariesService) CreateWithContext(ctx context.Context, summaryCreatio /* * Update Update summary details - * Update details for a summary. Note that this operation is only allowed for summary objects where `sourceStatus` is `missing`. + * Update details for a summary. * @param summaryId The unique identifier of the summary source you want to update. * @return SummariesApiUpdateRequest @@ -213,7 +213,7 @@ func (s *SummariesService) Update(summaryId string, summaryUpdatePayload Summary /* * Update Update summary details - * Update details for a summary. Note that this operation is only allowed for summary objects where `sourceStatus` is `missing`. + * Update details for a summary. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param summaryId The unique identifier of the summary source you want to update. * @return SummariesApiUpdateRequest diff --git a/client.go b/client.go index 26affc1..eebf904 100644 --- a/client.go +++ b/client.go @@ -259,7 +259,7 @@ func (c *Client) prepareRequest( req.Header.Set("AV-Origin-Sdk", originSdkHeaderValue) } - req.Header.Set("AV-Origin-Client", "go:1.4.6") + req.Header.Set("AV-Origin-Client", "go:1.4.7") for headerName := range headerParams { req.Header.Set(headerName, headerParams[headerName]) @@ -534,7 +534,7 @@ func (c *Client) auth(req *http.Request) (*http.Request, error) { req.Header.Set("AV-Origin-Sdk", originSdkHeaderValue) } - req.Header.Set("AV-Origin-Client", "go:1.4.6") + req.Header.Set("AV-Origin-Client", "go:1.4.7") resp, err := c.httpClient.Do(req) diff --git a/docs/SummaryCreationPayload.md b/docs/SummaryCreationPayload.md index a4197e7..c136293 100644 --- a/docs/SummaryCreationPayload.md +++ b/docs/SummaryCreationPayload.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **VideoId** | **string** | Create a summary of a video using the video ID. | **Origin** | Pointer to **string** | Use this parameter to define how the API generates the summary. The only allowed value is `auto`, which means that the API generates a summary automatically. If you do not set this parameter, **the API will not generate a summary automatically**. In this case, `sourceStatus` will return `missing`, and you have to manually add a summary using the `PATCH /summaries/{summaryId}/source` endpoint operation. | [optional] +**Attributes** | Pointer to **[]string** | Use this parameter to define the elements of a summary that you want to generate. If you do not define this parameter, the API generates a full summary with all attributes. | [optional] ## Methods @@ -71,6 +72,31 @@ SetOrigin sets Origin field to given value. HasOrigin returns a boolean if a field has been set. +### GetAttributes + +`func (o *SummaryCreationPayload) GetAttributes() []string` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *SummaryCreationPayload) GetAttributesOk() (*[]string, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *SummaryCreationPayload) SetAttributes(v []string)` + +SetAttributes sets Attributes field to given value. + +### HasAttributes + +`func (o *SummaryCreationPayload) HasAttributes() bool` + +HasAttributes returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/SummarySource.md b/docs/SummarySource.md index 843eaa2..5d3c8d0 100644 --- a/docs/SummarySource.md +++ b/docs/SummarySource.md @@ -4,7 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Title** | Pointer to **string** | A video title, based on the contents of the video. | [optional] **Abstract** | Pointer to **string** | A short outline of the contents of the video. The length of an `abstract` depends on the amount of content in a video that can be transcribed. The API condenses the contents into minimum 20, maximum 300 words. | [optional] **Takeaways** | Pointer to **[]string** | A list of 3 key points from the video, in chronological order. | [optional] @@ -27,31 +26,6 @@ NewSummarySourceWithDefaults instantiates a new SummarySource 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 -### GetTitle - -`func (o *SummarySource) GetTitle() string` - -GetTitle returns the Title field if non-nil, zero value otherwise. - -### GetTitleOk - -`func (o *SummarySource) GetTitleOk() (*string, bool)` - -GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTitle - -`func (o *SummarySource) SetTitle(v string)` - -SetTitle sets Title field to given value. - -### HasTitle - -`func (o *SummarySource) HasTitle() bool` - -HasTitle returns a boolean if a field has been set. - ### GetAbstract `func (o *SummarySource) GetAbstract() string` diff --git a/docs/SummaryUpdatePayload.md b/docs/SummaryUpdatePayload.md index 60f446f..9e68c71 100644 --- a/docs/SummaryUpdatePayload.md +++ b/docs/SummaryUpdatePayload.md @@ -4,7 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Title** | Pointer to **string** | A video title, based on the contents of the video. | [optional] **Abstract** | Pointer to **string** | A short outline of the contents of the video. | [optional] **Takeaways** | Pointer to **[]string** | A list of 3 key points from the video, in chronological order. | [optional] @@ -27,31 +26,6 @@ NewSummaryUpdatePayloadWithDefaults instantiates a new SummaryUpdatePayload obje 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 -### GetTitle - -`func (o *SummaryUpdatePayload) GetTitle() string` - -GetTitle returns the Title field if non-nil, zero value otherwise. - -### GetTitleOk - -`func (o *SummaryUpdatePayload) GetTitleOk() (*string, bool)` - -GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTitle - -`func (o *SummaryUpdatePayload) SetTitle(v string)` - -SetTitle sets Title field to given value. - -### HasTitle - -`func (o *SummaryUpdatePayload) HasTitle() bool` - -HasTitle returns a boolean if a field has been set. - ### GetAbstract `func (o *SummaryUpdatePayload) GetAbstract() string` diff --git a/docs/VideoCreationPayload.md b/docs/VideoCreationPayload.md index f7acb16..9ac5ead 100644 --- a/docs/VideoCreationPayload.md +++ b/docs/VideoCreationPayload.md @@ -18,6 +18,7 @@ Name | Type | Description | Notes **Language** | Pointer to **NullableString** | Use this parameter to set the language of the video. When this parameter is set, the API creates a transcript of the video using the language you specify. You must use the [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format. `language` is a permanent attribute of the video. You can update it to another language using the [`PATCH /videos/{videoId}`](https://docs.api.video/reference/api/Videos#update-a-video-object) operation. This triggers the API to generate a new transcript using a different language. | [optional] **Transcript** | Pointer to **bool** | Use this parameter to enable transcription. - When `true`, the API generates a transcript for the video. - The default value is `false`. - If you define a video language using the `language` parameter, the API uses that language to transcribe the video. If you do not define a language, the API detects it based on the video. - When the API generates a transcript, it will be available as a caption for the video. | [optional] **TranscriptSummary** | Pointer to **bool** | Use this parameter to enable summarization. We recommend using this parameter together with `transcript: true`. - When `true`, the API generates a summary for the video, based on the transcription. - The default value is `false`. - If you define a video language using the `language` parameter, the API uses that language to summarize the video. If you do not define a language, the API detects it based on the video. | [optional] +**TranscriptSummaryAttributes** | Pointer to **[]string** | Use this parameter to define the elements of a summary that you want to generate. If you do not define this parameter, the API generates a full summary with all attributes. | [optional] ## Methods @@ -393,6 +394,31 @@ SetTranscriptSummary sets TranscriptSummary field to given value. HasTranscriptSummary returns a boolean if a field has been set. +### GetTranscriptSummaryAttributes + +`func (o *VideoCreationPayload) GetTranscriptSummaryAttributes() []string` + +GetTranscriptSummaryAttributes returns the TranscriptSummaryAttributes field if non-nil, zero value otherwise. + +### GetTranscriptSummaryAttributesOk + +`func (o *VideoCreationPayload) GetTranscriptSummaryAttributesOk() (*[]string, bool)` + +GetTranscriptSummaryAttributesOk returns a tuple with the TranscriptSummaryAttributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTranscriptSummaryAttributes + +`func (o *VideoCreationPayload) SetTranscriptSummaryAttributes(v []string)` + +SetTranscriptSummaryAttributes sets TranscriptSummaryAttributes field to given value. + +### HasTranscriptSummaryAttributes + +`func (o *VideoCreationPayload) HasTranscriptSummaryAttributes() bool` + +HasTranscriptSummaryAttributes returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/VideoUpdatePayload.md b/docs/VideoUpdatePayload.md index cdecd47..5c17f51 100644 --- a/docs/VideoUpdatePayload.md +++ b/docs/VideoUpdatePayload.md @@ -15,6 +15,7 @@ Name | Type | Description | Notes **Language** | Pointer to **NullableString** | Use this parameter to set the language of the video. When this parameter is set, the API creates a transcript of the video using the language you specify. You must use the [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format. `language` is a permanent attribute of the video. You can update it to another language using the [`PATCH /videos/{videoId}`](https://docs.api.video/reference/api/Videos#update-a-video-object) operation. This triggers the API to generate a new transcript using a different language. | [optional] **Transcript** | Pointer to **bool** | Use this parameter to enable transcription. - When `true`, the API generates a transcript for the video. - The default value is `false`. - If you define a video language using the `language` parameter, the API uses that language to transcribe the video. If you do not define a language, the API detects it based on the video. - When the API generates a transcript, it will be available as a caption for the video. | [optional] **TranscriptSummary** | Pointer to **bool** | Use this parameter to enable summarization. - When `true`, the API generates a summary for the video, based on the transcription. - The default value is `false`. - If you define a video language using the `language` parameter, the API uses that language to summarize the video. If you do not define a language, the API detects it based on the video. | [optional] +**TranscriptSummaryAttributes** | Pointer to **[]string** | Use this parameter to define the elements of a summary that you want to generate. If you do not define this parameter, the API generates a full summary with all attributes. | [optional] ## Methods @@ -330,6 +331,31 @@ SetTranscriptSummary sets TranscriptSummary field to given value. HasTranscriptSummary returns a boolean if a field has been set. +### GetTranscriptSummaryAttributes + +`func (o *VideoUpdatePayload) GetTranscriptSummaryAttributes() []string` + +GetTranscriptSummaryAttributes returns the TranscriptSummaryAttributes field if non-nil, zero value otherwise. + +### GetTranscriptSummaryAttributesOk + +`func (o *VideoUpdatePayload) GetTranscriptSummaryAttributesOk() (*[]string, bool)` + +GetTranscriptSummaryAttributesOk returns a tuple with the TranscriptSummaryAttributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTranscriptSummaryAttributes + +`func (o *VideoUpdatePayload) SetTranscriptSummaryAttributes(v []string)` + +SetTranscriptSummaryAttributes sets TranscriptSummaryAttributes field to given value. + +### HasTranscriptSummaryAttributes + +`func (o *VideoUpdatePayload) HasTranscriptSummaryAttributes() bool` + +HasTranscriptSummaryAttributes returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/model_summary_creation_payload.go b/model_summary_creation_payload.go index e3d3c6f..ed66131 100644 --- a/model_summary_creation_payload.go +++ b/model_summary_creation_payload.go @@ -20,6 +20,8 @@ type SummaryCreationPayload struct { VideoId string `json:"videoId"` // Use this parameter to define how the API generates the summary. The only allowed value is `auto`, which means that the API generates a summary automatically. If you do not set this parameter, **the API will not generate a summary automatically**. In this case, `sourceStatus` will return `missing`, and you have to manually add a summary using the `PATCH /summaries/{summaryId}/source` endpoint operation. Origin *string `json:"origin,omitempty"` + // Use this parameter to define the elements of a summary that you want to generate. If you do not define this parameter, the API generates a full summary with all attributes. + Attributes *[]string `json:"attributes,omitempty"` } // NewSummaryCreationPayload instantiates a new SummaryCreationPayload object @@ -96,6 +98,38 @@ func (o *SummaryCreationPayload) SetOrigin(v string) { o.Origin = &v } +// GetAttributes returns the Attributes field value if set, zero value otherwise. +func (o *SummaryCreationPayload) GetAttributes() []string { + if o == nil || o.Attributes == nil { + var ret []string + return ret + } + return *o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SummaryCreationPayload) GetAttributesOk() (*[]string, bool) { + if o == nil || o.Attributes == nil { + return nil, false + } + return o.Attributes, true +} + +// HasAttributes returns a boolean if a field has been set. +func (o *SummaryCreationPayload) HasAttributes() bool { + if o != nil && o.Attributes != nil { + return true + } + + return false +} + +// SetAttributes gets a reference to the given []string and assigns it to the Attributes field. +func (o *SummaryCreationPayload) SetAttributes(v []string) { + o.Attributes = &v +} + type NullableSummaryCreationPayload struct { value *SummaryCreationPayload isSet bool diff --git a/model_summary_source.go b/model_summary_source.go index 5eec76b..3e32300 100644 --- a/model_summary_source.go +++ b/model_summary_source.go @@ -16,8 +16,6 @@ import ( // SummarySource struct for SummarySource type SummarySource struct { - // A video title, based on the contents of the video. - Title *string `json:"title,omitempty"` // A short outline of the contents of the video. The length of an `abstract` depends on the amount of content in a video that can be transcribed. The API condenses the contents into minimum 20, maximum 300 words. Abstract *string `json:"abstract,omitempty"` // A list of 3 key points from the video, in chronological order. @@ -41,38 +39,6 @@ func NewSummarySourceWithDefaults() *SummarySource { return &this } -// GetTitle returns the Title field value if set, zero value otherwise. -func (o *SummarySource) GetTitle() string { - if o == nil || o.Title == nil { - var ret string - return ret - } - return *o.Title -} - -// GetTitleOk returns a tuple with the Title field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SummarySource) GetTitleOk() (*string, bool) { - if o == nil || o.Title == nil { - return nil, false - } - return o.Title, true -} - -// HasTitle returns a boolean if a field has been set. -func (o *SummarySource) HasTitle() bool { - if o != nil && o.Title != nil { - return true - } - - return false -} - -// SetTitle gets a reference to the given string and assigns it to the Title field. -func (o *SummarySource) SetTitle(v string) { - o.Title = &v -} - // GetAbstract returns the Abstract field value if set, zero value otherwise. func (o *SummarySource) GetAbstract() string { if o == nil || o.Abstract == nil { diff --git a/model_summary_update_payload.go b/model_summary_update_payload.go index 9355e53..cc6eb4d 100644 --- a/model_summary_update_payload.go +++ b/model_summary_update_payload.go @@ -16,8 +16,6 @@ import ( // SummaryUpdatePayload struct for SummaryUpdatePayload type SummaryUpdatePayload struct { - // A video title, based on the contents of the video. - Title *string `json:"title,omitempty"` // A short outline of the contents of the video. Abstract *string `json:"abstract,omitempty"` // A list of 3 key points from the video, in chronological order. @@ -41,38 +39,6 @@ func NewSummaryUpdatePayloadWithDefaults() *SummaryUpdatePayload { return &this } -// GetTitle returns the Title field value if set, zero value otherwise. -func (o *SummaryUpdatePayload) GetTitle() string { - if o == nil || o.Title == nil { - var ret string - return ret - } - return *o.Title -} - -// GetTitleOk returns a tuple with the Title field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SummaryUpdatePayload) GetTitleOk() (*string, bool) { - if o == nil || o.Title == nil { - return nil, false - } - return o.Title, true -} - -// HasTitle returns a boolean if a field has been set. -func (o *SummaryUpdatePayload) HasTitle() bool { - if o != nil && o.Title != nil { - return true - } - - return false -} - -// SetTitle gets a reference to the given string and assigns it to the Title field. -func (o *SummaryUpdatePayload) SetTitle(v string) { - o.Title = &v -} - // GetAbstract returns the Abstract field value if set, zero value otherwise. func (o *SummaryUpdatePayload) GetAbstract() string { if o == nil || o.Abstract == nil { diff --git a/model_video_creation_payload.go b/model_video_creation_payload.go index 6b223a8..b658942 100644 --- a/model_video_creation_payload.go +++ b/model_video_creation_payload.go @@ -42,6 +42,8 @@ type VideoCreationPayload struct { Transcript *bool `json:"transcript,omitempty"` // Use this parameter to enable summarization. We recommend using this parameter together with `transcript: true`. - When `true`, the API generates a summary for the video, based on the transcription. - The default value is `false`. - If you define a video language using the `language` parameter, the API uses that language to summarize the video. If you do not define a language, the API detects it based on the video. TranscriptSummary *bool `json:"transcriptSummary,omitempty"` + // Use this parameter to define the elements of a summary that you want to generate. If you do not define this parameter, the API generates a full summary with all attributes. + TranscriptSummaryAttributes *[]string `json:"transcriptSummaryAttributes,omitempty"` } // NewVideoCreationPayload instantiates a new VideoCreationPayload object @@ -525,6 +527,38 @@ func (o *VideoCreationPayload) SetTranscriptSummary(v bool) { o.TranscriptSummary = &v } +// GetTranscriptSummaryAttributes returns the TranscriptSummaryAttributes field value if set, zero value otherwise. +func (o *VideoCreationPayload) GetTranscriptSummaryAttributes() []string { + if o == nil || o.TranscriptSummaryAttributes == nil { + var ret []string + return ret + } + return *o.TranscriptSummaryAttributes +} + +// GetTranscriptSummaryAttributesOk returns a tuple with the TranscriptSummaryAttributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VideoCreationPayload) GetTranscriptSummaryAttributesOk() (*[]string, bool) { + if o == nil || o.TranscriptSummaryAttributes == nil { + return nil, false + } + return o.TranscriptSummaryAttributes, true +} + +// HasTranscriptSummaryAttributes returns a boolean if a field has been set. +func (o *VideoCreationPayload) HasTranscriptSummaryAttributes() bool { + if o != nil && o.TranscriptSummaryAttributes != nil { + return true + } + + return false +} + +// SetTranscriptSummaryAttributes gets a reference to the given []string and assigns it to the TranscriptSummaryAttributes field. +func (o *VideoCreationPayload) SetTranscriptSummaryAttributes(v []string) { + o.TranscriptSummaryAttributes = &v +} + type NullableVideoCreationPayload struct { value *VideoCreationPayload isSet bool diff --git a/model_video_update_payload.go b/model_video_update_payload.go index a066568..c00446a 100644 --- a/model_video_update_payload.go +++ b/model_video_update_payload.go @@ -38,6 +38,8 @@ type VideoUpdatePayload struct { Transcript *bool `json:"transcript,omitempty"` // Use this parameter to enable summarization. - When `true`, the API generates a summary for the video, based on the transcription. - The default value is `false`. - If you define a video language using the `language` parameter, the API uses that language to summarize the video. If you do not define a language, the API detects it based on the video. TranscriptSummary *bool `json:"transcriptSummary,omitempty"` + // Use this parameter to define the elements of a summary that you want to generate. If you do not define this parameter, the API generates a full summary with all attributes. + TranscriptSummaryAttributes *[]string `json:"transcriptSummaryAttributes,omitempty"` } // NewVideoUpdatePayload instantiates a new VideoUpdatePayload object @@ -431,6 +433,38 @@ func (o *VideoUpdatePayload) SetTranscriptSummary(v bool) { o.TranscriptSummary = &v } +// GetTranscriptSummaryAttributes returns the TranscriptSummaryAttributes field value if set, zero value otherwise. +func (o *VideoUpdatePayload) GetTranscriptSummaryAttributes() []string { + if o == nil || o.TranscriptSummaryAttributes == nil { + var ret []string + return ret + } + return *o.TranscriptSummaryAttributes +} + +// GetTranscriptSummaryAttributesOk returns a tuple with the TranscriptSummaryAttributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VideoUpdatePayload) GetTranscriptSummaryAttributesOk() (*[]string, bool) { + if o == nil || o.TranscriptSummaryAttributes == nil { + return nil, false + } + return o.TranscriptSummaryAttributes, true +} + +// HasTranscriptSummaryAttributes returns a boolean if a field has been set. +func (o *VideoUpdatePayload) HasTranscriptSummaryAttributes() bool { + if o != nil && o.TranscriptSummaryAttributes != nil { + return true + } + + return false +} + +// SetTranscriptSummaryAttributes gets a reference to the given []string and assigns it to the TranscriptSummaryAttributes field. +func (o *VideoUpdatePayload) SetTranscriptSummaryAttributes(v []string) { + o.TranscriptSummaryAttributes = &v +} + type NullableVideoUpdatePayload struct { value *VideoUpdatePayload isSet bool