@runwayml/sdk 3.8.0 → 3.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/client.d.mts +1 -1
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +1 -1
  5. package/client.d.ts.map +1 -1
  6. package/lib/polling.d.mts +2 -2
  7. package/lib/polling.d.mts.map +1 -1
  8. package/lib/polling.d.ts +2 -2
  9. package/lib/polling.d.ts.map +1 -1
  10. package/lib/polling.js +1 -1
  11. package/lib/polling.js.map +1 -1
  12. package/lib/polling.mjs +1 -1
  13. package/lib/polling.mjs.map +1 -1
  14. package/package.json +1 -1
  15. package/resources/character-performance.d.mts +3 -0
  16. package/resources/character-performance.d.mts.map +1 -1
  17. package/resources/character-performance.d.ts +3 -0
  18. package/resources/character-performance.d.ts.map +1 -1
  19. package/resources/image-to-video.d.mts +3 -0
  20. package/resources/image-to-video.d.mts.map +1 -1
  21. package/resources/image-to-video.d.ts +3 -0
  22. package/resources/image-to-video.d.ts.map +1 -1
  23. package/resources/organization.d.mts +18 -489
  24. package/resources/organization.d.mts.map +1 -1
  25. package/resources/organization.d.ts +18 -489
  26. package/resources/organization.d.ts.map +1 -1
  27. package/resources/sound-effect.d.mts +3 -0
  28. package/resources/sound-effect.d.mts.map +1 -1
  29. package/resources/sound-effect.d.ts +3 -0
  30. package/resources/sound-effect.d.ts.map +1 -1
  31. package/resources/speech-to-speech.d.mts +3 -0
  32. package/resources/speech-to-speech.d.mts.map +1 -1
  33. package/resources/speech-to-speech.d.ts +3 -0
  34. package/resources/speech-to-speech.d.ts.map +1 -1
  35. package/resources/tasks.d.mts +94 -32
  36. package/resources/tasks.d.mts.map +1 -1
  37. package/resources/tasks.d.ts +94 -32
  38. package/resources/tasks.d.ts.map +1 -1
  39. package/resources/text-to-image.d.mts +54 -1
  40. package/resources/text-to-image.d.mts.map +1 -1
  41. package/resources/text-to-image.d.ts +54 -1
  42. package/resources/text-to-image.d.ts.map +1 -1
  43. package/resources/text-to-speech.d.mts +3 -0
  44. package/resources/text-to-speech.d.mts.map +1 -1
  45. package/resources/text-to-speech.d.ts +3 -0
  46. package/resources/text-to-speech.d.ts.map +1 -1
  47. package/resources/text-to-video.d.mts +3 -0
  48. package/resources/text-to-video.d.mts.map +1 -1
  49. package/resources/text-to-video.d.ts +3 -0
  50. package/resources/text-to-video.d.ts.map +1 -1
  51. package/resources/video-to-video.d.mts +3 -0
  52. package/resources/video-to-video.d.mts.map +1 -1
  53. package/resources/video-to-video.d.ts +3 -0
  54. package/resources/video-to-video.d.ts.map +1 -1
  55. package/resources/video-upscale.d.mts +3 -0
  56. package/resources/video-upscale.d.mts.map +1 -1
  57. package/resources/video-upscale.d.ts +3 -0
  58. package/resources/video-upscale.d.ts.map +1 -1
  59. package/resources/voice-dubbing.d.mts +3 -0
  60. package/resources/voice-dubbing.d.mts.map +1 -1
  61. package/resources/voice-dubbing.d.ts +3 -0
  62. package/resources/voice-dubbing.d.ts.map +1 -1
  63. package/resources/voice-isolation.d.mts +3 -0
  64. package/resources/voice-isolation.d.mts.map +1 -1
  65. package/resources/voice-isolation.d.ts +3 -0
  66. package/resources/voice-isolation.d.ts.map +1 -1
  67. package/src/client.ts +1 -1
  68. package/src/lib/polling.ts +4 -4
  69. package/src/resources/character-performance.ts +3 -0
  70. package/src/resources/image-to-video.ts +3 -0
  71. package/src/resources/organization.ts +33 -583
  72. package/src/resources/sound-effect.ts +3 -0
  73. package/src/resources/speech-to-speech.ts +3 -0
  74. package/src/resources/tasks.ts +116 -32
  75. package/src/resources/text-to-image.ts +91 -0
  76. package/src/resources/text-to-speech.ts +3 -0
  77. package/src/resources/text-to-video.ts +3 -0
  78. package/src/resources/video-to-video.ts +3 -0
  79. package/src/resources/video-upscale.ts +3 -0
  80. package/src/resources/voice-dubbing.ts +3 -0
  81. package/src/resources/voice-isolation.ts +3 -0
  82. package/src/version.ts +1 -1
  83. package/version.d.mts +1 -1
  84. package/version.d.ts +1 -1
  85. package/version.js +1 -1
  86. package/version.mjs +1 -1
@@ -18,50 +18,112 @@ export declare class Tasks extends APIResource {
18
18
  */
19
19
  delete(id: string, options?: RequestOptions): APIPromise<void>;
20
20
  }
