Skip to content

Commit a094121

Browse files
author
Jeff Shillitto
committed
Revert oneOf, anyOff files
1 parent 918d271 commit a094121

3 files changed

Lines changed: 3 additions & 293 deletions

File tree

‎src/model/asset.ts‎

Lines changed: 1 addition & 223 deletions
Original file line numberDiff line numberDiff line change
@@ -10,236 +10,14 @@
1010
* Do not edit the class manually.
1111
*/
1212

13-
import { RequestFile } from './models';
1413
import { AudioAsset } from './audioAsset';
15-
import { Crop } from './crop';
1614
import { HtmlAsset } from './htmlAsset';
1715
import { ImageAsset } from './imageAsset';
1816
import { LumaAsset } from './lumaAsset';
19-
import { Offset } from './offset';
2017
import { TitleAsset } from './titleAsset';
2118
import { VideoAsset } from './videoAsset';
2219

2320
/**
2421
* The type of asset to display for the duration of the 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>
2522
*/
26-
export class Asset {
27-
/**
28-
* The type of asset - set to `luma` for luma mattes.
29-
*/
30-
'type': string = 'luma';
31-
/**
32-
* The luma matte source URL. The URL must be publicly accessible or include credentials.
33-
*/
34-
'src': string;
35-
/**
36-
* 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.
37-
*/
38-
'trim'?: number;
39-
/**
40-
* Set the volume for the audio clip between 0 and 1 where 0 is muted and 1 is full volume (defaults to 1).
41-
*/
42-
'volume'?: number;
43-
/**
44-
* The volume effect to apply to the video asset <ul> <li>`fadeIn` - fade volume in only</li> <li>`fadeOut` - fade volume out only</li> <li>`fadeInFadeOut` - fade volume in and out</li> </ul>
45-
*/
46-
'volumeEffect'?: Asset.VolumeEffectEnum;
47-
/**
48-
* Adjust the playback speed of the audio clip between 0 (paused) and 10 (10x normal speed), where 1 is normal speed (defaults to 1). Adjusting the speed will also adjust the duration of the clip and may require you to adjust the Clip length. For example, if you set speed to 0.5, the clip will need to be 2x as long to play the entire audio (i.e. original length / 0.5). If you set speed to 2, the clip will need to be half as long to play the entire audio (i.e. original length / 2).
49-
*/
50-
'speed'?: number;
51-
'crop'?: Crop;
52-
/**
53-
* The title text string - i.e. \"My Title\".
54-
*/
55-
'text': string;
56-
/**
57-
* Uses a preset to apply font properties and styling to the title. <ul> <li>`minimal`</li> <li>`blockbuster`</li> <li>`vogue`</li> <li>`sketchy`</li> <li>`skinny`</li> <li>`chunk`</li> <li>`chunkLight`</li> <li>`marker`</li> <li>`future`</li> <li>`subtitle`</li> </ul>
58-
*/
59-
'style'?: Asset.StyleEnum;
60-
/**
61-
* 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.
62-
*/
63-
'color'?: string;
64-
/**
65-
* Set the relative size of the text using predefined sizes from xx-small to xx-large. <ul> <li>`xx-small`</li> <li>`x-small`</li> <li>`small`</li> <li>`medium`</li> <li>`large`</li> <li>`x-large`</li> <li>`xx-large`</li> </ul>
66-
*/
67-
'size'?: Asset.SizeEnum;
68-
/**
69-
* 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.
70-
*/
71-
'background'?: string;
72-
/**
73-
* Place the HTML in one of nine predefined positions within the HTML area. <ul> <li>`top` - top (center)</li> <li>`topRight` - top right</li> <li>`right` - right (center)</li> <li>`bottomRight` - bottom right</li> <li>`bottom` - bottom (center)</li> <li>`bottomLeft` - bottom left</li> <li>`left` - left (center)</li> <li>`topLeft` - top left</li> <li>`center` - center</li> </ul>
74-
*/
75-
'position'?: Asset.PositionEnum;
76-
'offset'?: Offset;
77-
/**
78-
* The HTML text string. See list of [supported HTML tags](https://shotstack.io/docs/guide/architecting-an-application/html-support/#supported-html-tags).
79-
*/
80-
'html': string;
81-
/**
82-
* 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).
83-
*/
84-
'css'?: string;
85-
/**
86-
* Set the width of the HTML asset bounding box in pixels. Text will wrap to fill the bounding box.
87-
*/
88-
'width'?: number;
89-
/**
90-
* 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.
91-
*/
92-
'height'?: number;
93-
/**
94-
* The effect to apply to the audio asset <ul> <li>`fadeIn` - fade volume in only</li> <li>`fadeOut` - fade volume out only</li> <li>`fadeInFadeOut` - fade volume in and out</li> </ul>
95-
*/
96-
'effect'?: Asset.EffectEnum;
97-
98-
static discriminator: string | undefined = "asset";
99-
100-
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
101-
{
102-
"name": "type",
103-
"baseName": "type",
104-
"type": "string"
105-
},
106-
{
107-
"name": "src",
108-
"baseName": "src",
109-
"type": "string"
110-
},
111-
{
112-
"name": "trim",
113-
"baseName": "trim",
114-
"type": "number"
115-
},
116-
{
117-
"name": "volume",
118-
"baseName": "volume",
119-
"type": "number"
120-
},
121-
{
122-
"name": "volumeEffect",
123-
"baseName": "volumeEffect",
124-
"type": "Asset.VolumeEffectEnum"
125-
},
126-
{
127-
"name": "speed",
128-
"baseName": "speed",
129-
"type": "number"
130-
},
131-
{
132-
"name": "crop",
133-
"baseName": "crop",
134-
"type": "Crop"
135-
},
136-
{
137-
"name": "text",
138-
"baseName": "text",
139-
"type": "string"
140-
},
141-
{
142-
"name": "style",
143-
"baseName": "style",
144-
"type": "Asset.StyleEnum"
145-
},
146-
{
147-
"name": "color",
148-
"baseName": "color",
149-
"type": "string"
150-
},
151-
{
152-
"name": "size",
153-
"baseName": "size",
154-
"type": "Asset.SizeEnum"
155-
},
156-
{
157-
"name": "background",
158-
"baseName": "background",
159-
"type": "string"
160-
},
161-
{
162-
"name": "position",
163-
"baseName": "position",
164-
"type": "Asset.PositionEnum"
165-
},
166-
{
167-
"name": "offset",
168-
"baseName": "offset",
169-
"type": "Offset"
170-
},
171-
{
172-
"name": "html",
173-
"baseName": "html",
174-
"type": "string"
175-
},
176-
{
177-
"name": "css",
178-
"baseName": "css",
179-
"type": "string"
180-
},
181-
{
182-
"name": "width",
183-
"baseName": "width",
184-
"type": "number"
185-
},
186-
{
187-
"name": "height",
188-
"baseName": "height",
189-
"type": "number"
190-
},
191-
{
192-
"name": "effect",
193-
"baseName": "effect",
194-
"type": "Asset.EffectEnum"
195-
} ];
196-
197-
static getAttributeTypeMap() {
198-
return Asset.attributeTypeMap;
199-
}
200-
}
201-
202-
export namespace Asset {
203-
export enum VolumeEffectEnum {
204-
FADE_IN = <any> 'fadeIn',
205-
FADE_OUT = <any> 'fadeOut',
206-
FADE_IN_FADE_OUT = <any> 'fadeInFadeOut'
207-
}
208-
export enum StyleEnum {
209-
MINIMAL = <any> 'minimal',
210-
BLOCKBUSTER = <any> 'blockbuster',
211-
VOGUE = <any> 'vogue',
212-
SKETCHY = <any> 'sketchy',
213-
SKINNY = <any> 'skinny',
214-
CHUNK = <any> 'chunk',
215-
CHUNK_LIGHT = <any> 'chunkLight',
216-
MARKER = <any> 'marker',
217-
FUTURE = <any> 'future',
218-
SUBTITLE = <any> 'subtitle'
219-
}
220-
export enum SizeEnum {
221-
XX_SMALL = <any> 'xx-small',
222-
X_SMALL = <any> 'x-small',
223-
SMALL = <any> 'small',
224-
MEDIUM = <any> 'medium',
225-
LARGE = <any> 'large',
226-
X_LARGE = <any> 'x-large',
227-
XX_LARGE = <any> 'xx-large'
228-
}
229-
export enum PositionEnum {
230-
TOP = <any> 'top',
231-
TOP_RIGHT = <any> 'topRight',
232-
RIGHT = <any> 'right',
233-
BOTTOM_RIGHT = <any> 'bottomRight',
234-
BOTTOM = <any> 'bottom',
235-
BOTTOM_LEFT = <any> 'bottomLeft',
236-
LEFT = <any> 'left',
237-
TOP_LEFT = <any> 'topLeft',
238-
CENTER = <any> 'center'
239-
}
240-
export enum EffectEnum {
241-
FADE_IN = <any> 'fadeIn',
242-
FADE_OUT = <any> 'fadeOut',
243-
FADE_IN_FADE_OUT = <any> 'fadeInFadeOut'
244-
}
245-
}
23+
export type Asset = AudioAsset | HtmlAsset | ImageAsset | LumaAsset | TitleAsset | VideoAsset;

