Skip to content

Commit 4ef41ef

Browse files
author
Jeff Shillitto
committed
Update third party AI providers to handle multiple services
1 parent 0c24326 commit 4ef41ef

7 files changed

Lines changed: 69 additions & 10 deletions

‎src/model/dIDGeneratedAsset.ts‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*/
1212

1313
import { RequestFile } from './models';
14-
import { DIDTextToAvatarOptions } from './dIDTextToAvatarOptions';
14+
import { DIDGeneratedAssetOptions } from './dIDGeneratedAssetOptions';
1515

1616
/**
1717
* Generate assets using D-ID. D-ID provide a text-to-avatar service.
@@ -20,8 +20,8 @@ export class DIDGeneratedAsset {
2020
/**
2121
* The name of the provider - set to `d-id` for D-ID.
2222
*/
23-
'provider'?: DIDGeneratedAsset.ProviderEnum = DIDGeneratedAsset.ProviderEnum.D_ID;
24-
'options'?: DIDTextToAvatarOptions;
23+
'provider': DIDGeneratedAsset.ProviderEnum = DIDGeneratedAsset.ProviderEnum.D_ID;
24+
'options': DIDGeneratedAssetOptions;
2525

2626
static discriminator: string | undefined = undefined;
2727

@@ -34,7 +34,7 @@ export class DIDGeneratedAsset {
3434
{
3535
"name": "options",
3636
"baseName": "options",
37-
"type": "DIDTextToAvatarOptions"
37+
"type": "DIDGeneratedAssetOptions"
3838
} ];
3939

