diff --git a/src/Api/EditApi.php b/src/Api/EditApi.php index 472a80f..6626fed 100644 --- a/src/Api/EditApi.php +++ b/src/Api/EditApi.php @@ -12,7 +12,7 @@ /** * Shotstack * - * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} + * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} * * The version of the OpenAPI document: v1 * Generated by: https://openapi-generator.tech @@ -27,8 +27,6 @@ namespace Shotstack\Client\Api; -error_reporting(E_ALL & ~E_DEPRECATED); - use GuzzleHttp\Client; use GuzzleHttp\ClientInterface; use GuzzleHttp\Exception\RequestException; diff --git a/src/Api/EndpointsApi.php b/src/Api/EndpointsApi.php deleted file mode 100644 index 6ed2bf6..0000000 --- a/src/Api/EndpointsApi.php +++ /dev/null @@ -1,693 +0,0 @@ -client = $client ?: new Client(); - $this->config = $config ?: new Configuration(); - $this->headerSelector = $selector ?: new HeaderSelector(); - $this->hostIndex = $hostIndex; - } - - /** - * Set the host index - * - * @param int $hostIndex Host index (required) - */ - public function setHostIndex($hostIndex) - { - $this->hostIndex = $hostIndex; - } - - /** - * Get the host index - * - * @return int Host index - */ - public function getHostIndex() - { - return $this->hostIndex; - } - - /** - * @return Configuration - */ - public function getConfig() - { - return $this->config; - } - - /** - * Operation getRender - * - * Get Render Status - * - * @param string $id The id of the timeline render task in UUID format (required) - * - * @throws \Shotstack\Client\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \Shotstack\Client\Model\RenderResponse - */ - public function getRender($id) - { - list($response) = $this->getRenderWithHttpInfo($id); - return $response; - } - - /** - * Operation getRenderWithHttpInfo - * - * Get Render Status - * - * @param string $id The id of the timeline render task in UUID format (required) - * - * @throws \Shotstack\Client\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \Shotstack\Client\Model\RenderResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getRenderWithHttpInfo($id) - { - $request = $this->getRenderRequest($id); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? (string) $e->getResponse()->getBody() : null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\Shotstack\Client\Model\RenderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return [ - ObjectSerializer::deserialize($content, '\Shotstack\Client\Model\RenderResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\Shotstack\Client\Model\RenderResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Shotstack\Client\Model\RenderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation getRenderAsync - * - * Get Render Status - * - * @param string $id The id of the timeline render task in UUID format (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getRenderAsync($id) - { - return $this->getRenderAsyncWithHttpInfo($id) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation getRenderAsyncWithHttpInfo - * - * Get Render Status - * - * @param string $id The id of the timeline render task in UUID format (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getRenderAsyncWithHttpInfo($id) - { - $returnType = '\Shotstack\Client\Model\RenderResponse'; - $request = $this->getRenderRequest($id); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'getRender' - * - * @param string $id The id of the timeline render task in UUID format (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getRenderRequest($id) - { - // verify the required parameter 'id' is set - if ($id === null || (is_array($id) && count($id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $id when calling getRender' - ); - } - if (!preg_match("/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/", $id)) { - throw new \InvalidArgumentException("invalid value for \"id\" when calling EndpointsApi.getRender, must conform to the pattern /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/."); - } - - - $resourcePath = '/render/{id}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - - - // path params - if ($id !== null) { - $resourcePath = str_replace( - '{' . 'id' . '}', - ObjectSerializer::toPathValue($id), - $resourcePath - ); - } - - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('x-api-key'); - if ($apiKey !== null) { - $headers['x-api-key'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation postRender - * - * Render Video - * - * @param \Shotstack\Client\Model\Edit $edit The video edit specified using JSON. (required) - * @param string $x_api_queue_id The id of a dedicated queue (enterprise customers only). (optional) - * - * @throws \Shotstack\Client\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \Shotstack\Client\Model\QueuedResponse - */ - public function postRender($edit, $x_api_queue_id = null) - { - list($response) = $this->postRenderWithHttpInfo($edit, $x_api_queue_id); - return $response; - } - - /** - * Operation postRenderWithHttpInfo - * - * Render Video - * - * @param \Shotstack\Client\Model\Edit $edit The video edit specified using JSON. (required) - * @param string $x_api_queue_id The id of a dedicated queue (enterprise customers only). (optional) - * - * @throws \Shotstack\Client\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \Shotstack\Client\Model\QueuedResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function postRenderWithHttpInfo($edit, $x_api_queue_id = null) - { - $request = $this->postRenderRequest($edit, $x_api_queue_id); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? (string) $e->getResponse()->getBody() : null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 201: - if ('\Shotstack\Client\Model\QueuedResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return [ - ObjectSerializer::deserialize($content, '\Shotstack\Client\Model\QueuedResponse', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\Shotstack\Client\Model\QueuedResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 201: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Shotstack\Client\Model\QueuedResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation postRenderAsync - * - * Render Video - * - * @param \Shotstack\Client\Model\Edit $edit The video edit specified using JSON. (required) - * @param string $x_api_queue_id The id of a dedicated queue (enterprise customers only). (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function postRenderAsync($edit, $x_api_queue_id = null) - { - return $this->postRenderAsyncWithHttpInfo($edit, $x_api_queue_id) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation postRenderAsyncWithHttpInfo - * - * Render Video - * - * @param \Shotstack\Client\Model\Edit $edit The video edit specified using JSON. (required) - * @param string $x_api_queue_id The id of a dedicated queue (enterprise customers only). (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function postRenderAsyncWithHttpInfo($edit, $x_api_queue_id = null) - { - $returnType = '\Shotstack\Client\Model\QueuedResponse'; - $request = $this->postRenderRequest($edit, $x_api_queue_id); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'postRender' - * - * @param \Shotstack\Client\Model\Edit $edit The video edit specified using JSON. (required) - * @param string $x_api_queue_id The id of a dedicated queue (enterprise customers only). (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function postRenderRequest($edit, $x_api_queue_id = null) - { - // verify the required parameter 'edit' is set - if ($edit === null || (is_array($edit) && count($edit) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $edit when calling postRender' - ); - } - - $resourcePath = '/render'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - - // header params - if ($x_api_queue_id !== null) { - $headerParams['x-api-queue-id'] = ObjectSerializer::toHeaderValue($x_api_queue_id); - } - - - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($edit)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($edit)); - } else { - $httpBody = $edit; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('x-api-key'); - if ($apiKey !== null) { - $headers['x-api-key'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Create http client option - * - * @throws \RuntimeException on file opening failure - * @return array of http client options - */ - protected function createHttpClientOption() - { - $options = []; - if ($this->config->getDebug()) { - $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); - if (!$options[RequestOptions::DEBUG]) { - throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); - } - } - - return $options; - } -} diff --git a/src/Api/ServeApi.php b/src/Api/ServeApi.php index 74fb996..a0874d6 100644 --- a/src/Api/ServeApi.php +++ b/src/Api/ServeApi.php @@ -12,7 +12,7 @@ /** * Shotstack * - * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} + * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} * * The version of the OpenAPI document: v1 * Generated by: https://openapi-generator.tech @@ -27,8 +27,6 @@ namespace Shotstack\Client\Api; -error_reporting(E_ALL & ~E_DEPRECATED); - use GuzzleHttp\Client; use GuzzleHttp\ClientInterface; use GuzzleHttp\Exception\RequestException; diff --git a/src/ApiException.php b/src/ApiException.php index c0df336..e4b65c6 100644 --- a/src/ApiException.php +++ b/src/ApiException.php @@ -12,7 +12,7 @@ /** * Shotstack * - * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} + * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} * * The version of the OpenAPI document: v1 * Generated by: https://openapi-generator.tech diff --git a/src/Configuration.php b/src/Configuration.php index 6266826..3736c40 100644 --- a/src/Configuration.php +++ b/src/Configuration.php @@ -12,7 +12,7 @@ /** * Shotstack * - * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} + * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} * * The version of the OpenAPI document: v1 * Generated by: https://openapi-generator.tech @@ -27,8 +27,6 @@ namespace Shotstack\Client; -error_reporting(E_ALL & ~E_DEPRECATED); - /** * Configuration Class Doc Comment * PHP version 7.3 diff --git a/src/HeaderSelector.php b/src/HeaderSelector.php index da6a161..282eacc 100644 --- a/src/HeaderSelector.php +++ b/src/HeaderSelector.php @@ -12,7 +12,7 @@ /** * Shotstack * - * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} + * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} * * The version of the OpenAPI document: v1 * Generated by: https://openapi-generator.tech diff --git a/src/Model/Asset.php b/src/Model/Asset.php index 3638092..1508fd8 100644 --- a/src/Model/Asset.php +++ b/src/Model/Asset.php @@ -1,32 +1,994 @@ https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} + * + * The version of the OpenAPI document: v1 + * Generated by: https://openapi-generator.tech + * OpenAPI Generator version: 5.4.0 + */ + +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ namespace Shotstack\Client\Model; -class Asset +use \ArrayAccess; +use \Shotstack\Client\ObjectSerializer; + +/** + * Asset Class Doc Comment + * + * @category Class + * @description The type of asset to display for the duration of this Clip. Value must be one of: <ul> <li><a href=\"#tocs_videoasset\">VideoAsset</a></li> <li><a href=\"#tocs_imageasset\">ImageAsset</a></li> <li><a href=\"#tocs_titleasset\">TitleAsset</a></li> <li><a href=\"#tocs_htmlasset\">HtmlAsset</a></li> <li><a href=\"#tocs_audioasset\">AudioAsset</a></li> <li><a href=\"#tocs_lumaasset\">LumaAsset</a></li> </ul> + * @package Shotstack\Client + * @author OpenAPI Generator team + * @link https://openapi-generator.tech + * @implements \ArrayAccess + * @template TKey int|null + * @template TValue mixed|null + */ +class Asset implements ModelInterface, ArrayAccess, \JsonSerializable { - const DISCRIMINATOR = null; + public const DISCRIMINATOR = 'asset'; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'Asset'; + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'type' => 'string', + 'src' => 'string', + 'trim' => 'float', + 'volume' => 'float', + 'crop' => '\Shotstack\Client\Model\Crop', + 'text' => 'string', + 'style' => 'string', + 'color' => 'string', + 'size' => 'string', + 'background' => 'string', + 'position' => 'string', + 'offset' => '\Shotstack\Client\Model\Offset', + 'html' => 'string', + 'css' => 'string', + 'width' => 'int', + 'height' => 'int', + 'effect' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'type' => null, + 'src' => null, + 'trim' => null, + 'volume' => null, + 'crop' => null, + 'text' => null, + 'style' => null, + 'color' => null, + 'size' => null, + 'background' => null, + 'position' => null, + 'offset' => null, + 'html' => null, + 'css' => null, + 'width' => null, + 'height' => null, + 'effect' => null + ]; + /** * Array of property to type mappings. Used for (de)serialization * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * * @var string[] */ - protected static $openAPITypes = []; + protected static $attributeMap = [ + 'type' => 'type', + 'src' => 'src', + 'trim' => 'trim', + 'volume' => 'volume', + 'crop' => 'crop', + 'text' => 'text', + 'style' => 'style', + 'color' => 'color', + 'size' => 'size', + 'background' => 'background', + 'position' => 'position', + 'offset' => 'offset', + 'html' => 'html', + 'css' => 'css', + 'width' => 'width', + 'height' => 'height', + 'effect' => 'effect' + ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'type' => 'setType', + 'src' => 'setSrc', + 'trim' => 'setTrim', + 'volume' => 'setVolume', + 'crop' => 'setCrop', + 'text' => 'setText', + 'style' => 'setStyle', + 'color' => 'setColor', + 'size' => 'setSize', + 'background' => 'setBackground', + 'position' => 'setPosition', + 'offset' => 'setOffset', + 'html' => 'setHtml', + 'css' => 'setCss', + 'width' => 'setWidth', + 'height' => 'setHeight', + 'effect' => 'setEffect' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'type' => 'getType', + 'src' => 'getSrc', + 'trim' => 'getTrim', + 'volume' => 'getVolume', + 'crop' => 'getCrop', + 'text' => 'getText', + 'style' => 'getStyle', + 'color' => 'getColor', + 'size' => 'getSize', + 'background' => 'getBackground', + 'position' => 'getPosition', + 'offset' => 'getOffset', + 'html' => 'getHtml', + 'css' => 'getCss', + 'width' => 'getWidth', + 'height' => 'getHeight', + 'effect' => 'getEffect' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name * * @return array */ - public static function openAPITypes() + public static function attributeMap() { - return self::$openAPITypes; + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + const STYLE_MINIMAL = 'minimal'; + const STYLE_BLOCKBUSTER = 'blockbuster'; + const STYLE_VOGUE = 'vogue'; + const STYLE_SKETCHY = 'sketchy'; + const STYLE_SKINNY = 'skinny'; + const STYLE_CHUNK = 'chunk'; + const STYLE_CHUNK_LIGHT = 'chunkLight'; + const STYLE_MARKER = 'marker'; + const STYLE_FUTURE = 'future'; + const STYLE_SUBTITLE = 'subtitle'; + const SIZE_XX_SMALL = 'xx-small'; + const SIZE_X_SMALL = 'x-small'; + const SIZE_SMALL = 'small'; + const SIZE_MEDIUM = 'medium'; + const SIZE_LARGE = 'large'; + const SIZE_X_LARGE = 'x-large'; + const SIZE_XX_LARGE = 'xx-large'; + const POSITION_TOP = 'top'; + const POSITION_TOP_RIGHT = 'topRight'; + const POSITION_RIGHT = 'right'; + const POSITION_BOTTOM_RIGHT = 'bottomRight'; + const POSITION_BOTTOM = 'bottom'; + const POSITION_BOTTOM_LEFT = 'bottomLeft'; + const POSITION_LEFT = 'left'; + const POSITION_TOP_LEFT = 'topLeft'; + const POSITION_CENTER = 'center'; + const EFFECT_FADE_IN = 'fadeIn'; + const EFFECT_FADE_OUT = 'fadeOut'; + const EFFECT_FADE_IN_FADE_OUT = 'fadeInFadeOut'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getStyleAllowableValues() + { + return [ + self::STYLE_MINIMAL, + self::STYLE_BLOCKBUSTER, + self::STYLE_VOGUE, + self::STYLE_SKETCHY, + self::STYLE_SKINNY, + self::STYLE_CHUNK, + self::STYLE_CHUNK_LIGHT, + self::STYLE_MARKER, + self::STYLE_FUTURE, + self::STYLE_SUBTITLE, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getSizeAllowableValues() + { + return [ + self::SIZE_XX_SMALL, + self::SIZE_X_SMALL, + self::SIZE_SMALL, + self::SIZE_MEDIUM, + self::SIZE_LARGE, + self::SIZE_X_LARGE, + self::SIZE_XX_LARGE, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getPositionAllowableValues() + { + return [ + self::POSITION_TOP, + self::POSITION_TOP_RIGHT, + self::POSITION_RIGHT, + self::POSITION_BOTTOM_RIGHT, + self::POSITION_BOTTOM, + self::POSITION_BOTTOM_LEFT, + self::POSITION_LEFT, + self::POSITION_TOP_LEFT, + self::POSITION_CENTER, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getEffectAllowableValues() + { + return [ + self::EFFECT_FADE_IN, + self::EFFECT_FADE_OUT, + self::EFFECT_FADE_IN_FADE_OUT, + ]; + } + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['type'] = $data['type'] ?? 'luma'; + $this->container['src'] = $data['src'] ?? null; + $this->container['trim'] = $data['trim'] ?? null; + $this->container['volume'] = $data['volume'] ?? 1; + $this->container['crop'] = $data['crop'] ?? null; + $this->container['text'] = $data['text'] ?? null; + $this->container['style'] = $data['style'] ?? null; + $this->container['color'] = $data['color'] ?? '#ffffff'; + $this->container['size'] = $data['size'] ?? 'medium'; + $this->container['background'] = $data['background'] ?? 'transparent'; + $this->container['position'] = $data['position'] ?? 'center'; + $this->container['offset'] = $data['offset'] ?? null; + $this->container['html'] = $data['html'] ?? null; + $this->container['css'] = $data['css'] ?? null; + $this->container['width'] = $data['width'] ?? null; + $this->container['height'] = $data['height'] ?? null; + $this->container['effect'] = $data['effect'] ?? null; + + // Initialize discriminator property with the model name. + $this->container['asset'] = static::$openAPIModelName; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['type'] === null) { + $invalidProperties[] = "'type' can't be null"; + } + if ($this->container['src'] === null) { + $invalidProperties[] = "'src' can't be null"; + } + if ($this->container['text'] === null) { + $invalidProperties[] = "'text' can't be null"; + } + $allowedValues = $this->getStyleAllowableValues(); + if (!is_null($this->container['style']) && !in_array($this->container['style'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'style', must be one of '%s'", + $this->container['style'], + implode("', '", $allowedValues) + ); + } + + $allowedValues = $this->getSizeAllowableValues(); + if (!is_null($this->container['size']) && !in_array($this->container['size'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'size', must be one of '%s'", + $this->container['size'], + implode("', '", $allowedValues) + ); + } + + $allowedValues = $this->getPositionAllowableValues(); + if (!is_null($this->container['position']) && !in_array($this->container['position'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'position', must be one of '%s'", + $this->container['position'], + implode("', '", $allowedValues) + ); + } + + if ($this->container['html'] === null) { + $invalidProperties[] = "'html' can't be null"; + } + $allowedValues = $this->getEffectAllowableValues(); + if (!is_null($this->container['effect']) && !in_array($this->container['effect'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'effect', must be one of '%s'", + $this->container['effect'], + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets type + * + * @return string + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string $type The type of asset - set to `luma` for luma mattes. + * + * @return self + */ + public function setType($type) + { + $this->container['type'] = $type; + + return $this; + } + + /** + * Gets src + * + * @return string + */ + public function getSrc() + { + return $this->container['src']; + } + + /** + * Sets src + * + * @param string $src The luma matte source URL. The URL must be publicly accessible or include credentials. + * + * @return self + */ + public function setSrc($src) + { + $this->container['src'] = $src; + + return $this; + } + + /** + * Gets trim + * + * @return float|null + */ + public function getTrim() + { + return $this->container['trim']; + } + + /** + * Sets trim + * + * @param float|null $trim The start trim point of the luma matte clip, in seconds (defaults to 0). Videos will start from the in trim point. A luma matte video will play until the file ends or the Clip length is reached. + * + * @return self + */ + public function setTrim($trim) + { + $this->container['trim'] = $trim; + + return $this; + } + + /** + * Gets volume + * + * @return float|null + */ + public function getVolume() + { + return $this->container['volume']; + } + + /** + * Sets volume + * + * @param float|null $volume Set the volume for the audio clip between 0 and 1 where 0 is muted and 1 is full volume (defaults to 1). + * + * @return self + */ + public function setVolume($volume) + { + $this->container['volume'] = $volume; + + return $this; + } + + /** + * Gets crop + * + * @return \Shotstack\Client\Model\Crop|null + */ + public function getCrop() + { + return $this->container['crop']; + } + + /** + * Sets crop + * + * @param \Shotstack\Client\Model\Crop|null $crop crop + * + * @return self + */ + public function setCrop($crop) + { + $this->container['crop'] = $crop; + + return $this; + } + + /** + * Gets text + * + * @return string + */ + public function getText() + { + return $this->container['text']; + } + + /** + * Sets text + * + * @param string $text The title text string - i.e. \"My Title\". + * + * @return self + */ + public function setText($text) + { + $this->container['text'] = $text; + + return $this; + } + + /** + * Gets style + * + * @return string|null + */ + public function getStyle() + { + return $this->container['style']; + } + + /** + * Sets style + * + * @param string|null $style Uses a preset to apply font properties and styling to the title.
  • `minimal`
  • `blockbuster`
  • `vogue`
  • `sketchy`
  • `skinny`
  • `chunk`
  • `chunkLight`
  • `marker`
  • `future`
  • `subtitle`
+ * + * @return self + */ + public function setStyle($style) + { + $allowedValues = $this->getStyleAllowableValues(); + if (!is_null($style) && !in_array($style, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'style', must be one of '%s'", + $style, + implode("', '", $allowedValues) + ) + ); + } + $this->container['style'] = $style; + + return $this; + } + + /** + * Gets color + * + * @return string|null + */ + public function getColor() + { + return $this->container['color']; + } + + /** + * Sets color + * + * @param string|null $color Set the text color using hexadecimal color notation. Transparency is supported by setting the first two characters of the hex string (opposite to HTML), i.e. #80ffffff will be white with 50% transparency. + * + * @return self + */ + public function setColor($color) + { + $this->container['color'] = $color; + + return $this; + } + + /** + * Gets size + * + * @return string|null + */ + public function getSize() + { + return $this->container['size']; + } + + /** + * Sets size + * + * @param string|null $size Set the relative size of the text using predefined sizes from xx-small to xx-large.
  • `xx-small`
  • `x-small`
  • `small`
  • `medium`
  • `large`
  • `x-large`
  • `xx-large`
+ * + * @return self + */ + public function setSize($size) + { + $allowedValues = $this->getSizeAllowableValues(); + if (!is_null($size) && !in_array($size, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'size', must be one of '%s'", + $size, + implode("', '", $allowedValues) + ) + ); + } + $this->container['size'] = $size; + + return $this; + } + + /** + * Gets background + * + * @return string|null + */ + public function getBackground() + { + return $this->container['background']; + } + + /** + * Sets background + * + * @param string|null $background Apply a background color behind the HTML bounding box using. Set the text color using hexadecimal color notation. Transparency is supported by setting the first two characters of the hex string (opposite to HTML), i.e. #80ffffff will be white with 50% transparency. + * + * @return self + */ + public function setBackground($background) + { + $this->container['background'] = $background; + + return $this; + } + + /** + * Gets position + * + * @return string|null + */ + public function getPosition() + { + return $this->container['position']; + } + + /** + * Sets position + * + * @param string|null $position Place the HTML in one of nine predefined positions within the HTML area.
  • `top` - top (center)
  • `topRight` - top right
  • `right` - right (center)
  • `bottomRight` - bottom right
  • `bottom` - bottom (center)
  • `bottomLeft` - bottom left
  • `left` - left (center)
  • `topLeft` - top left
  • `center` - center
+ * + * @return self + */ + public function setPosition($position) + { + $allowedValues = $this->getPositionAllowableValues(); + if (!is_null($position) && !in_array($position, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'position', must be one of '%s'", + $position, + implode("', '", $allowedValues) + ) + ); + } + $this->container['position'] = $position; + + return $this; + } + + /** + * Gets offset + * + * @return \Shotstack\Client\Model\Offset|null + */ + public function getOffset() + { + return $this->container['offset']; + } + + /** + * Sets offset + * + * @param \Shotstack\Client\Model\Offset|null $offset offset + * + * @return self + */ + public function setOffset($offset) + { + $this->container['offset'] = $offset; + + return $this; + } + + /** + * Gets html + * + * @return string + */ + public function getHtml() + { + return $this->container['html']; + } + + /** + * Sets html + * + * @param string $html The HTML text string. See list of [supported HTML tags](https://shotstack.io/docs/guide/architecting-an-application/html-support#supported-html-tags). + * + * @return self + */ + public function setHtml($html) + { + $this->container['html'] = $html; + + return $this; + } + + /** + * Gets css + * + * @return string|null + */ + public function getCss() + { + return $this->container['css']; + } + + /** + * Sets css + * + * @param string|null $css The CSS text string to apply styling to the HTML. See list of [support CSS properties](https://shotstack.io/docs/guide/architecting-an-application/html-support#supported-css-properties). + * + * @return self + */ + public function setCss($css) + { + $this->container['css'] = $css; + + return $this; + } + + /** + * Gets width + * + * @return int|null + */ + public function getWidth() + { + return $this->container['width']; + } + + /** + * Sets width + * + * @param int|null $width Set the width of the HTML asset bounding box in pixels. Text will wrap to fill the bounding box. + * + * @return self + */ + public function setWidth($width) + { + $this->container['width'] = $width; + + return $this; + } + + /** + * Gets height + * + * @return int|null + */ + public function getHeight() + { + return $this->container['height']; + } + + /** + * Sets height + * + * @param int|null $height Set the width of the HTML asset bounding box in pixels. Text and elements will be masked if they exceed the height of the bounding box. + * + * @return self + */ + public function setHeight($height) + { + $this->container['height'] = $height; + + return $this; + } + + /** + * Gets effect + * + * @return string|null + */ + public function getEffect() + { + return $this->container['effect']; + } + + /** + * Sets effect + * + * @param string|null $effect The effect to apply to the audio asset
  • `fadeIn` - fade volume in only
  • `fadeOut` - fade volume out only
  • `fadeInFadeOut` - fade volume in and out
+ * + * @return self + */ + public function setEffect($effect) + { + $allowedValues = $this->getEffectAllowableValues(); + if (!is_null($effect) && !in_array($effect, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'effect', must be one of '%s'", + $effect, + implode("', '", $allowedValues) + ) + ); + } + $this->container['effect'] = $effect; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } } + + diff --git a/src/Model/AssetRenderResponse.php b/src/Model/AssetRenderResponse.php index d7163f7..3687131 100644 --- a/src/Model/AssetRenderResponse.php +++ b/src/Model/AssetRenderResponse.php @@ -13,7 +13,7 @@ /** * Shotstack * - * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} + * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} * * The version of the OpenAPI document: v1 * Generated by: https://openapi-generator.tech diff --git a/src/Model/AssetResponse.php b/src/Model/AssetResponse.php index bf98af8..c87b9d2 100644 --- a/src/Model/AssetResponse.php +++ b/src/Model/AssetResponse.php @@ -13,7 +13,7 @@ /** * Shotstack * - * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} + * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} * * The version of the OpenAPI document: v1 * Generated by: https://openapi-generator.tech diff --git a/src/Model/AssetResponseAttributes.php b/src/Model/AssetResponseAttributes.php index a763562..be7540e 100644 --- a/src/Model/AssetResponseAttributes.php +++ b/src/Model/AssetResponseAttributes.php @@ -13,7 +13,7 @@ /** * Shotstack * - * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} + * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} * * The version of the OpenAPI document: v1 * Generated by: https://openapi-generator.tech diff --git a/src/Model/AssetResponseData.php b/src/Model/AssetResponseData.php index 8ae234d..f8a5236 100644 --- a/src/Model/AssetResponseData.php +++ b/src/Model/AssetResponseData.php @@ -13,7 +13,7 @@ /** * Shotstack * - * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} + * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} * * The version of the OpenAPI document: v1 * Generated by: https://openapi-generator.tech diff --git a/src/Model/AudioAsset.php b/src/Model/AudioAsset.php index 368a9f8..0ee33c8 100644 --- a/src/Model/AudioAsset.php +++ b/src/Model/AudioAsset.php @@ -13,7 +13,7 @@ /** * Shotstack * - * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} + * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} * * The version of the OpenAPI document: v1 * Generated by: https://openapi-generator.tech @@ -43,7 +43,7 @@ * @template TKey int|null * @template TValue mixed|null */ -class AudioAsset extends Asset implements ModelInterface, ArrayAccess, \JsonSerializable +class AudioAsset implements ModelInterface, ArrayAccess, \JsonSerializable { public const DISCRIMINATOR = null; diff --git a/src/Model/Clip.php b/src/Model/Clip.php index 4313917..9f57937 100644 --- a/src/Model/Clip.php +++ b/src/Model/Clip.php @@ -13,7 +13,7 @@ /** * Shotstack * - * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} + * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} * * The version of the OpenAPI document: v1 * Generated by: https://openapi-generator.tech @@ -416,7 +416,7 @@ public function valid() /** * Gets asset * - * @return Asset + * @return \Shotstack\Client\Model\Asset */ public function getAsset() { @@ -426,7 +426,7 @@ public function getAsset() /** * Sets asset * - * @param Asset $asset The type of asset to display for the duration of this Clip. Value must be one of TitleAsset, ImageAsset, VideoAsset, HtmlAsset, AudioAsset or LumaAsset + * @param \Shotstack\Client\Model\Asset $asset asset * * @return self */ diff --git a/src/Model/Crop.php b/src/Model/Crop.php index 48d1eec..a334641 100644 --- a/src/Model/Crop.php +++ b/src/Model/Crop.php @@ -13,7 +13,7 @@ /** * Shotstack * - * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} + * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} * * The version of the OpenAPI document: v1 * Generated by: https://openapi-generator.tech diff --git a/src/Model/Destinations.php b/src/Model/Destinations.php index 1548807..a4fcf82 100644 --- a/src/Model/Destinations.php +++ b/src/Model/Destinations.php @@ -1,32 +1,387 @@ https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} + * + * The version of the OpenAPI document: v1 + * Generated by: https://openapi-generator.tech + * OpenAPI Generator version: 5.4.0 + */ + +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ namespace Shotstack\Client\Model; -class Destinations +use \ArrayAccess; +use \Shotstack\Client\ObjectSerializer; + +/** + * Destinations Class Doc Comment + * + * @category Class + * @description A destination is a location where output files can be sent to for serving or hosting. By default all rendered assets are automatically sent to the [Shotstack hosting destination](https://shotstack.io/docs/guide/serving-assets/hosting). You can add other destinations to send assets to. The following destinations are available: <ul> <li><a href=\"#tocs_shotstackdestination\">DestinationShotstack</a></li> <li><a href=\"#tocs_muxdestination\">DestinationMux</a></li> </ul> + * @package Shotstack\Client + * @author OpenAPI Generator team + * @link https://openapi-generator.tech + * @implements \ArrayAccess + * @template TKey int|null + * @template TValue mixed|null + */ +class Destinations implements ModelInterface, ArrayAccess, \JsonSerializable { - const DISCRIMINATOR = null; + public const DISCRIMINATOR = 'destinations'; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'Destinations'; + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'provider' => 'string', + 'exclude' => 'bool', + 'options' => '\Shotstack\Client\Model\MuxDestinationOptions' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'provider' => null, + 'exclude' => null, + 'options' => null + ]; + /** * Array of property to type mappings. Used for (de)serialization * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * * @var string[] */ - protected static $openAPITypes = []; + protected static $attributeMap = [ + 'provider' => 'provider', + 'exclude' => 'exclude', + 'options' => 'options' + ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'provider' => 'setProvider', + 'exclude' => 'setExclude', + 'options' => 'setOptions' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'provider' => 'getProvider', + 'exclude' => 'getExclude', + 'options' => 'getOptions' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name * * @return array */ - public static function openAPITypes() + public static function attributeMap() { - return self::$openAPITypes; + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['provider'] = $data['provider'] ?? 'mux'; + $this->container['exclude'] = $data['exclude'] ?? false; + $this->container['options'] = $data['options'] ?? null; + + // Initialize discriminator property with the model name. + $this->container['destinations'] = static::$openAPIModelName; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['provider'] === null) { + $invalidProperties[] = "'provider' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets provider + * + * @return string + */ + public function getProvider() + { + return $this->container['provider']; + } + + /** + * Sets provider + * + * @param string $provider The destination to send rendered assets to - set to `mux` for Mux. + * + * @return self + */ + public function setProvider($provider) + { + $this->container['provider'] = $provider; + + return $this; + } + + /** + * Gets exclude + * + * @return bool|null + */ + public function getExclude() + { + return $this->container['exclude']; + } + + /** + * Sets exclude + * + * @param bool|null $exclude Set to `true` to opt-out from the Shotstack hosting and CDN service. All files must be downloaded within 24 hours of rendering. + * + * @return self + */ + public function setExclude($exclude) + { + $this->container['exclude'] = $exclude; + + return $this; + } + + /** + * Gets options + * + * @return \Shotstack\Client\Model\MuxDestinationOptions|null + */ + public function getOptions() + { + return $this->container['options']; + } + + /** + * Sets options + * + * @param \Shotstack\Client\Model\MuxDestinationOptions|null $options options + * + * @return self + */ + public function setOptions($options) + { + $this->container['options'] = $options; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } } + + diff --git a/src/Model/Edit.php b/src/Model/Edit.php index 090bdcf..914aa83 100644 --- a/src/Model/Edit.php +++ b/src/Model/Edit.php @@ -13,7 +13,7 @@ /** * Shotstack * - * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} + * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} * * The version of the OpenAPI document: v1 * Generated by: https://openapi-generator.tech @@ -345,7 +345,7 @@ public function getCallback() /** * Sets callback * - * @param string|null $callback An optional webhook callback URL used to receive status notifications when a render completes or fails. See [webhooks](https://shotstack.gitbook.io/docs/guides/architecting-an-application/webhooks) for more details. + * @param string|null $callback An optional webhook callback URL used to receive status notifications when a render completes or fails. See [webhooks](https://shotstack.io/docs/guide/architecting-an-application/webhooks) for more details. * * @return self */ @@ -369,7 +369,7 @@ public function getDisk() /** * Sets disk * - * @param string|null $disk The disk type to use for storing footage and assets for each render. See [disk types](https://shotstack.gitbook.io/docs/guides/architecting-an-application/disk-types) for more details.
  • `local` - optimized for high speed rendering with up to 512MB storage
  • `mount` - optimized for larger file sizes and longer videos with 5GB for source footage and 512MB for output render
+ * @param string|null $disk The disk type to use for storing footage and assets for each render. See [disk types](https://shotstack.io/docs/guide/architecting-an-application/disk-types) for more details.
  • `local` - optimized for high speed rendering with up to 512MB storage
  • `mount` - optimized for larger file sizes and longer videos with 5GB for source footage and 512MB for output render
* * @return self */ diff --git a/src/Model/FlipTransformation.php b/src/Model/FlipTransformation.php index 8a54210..36cf6c5 100644 --- a/src/Model/FlipTransformation.php +++ b/src/Model/FlipTransformation.php @@ -13,7 +13,7 @@ /** * Shotstack * - * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} + * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} * * The version of the OpenAPI document: v1 * Generated by: https://openapi-generator.tech diff --git a/src/Model/Font.php b/src/Model/Font.php index a9f7b32..983c464 100644 --- a/src/Model/Font.php +++ b/src/Model/Font.php @@ -13,7 +13,7 @@ /** * Shotstack * - * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} + * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} * * The version of the OpenAPI document: v1 * Generated by: https://openapi-generator.tech diff --git a/src/Model/HtmlAsset.php b/src/Model/HtmlAsset.php index 78316b7..fdf6fe0 100644 --- a/src/Model/HtmlAsset.php +++ b/src/Model/HtmlAsset.php @@ -13,7 +13,7 @@ /** * Shotstack * - * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} + * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} * * The version of the OpenAPI document: v1 * Generated by: https://openapi-generator.tech @@ -43,7 +43,7 @@ * @template TKey int|null * @template TValue mixed|null */ -class HtmlAsset extends Asset implements ModelInterface, ArrayAccess, \JsonSerializable +class HtmlAsset implements ModelInterface, ArrayAccess, \JsonSerializable { public const DISCRIMINATOR = null; @@ -323,7 +323,7 @@ public function getHtml() /** * Sets html * - * @param string $html The HTML text string. See list of [supported HTML tags](https://shotstack.gitbook.io/docs/guides/architecting-an-application/html-support#supported-html-tags). + * @param string $html The HTML text string. See list of [supported HTML tags](https://shotstack.io/docs/guide/architecting-an-application/html-support#supported-html-tags). * * @return self */ @@ -347,7 +347,7 @@ public function getCss() /** * Sets css * - * @param string|null $css The CSS text string to apply styling to the HTML. See list of [support CSS properties](https://shotstack.gitbook.io/docs/guides/architecting-an-application/html-support#supported-html-tags). + * @param string|null $css The CSS text string to apply styling to the HTML. See list of [support CSS properties](https://shotstack.io/docs/guide/architecting-an-application/html-support#supported-css-properties). * * @return self */ diff --git a/src/Model/ImageAsset.php b/src/Model/ImageAsset.php index 16a7e87..fdcc161 100644 --- a/src/Model/ImageAsset.php +++ b/src/Model/ImageAsset.php @@ -13,7 +13,7 @@ /** * Shotstack * - * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} + * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} * * The version of the OpenAPI document: v1 * Generated by: https://openapi-generator.tech @@ -43,7 +43,7 @@ * @template TKey int|null * @template TValue mixed|null */ -class ImageAsset extends Asset implements ModelInterface, ArrayAccess, \JsonSerializable +class ImageAsset implements ModelInterface, ArrayAccess, \JsonSerializable { public const DISCRIMINATOR = null; diff --git a/src/Model/LumaAsset.php b/src/Model/LumaAsset.php index 5f0db9e..9ff1c9d 100644 --- a/src/Model/LumaAsset.php +++ b/src/Model/LumaAsset.php @@ -13,7 +13,7 @@ /** * Shotstack * - * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} + * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} * * The version of the OpenAPI document: v1 * Generated by: https://openapi-generator.tech @@ -43,7 +43,7 @@ * @template TKey int|null * @template TValue mixed|null */ -class LumaAsset extends Asset implements ModelInterface, ArrayAccess, \JsonSerializable +class LumaAsset implements ModelInterface, ArrayAccess, \JsonSerializable { public const DISCRIMINATOR = null; diff --git a/src/Model/MergeField.php b/src/Model/MergeField.php index 326ed9c..daa7498 100644 --- a/src/Model/MergeField.php +++ b/src/Model/MergeField.php @@ -13,7 +13,7 @@ /** * Shotstack * - * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} + * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} * * The version of the OpenAPI document: v1 * Generated by: https://openapi-generator.tech diff --git a/src/Model/ModelInterface.php b/src/Model/ModelInterface.php index c0d4ada..f283dd0 100644 --- a/src/Model/ModelInterface.php +++ b/src/Model/ModelInterface.php @@ -13,7 +13,7 @@ /** * Shotstack * - * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} + * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} * * The version of the OpenAPI document: v1 * Generated by: https://openapi-generator.tech diff --git a/src/Model/MuxDestination.php b/src/Model/MuxDestination.php new file mode 100644 index 0000000..6bbcb56 --- /dev/null +++ b/src/Model/MuxDestination.php @@ -0,0 +1,354 @@ +https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} + * + * The version of the OpenAPI document: v1 + * Generated by: https://openapi-generator.tech + * OpenAPI Generator version: 5.4.0 + */ + +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +namespace Shotstack\Client\Model; + +use \ArrayAccess; +use \Shotstack\Client\ObjectSerializer; + +/** + * MuxDestination Class Doc Comment + * + * @category Class + * @description Send rendered videos to the [Mux](https://www.mux.com/) video hosting and streaming service. Add the `mux` destination provider to send the output video to Mux. Mux credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/mux), not in the request. + * @package Shotstack\Client + * @author OpenAPI Generator team + * @link https://openapi-generator.tech + * @implements \ArrayAccess + * @template TKey int|null + * @template TValue mixed|null + */ +class MuxDestination implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'MuxDestination'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'provider' => 'string', + 'options' => '\Shotstack\Client\Model\MuxDestinationOptions' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'provider' => null, + 'options' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'provider' => 'provider', + 'options' => 'options' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'provider' => 'setProvider', + 'options' => 'setOptions' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'provider' => 'getProvider', + 'options' => 'getOptions' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['provider'] = $data['provider'] ?? 'mux'; + $this->container['options'] = $data['options'] ?? null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['provider'] === null) { + $invalidProperties[] = "'provider' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets provider + * + * @return string + */ + public function getProvider() + { + return $this->container['provider']; + } + + /** + * Sets provider + * + * @param string $provider The destination to send rendered assets to - set to `mux` for Mux. + * + * @return self + */ + public function setProvider($provider) + { + $this->container['provider'] = $provider; + + return $this; + } + + /** + * Gets options + * + * @return \Shotstack\Client\Model\MuxDestinationOptions|null + */ + public function getOptions() + { + return $this->container['options']; + } + + /** + * Sets options + * + * @param \Shotstack\Client\Model\MuxDestinationOptions|null $options options + * + * @return self + */ + public function setOptions($options) + { + $this->container['options'] = $options; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/MuxDestinationOptions.php b/src/Model/MuxDestinationOptions.php new file mode 100644 index 0000000..cc5fcba --- /dev/null +++ b/src/Model/MuxDestinationOptions.php @@ -0,0 +1,345 @@ +https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} + * + * The version of the OpenAPI document: v1 + * Generated by: https://openapi-generator.tech + * OpenAPI Generator version: 5.4.0 + */ + +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +namespace Shotstack\Client\Model; + +use \ArrayAccess; +use \Shotstack\Client\ObjectSerializer; + +/** + * MuxDestinationOptions Class Doc Comment + * + * @category Class + * @description Pass additional options to control how Mux processes video. Currently supports playback policy option. + * @package Shotstack\Client + * @author OpenAPI Generator team + * @link https://openapi-generator.tech + * @implements \ArrayAccess + * @template TKey int|null + * @template TValue mixed|null + */ +class MuxDestinationOptions implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'MuxDestinationOptions'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'playback_policy' => 'string[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'playback_policy' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'playback_policy' => 'playbackPolicy' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'playback_policy' => 'setPlaybackPolicy' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'playback_policy' => 'getPlaybackPolicy' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + const PLAYBACK_POLICY__PUBLIC = 'public'; + const PLAYBACK_POLICY_SIGNED = 'signed'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getPlaybackPolicyAllowableValues() + { + return [ + self::PLAYBACK_POLICY__PUBLIC, + self::PLAYBACK_POLICY_SIGNED, + ]; + } + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['playback_policy'] = $data['playback_policy'] ?? null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets playback_policy + * + * @return string[]|null + */ + public function getPlaybackPolicy() + { + return $this->container['playback_policy']; + } + + /** + * Sets playback_policy + * + * @param string[]|null $playback_policy Sets the Mux `playback_policy` option. Value is an array of strings - use `public`, `signed`, or both. + * + * @return self + */ + public function setPlaybackPolicy($playback_policy) + { + $allowedValues = $this->getPlaybackPolicyAllowableValues(); + if (!is_null($playback_policy) && array_diff($playback_policy, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'playback_policy', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['playback_policy'] = $playback_policy; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/Offset.php b/src/Model/Offset.php index 546bf70..e5b2ffa 100644 --- a/src/Model/Offset.php +++ b/src/Model/Offset.php @@ -13,7 +13,7 @@ /** * Shotstack * - * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} + * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} * * The version of the OpenAPI document: v1 * Generated by: https://openapi-generator.tech diff --git a/src/Model/Output.php b/src/Model/Output.php index b0c6320..ca1c06e 100644 --- a/src/Model/Output.php +++ b/src/Model/Output.php @@ -13,7 +13,7 @@ /** * Shotstack * - * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} + * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} * * The version of the OpenAPI document: v1 * Generated by: https://openapi-generator.tech @@ -71,7 +71,7 @@ class Output implements ModelInterface, ArrayAccess, \JsonSerializable 'range' => '\Shotstack\Client\Model\Range', 'poster' => '\Shotstack\Client\Model\Poster', 'thumbnail' => '\Shotstack\Client\Model\Thumbnail', - 'destinations' => '\Shotstack\Client\Model\Destinations' + 'destinations' => '\Shotstack\Client\Model\Destinations[]' ]; /** @@ -784,7 +784,7 @@ public function setThumbnail($thumbnail) /** * Gets destinations * - * @return AnyOfShotstackDestination[]|null + * @return \Shotstack\Client\Model\Destinations[]|null */ public function getDestinations() { @@ -794,7 +794,7 @@ public function getDestinations() /** * Sets destinations * - * @param AnyOfShotstackDestination[]|null $destinations A destination is a location where output files can be sent to for serving or hosting. By default all rendered assets are automatically sent to the Shotstack hosting destination. [DestinationShotstack](/#tocs_shotstackdestination) is currently the only option with plans to add more in the future such as S3, YouTube, Vimeo and Mux. If you do not require hosting you can opt-out using the `exclude` property. + * @param \Shotstack\Client\Model\Destinations[]|null $destinations destinations * * @return self */ diff --git a/src/Model/Poster.php b/src/Model/Poster.php index 0abe1f9..cf34121 100644 --- a/src/Model/Poster.php +++ b/src/Model/Poster.php @@ -13,7 +13,7 @@ /** * Shotstack * - * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} + * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} * * The version of the OpenAPI document: v1 * Generated by: https://openapi-generator.tech diff --git a/src/Model/ProbeResponse.php b/src/Model/ProbeResponse.php index 68eb29a..85e9909 100644 --- a/src/Model/ProbeResponse.php +++ b/src/Model/ProbeResponse.php @@ -13,7 +13,7 @@ /** * Shotstack * - * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} + * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} * * The version of the OpenAPI document: v1 * Generated by: https://openapi-generator.tech diff --git a/src/Model/QueuedResponse.php b/src/Model/QueuedResponse.php index f4cbef2..adda9c8 100644 --- a/src/Model/QueuedResponse.php +++ b/src/Model/QueuedResponse.php @@ -13,7 +13,7 @@ /** * Shotstack * - * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} + * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} * * The version of the OpenAPI document: v1 * Generated by: https://openapi-generator.tech diff --git a/src/Model/QueuedResponseData.php b/src/Model/QueuedResponseData.php index 5371954..9a98056 100644 --- a/src/Model/QueuedResponseData.php +++ b/src/Model/QueuedResponseData.php @@ -13,7 +13,7 @@ /** * Shotstack * - * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} + * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} * * The version of the OpenAPI document: v1 * Generated by: https://openapi-generator.tech diff --git a/src/Model/Range.php b/src/Model/Range.php index e3391a4..e0dcbf3 100644 --- a/src/Model/Range.php +++ b/src/Model/Range.php @@ -13,7 +13,7 @@ /** * Shotstack * - * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} + * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} * * The version of the OpenAPI document: v1 * Generated by: https://openapi-generator.tech diff --git a/src/Model/RenderResponse.php b/src/Model/RenderResponse.php index 6039318..17244a8 100644 --- a/src/Model/RenderResponse.php +++ b/src/Model/RenderResponse.php @@ -13,7 +13,7 @@ /** * Shotstack * - * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} + * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} * * The version of the OpenAPI document: v1 * Generated by: https://openapi-generator.tech diff --git a/src/Model/RenderResponseData.php b/src/Model/RenderResponseData.php index 181d763..887686a 100644 --- a/src/Model/RenderResponseData.php +++ b/src/Model/RenderResponseData.php @@ -13,7 +13,7 @@ /** * Shotstack * - * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} + * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} * * The version of the OpenAPI document: v1 * Generated by: https://openapi-generator.tech diff --git a/src/Model/RotateTransformation.php b/src/Model/RotateTransformation.php index 9a55b0a..8e2785c 100644 --- a/src/Model/RotateTransformation.php +++ b/src/Model/RotateTransformation.php @@ -13,7 +13,7 @@ /** * Shotstack * - * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} + * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} * * The version of the OpenAPI document: v1 * Generated by: https://openapi-generator.tech diff --git a/src/Model/ShotstackDestination.php b/src/Model/ShotstackDestination.php index ee70368..77f54ed 100644 --- a/src/Model/ShotstackDestination.php +++ b/src/Model/ShotstackDestination.php @@ -13,7 +13,7 @@ /** * Shotstack * - * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} + * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} * * The version of the OpenAPI document: v1 * Generated by: https://openapi-generator.tech @@ -43,7 +43,7 @@ * @template TKey int|null * @template TValue mixed|null */ -class ShotstackDestination extends Destinations implements ModelInterface, ArrayAccess, \JsonSerializable +class ShotstackDestination implements ModelInterface, ArrayAccess, \JsonSerializable { public const DISCRIMINATOR = null; diff --git a/src/Model/Size.php b/src/Model/Size.php index ddf0f81..32b7d2f 100644 --- a/src/Model/Size.php +++ b/src/Model/Size.php @@ -13,7 +13,7 @@ /** * Shotstack * - * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} + * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} * * The version of the OpenAPI document: v1 * Generated by: https://openapi-generator.tech diff --git a/src/Model/SkewTransformation.php b/src/Model/SkewTransformation.php index 16f0417..66719bd 100644 --- a/src/Model/SkewTransformation.php +++ b/src/Model/SkewTransformation.php @@ -13,7 +13,7 @@ /** * Shotstack * - * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} + * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} * * The version of the OpenAPI document: v1 * Generated by: https://openapi-generator.tech diff --git a/src/Model/Soundtrack.php b/src/Model/Soundtrack.php index d65f2dd..be51228 100644 --- a/src/Model/Soundtrack.php +++ b/src/Model/Soundtrack.php @@ -13,7 +13,7 @@ /** * Shotstack * - * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} + * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} * * The version of the OpenAPI document: v1 * Generated by: https://openapi-generator.tech diff --git a/src/Model/Thumbnail.php b/src/Model/Thumbnail.php index 4c68a31..d52ae18 100644 --- a/src/Model/Thumbnail.php +++ b/src/Model/Thumbnail.php @@ -13,7 +13,7 @@ /** * Shotstack * - * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} + * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} * * The version of the OpenAPI document: v1 * Generated by: https://openapi-generator.tech diff --git a/src/Model/Timeline.php b/src/Model/Timeline.php index dde0bed..7034abc 100644 --- a/src/Model/Timeline.php +++ b/src/Model/Timeline.php @@ -13,7 +13,7 @@ /** * Shotstack * - * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} + * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} * * The version of the OpenAPI document: v1 * Generated by: https://openapi-generator.tech @@ -342,7 +342,7 @@ public function getCache() /** * Sets cache * - * @param bool|null $cache Disable the caching of ingested source footage and assets. See [caching](https://shotstack.gitbook.io/docs/guides/architecting-an-application/caching) for more details. + * @param bool|null $cache Disable the caching of ingested source footage and assets. See [caching](https://shotstack.io/docs/guide/architecting-an-application/caching) for more details. * * @return self */ diff --git a/src/Model/TitleAsset.php b/src/Model/TitleAsset.php index b38a824..25c6514 100644 --- a/src/Model/TitleAsset.php +++ b/src/Model/TitleAsset.php @@ -13,7 +13,7 @@ /** * Shotstack * - * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} + * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} * * The version of the OpenAPI document: v1 * Generated by: https://openapi-generator.tech @@ -43,7 +43,7 @@ * @template TKey int|null * @template TValue mixed|null */ -class TitleAsset extends Asset implements ModelInterface, ArrayAccess, \JsonSerializable +class TitleAsset implements ModelInterface, ArrayAccess, \JsonSerializable { public const DISCRIMINATOR = null; diff --git a/src/Model/Track.php b/src/Model/Track.php index 9c242fa..6d39f64 100644 --- a/src/Model/Track.php +++ b/src/Model/Track.php @@ -13,7 +13,7 @@ /** * Shotstack * - * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} + * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} * * The version of the OpenAPI document: v1 * Generated by: https://openapi-generator.tech diff --git a/src/Model/Transformation.php b/src/Model/Transformation.php index 9be3089..3204be3 100644 --- a/src/Model/Transformation.php +++ b/src/Model/Transformation.php @@ -13,7 +13,7 @@ /** * Shotstack * - * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} + * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} * * The version of the OpenAPI document: v1 * Generated by: https://openapi-generator.tech diff --git a/src/Model/Transition.php b/src/Model/Transition.php index 69caa90..81d254b 100644 --- a/src/Model/Transition.php +++ b/src/Model/Transition.php @@ -13,7 +13,7 @@ /** * Shotstack * - * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} + * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} * * The version of the OpenAPI document: v1 * Generated by: https://openapi-generator.tech diff --git a/src/Model/VideoAsset.php b/src/Model/VideoAsset.php index a4fa31a..c4505e7 100644 --- a/src/Model/VideoAsset.php +++ b/src/Model/VideoAsset.php @@ -13,7 +13,7 @@ /** * Shotstack * - * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} + * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} * * The version of the OpenAPI document: v1 * Generated by: https://openapi-generator.tech @@ -43,7 +43,7 @@ * @template TKey int|null * @template TValue mixed|null */ -class VideoAsset extends Asset implements ModelInterface, ArrayAccess, \JsonSerializable +class VideoAsset implements ModelInterface, ArrayAccess, \JsonSerializable { public const DISCRIMINATOR = null; diff --git a/src/ObjectSerializer.php b/src/ObjectSerializer.php index 5b60ef1..3b5bafd 100644 --- a/src/ObjectSerializer.php +++ b/src/ObjectSerializer.php @@ -13,7 +13,7 @@ /** * Shotstack * - * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} + * Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} * * The version of the OpenAPI document: v1 * Generated by: https://openapi-generator.tech