‎src/model/destinations.ts‎

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -10,48 +10,12 @@
1010
* Do not edit the class manually.
1111
*/
1212

13-
import { RequestFile } from './models';
1413
import { GoogleCloudStorageDestination } from './googleCloudStorageDestination';
15-
import { GoogleCloudStorageDestinationOptions } from './googleCloudStorageDestinationOptions';
1614
import { MuxDestination } from './muxDestination';
1715
import { S3Destination } from './s3Destination';
1816
import { ShotstackDestination } from './shotstackDestination';
1917

2018
/**
2119
* A destination is a location where assets can be sent to for serving or hosting. Videos, images and audio files that are rendered by the [Edit API](#shotstack-edit) and [source](#tocs_source) and [rendition](#tocs_rendition) files generated by the [Ingest API](#shotstack-ingest) can be sent to destinations. You can also fetch a file from any public URL and [transfer](#transfer-asset) it to a destination. A file can be sent to one or more destinations including 3rd party destinations. By default all ingested and generated assets are automatically sent to the [Shotstack hosting destination](https://shotstack.io/docs/guide/serving-assets/hosting/). You can [opt-out](https://shotstack.io/docs/guide/serving-assets/self-host/) from by setting the Shotstack destination **exclude** property to **true**. The following destinations are available: <ul> <li><a href=\"#tocs_shotstackdestination\">ShotstackDestination</a></li> <li><a href=\"#tocs_muxdestination\">MuxDestination</a></li> <li><a href=\"#tocs_s3destination\">S3Destination</a></li> <li><a href=\"#tocs_googlecloudstoragedestination\">GoogleCloudStorageDestination</a></li> </ul>
2220
*/
23-
export class Destinations {
24-
/**
25-
* The destination to send assets to - set to `google-cloud-storage` for Google Cloud Storage.
26-
*/
27-
'provider': string = 'google-cloud-storage';
28-
/**
29-
* Set to `true` to [opt-out](https://shotstack.io/docs/guide/serving-assets/self-host/) from the Shotstack hosting and CDN service. All files must be downloaded within 24 hours of rendering.
30-
*/
31-
'exclude'?: boolean;
32-
'options'?: GoogleCloudStorageDestinationOptions;
33-
34-
static discriminator: string | undefined = "destinations";
35-
36-
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
37-
{
38-
"name": "provider",
39-
"baseName": "provider",
40-
"type": "string"
41-
},
42-
{
43-
"name": "exclude",
44-
"baseName": "exclude",
45-
"type": "boolean"
46-
},
47-
{
48-
"name": "options",
49-
"baseName": "options",
50-
"type": "GoogleCloudStorageDestinationOptions"
51-
} ];
52-
53-
static getAttributeTypeMap() {
54-
return Destinations.attributeTypeMap;
55-
}
56-
}
57-
21+
export type Destinations = GoogleCloudStorageDestination | MuxDestination | S3Destination | ShotstackDestination;