4040
static getAttributeTypeMap() {
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/**
2+
* Shotstack
3+
* 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 three API\'s, one for editing and generating assets (Edit API), one for managing hosted assets (Serve API) and one for ingesting and transforming source assets (Ingest API). Each API has it\'s own base URL and collection of endpoints. Each API uses the same set of API keys. **[Edit API](#shotstack-edit)** - [https://api.shotstack.io/edit/{version}](#)<br> Edit videos, images and audio assets in the cloud using a simple JSON schema and templates. **[Serve API](#shotstack-serve)** - [https://api.shotstack.io/serve/{version}](#)<br> Inspect and manage the hosting of assets generated by the Edit and Ingest APIs. **[Ingest API](#shotstack-ingest)** - [https://api.shotstack.io/ingest/{version}](#)<br> Ingest (upload, store and transform) source footage, images, audio and fonts to be used by the Edit API. **[Create API](#shotstack-create)** - [https://api.shotstack.io/create/{version}](#)<br> Generate images, videos, voice overs and text using built in and third party generative AI providers.
4+
*
5+
* The version of the OpenAPI document: v1
6+
*
7+
*
8+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9+
* https://openapi-generator.tech
10+
* Do not edit the class manually.
11+
*/
12+
13+
import { DIDTextToAvatarOptions } from './dIDTextToAvatarOptions';
14+
15+
/**
16+
* Generate assets using the third party D-ID provider AI services. The following AI generation services are available: <ul> <li><a href=\"#tocs_didtexttoavataroptions\">DidTextToAvatarOptions</a></li> </ul>
17+
*/
18+
export type DIDGeneratedAssetOptions = DIDTextToAvatarOptions;

‎src/model/elevenLabsGeneratedAsset.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*/
1212

1313
import { RequestFile } from './models';
14-
import { ElevenLabsTextToSpeechOptions } from './elevenLabsTextToSpeechOptions';
14+
import { ElevenLabsGeneratedAssetOptions } from './elevenLabsGeneratedAssetOptions';
1515

1616
/**
1717
* Generate assets using ElevenLabs. ElevenLabs provide a text-to-speech service.
@@ -21,7 +21,7 @@ export class ElevenLabsGeneratedAsset {
2121
* The name of the provider - set to `elevenlabs` for ElevenLabs.
2222
*/
2323
'provider'?: ElevenLabsGeneratedAsset.ProviderEnum = ElevenLabsGeneratedAsset.ProviderEnum.ELEVENLABS;
24-
'options'?: ElevenLabsTextToSpeechOptions;
24+
'options'?: ElevenLabsGeneratedAssetOptions;
2525

2626
static discriminator: string | undefined = undefined;
2727

@@ -34,7 +34,7 @@ export class ElevenLabsGeneratedAsset {
3434
{
3535
"name": "options",
3636
"baseName": "options",
37-
"type": "ElevenLabsTextToSpeechOptions"
37+
"type": "ElevenLabsGeneratedAssetOptions"
3838
} ];
3939

4040
static getAttributeTypeMap() {
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/**
2+
* Shotstack
3+
* 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 three API\'s, one for editing and generating assets (Edit API), one for managing hosted assets (Serve API) and one for ingesting and transforming source assets (Ingest API). Each API has it\'s own base URL and collection of endpoints. Each API uses the same set of API keys. **[Edit API](#shotstack-edit)** - [https://api.shotstack.io/edit/{version}](#)<br> Edit videos, images and audio assets in the cloud using a simple JSON schema and templates. **[Serve API](#shotstack-serve)** - [https://api.shotstack.io/serve/{version}](#)<br> Inspect and manage the hosting of assets generated by the Edit and Ingest APIs. **[Ingest API](#shotstack-ingest)** - [https://api.shotstack.io/ingest/{version}](#)<br> Ingest (upload, store and transform) source footage, images, audio and fonts to be used by the Edit API. **[Create API](#shotstack-create)** - [https://api.shotstack.io/create/{version}](#)<br> Generate images, videos, voice overs and text using built in and third party generative AI providers.
4+
*
5+
* The version of the OpenAPI document: v1
6+
*
7+
*
8+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9+
* https://openapi-generator.tech
10+
* Do not edit the class manually.
11+
*/
12+
13+
import { ElevenLabsTextToSpeechOptions } from './elevenLabsTextToSpeechOptions';
14+
15+
/**
16+
* Generate assets using the third party ElevenLabs provider AI services. The following AI generation services are available: <ul> <li><a href=\"#tocs_elevenlabstexttospeechoptions\">ElevenLabsTextToSpeechOptions</a></li> </ul>
17+
*/
18+
19+
export type ElevenLabsGeneratedAssetOptions = ElevenLabsTextToSpeechOptions;

‎src/model/heyGenGeneratedAsset.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*/
1212

1313
import { RequestFile } from './models';
14-
import { HeyGenTextToAvatarOptions } from './heyGenTextToAvatarOptions';
14+
import { HeyGenGeneratedAssetOptions } from './heyGenGeneratedAssetOptions';
1515

1616
/**
1717
* Generate assets using HeyGen. HeyGen provide a text-to-avatar service.
@@ -21,7 +21,7 @@ export class HeyGenGeneratedAsset {
2121
* The name of the provider - set to `heygen` for HeyGen.
2222
*/
2323
'provider'?: HeyGenGeneratedAsset.ProviderEnum = HeyGenGeneratedAsset.ProviderEnum.HEYGEN;
24-
'options'?: HeyGenTextToAvatarOptions;
24+
'options'?: HeyGenGeneratedAssetOptions;
2525

2626
static discriminator: string | undefined = undefined;
2727

@@ -34,7 +34,7 @@ export class HeyGenGeneratedAsset {
3434
{
3535
"name": "options",
3636
"baseName": "options",
37-
"type": "HeyGenTextToAvatarOptions"
37+
"type": "HeyGenGeneratedAssetOptions"
3838
} ];
3939

4040
static getAttributeTypeMap() {
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/**
2+
* Shotstack
3+
* 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 three API\'s, one for editing and generating assets (Edit API), one for managing hosted assets (Serve API) and one for ingesting and transforming source assets (Ingest API). Each API has it\'s own base URL and collection of endpoints. Each API uses the same set of API keys. **[Edit API](#shotstack-edit)** - [https://api.shotstack.io/edit/{version}](#)<br> Edit videos, images and audio assets in the cloud using a simple JSON schema and templates. **[Serve API](#shotstack-serve)** - [https://api.shotstack.io/serve/{version}](#)<br> Inspect and manage the hosting of assets generated by the Edit and Ingest APIs. **[Ingest API](#shotstack-ingest)** - [https://api.shotstack.io/ingest/{version}](#)<br> Ingest (upload, store and transform) source footage, images, audio and fonts to be used by the Edit API. **[Create API](#shotstack-create)** - [https://api.shotstack.io/create/{version}](#)<br> Generate images, videos, voice overs and text using built in and third party generative AI providers.
4+
*
5+
* The version of the OpenAPI document: v1
6+
*
7+
*
8+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9+
* https://openapi-generator.tech
10+
* Do not edit the class manually.
11+
*/
12+
13+
import { RequestFile } from './models';
14+
import { HeyGenTextToAvatarOptions } from './heyGenTextToAvatarOptions';
15+
16+
/**
17+
* Generate assets using the third party HeyGen provider AI services. The following AI generation services are available: <ul> <li><a href=\"#tocs_heygentexttoavataroptions\">HeyGenTextToAvatarOptions</a></li> </ul>
18+
*/
19+
export type HeyGenGeneratedAssetOptions = HeyGenTextToAvatarOptions;

‎src/model/models.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@ export * from './audioAsset';
99
export * from './clip';
1010
export * from './crop';
1111
export * from './dIDGeneratedAsset';
12+
export * from './dIDGeneratedAssetOptions';
1213
export * from './dIDTextToAvatarOptions';
1314
export * from './destinations';
1415
export * from './edit';
1516
export * from './elevenLabsGeneratedAsset';
17+
export * from './elevenLabsGeneratedAssetOptions';
1618
export * from './elevenLabsTextToSpeechOptions';
1719
export * from './flipTransformation';
1820
export * from './font';
@@ -23,6 +25,7 @@ export * from './generatedAssetResponse';
2325
export * from './generatedAssetResponseAttributes';
2426
export * from './generatedAssetResponseData';
2527
export * from './heyGenGeneratedAsset';
28+
export * from './heyGenGeneratedAssetOptions';
2629
export * from './heyGenTextToAvatarOptions';
2730
export * from './htmlAsset';
2831
export * from './imageAsset';

0 commit comments

Comments
 (0)