Skip to content

Commit

Permalink
Fix indirect URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
szekelyzol authored Oct 5, 2023
1 parent 1c98925 commit 6f7a502
Show file tree
Hide file tree
Showing 21 changed files with 31 additions and 31 deletions.
2 changes: 1 addition & 1 deletion .openapi-generator/oas_apivideo.yaml-defaut-cli.sha256
Original file line number Diff line number Diff line change
@@ -1 +1 @@
99dd458f8a6d84027d6ea7d90cbc93b699c1c212f7f0e36f067326a87a068499
b81bc1a775a59afdd386a47746d16f2c79dc58f2040c663443f51e5cb3e5ceb8
2 changes: 1 addition & 1 deletion Sources/APIs/CaptionsAPI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ open class CaptionsAPI {
/**
Upload a caption
- POST /videos/{videoId}/captions/{language}
- Upload a VTT file to add captions to your video. More information can be found [here](https://docs.api.video/reference/captions)
- Upload a VTT file to add captions to your video. More information can be found [here](https://docs.api.video/vod/add-captions)
- parameter videoId: (path) The unique identifier for the video you want to add a caption to.
- parameter language: (path) A valid BCP 47 language representation.
- parameter file: (form) The video text track (VTT) you want to upload.
Expand Down
2 changes: 1 addition & 1 deletion Sources/APIs/ChaptersAPI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ open class ChaptersAPI {
/**
Upload a chapter
- POST /videos/{videoId}/chapters/{language}
- Upload a VTT file to add chapters to your video. Chapters help break the video into sections. Read our [tutorial](https://api.video/blog/tutorials/adding-chapters-to-your-videos) for more details.
- Upload a VTT file to add chapters to your video. Chapters help break the video into sections. Read our [tutorial](https://api.video/blog/tutorials/adding-chapters-to-your-videos/) for more details.
- parameter videoId: (path) The unique identifier for the video you want to upload a chapter for.
- parameter language: (path) A valid [BCP 47](https://github.com/libyal/libfwnt/wiki/Language-Code-identifiers) language representation.
- parameter file: (form) The VTT file describing the chapters you want to upload.
Expand Down
2 changes: 1 addition & 1 deletion Sources/APIs/UploadTokensAPI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ open class UploadTokensAPI {
/**
Generate an upload token
- POST /upload-tokens
- Generates an upload token that can be used to replace the API Key. More information can be found [here](https://docs.api.video/reference/upload-tokens)
- Generates an upload token that can be used to replace the API Key. More information can be found [here](https://docs.api.video/vod/delegated-upload-tokens)
- parameter tokenCreationPayload: (body)
- returns: RequestBuilder<UploadToken>
*/
Expand Down
6 changes: 3 additions & 3 deletions Sources/APIs/VideosAPI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ open class VideosAPI {
/**
Create a video object
- POST /videos
- Creates a video object. More information on video objects can be found [here](https://docs.api.video/reference/videos-1).
- Creates a video object. More information on video objects can be found [here](https://docs.api.video/reference/api/Videos).
- parameter videoCreationPayload: (body) video to create
- returns: RequestBuilder<Video>
*/
Expand Down Expand Up @@ -621,7 +621,7 @@ NOTE: If you are updating an array, you must provide the entire array as what yo

- parameter title: (query) The title of a specific video you want to find. The search will match exactly to what term you provide and return any videos that contain the same term as part of their titles. (optional)
- parameter tags: (query) A tag is a category you create and apply to videos. You can search for videos with particular tags by listing one or more here. Only videos that have all the tags you list will be returned. (optional)
- parameter metadata: (query) Videos can be tagged with metadata tags in key:value pairs. You can search for videos with specific key value pairs using this parameter. [Dynamic Metadata](https://api.video/blog/endpoints/dynamic-metadata) allows you to define a key that allows any value pair. (optional)
- parameter metadata: (query) Videos can be tagged with metadata tags in key:value pairs. You can search for videos with specific key value pairs using this parameter. [Dynamic Metadata](https://api.video/blog/endpoints/dynamic-metadata/) allows you to define a key that allows any value pair. (optional)
- parameter description: (query) Retrieve video objects by &#x60;description&#x60;. (optional)
- parameter liveStreamId: (query) Retrieve video objects that were recorded from a live stream by &#x60;liveStreamId&#x60;. (optional)
- parameter sortBy: (query) Use this parameter to sort videos by the their created time, published time, updated time, or by title. (optional)
Expand Down Expand Up @@ -650,7 +650,7 @@ NOTE: If you are updating an array, you must provide the entire array as what yo
- This method returns a list of your videos (with all their details). With no parameters added, the API returns the first page of all videos. You can filter videos using the parameters described below.
- parameter title: (query) The title of a specific video you want to find. The search will match exactly to what term you provide and return any videos that contain the same term as part of their titles. (optional)
- parameter tags: (query) A tag is a category you create and apply to videos. You can search for videos with particular tags by listing one or more here. Only videos that have all the tags you list will be returned. (optional)
- parameter metadata: (query) Videos can be tagged with metadata tags in key:value pairs. You can search for videos with specific key value pairs using this parameter. [Dynamic Metadata](https://api.video/blog/endpoints/dynamic-metadata) allows you to define a key that allows any value pair. (optional)
- parameter metadata: (query) Videos can be tagged with metadata tags in key:value pairs. You can search for videos with specific key value pairs using this parameter. [Dynamic Metadata](https://api.video/blog/endpoints/dynamic-metadata/) allows you to define a key that allows any value pair. (optional)
- parameter description: (query) Retrieve video objects by &#x60;description&#x60;. (optional)
- parameter liveStreamId: (query) Retrieve video objects that were recorded from a live stream by &#x60;liveStreamId&#x60;. (optional)
- parameter sortBy: (query) Use this parameter to sort videos by the their created time, published time, updated time, or by title. (optional)
Expand Down
2 changes: 1 addition & 1 deletion Sources/Models/LiveStream.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public struct LiveStream: Codable, Hashable {
public var name: String?
/** The unique, private stream key that you use to begin streaming. */
public var streamKey: String?
/** Whether your video can be viewed by everyone, or requires authentication to see it. A setting of false will require a unique token for each view. Learn more about the Private Video feature [here](https://docs.api.video/docs/private-videos). */
/** Whether your video can be viewed by everyone, or requires authentication to see it. A setting of false will require a unique token for each view. Learn more about the Private Video feature [here](https://docs.api.video/delivery-analytics/video-privacy-access-management). */
public var _public: Bool?
public var assets: LiveStreamAssets?
/** The unique identifier for the player. */
Expand Down
2 changes: 1 addition & 1 deletion Sources/Models/LiveStreamCreationPayload.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public struct LiveStreamCreationPayload: Codable, Hashable {

/** Add a name for your live stream here. */
public var name: String
/** Whether your video can be viewed by everyone, or requires authentication to see it. A setting of false will require a unique token for each view. Learn more about the Private Video feature [here](https://docs.api.video/docs/private-videos). */
/** Whether your video can be viewed by everyone, or requires authentication to see it. A setting of false will require a unique token for each view. Learn more about the Private Video feature [here](https://docs.api.video/delivery-analytics/video-privacy-access-management). */
public var _public: Bool?
/** The unique identifier for the player. */
public var playerId: String?
Expand Down
2 changes: 1 addition & 1 deletion Sources/Models/LiveStreamUpdatePayload.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public struct LiveStreamUpdatePayload: Codable, Hashable {

/** The name you want to use for your live stream. */
public var name: String?
/** Whether your video can be viewed by everyone, or requires authentication to see it. A setting of false will require a unique token for each view. Learn more about the Private Video feature [here](https://docs.api.video/docs/private-videos). */
/** Whether your video can be viewed by everyone, or requires authentication to see it. A setting of false will require a unique token for each view. Learn more about the Private Video feature [here](https://docs.api.video/delivery-analytics/video-privacy-access-management). */
public var _public: Bool?
/** The unique ID for the player associated with a live stream that you want to update. */
public var playerId: String?
Expand Down
4 changes: 2 additions & 2 deletions Sources/Models/Video.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ public struct Video: Codable, Hashable {
public var updatedAt: Date?
/** One array of tags (each tag is a string) in order to categorize a video. Tags may include spaces. */
public var tags: [String]?
/** Metadata you can use to categorise and filter videos. Metadata is a list of dictionaries, where each dictionary represents a key value pair for categorising a video. [Dynamic Metadata](https://api.video/blog/endpoints/dynamic-metadata) allows you to define a key that allows any value pair. */
/** Metadata you can use to categorise and filter videos. Metadata is a list of dictionaries, where each dictionary represents a key value pair for categorising a video. [Dynamic Metadata](https://api.video/blog/endpoints/dynamic-metadata/) allows you to define a key that allows any value pair. */
public var metadata: [Metadata]?
public var source: VideoSource?
public var assets: VideoAssets?
/** The id of the player that will be applied on the video. */
public var playerId: String?
/** Defines if the content is publicly reachable or if a unique token is needed for each play session. Default is true. Tutorials on [private videos](https://api.video/blog/endpoints/private-videos). */
/** Defines if the content is publicly reachable or if a unique token is needed for each play session. Default is true. Tutorials on [private videos](https://api.video/blog/endpoints/private-videos/). */
public var _public: Bool?
/** Defines if video is panoramic. */
public var panoramic: Bool?
Expand Down
4 changes: 2 additions & 2 deletions Sources/Models/VideoCreationPayload.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public struct VideoCreationPayload: Codable, Hashable {
public var description: String?
/** You can either add a video already on the web, by entering the URL of the video, or you can also enter the `videoId` of one of the videos you already have on your api.video acccount, and this will generate a copy of your video. Creating a copy of a video can be especially useful if you want to keep your original video and trim or apply a watermark onto the copy you would create. */
public var source: String?
/** Default: True. If set to `false` the video will become private. More information on private videos can be found [here](https://docs.api.video/docs/private-videos) */
/** Default: True. If set to `false` the video will become private. More information on private videos can be found [here](https://docs.api.video/delivery-analytics/video-privacy-access-management) */
public var _public: Bool? = true
/** Indicates if your video is a 360/immersive video. */
public var panoramic: Bool? = false
Expand All @@ -28,7 +28,7 @@ public struct VideoCreationPayload: Codable, Hashable {
public var playerId: String?
/** A list of tags you want to use to describe your video. */
public var tags: [String]?
/** A list of key value pairs that you use to provide metadata for your video. These pairs can be made dynamic, allowing you to segment your audience. Read more on [dynamic metadata](https://api.video/blog/endpoints/dynamic-metadata). */
/** A list of key value pairs that you use to provide metadata for your video. These pairs can be made dynamic, allowing you to segment your audience. Read more on [dynamic metadata](https://api.video/blog/endpoints/dynamic-metadata/). */
public var metadata: [Metadata]?
public var clip: VideoClip?
public var watermark: VideoWatermark?
Expand Down
4 changes: 2 additions & 2 deletions Sources/Models/VideoUpdatePayload.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ public struct VideoUpdatePayload: Codable, Hashable {
public var title: String?
/** A brief description of the video. */
public var description: String?
/** Whether the video is publicly available or not. False means it is set to private. Default is true. Tutorials on [private videos](https://api.video/blog/endpoints/private-videos). */
/** Whether the video is publicly available or not. False means it is set to private. Default is true. Tutorials on [private videos](https://api.video/blog/endpoints/private-videos/). */
public var _public: Bool?
/** Whether the video is a 360 degree or immersive video. */
public var panoramic: Bool?
/** Whether the player supports the mp4 format. */
public var mp4Support: Bool?
/** A list of terms or words you want to tag the video with. Make sure the list includes all the tags you want as whatever you send in this list will overwrite the existing list for the video. */
public var tags: [String]?
/** A list (array) of dictionaries where each dictionary contains a key value pair that describes the video. As with tags, you must send the complete list of metadata you want as whatever you send here will overwrite the existing metadata for the video. [Dynamic Metadata](https://api.video/blog/endpoints/dynamic-metadata) allows you to define a key that allows any value pair. */
/** A list (array) of dictionaries where each dictionary contains a key value pair that describes the video. As with tags, you must send the complete list of metadata you want as whatever you send here will overwrite the existing metadata for the video. [Dynamic Metadata](https://api.video/blog/endpoints/dynamic-metadata/) allows you to define a key that allows any value pair. */
public var metadata: [Metadata]?

public init(playerId: NullableString? = nil, title: String? = nil, description: String? = nil, _public: Bool? = nil, panoramic: Bool? = nil, mp4Support: Bool? = nil, tags: [String]? = nil, metadata: [Metadata]? = nil) {
Expand Down
2 changes: 1 addition & 1 deletion docs/CaptionsAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Method | HTTP request | Description

Upload a caption

Upload a VTT file to add captions to your video. More information can be found [here](https://docs.api.video/reference/captions)
Upload a VTT file to add captions to your video. More information can be found [here](https://docs.api.video/vod/add-captions)


### Example
Expand Down
2 changes: 1 addition & 1 deletion docs/ChaptersAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Method | HTTP request | Description

Upload a chapter

Upload a VTT file to add chapters to your video. Chapters help break the video into sections. Read our [tutorial](https://api.video/blog/tutorials/adding-chapters-to-your-videos) for more details.
Upload a VTT file to add chapters to your video. Chapters help break the video into sections. Read our [tutorial](https://api.video/blog/tutorials/adding-chapters-to-your-videos/) for more details.


### Example
Expand Down
2 changes: 1 addition & 1 deletion docs/LiveStream.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Name | Type | Description | Notes
**liveStreamId** | **String** | The unique identifier for the live stream. Live stream IDs begin with \&quot;li.\&quot; |
**name** | **String** | The name of your live stream. | [optional]
**streamKey** | **String** | The unique, private stream key that you use to begin streaming. | [optional]
**_public** | **Bool** | Whether your video can be viewed by everyone, or requires authentication to see it. A setting of false will require a unique token for each view. Learn more about the Private Video feature [here](https://docs.api.video/docs/private-videos). | [optional]
**_public** | **Bool** | Whether your video can be viewed by everyone, or requires authentication to see it. A setting of false will require a unique token for each view. Learn more about the Private Video feature [here](https://docs.api.video/delivery-analytics/video-privacy-access-management). | [optional]
**assets** | [**LiveStreamAssets**](LiveStreamAssets.md) | | [optional]
**playerId** | **String** | The unique identifier for the player. | [optional]
**broadcasting** | **Bool** | Whether or not you are broadcasting the live video you recorded for others to see. True means you are broadcasting to viewers, false means you are not. | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/LiveStreamCreationPayload.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **String** | Add a name for your live stream here. |
**_public** | **Bool** | Whether your video can be viewed by everyone, or requires authentication to see it. A setting of false will require a unique token for each view. Learn more about the Private Video feature [here](https://docs.api.video/docs/private-videos). | [optional]
**_public** | **Bool** | Whether your video can be viewed by everyone, or requires authentication to see it. A setting of false will require a unique token for each view. Learn more about the Private Video feature [here](https://docs.api.video/delivery-analytics/video-privacy-access-management). | [optional]
**playerId** | **String** | The unique identifier for the player. | [optional]
**restreams** | [RestreamsRequestObject] | Use this parameter to add, edit, or remove RTMP services where you want to restream a live stream. The list can only contain up to 5 destinations. | [optional]

Expand Down
2 changes: 1 addition & 1 deletion docs/LiveStreamUpdatePayload.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **String** | The name you want to use for your live stream. | [optional]
**_public** | **Bool** | Whether your video can be viewed by everyone, or requires authentication to see it. A setting of false will require a unique token for each view. Learn more about the Private Video feature [here](https://docs.api.video/docs/private-videos). | [optional]
**_public** | **Bool** | Whether your video can be viewed by everyone, or requires authentication to see it. A setting of false will require a unique token for each view. Learn more about the Private Video feature [here](https://docs.api.video/delivery-analytics/video-privacy-access-management). | [optional]
**playerId** | **String** | The unique ID for the player associated with a live stream that you want to update. | [optional]
**restreams** | [RestreamsRequestObject] | Use this parameter to add, edit, or remove RTMP services where you want to restream a live stream. The list can only contain up to 5 destinations. This operation updates all restream destinations in the same request. If you do not want to modify an existing restream destination, you need to include it in your request, otherwise it is removed. | [optional]

Expand Down
2 changes: 1 addition & 1 deletion docs/UploadTokensAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Method | HTTP request | Description

Generate an upload token

Generates an upload token that can be used to replace the API Key. More information can be found [here](https://docs.api.video/reference/upload-tokens)
Generates an upload token that can be used to replace the API Key. More information can be found [here](https://docs.api.video/vod/delegated-upload-tokens)


### Example
Expand Down
Loading

0 comments on commit 6f7a502

Please sign in to comment.