‎src/model/generatedAsset.ts‎

Lines changed: 1 addition & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -10,46 +10,14 @@
1010
* Do not edit the class manually.
1111
*/
1212

13-
import { RequestFile } from './models';
1413
import { DIDGeneratedAsset } from './dIDGeneratedAsset';
1514
import { ElevenLabsGeneratedAsset } from './elevenLabsGeneratedAsset';
1615
import { HeyGenGeneratedAsset } from './heyGenGeneratedAsset';
1716
import { OpenAiGeneratedAsset } from './openAiGeneratedAsset';
1817
import { ShotstackGeneratedAsset } from './shotstackGeneratedAsset';
1918
import { StabilityAiGeneratedAsset } from './stabilityAiGeneratedAsset';
20-
import { StabilityAiGeneratedAssetOptions } from './stabilityAiGeneratedAssetOptions';
2119

2220
/**
2321
* A generated asset is a media asset created by the Create API. You can use native or third party providers to generate video, audio and image files using Generative AI services like text-to-speech and text-to-avatar. The following providers are currently available: <ul> <li><a href=\"#tocs_shotstackgeneratedasset\">ShotstackGeneratedAsset</a></li> <li><a href=\"#tocs_didgeneratedasset\">DIDGeneratedAsset</a></li> <li><a href=\"#tocs_elevenlabsgeneratedasset\">ElevenLabsGeneratedAsset</a></li> <li><a href=\"#tocs_heygengeneratedasset\">HeyGenGeneratedAsset</a></li> <li><a href=\"#tocs_openaigeneratedasset\">OpenAiGeneratedAsset</a></li> <li><a href=\"#tocs_stabilityaigeneratedasset\">StabilityAiGeneratedAsset</a></li> </ul>
2422
*/
25-
export class GeneratedAsset {
26-
/**
27-
* The name of the provider - set to `stability-ai` for Stability AI.
28-
*/
29-
'provider': GeneratedAsset.ProviderEnum = GeneratedAsset.ProviderEnum.STABILITY_AI;
30-
'options': StabilityAiGeneratedAssetOptions;
31-
32-
static discriminator: string | undefined = "provider";
33-
34-
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
35-
{
36-
"name": "provider",
37-
"baseName": "provider",
38-
"type": "GeneratedAsset.ProviderEnum"
39-
},
40-
{
41-
"name": "options",
42-
"baseName": "options",
43-
"type": "StabilityAiGeneratedAssetOptions"
44-
} ];
45-
46-
static getAttributeTypeMap() {
47-
return GeneratedAsset.attributeTypeMap;
48-
}
49-
}
50-
51-
export namespace GeneratedAsset {
52-
export enum ProviderEnum {
53-
STABILITY_AI = <any> 'stability-ai'
54-
}
55-
}
23+
export type GeneratedAsset = DIDGeneratedAsset | ElevenLabsGeneratedAsset | HeyGenGeneratedAsset | ShotstackGeneratedAsset | StabilityAiGeneratedAsset | OpenAiGeneratedAsset;

0 commit comments

Comments
 (0)