33import { APIResource } from '../../resource' ;
44import { isRequestOptions } from '../../core' ;
55import * as Core from '../../core' ;
6- import * as CameraMotionAPI from './camera-motion ' ;
7- import { CameraMotion , CameraMotionListResponse } from './camera-motion ' ;
6+ import * as ConceptsAPI from './concepts ' ;
7+ import { Concepts } from './concepts ' ;
88import * as ImageAPI from './image' ;
99import { Image , ImageCreateParams } from './image' ;
1010import * as VideoAPI from './video' ;
1111import { Video , VideoCreateParams } from './video' ;
1212
1313export class Generations extends APIResource {
14- cameraMotion : CameraMotionAPI . CameraMotion = new CameraMotionAPI . CameraMotion ( this . _client ) ;
14+ concepts : ConceptsAPI . Concepts = new ConceptsAPI . Concepts ( this . _client ) ;
1515 image : ImageAPI . Image = new ImageAPI . Image ( this . _client ) ;
1616 video : VideoAPI . Video = new VideoAPI . Video ( this . _client ) ;
1717
@@ -159,6 +159,11 @@ export namespace Generation {
159159 */
160160 callback_url ?: string ;
161161
162+ /**
163+ * The concepts of the generation
164+ */
165+ concepts ?: Array < GenerationRequest . Concept > ;
166+
162167 /**
163168 * The duration of the generation
164169 */
@@ -193,6 +198,16 @@ export namespace Generation {
193198 }
194199
195200 export namespace GenerationRequest {
201+ /**
202+ * The concept object
203+ */
204+ export interface Concept {
205+ /**
206+ * The key of the concept
207+ */
208+ key : string ;
209+ }
210+
196211 /**
197212 * The keyframes of the generation
198213 */
@@ -295,6 +310,16 @@ export namespace Generation {
295310 prompt ?: string ;
296311
297312 style_ref ?: Array < ImageGenerationRequest . StyleRef > ;
313+
314+ /**
315+ * Create image in synchronous mode and return complated image
316+ */
317+ sync ?: boolean ;
318+
319+ /**
320+ * The timeout for the synchronous image generation
321+ */
322+ sync_timeout ?: number ;
298323 }
299324
300325 export namespace ImageGenerationRequest {
@@ -446,6 +471,11 @@ export interface GenerationCreateParams {
446471 */
447472 callback_url ?: string ;
448473
474+ /**
475+ * The concepts of the generation
476+ */
477+ concepts ?: Array < GenerationCreateParams . Concept > ;
478+
449479 /**
450480 * The duration of the generation
451481 */
@@ -480,6 +510,16 @@ export interface GenerationCreateParams {
480510}
481511
482512export namespace GenerationCreateParams {
513+ /**
514+ * The concept object
515+ */
516+ export interface Concept {
517+ /**
518+ * The key of the concept
519+ */
520+ key : string ;
521+ }
522+
483523 /**
484524 * The keyframes of the generation
485525 */
@@ -585,7 +625,7 @@ export interface GenerationUpscaleParams {
585625 resolution ?: '540p' | '720p' | '1080p' | '4k' | ( string & { } ) ;
586626}
587627
588- Generations . CameraMotion = CameraMotion ;
628+ Generations . Concepts = Concepts ;
589629Generations . Image = Image ;
590630Generations . Video = Video ;
591631
@@ -599,7 +639,7 @@ export declare namespace Generations {
599639 type GenerationUpscaleParams as GenerationUpscaleParams ,
600640 } ;
601641
602- export { CameraMotion as CameraMotion , type CameraMotionListResponse as CameraMotionListResponse } ;
642+ export { Concepts as Concepts } ;
603643
604644 export { Image as Image , type ImageCreateParams as ImageCreateParams } ;
605645
0 commit comments