21
- export interface TaskRetrieveResponse {
21
+ /**
22
+ * A pending task
23
+ */
24
+ export type TaskRetrieveResponse = TaskRetrieveResponse.Pending | TaskRetrieveResponse.Throttled | TaskRetrieveResponse.Cancelled | TaskRetrieveResponse.Running | TaskRetrieveResponse.Failed | TaskRetrieveResponse.Succeeded;
25
+ export declare namespace TaskRetrieveResponse {
22
26
  /**
23
- * The ID of the task being returned.
27
+ * A pending task
24
28
  */
25
- id: string;
29
+ interface Pending {
30
+ /**
31
+ * The ID of the task being returned.
32
+ */
33
+ id: string;
34
+ /**
35
+ * The timestamp that the task was submitted at.
36
+ */
37
+ createdAt: string;
38
+ status: 'PENDING';
39
+ }
26
40
  /**
27
- * The timestamp that the task was submitted at.
41
+ * A throttled task
28
42
  */
29
- createdAt: string;
43
+ interface Throttled {
44
+ /**
45
+ * The ID of the task being returned.
46
+ */
47
+ id: string;
48
+ /**
49
+ * The timestamp that the task was submitted at.
50
+ */
51
+ createdAt: string;
52
+ status: 'THROTTLED';
53
+ }
30
54
  /**
31
- * - `PENDING` tasks have been enqueued and are waiting to run.
32
- * - `THROTTLED` tasks are waiting to be enqueued until other jobs have finished
33
- * running.
34
- * - `RUNNING` tasks are currently being processed.
35
- * - `SUCCEEDED` tasks have completed successfully.
36
- * - `FAILED` tasks have failed.
37
- * - `CANCELLED` tasks have been aborted.
55
+ * A cancelled or deleted task
38
56
  */
39
- status: 'RUNNING' | 'SUCCEEDED' | 'FAILED' | 'PENDING' | 'CANCELLED' | 'THROTTLED';
57
+ interface Cancelled {
58
+ /**
59
+ * The ID of the task being returned.
60
+ */
61
+ id: string;
62
+ /**
63
+ * The timestamp that the task was submitted at.
64
+ */
65
+ createdAt: string;
66
+ status: 'CANCELLED';
67
+ }
40
68
  /**
41
- * If the status is `FAILED`, this will contain a human-friendly reason for the
42
- * failure.
69
+ * A running task
43
70
  */
44
- failure?: string;
71
+ interface Running {
72
+ /**
73
+ * The ID of the task being returned.
74
+ */
75
+ id: string;
76
+ /**
77
+ * The timestamp that the task was submitted at.
78
+ */
79
+ createdAt: string;
80
+ progress: number;
81
+ status: 'RUNNING';
82
+ }
45
83
  /**
46
- * If the task has a status of `FAILED`, this contains a machine-readable error
47
- * code. This is a dot-separated string, with the leftmost segment being the most
48
- * generic and the rightmost segment being the most specific. For example,
49
- * `SAFETY.INPUT.TEXT` would indicate that the task failed due to a content
50
- * moderation error on the input text.
84
+ * A failed task
51
85
  */
52
- failureCode?: string;
86
+ interface Failed {
87
+ /**
88
+ * The ID of the task being returned.
89
+ */
90
+ id: string;
91
+ /**
92
+ * The timestamp that the task was submitted at.
93
+ */
94
+ createdAt: string;
95
+ /**
96
+ * A human-friendly reason for the failure. We do not recommend returning this to
97
+ * users directly without adding context.
98
+ */
99
+ failure: string;
100
+ status: 'FAILED';
101
+ /**
102
+ * A machine-readable error code for the failure. See
103
+ * https://docs.dev.runwayml.com/errors/task-failures/ for more information.
104
+ */
105
+ failureCode?: string;
106
+ }
53
107
  /**
54
- * If the status is `SUCCEEDED`, this will contain an array of strings. Each string
55
- * will be a URL that returns an output from the task. URLs expire within 24-48
56
- * hours; fetch the task again to get fresh URLs. It is expected that you download
57
- * the assets at these URLs and store them in your own storage system.
108
+ * A succeeded task
58
109
  */
59
- output?: Array<string>;
60
- /**
61
- * If the task has a status of `RUNNING`, this will contain a floating point number
62
- * between 0 and 1 representing the progress of the generation.
63
- */
64
- progress?: number;
110
+ interface Succeeded {
111
+ /**
112
+ * The ID of the task being returned.
113
+ */
114
+ id: string;
115
+ /**
116
+ * The timestamp that the task was submitted at.
117
+ */
118
+ createdAt: string;
119
+ /**
120
+ * An array of URLs that return the output of the task. These URLs will expire
121
+ * within 24-48 hours; fetch the task again to get fresh URLs. It is expected that
122
+ * you download the assets at these URLs and store them in your own storage system.
123
+ */
124
+ output: Array<string>;
125
+ status: 'SUCCEEDED';
126
+ }
65
127
  }
66
128
  export declare namespace Tasks {
67
129
  export { type TaskRetrieveResponse as TaskRetrieveResponse };
@@ -1 +1 @@
1
- {"version":3,"file":"tasks.d.mts","sourceRoot":"","sources":["../src/resources/tasks.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;OAElB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;OAGG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,2BAA2B,CAAC,oBAAoB,CAAC;IAOjG;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAM/D;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;;;;;;OAQG;IACH,MAAM,EAAE,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,SAAS,GAAG,WAAW,GAAG,WAAW,CAAC;IAEnF;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEvB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,oBAAoB,IAAI,oBAAoB,EAAE,CAAC;CAC9D"}
1
+ {"version":3,"file":"tasks.d.mts","sourceRoot":"","sources":["../src/resources/tasks.ts"],"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,EAAE,SAAS,CAAC;KACnB;IAED;;OAEG;IACH,UAAiB,MAAM;QACrB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;;WAGG;QACH,OAAO,EAAE,MAAM,CAAC;QAEhB,MAAM,EAAE,QAAQ,CAAC;QAEjB;;;WAGG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB;IAED;;OAEG;IACH,UAAiB,SAAS;QACxB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;;;WAIG;QACH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAEtB,MAAM,EAAE,WAAW,CAAC;KACrB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,oBAAoB,IAAI,oBAAoB,EAAE,CAAC;CAC9D"}
@@ -18,50 +18,112 @@ export declare class Tasks extends APIResource {
18
18
  */
19
19
  delete(id: string, options?: RequestOptions): APIPromise<void>;
20
20
  }
21
- export interface TaskRetrieveResponse {
21
+ /**
22
+ * A pending task
23
+ */
24
+ export type TaskRetrieveResponse = TaskRetrieveResponse.Pending | TaskRetrieveResponse.Throttled | TaskRetrieveResponse.Cancelled | TaskRetrieveResponse.Running | TaskRetrieveResponse.Failed | TaskRetrieveResponse.Succeeded;
25
+ export declare namespace TaskRetrieveResponse {
22
26
  /**
23
- * The ID of the task being returned.
27
+ * A pending task
24
28
  */
25
- id: string;
29
+ interface Pending {
30
+ /**
31
+ * The ID of the task being returned.
32
+ */
33
+ id: string;
34
+ /**
35
+ * The timestamp that the task was submitted at.
36
+ */
37
+ createdAt: string;
38
+ status: 'PENDING';
39
+ }
26
40
  /**
27
- * The timestamp that the task was submitted at.
41
+ * A throttled task
28
42
  */
29
- createdAt: string;
43
+ interface Throttled {
44
+ /**
45
+ * The ID of the task being returned.
46
+ */
47
+ id: string;
48
+ /**
49
+ * The timestamp that the task was submitted at.
50
+ */
51
+ createdAt: string;
52
+ status: 'THROTTLED';
53
+ }
30
54
  /**
31
- * - `PENDING` tasks have been enqueued and are waiting to run.
32
- * - `THROTTLED` tasks are waiting to be enqueued until other jobs have finished
33
- * running.
34
- * - `RUNNING` tasks are currently being processed.
35
- * - `SUCCEEDED` tasks have completed successfully.
36
- * - `FAILED` tasks have failed.
37
- * - `CANCELLED` tasks have been aborted.
55
+ * A cancelled or deleted task
38
56
  */
39
- status: 'RUNNING' | 'SUCCEEDED' | 'FAILED' | 'PENDING' | 'CANCELLED' | 'THROTTLED';
57
+ interface Cancelled {
58
+ /**
59
+ * The ID of the task being returned.
60
+ */
61
+ id: string;
62
+ /**
63
+ * The timestamp that the task was submitted at.
64
+ */
65
+ createdAt: string;
66
+ status: 'CANCELLED';
67
+ }
40
68
  /**
41
- * If the status is `FAILED`, this will contain a human-friendly reason for the
42
- * failure.
69
+ * A running task
43
70
  */
44
- failure?: string;
71
+ interface Running {
72
+ /**
73
+ * The ID of the task being returned.
74
+ */
75
+ id: string;
76
+ /**
77
+ * The timestamp that the task was submitted at.
78
+ */
79
+ createdAt: string;
80
+ progress: number;
81
+ status: 'RUNNING';
82
+ }
45
83
  /**
46
- * If the task has a status of `FAILED`, this contains a machine-readable error
47
- * code. This is a dot-separated string, with the leftmost segment being the most
48
- * generic and the rightmost segment being the most specific. For example,
49
- * `SAFETY.INPUT.TEXT` would indicate that the task failed due to a content
50
- * moderation error on the input text.
84
+ * A failed task
51
85
  */
52
- failureCode?: string;
86
+ interface Failed {
87
+ /**
88
+ * The ID of the task being returned.
89
+ */
90
+ id: string;
91
+ /**
92
+ * The timestamp that the task was submitted at.
93
+ */
94
+ createdAt: string;
95
+ /**
96
+ * A human-friendly reason for the failure. We do not recommend returning this to
97
+ * users directly without adding context.
98
+ */
99
+ failure: string;
100
+ status: 'FAILED';
101
+ /**
102
+ * A machine-readable error code for the failure. See
103
+ * https://docs.dev.runwayml.com/errors/task-failures/ for more information.
104
+ */
105
+ failureCode?: string;
106
+ }
53
107
  /**
54
- * If the status is `SUCCEEDED`, this will contain an array of strings. Each string
55
- * will be a URL that returns an output from the task. URLs expire within 24-48
56
- * hours; fetch the task again to get fresh URLs. It is expected that you download
57
- * the assets at these URLs and store them in your own storage system.
108
+ * A succeeded task
58
109
  */
59
- output?: Array<string>;
60
- /**
61
- * If the task has a status of `RUNNING`, this will contain a floating point number
62
- * between 0 and 1 representing the progress of the generation.
63
- */
64
- progress?: number;
110
+ interface Succeeded {
111
+ /**
112
+ * The ID of the task being returned.
113
+ */
114
+ id: string;
115
+ /**
116
+ * The timestamp that the task was submitted at.
117
+ */
118
+ createdAt: string;
119
+ /**
120
+ * An array of URLs that return the output of the task. These URLs will expire
121
+ * within 24-48 hours; fetch the task again to get fresh URLs. It is expected that
122
+ * you download the assets at these URLs and store them in your own storage system.
123
+ */
124
+ output: Array<string>;
125
+ status: 'SUCCEEDED';
126
+ }
65
127
  }
66
128
  export declare namespace Tasks {
67
129
  export { type TaskRetrieveResponse as TaskRetrieveResponse };
@@ -1 +1 @@
1
- {"version":3,"file":"tasks.d.ts","sourceRoot":"","sources":["../src/resources/tasks.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;OAElB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;OAGG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,2BAA2B,CAAC,oBAAoB,CAAC;IAOjG;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAM/D;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,SAAS,EAAE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AEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB,MAAM,EAAE,SAAS,CAAC;KACnB;IAED;;OAEG;IACH,UAAiB,SAAS;QACxB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB,MAAM,EAAE,WAAW,CAAC;KACrB;IAED;;OAEG;IACH,UAAiB,SAAS;QACxB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB,MAAM,EAAE,WAAW,CAAC;KACrB;IAED;;OAEG;IACH,UAAiB,OAAO;QACtB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB,QAAQ,EAAE,MAAM,CAAC;QAEjB,MAAM,EAAE,SAAS,CAAC;KACnB;IAED;;OAEG;IACH,UAAiB,MAAM;QACrB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;;WAGG;QACH,OAAO,EAAE,MAAM,CAAC;QAEhB,MAAM,EAAE,QAAQ,CAAC;QAEjB;;;WAGG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB;IAED;;OAEG;IACH,UAAiB,SAAS;QACxB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;;;WAIG;QACH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAEtB,MAAM,EAAE,WAAW,CAAC;KACrB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,oBAAoB,IAAI,oBAAoB,EAAE,CAAC;CAC9D"}
@@ -8,9 +8,12 @@ export declare class TextToImage extends APIResource {
8
8
  create(body: TextToImageCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<TextToImageCreateResponse>;
9
9
  }
10
10
  export interface TextToImageCreateResponse {
11
+ /**
12
+ * The ID of the task that was created. Use this to retrieve the task later.
13
+ */
11
14
  id: string;
12
15
  }
13
- export type TextToImageCreateParams = TextToImageCreateParams.Gen4ImageTurbo | TextToImageCreateParams.Gen4Image | TextToImageCreateParams.Gemini2_5Flash;
16
+ export type TextToImageCreateParams = TextToImageCreateParams.Gen4ImageTurbo | TextToImageCreateParams.Gen4Image | TextToImageCreateParams.Gemini3Pro | TextToImageCreateParams.Gemini2_5Flash;
14
17
  export declare namespace TextToImageCreateParams {
15
18
  interface Gen4ImageTurbo {
16
19
  model: 'gen4_image_turbo';
@@ -45,6 +48,10 @@ export declare namespace TextToImageCreateParams {
45
48
  * A HTTPS URL.
46
49
  */
47
50
  uri: string;
51
+ /**
52
+ * A tag to identify the reference image. This is used to reference the image in
53
+ * prompt text.
54
+ */
48
55
  tag?: string;
49
56
  }
50
57
  /**
@@ -101,6 +108,48 @@ export declare namespace TextToImageCreateParams {
101
108
  * A HTTPS URL.
102
109
  */
103
110
  uri: string;
111
+ /**
112
+ * A tag to identify the reference image. This is used to reference the image in
113
+ * prompt text.
114
+ */
115
+ tag?: string;
116
+ }
117
+ }
118
+ interface Gemini3Pro {
119
+ model: 'gemini_3_pro';
120
+ /**
121
+ * A non-empty string up to 1000 characters (measured in UTF-16 code units). This
122
+ * should describe in detail what should appear in the output.
123
+ */
124
+ promptText: string;
125
+ /**
126
+ * The resolution of the output image.
127
+ */
128
+ ratio: '1344:768' | '768:1344' | '1024:1024' | '1184:864' | '864:1184' | '1536:672' | '832:1248' | '1248:832' | '896:1152' | '1152:896' | '2048:2048' | '1696:2528' | '2528:1696' | '1792:2400' | '2400:1792' | '1856:2304' | '2304:1856' | '1536:2752' | '2752:1536' | '3168:1344' | '4096:4096' | '3392:5056' | '5056:3392' | '3584:4800' | '4800:3584' | '3712:4608' | '4608:3712' | '3072:5504' | '5504:3072' | '6336:2688';
129
+ /**
130
+ * An array of up to 14 images to be used as references for the generated image
131
+ * output. Up to five of those images can pass `subject: "human"` to maintain
132
+ * character consistency, and up to nine of those images can pass
133
+ * `subject: "object"` with high-fidelity images of objects to include in the
134
+ * output.
135
+ */
136
+ referenceImages?: Array<Gemini3Pro.ReferenceImage>;
137
+ }
138
+ namespace Gemini3Pro {
139
+ interface ReferenceImage {
140
+ /**
141
+ * Whether this is a reference of a human subject (for character consistency) or an
142
+ * object that appears in the output.
143
+ */
144
+ subject: 'object' | 'human';
145
+ /**
146
+ * A HTTPS URL.
147
+ */
148
+ uri: string;
149
+ /**
150
+ * A tag to identify the reference image. This is used to reference the image in
151
+ * prompt text.
152
+ */
104
153
  tag?: string;
105
154
  }
106
155
  }
@@ -127,6 +176,10 @@ export declare namespace TextToImageCreateParams {
127
176
  * A HTTPS URL.
128
177
  */
129
178
  uri: string;
179
+ /**
180
+ * A tag to identify the reference image. This is used to reference the image in
181
+ * prompt text.
182
+ */
130
183
  tag?: string;
131
184
  }
132
185
  }
@@ -1 +1 @@
1
- {"version":3,"file":"text-to-image.d.mts","sourceRoot":"","sources":["../src/resources/text-to-image.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,yBAAyB,CAAC;CAK1D;AAED,MAAM,WAAW,yBAAyB;IACxC,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,MAAM,uBAAuB,GAC/B,uBAAuB,CAAC,cAAc,GACtC,uBAAuB,CAAC,SAAS,GACjC,uBAAuB,CAAC,cAAc,CAAC;AAE3C,MAAM,CAAC,OAAO,WAAW,uBAAuB,CAAC;IAC/C,UAAiB,cAAc;QAC7B,KAAK,EAAE,kBAAkB,CAAC;QAE1B;;;WAGG;QACH,UAA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qBAAqB,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;SACxC;QAED,UAAiB,cAAc;YAC7B;;eAEG;YACH,GAAG,EAAE,MAAM,CAAC;YAEZ,GAAG,CAAC,EAAE,MAAM,CAAC;SACd;KACF;IAED,UAAiB,cAAc;QAC7B,KAAK,EAAE,kBAAkB,CAAC;QAE1B;;;WAGG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,KAAK,EACD,UAAU,GACV,UAAU,GACV,WAAW,GACX,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,CAAC;QAEf;;;WAGG;QACH,eAAe,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;KACxD;IAED,UAAiB,cAAc,CAAC;QAC9B,UAAiB,cAAc;YAC7B;;eAEG;YACH,GAAG,EAAE,MAAM,CAAC;YAEZ,GAAG,CAAC,EAAE,MAAM,CAAC;SACd;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
1
+ {"version":3,"file":"text-to-image.d.mts","sourceRoot":"","sources":["../src/resources/text-to-image.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,yBAAyB,CAAC;CAK1D;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,MAAM,uBAAuB,GAC/B,uBAAuB,CAAC,cAAc,GACtC,uBAAuB,CAAC,SAAS,GACjC,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,UAAU,GACV,UAAU,GACV,WAAW,GACX,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,CAAC;QAEf;;;WAGG;QACH,eAAe,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;KACxD;IAED,UAAiB,cAAc,CAAC;QAC9B,UAAiB,cAAc;YAC7B;;eAEG;YACH,GAAG,EAAE,MAAM,CAAC;YAEZ;;;eAGG;YACH,GAAG,CAAC,EAAE,MAAM,CAAC;SACd;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
@@ -8,9 +8,12 @@ export declare class TextToImage extends APIResource {
8
8
  create(body: TextToImageCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<TextToImageCreateResponse>;
9
9
  }
10
10
  export interface TextToImageCreateResponse {
11
+ /**
12
+ * The ID of the task that was created. Use this to retrieve the task later.
13
+ */
11
14
  id: string;
12
15
  }
13
- export type TextToImageCreateParams = TextToImageCreateParams.Gen4ImageTurbo | TextToImageCreateParams.Gen4Image | TextToImageCreateParams.Gemini2_5Flash;
16
+ export type TextToImageCreateParams = TextToImageCreateParams.Gen4ImageTurbo | TextToImageCreateParams.Gen4Image | TextToImageCreateParams.Gemini3Pro | TextToImageCreateParams.Gemini2_5Flash;
14
17
  export declare namespace TextToImageCreateParams {
15
18
  interface Gen4ImageTurbo {
16
19
  model: 'gen4_image_turbo';
@@ -45,6 +48,10 @@ export declare namespace TextToImageCreateParams {
45
48
  * A HTTPS URL.
46
49
  */
47
50
  uri: string;
51
+ /**
52
+ * A tag to identify the reference image. This is used to reference the image in
53
+ * prompt text.
54
+ */
48
55
  tag?: string;
49
56
  }
50
57
  /**
@@ -101,6 +108,48 @@ export declare namespace TextToImageCreateParams {
101
108
  * A HTTPS URL.
102
109
  */
103
110
  uri: string;
111
+ /**
112
+ * A tag to identify the reference image. This is used to reference the image in
113
+ * prompt text.
114
+ */
115
+ tag?: string;
116
+ }
117
+ }
118
+ interface Gemini3Pro {
119
+ model: 'gemini_3_pro';
120
+ /**
121
+ * A non-empty string up to 1000 characters (measured in UTF-16 code units). This
122
+ * should describe in detail what should appear in the output.
123
+ */
124
+ promptText: string;
125
+ /**
126
+ * The resolution of the output image.
127
+ */
128
+ ratio: '1344:768' | '768:1344' | '1024:1024' | '1184:864' | '864:1184' | '1536:672' | '832:1248' | '1248:832' | '896:1152' | '1152:896' | '2048:2048' | '1696:2528' | '2528:1696' | '1792:2400' | '2400:1792' | '1856:2304' | '2304:1856' | '1536:2752' | '2752:1536' | '3168:1344' | '4096:4096' | '3392:5056' | '5056:3392' | '3584:4800' | '4800:3584' | '3712:4608' | '4608:3712' | '3072:5504' | '5504:3072' | '6336:2688';
129
+ /**
130
+ * An array of up to 14 images to be used as references for the generated image
131
+ * output. Up to five of those images can pass `subject: "human"` to maintain
132
+ * character consistency, and up to nine of those images can pass
133
+ * `subject: "object"` with high-fidelity images of objects to include in the
134
+ * output.
135
+ */
136
+ referenceImages?: Array<Gemini3Pro.ReferenceImage>;
137
+ }
138
+ namespace Gemini3Pro {
139
+ interface ReferenceImage {
140
+ /**
141
+ * Whether this is a reference of a human subject (for character consistency) or an
142
+ * object that appears in the output.
143
+ */
144
+ subject: 'object' | 'human';
145
+ /**
146
+ * A HTTPS URL.
147
+ */
148
+ uri: string;
149
+ /**
150
+ * A tag to identify the reference image. This is used to reference the image in
151
+ * prompt text.
152
+ */
104
153
  tag?: string;
105
154
  }
106
155
  }
@@ -127,6 +176,10 @@ export declare namespace TextToImageCreateParams {
127
176
  * A HTTPS URL.
128
177
  */
129
178
  uri: string;
179
+ /**
180
+ * A tag to identify the reference image. This is used to reference the image in
181
+ * prompt text.
182
+ */
130
183
  tag?: string;
131
184
  }
132
185
  }
@@ -1 +1 @@
1
- {"version":3,"file":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AO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
1
+ {"version":3,"file":"text-to-image.d.ts","sourceRoot":"","sources":["../src/resources/text-to-image.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,yBAAyB,CAAC;CAK1D;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,MAAM,uBAAuB,GAC/B,uBAAuB,CAAC,cAAc,GACtC,uBAAuB,CAAC,SAAS,GACjC,uBAAuB,CAAC,UAAU,GAClC,uBAAuB,CAAC,cAAc,CAAC;AAE3C,MAAM,CAAC,OAAO,WAAW,uBAAuB,CAAC;IAC/C,UAAiB,cAAc;QAC7B,KAAK,EAAE,kBAAkB,CAAC;QAE1B;;;WAGG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,KAAK,EACD,WAAW,GACX,WAAW,GACX,UAAU,GACV,UAAU,GACV,WAAW,GACX,WAAW,GACX,UAAU,GACV,WAAW,GACX,WAAW,GACX,UAAU,GACV,UAAU,GACV,UAAU,GACV,SAAS,GACT,SAAS,GACT,SAAS,GACT,UAAU,CAAC;QAEf;;;WAGG;QACH,eAAe,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;QAEtD;;WAEG;QACH,iBAAiB,CAAC,EAAE,cAAc,CAAC,iBAAiB,CAAC;QAErD;;;;WAIG;QACH,IAAI,CAAC,EAAE,MAAM,CAAC;KACf;IAED,UAAiB,cAAc,CAAC;QAC9B,UAAiB,cAA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AW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,CAAC;QAEhB;;;;;;WAMG;QACH,eAAe,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC;KACpD;IAED,UAAiB,UAAU,CAAC;QAC1B,UAAiB,cAAc;YAC7B;;;eAGG;YACH,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC;YAE5B;;eAEG;YACH,GAAG,EAAE,MAAM,CAAC;YAEZ;;;eAGG;YACH,GAAG,CAAC,EAAE,MAAM,CAAC;SACd;KACF;IAED,UAAiB,cAAc;QAC7B,KAAK,EAAE,kBAAkB,CAAC;QAE1B;;;WAGG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,KAAK,EACD,UAAU,GACV,UAAU,GACV,WAAW,GACX,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,CAAC;QAEf;;;WAGG;QACH,eAAe,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;KACxD;IAED,UAAiB,cAAc,CAAC;QAC9B,UAAiB,cAAc;YAC7B;;eAEG;YACH,GAAG,EAAE,MAAM,CAAC;YAEZ;;;eAGG;YACH,GAAG,CAAC,EAAE,MAAM,CAAC;SACd;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
@@ -8,6 +8,9 @@ export declare class TextToSpeech extends APIResource {
8
8
  create(body: TextToSpeechCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<TextToSpeechCreateResponse>;
9
9
  }
10
10
  export interface TextToSpeechCreateResponse {
11
+ /**
12
+ * The ID of the task that was created. Use this to retrieve the task later.
13
+ */
11
14
  id: string;
12
15
  }
13
16
  export interface TextToSpeechCreateParams {
@@ -1 +1 @@
1
- {"version":3,"file":"text-to-speech.d.mts","sourceRoot":"","sources":["../src/resources/text-to-speech.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,0BAA0B,CAAC;CAK3D;AAED,MAAM,WAAW,0BAA0B;IACzC,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,wBAAwB,CAAC;IAEhC;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,KAAK,EAAE,wBAAwB,CAAC,KAAK,CAAC;CACvC;AAED,yBAAiB,wBAAwB,CAAC;IACxC;;OAEG;IACH,UAAiB,KAAK;QACpB;;WAEG;QACH,QAAQ,EACJ,MAAM,GACN,OAAO,GACP,QAAQ,GACR,SAAS,GACT,OAAO,GACP,MAAM,GACN,OAAO,GACP,OAAO,GACP,MAAM,GACN,QAAQ,GACR,SAAS,GACT,OAAO,GACP,QAAQ,GACR,SAAS,GACT,QAAQ,GACR,QAAQ,GACR,MAAM,GACN,OAAO,GACP,MAAM,GACN,MAAM,GACN,SAAS,GACT,SAAS,GACT,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,OAAO,GACP,KAAK,GACL,OAAO,GACP,QAAQ,GACR,OAAO,GACP,QAAQ,GACR,MAAM,GACN,OAAO,GACP,MAAM,GACN,OAAO,GACP,MAAM,GACN,MAAM,GACN,QAAQ,GACR,OAAO,GACP,SAAS,GACT,MAAM,GACN,SAAS,GACT,UAAU,GACV,OAAO,GACP,KAAK,GACL,OAAO,GACP,UAAU,GACV,OAAO,GACP,QAAQ,CAAC;QAEb,IAAI,EAAE,eAAe,CAAC;KACvB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
1
+ {"version":3,"file":"text-to-speech.d.mts","sourceRoot":"","sources":["../src/resources/text-to-speech.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,0BAA0B,CAAC;CAK3D;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,wBAAwB,CAAC;IAEhC;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,KAAK,EAAE,wBAAwB,CAAC,KAAK,CAAC;CACvC;AAED,yBAAiB,wBAAwB,CAAC;IACxC;;OAEG;IACH,UAAiB,KAAK;QACpB;;WAEG;QACH,QAAQ,EACJ,MAAM,GACN,OAAO,GACP,QAAQ,GACR,SAAS,GACT,OAAO,GACP,MAAM,GACN,OAAO,GACP,OAAO,GACP,MAAM,GACN,QAAQ,GACR,SAAS,GACT,OAAO,GACP,QAAQ,GACR,SAAS,GACT,QAAQ,GACR,QAAQ,GACR,MAAM,GACN,OAAO,GACP,MAAM,GACN,MAAM,GACN,SAAS,GACT,SAAS,GACT,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,OAAO,GACP,KAAK,GACL,OAAO,GACP,QAAQ,GACR,OAAO,GACP,QAAQ,GACR,MAAM,GACN,OAAO,GACP,MAAM,GACN,OAAO,GACP,MAAM,GACN,MAAM,GACN,QAAQ,GACR,OAAO,GACP,SAAS,GACT,MAAM,GACN,SAAS,GACT,UAAU,GACV,OAAO,GACP,KAAK,GACL,OAAO,GACP,UAAU,GACV,OAAO,GACP,QAAQ,CAAC;QAEb,IAAI,EAAE,eAAe,CAAC;KACvB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
@@ -8,6 +8,9 @@ export declare class TextToSpeech extends APIResource {
8
8
  create(body: TextToSpeechCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<TextToSpeechCreateResponse>;
9
9
  }
10
10
  export interface TextToSpeechCreateResponse {
11
+ /**
12
+ * The ID of the task that was created. Use this to retrieve the task later.
13
+ */
11
14
  id: string;
12
15
  }
13
16
  export interface TextToSpeechCreateParams {
@@ -1 +1 @@
1
- {"version":3,"file":"text-to-speech.d.ts","sourceRoot":"","sources":["../src/resources/text-to-speech.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,0BAA0B,CAAC;CAK3D;AAED,MAAM,WAAW,0BAA0B;IACzC,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,wBAAwB,CAAC;IAEhC;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,KAAK,EAAE,wBAAwB,CAAC,KAAK,CAAC;CACvC;AAED,yBAAiB,wBAAwB,CAAC;IACxC;;OAEG;IACH,UAAiB,KAAK;QACpB;;WAEG;QACH,QAAQ,EACJ,MAAM,GACN,OAAO,GACP,QAAQ,GACR,SAAS,GACT,OAAO,GACP,MAAM,GACN,OAAO,GACP,OAAO,GACP,MAAM,GACN,QAAQ,GACR,SAAS,GACT,OAAO,GACP,QAAQ,GACR,SAAS,GACT,QAAQ,GACR,QAAQ,GACR,MAAM,GACN,OAAO,GACP,MAAM,GACN,MAAM,GACN,SAAS,GACT,SAAS,GACT,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,OAAO,GACP,KAAK,GACL,OAAO,GACP,QAAQ,GACR,OAAO,GACP,QAAQ,GACR,MAAM,GACN,OAAO,GACP,MAAM,GACN,OAAO,GACP,MAAM,GACN,MAAM,GACN,QAAQ,GACR,OAAO,GACP,SAAS,GACT,MAAM,GACN,SAAS,GACT,UAAU,GACV,OAAO,GACP,KAAK,GACL,OAAO,GACP,UAAU,GACV,OAAO,GACP,QAAQ,CAAC;QAEb,IAAI,EAAE,eAAe,CAAC;KACvB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
1
+ {"version":3,"file":"text-to-speech.d.ts","sourceRoot":"","sources":["../src/resources/text-to-speech.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,0BAA0B,CAAC;CAK3D;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,wBAAwB,CAAC;IAEhC;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,KAAK,EAAE,wBAAwB,CAAC,KAAK,CAAC;CACvC;AAED,yBAAiB,wBAAwB,CAAC;IACxC;;OAEG;IACH,UAAiB,KAAK;QACpB;;WAEG;QACH,QAAQ,EACJ,MAAM,GACN,OAAO,GACP,QAAQ,GACR,SAAS,GACT,OAAO,GACP,MAAM,GACN,OAAO,GACP,OAAO,GACP,MAAM,GACN,QAAQ,GACR,SAAS,GACT,OAAO,GACP,QAAQ,GACR,SAAS,GACT,QAAQ,GACR,QAAQ,GACR,MAAM,GACN,OAAO,GACP,MAAM,GACN,MAAM,GACN,SAAS,GACT,SAAS,GACT,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,OAAO,GACP,KAAK,GACL,OAAO,GACP,QAAQ,GACR,OAAO,GACP,QAAQ,GACR,MAAM,GACN,OAAO,GACP,MAAM,GACN,OAAO,GACP,MAAM,GACN,MAAM,GACN,QAAQ,GACR,OAAO,GACP,SAAS,GACT,MAAM,GACN,SAAS,GACT,UAAU,GACV,OAAO,GACP,KAAK,GACL,OAAO,GACP,UAAU,GACV,OAAO,GACP,QAAQ,CAAC;QAEb,IAAI,EAAE,eAAe,CAAC;KACvB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
@@ -8,6 +8,9 @@ export declare class TextToVideo extends APIResource {
8
8
  create(body: TextToVideoCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<TextToVideoCreateResponse>;
9
9
  }
10
10
  export interface TextToVideoCreateResponse {
11
+ /**
12
+ * The ID of the task that was created. Use this to retrieve the task later.
13
+ */
11
14
  id: string;
12
15
  }
13
16
  export type TextToVideoCreateParams = TextToVideoCreateParams.Veo3_1 | TextToVideoCreateParams.Veo3_1Fast | TextToVideoCreateParams.Veo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;QAEnB;;WAEG;QACH,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,WAAW,GAAG,WAAW,CAAC;QAE3D;;WAEG;QACH,KAAK,CAAC,EAAE,OAAO,CAAC;QAEhB;;WAEG;QACH,QAAQ,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;KACtB;IAED,UAAiB,IAAI;QACnB;;WAEG;QACH,QAAQ,EAAE,CAAC,CAAC;QAEZ,KAAK,EAAE,MAAM,CAAC;QAEd;;;WAGG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,WAAW,GAAG,WAAW,CAAC;KAC5D;CACF;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
@@ -8,6 +8,9 @@ export declare class TextToVideo extends APIResource {
8
8
  create(body: TextToVideoCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<TextToVideoCreateResponse>;
9
9
  }
10
10
  export interface TextToVideoCreateResponse {
11
+ /**
12
+ * The ID of the task that was created. Use this to retrieve the task later.
13
+ */
11
14
  id: string;
12
15
  }
13
16
  export type TextToVideoCreateParams = TextToVideoCreateParams.Veo3_1 | TextToVideoCreateParams.Veo3_1Fast | TextToVideoCreateParams.Veo3;
@@ -1 +1 @@
1
- {"version":3,"file":"text-to-video.d.ts","sourceRoot":"","sources":["../src/resources/text-to-video.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,yBAAyB,CAAC;CAK1D;AAED,MAAM,W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CAAC;QAEnB;;WAEG;QACH,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,WAAW,GAAG,WAAW,CAAC;KAC5D;CACF;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
@@ -18,6 +18,9 @@ export declare class VideoToVideo extends APIResource {
18
18
  create(body: VideoToVideoCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<VideoToVideoCreateResponse>;
19
19
  }
20
20
  export interface VideoToVideoCreateResponse {
21
+ /**
22
+ * The ID of the task that was created. Use this to retrieve the task later.
23
+ */
21
24
  id: string;
22
25
  }
23
26
  export interface VideoToVideoCreateParams {
@@ -1 +1 @@
1
- {"version":3,"file":"video-to-video.d.mts","sourceRoot":"","sources":["../src/resources/video-to-video.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,0BAA0B,CAAC;CAK3D;AAED,MAAM,WAAW,0BAA0B;IACzC,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,YAAY,CAAC;IAEpB;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,CAAC;IAE1G;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,iBAAiB,CAAC,EAAE,wBAAwB,CAAC,iBAAiB,CAAC;IA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,wBAAwB,CAAC,iBAAiB,CAAC;IAE/D;;;OAGG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,wBAAwB,CAAC,SAAS,CAAC,CAAC;IAEvD;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,yBAAiB,wBAAwB,CAAC;IACxC;;OAEG;IACH,UAAiB,iBAAiB;QAChC;;;WAGG;QACH,qBAAqB,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;KACxC;IAED;;;OAGG;IACH,UAAiB,SAAS;QACxB,IAAI,EAAE,OAAO,CAAC;QAEd;;WAEG;QACH,GAAG,EAAE,MAAM,CAAC;KACb;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
@@ -18,6 +18,9 @@ export declare class VideoToVideo extends APIResource {
18
18
  create(body: VideoToVideoCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<VideoToVideoCreateResponse>;
19
19
  }
20
20
  export interface VideoToVideoCreateResponse {
21
+ /**
22
+ * The ID of the task that was created. Use this to retrieve the task later.
23
+ */
21
24
  id: string;
22
25
  }
23
26
  export interface VideoToVideoCreateParams {
@@ -1 +1 @@
1
- {"version":3,"file":"video-to-video.d.ts","sourceRoot":"","sources":["../src/resources/video-to-video.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,0BAA0B,CAAC;CAK3D;AAED,MAAM,WAAW,0BAA0B;IACzC,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,wBAAwB;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;CACZ;AAED,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,YAAY,CAAC;IAEpB;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,CAAC;IAE1G;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,iBAAiB,CAAC,EAAE,wBAAwB,CAAC,iBAAiB,CAAC;IAE/D;;;OAGG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,wBAAwB,CAAC,SAAS,CAAC,CAAC;IAEvD;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,yBAAiB,wBAAwB,CAAC;IACxC;;OAEG;IACH,UAAiB,iBAAiB;QAChC;;;WAGG;QACH,qBAAqB,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;KACxC;IAED;;;OAGG;IACH,UAAiB,SAAS;QACxB,IAAI,EAAE,OAAO,CAAC;QAEd;;WAEG;QACH,GAAG,EAAE,MAAM,CAAC;KACb;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
@@ -17,6 +17,9 @@ export declare class VideoUpscale extends APIResource {
17
17
  create(body: VideoUpscaleCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<VideoUpscaleCreateResponse>;
18
18
  }
19
19
  export interface VideoUpscaleCreateResponse {
20
+ /**
21
+ * The ID of the task that was created. Use this to retrieve the task later.
22
+ */
20
23
  id: string;
21
24
  }
22
25
  export interface VideoUpscaleCreateParams {