@runwayml/sdk 2.4.2 → 2.5.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 (42) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/core.d.ts +2 -2
  3. package/core.d.ts.map +1 -1
  4. package/core.js +4 -2
  5. package/core.js.map +1 -1
  6. package/core.mjs +4 -2
  7. package/core.mjs.map +1 -1
  8. package/index.d.mts +5 -2
  9. package/index.d.ts +5 -2
  10. package/index.d.ts.map +1 -1
  11. package/index.js +3 -0
  12. package/index.js.map +1 -1
  13. package/index.mjs +4 -1
  14. package/index.mjs.map +1 -1
  15. package/package.json +1 -1
  16. package/resources/character-performance.d.ts +106 -0
  17. package/resources/character-performance.d.ts.map +1 -0
  18. package/resources/character-performance.js +17 -0
  19. package/resources/character-performance.js.map +1 -0
  20. package/resources/character-performance.mjs +13 -0
  21. package/resources/character-performance.mjs.map +1 -0
  22. package/resources/index.d.ts +2 -1
  23. package/resources/index.d.ts.map +1 -1
  24. package/resources/index.js +3 -1
  25. package/resources/index.js.map +1 -1
  26. package/resources/index.mjs +2 -1
  27. package/resources/index.mjs.map +1 -1
  28. package/resources/organization.d.ts +84 -1
  29. package/resources/organization.d.ts.map +1 -1
  30. package/resources/organization.js +7 -0
  31. package/resources/organization.js.map +1 -1
  32. package/resources/organization.mjs +7 -0
  33. package/resources/organization.mjs.map +1 -1
  34. package/src/core.ts +5 -3
  35. package/src/index.ts +25 -2
  36. package/src/resources/character-performance.ts +135 -0
  37. package/src/resources/index.ts +11 -1
  38. package/src/resources/organization.ts +115 -1
  39. package/src/version.ts +1 -1
  40. package/version.d.ts +1 -1
  41. package/version.js +1 -1
  42. package/version.mjs +1 -1
@@ -0,0 +1,106 @@
1
+ import { APIResource } from "../resource.js";
2
+ import * as Core from "../core.js";
3
+ import { APIPromiseWithAwaitableTask } from "../lib/polling.js";
4
+ export declare class CharacterPerformance extends APIResource {
5
+ /**
6
+ * This endpoint will start a new task to control a character's facial expressions
7
+ * and body movements using a reference video.
8
+ */
9
+ create(body: CharacterPerformanceCreateParams, options?: Core.RequestOptions): APIPromiseWithAwaitableTask<CharacterPerformanceCreateResponse>;
10
+ }
11
+ export interface CharacterPerformanceCreateResponse {
12
+ /**
13
+ * The ID of the newly created task.
14
+ */
15
+ id: string;
16
+ }
17
+ export interface CharacterPerformanceCreateParams {
18
+ /**
19
+ * The character to control. You can either provide a video or an image. A visually
20
+ * recognizable face must be visible and stay within the frame.
21
+ */
22
+ character: CharacterPerformanceCreateParams.Video | CharacterPerformanceCreateParams.Image;
23
+ /**
24
+ * The model variant to use.
25
+ */
26
+ model: 'act_two';
27
+ /**
28
+ * The resolution of the output video.
29
+ */
30
+ ratio: '1280:720' | '720:1280' | '960:960' | '1104:832' | '832:1104' | '1584:672';
31
+ reference: CharacterPerformanceCreateParams.Reference;
32
+ /**
33
+ * A boolean indicating whether to enable body control. When enabled, non-facial
34
+ * movements and gestures will be applied to the character in addition to facial
35
+ * expressions.
36
+ */
37
+ bodyControl?: boolean;
38
+ /**
39
+ * Settings that affect the behavior of the content moderation system.
40
+ */
41
+ contentModeration?: CharacterPerformanceCreateParams.ContentModeration;
42
+ /**
43
+ * An integer between 1 and 5 (inclusive). A larger value increases the intensity
44
+ * of the character's expression.
45
+ */
46
+ expressionIntensity?: number;
47
+ /**
48
+ * If unspecified, a random number is chosen. Varying the seed integer is a way to
49
+ * get different results for the same other request parameters. Using the same seed
50
+ * integer for an identical request will produce similar results.
51
+ */
52
+ seed?: number;
53
+ }
54
+ export declare namespace CharacterPerformanceCreateParams {
55
+ /**
56
+ * A video of your character. In the output, the character will use the reference
57
+ * video performance in its original animated environment and some of the
58
+ * character's own movements.
59
+ */
60
+ interface Video {
61
+ type: 'video';
62
+ /**
63
+ * A HTTPS URL pointing to a video or a data URI containing a video of your
64
+ * character. See [our docs](/assets/inputs#videos) on video inputs for more
65
+ * information.
66
+ */
67
+ uri: string;
68
+ }
69
+ /**
70
+ * An image of your character. In the output, the character will use the reference
71
+ * video performance in its original static environment.
72
+ */
73
+ interface Image {
74
+ type: 'image';
75
+ /**
76
+ * A HTTPS URL pointing to an image or a data URI containing an image of your
77
+ * character. See [our docs](/assets/inputs#images) on image inputs for more
78
+ * information.
79
+ */
80
+ uri: string;
81
+ }
82
+ interface Reference {
83
+ type: 'video';
84
+ /**
85
+ * A HTTPS URL pointing to a video or a data URI containing a video of a person
86
+ * performing in the manner that you would like your character to perform. The
87
+ * video must be between 3 and 30 seconds in duration. See
88
+ * [our docs](/assets/inputs#videos) on video inputs for more information.
89
+ */
90
+ uri: string;
91
+ }
92
+ /**
93
+ * Settings that affect the behavior of the content moderation system.
94
+ */
95
+ interface ContentModeration {
96
+ /**
97
+ * When set to `low`, the content moderation system will be less strict about
98
+ * preventing generations that include recognizable public figures.
99
+ */
100
+ publicFigureThreshold?: 'auto' | 'low';
101
+ }
102
+ }
103
+ export declare namespace CharacterPerformance {
104
+ export { type CharacterPerformanceCreateResponse as CharacterPerformanceCreateResponse, type CharacterPerformanceCreateParams as CharacterPerformanceCreateParams, };
105
+ }
106
+ //# sourceMappingURL=character-performance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"character-performance.d.ts","sourceRoot":"","sources":["../src/resources/character-performance.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,2BAA2B,EAA0B,MAAM,gBAAgB,CAAC;AAErF,qBAAa,oBAAqB,SAAQ,WAAW;IACnD;;;OAGG;IACH,MAAM,CACJ,IAAI,EAAE,gCAAgC,EACtC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,2BAA2B,CAAC,kCAAkC,CAAC;CAKnE;AAED,MAAM,WAAW,kCAAkC;IACjD;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,gCAAgC;IAC/C;;;OAGG;IACH,SAAS,EAAE,gCAAgC,CAAC,KAAK,GAAG,gCAAgC,CAAC,KAAK,CAAC;IAE3F;;OAEG;IACH,KAAK,EAAE,SAAS,CAAC;IAEjB;;OAEG;IACH,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,CAAC;IAElF,SAAS,EAAE,gCAAgC,CAAC,SAAS,CAAC;IAEtD;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;OAEG;IACH,iBAAiB,CAAC,EAAE,gCAAgC,CAAC,iBAAiB,CAAC;IAEvE;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,yBAAiB,gCAAgC,CAAC;IAChD;;;;OAIG;IACH,UAAiB,KAAK;QACpB,IAAI,EAAE,OAAO,CAAC;QAEd;;;;WAIG;QACH,GAAG,EAAE,MAAM,CAAC;KACb;IAED;;;OAGG;IACH,UAAiB,KAAK;QACpB,IAAI,EAAE,OAAO,CAAC;QAEd;;;;WAIG;QACH,GAAG,EAAE,MAAM,CAAC;KACb;IAED,UAAiB,SAAS;QACxB,IAAI,EAAE,OAAO,CAAC;QAEd;;;;;WAKG;QACH,GAAG,EAAE,MAAM,CAAC;KACb;IAED;;OAEG;IACH,UAAiB,iBAAiB;QAChC;;;WAGG;QACH,qBAAqB,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;KACxC;CACF;AAED,MAAM,CAAC,OAAO,WAAW,oBAAoB,CAAC;IAC5C,OAAO,EACL,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,gCAAgC,IAAI,gCAAgC,GAC1E,CAAC;CACH"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.CharacterPerformance = void 0;
5
+ const resource_1 = require("../resource.js");
6
+ const polling_1 = require("../lib/polling.js");
7
+ class CharacterPerformance extends resource_1.APIResource {
8
+ /**
9
+ * This endpoint will start a new task to control a character's facial expressions
10
+ * and body movements using a reference video.
11
+ */
12
+ create(body, options) {
13
+ return (0, polling_1.wrapAsWaitableResource)(this._client)(this._client.post('/v1/character_performance', { body, ...options }));
14
+ }
15
+ }
16
+ exports.CharacterPerformance = CharacterPerformance;
17
+ //# sourceMappingURL=character-performance.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"character-performance.js","sourceRoot":"","sources":["../src/resources/character-performance.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAE1C,+CAAqF;AAErF,MAAa,oBAAqB,SAAQ,sBAAW;IACnD;;;OAGG;IACH,MAAM,CACJ,IAAsC,EACtC,OAA6B;QAE7B,OAAO,IAAA,gCAAsB,EAAqC,IAAI,CAAC,OAAO,CAAC,CAC7E,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,2BAA2B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CACrE,CAAC;IACJ,CAAC;CACF;AAbD,oDAaC"}
@@ -0,0 +1,13 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../resource.mjs";
3
+ import { wrapAsWaitableResource } from "../lib/polling.mjs";
4
+ export class CharacterPerformance extends APIResource {
5
+ /**
6
+ * This endpoint will start a new task to control a character's facial expressions
7
+ * and body movements using a reference video.
8
+ */
9
+ create(body, options) {
10
+ return wrapAsWaitableResource(this._client)(this._client.post('/v1/character_performance', { body, ...options }));
11
+ }
12
+ }
13
+ //# sourceMappingURL=character-performance.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"character-performance.mjs","sourceRoot":"","sources":["../src/resources/character-performance.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAA+B,sBAAsB,EAAE;AAE9D,MAAM,OAAO,oBAAqB,SAAQ,WAAW;IACnD;;;OAGG;IACH,MAAM,CACJ,IAAsC,EACtC,OAA6B;QAE7B,OAAO,sBAAsB,CAAqC,IAAI,CAAC,OAAO,CAAC,CAC7E,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,2BAA2B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CACrE,CAAC;IACJ,CAAC;CACF"}
@@ -1,5 +1,6 @@
1
+ export { CharacterPerformance, type CharacterPerformanceCreateResponse, type CharacterPerformanceCreateParams, } from "./character-performance.js";
1
2
  export { ImageToVideo, type ImageToVideoCreateResponse, type ImageToVideoCreateParams, } from "./image-to-video.js";
2
- export { Organization, type OrganizationRetrieveResponse } from "./organization.js";
3
+ export { Organization, type OrganizationRetrieveResponse, type OrganizationRetrieveUsageResponse, type OrganizationRetrieveUsageParams, } from "./organization.js";
3
4
  export { Tasks, type TaskRetrieveResponse } from "./tasks.js";
4
5
  export { TextToImage, type TextToImageCreateResponse, type TextToImageCreateParams } from "./text-to-image.js";
5
6
  export { VideoUpscale, type VideoUpscaleCreateResponse, type VideoUpscaleCreateParams, } from "./video-upscale.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,YAAY,EAAE,KAAK,4BAA4B,EAAE,MAAM,gBAAgB,CAAC;AACjF,OAAO,EAAE,KAAK,EAAE,KAAK,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,KAAK,yBAAyB,EAAE,KAAK,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAC5G,OAAO,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B,MAAM,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,oBAAoB,EACpB,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,GACtC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,YAAY,EACZ,KAAK,4BAA4B,EACjC,KAAK,iCAAiC,EACtC,KAAK,+BAA+B,GACrC,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,KAAK,EAAE,KAAK,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,KAAK,yBAAyB,EAAE,KAAK,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAC5G,OAAO,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B,MAAM,iBAAiB,CAAC"}
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.VideoUpscale = exports.TextToImage = exports.Tasks = exports.Organization = exports.ImageToVideo = void 0;
4
+ exports.VideoUpscale = exports.TextToImage = exports.Tasks = exports.Organization = exports.ImageToVideo = exports.CharacterPerformance = void 0;
5
+ var character_performance_1 = require("./character-performance.js");
6
+ Object.defineProperty(exports, "CharacterPerformance", { enumerable: true, get: function () { return character_performance_1.CharacterPerformance; } });
5
7
  var image_to_video_1 = require("./image-to-video.js");
6
8
  Object.defineProperty(exports, "ImageToVideo", { enumerable: true, get: function () { return image_to_video_1.ImageToVideo; } });
7
9
  var organization_1 = require("./organization.js");
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sDAI0B;AAHxB,8GAAA,YAAY,OAAA;AAId,kDAAiF;AAAxE,4GAAA,YAAY,OAAA;AACrB,oCAA2D;AAAlD,8FAAA,KAAK,OAAA;AACd,oDAA4G;AAAnG,4GAAA,WAAW,OAAA;AACpB,oDAIyB;AAHvB,6GAAA,YAAY,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oEAIiC;AAH/B,6HAAA,oBAAoB,OAAA;AAItB,sDAI0B;AAHxB,8GAAA,YAAY,OAAA;AAId,kDAKwB;AAJtB,4GAAA,YAAY,OAAA;AAKd,oCAA2D;AAAlD,8FAAA,KAAK,OAAA;AACd,oDAA4G;AAAnG,4GAAA,WAAW,OAAA;AACpB,oDAIyB;AAHvB,6GAAA,YAAY,OAAA"}
@@ -1,6 +1,7 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export { CharacterPerformance, } from "./character-performance.mjs";
2
3
  export { ImageToVideo, } from "./image-to-video.mjs";
3
- export { Organization } from "./organization.mjs";
4
+ export { Organization, } from "./organization.mjs";
4
5
  export { Tasks } from "./tasks.mjs";
5
6
  export { TextToImage } from "./text-to-image.mjs";
6
7
  export { VideoUpscale, } from "./video-upscale.mjs";
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,YAAY,GAGb;OACM,EAAE,YAAY,EAAqC;OACnD,EAAE,KAAK,EAA6B;OACpC,EAAE,WAAW,EAAgE;OAC7E,EACL,YAAY,GAGb"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,oBAAoB,GAGrB;OACM,EACL,YAAY,GAGb;OACM,EACL,YAAY,GAIb;OACM,EAAE,KAAK,EAA6B;OACpC,EAAE,WAAW,EAAgE;OAC7E,EACL,YAAY,GAGb"}
@@ -6,6 +6,13 @@ export declare class Organization extends APIResource {
6
6
  * with the API key used to make the request.
7
7
  */
8
8
  retrieve(options?: Core.RequestOptions): Core.APIPromise<OrganizationRetrieveResponse>;
9
+ /**
10
+ * Fetch credit usage data broken down by model and day for the organization
11
+ * associated with the API key used to make the request. Up to 90 days of data can
12
+ * be queried at a time.
13
+ */
14
+ retrieveUsage(body?: OrganizationRetrieveUsageParams, options?: Core.RequestOptions): Core.APIPromise<OrganizationRetrieveUsageResponse>;
15
+ retrieveUsage(options?: Core.RequestOptions): Core.APIPromise<OrganizationRetrieveUsageResponse>;
9
16
  }
10
17
  export interface OrganizationRetrieveResponse {
11
18
  /**
@@ -40,6 +47,10 @@ export declare namespace OrganizationRetrieveResponse {
40
47
  * An object containing model-specific limits. Each key represents a model.
41
48
  */
42
49
  interface Models {
50
+ /**
51
+ * Limits associated with the act_two model.
52
+ */
53
+ act_two?: Models.ActTwo;
43
54
  /**
44
55
  * Limits associated with the gen3a_turbo model.
45
56
  */
@@ -58,6 +69,19 @@ export declare namespace OrganizationRetrieveResponse {
58
69
  upscale_v1?: Models.UpscaleV1;
59
70
  }
60
71
  namespace Models {
72
+ /**
73
+ * Limits associated with the act_two model.
74
+ */
75
+ interface ActTwo {
76
+ /**
77
+ * The maximum number of generations that can be run concurrently for this model.
78
+ */
79
+ maxConcurrentGenerations: number;
80
+ /**
81
+ * The maximum number of generations that can be created each day for this model.
82
+ */
83
+ maxDailyGenerations: number;
84
+ }
61
85
  /**
62
86
  * Limits associated with the gen3a_turbo model.
63
87
  */
@@ -126,6 +150,10 @@ export declare namespace OrganizationRetrieveResponse {
126
150
  * Usage data for each model.
127
151
  */
128
152
  interface Models {
153
+ /**
154
+ * Usage data for the act_two model.
155
+ */
156
+ act_two?: Models.ActTwo;
129
157
  /**
130
158
  * Usage data for the gen3a_turbo model.
131
159
  */
@@ -144,6 +172,15 @@ export declare namespace OrganizationRetrieveResponse {
144
172
  upscale_v1?: Models.UpscaleV1;
145
173
  }
146
174
  namespace Models {
175
+ /**
176
+ * Usage data for the act_two model.
177
+ */
178
+ interface ActTwo {
179
+ /**
180
+ * The number of generations that have been run for this model in the past day.
181
+ */
182
+ dailyGenerations: number;
183
+ }
147
184
  /**
148
185
  * Usage data for the gen3a_turbo model.
149
186
  */
@@ -183,7 +220,53 @@ export declare namespace OrganizationRetrieveResponse {
183
220
  }
184
221
  }
185
222
  }
223
+ export interface OrganizationRetrieveUsageResponse {
224
+ /**
225
+ * The list of models with usage during the queried time range.
226
+ */
227
+ models: Array<'upscale_v1' | 'act_two' | 'gen4_image' | 'gen3a_turbo' | 'gen4_turbo'>;
228
+ results: Array<OrganizationRetrieveUsageResponse.Result>;
229
+ }
230
+ export declare namespace OrganizationRetrieveUsageResponse {
231
+ interface Result {
232
+ /**
233
+ * The date of the usage data in ISO-8601 format (YYYY-MM-DD). All dates are in
234
+ * UTC.
235
+ */
236
+ date: string;
237
+ /**
238
+ * The credits used per model for the given date.
239
+ */
240
+ usedCredits: Array<Result.UsedCredit>;
241
+ }
242
+ namespace Result {
243
+ interface UsedCredit {
244
+ /**
245
+ * The number of credits used for the model.
246
+ */
247
+ amount: number;
248
+ /**
249
+ * The model whose usage resulted in the credit usage.
250
+ */
251
+ model: 'upscale_v1' | 'act_two' | 'gen4_image' | 'gen3a_turbo' | 'gen4_turbo';
252
+ }
253
+ }
254
+ }
255
+ export interface OrganizationRetrieveUsageParams {
256
+ /**
257
+ * The end date of the usage data in ISO-8601 format (YYYY-MM-DD), not inclusive.
258
+ * If unspecified, it will default to thirty days after the start date. Must be
259
+ * less than or equal to 90 days after the start date. All dates are in UTC.
260
+ */
261
+ beforeDate?: string;
262
+ /**
263
+ * The start date of the usage data in ISO-8601 format (YYYY-MM-DD). If
264
+ * unspecified, it will default to 30 days before the current date. All dates are
265
+ * in UTC.
266
+ */
267
+ startDate?: string;
268
+ }
186
269
  export declare namespace Organization {
187
- export { type OrganizationRetrieveResponse as OrganizationRetrieveResponse };
270
+ export { type OrganizationRetrieveResponse as OrganizationRetrieveResponse, type OrganizationRetrieveUsageResponse as OrganizationRetrieveUsageResponse, type OrganizationRetrieveUsageParams as OrganizationRetrieveUsageParams, };
188
271
  }
189
272
  //# sourceMappingURL=organization.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"organization.d.ts","sourceRoot":"","sources":["../src/resources/organization.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAEhC,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;OAGG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,4BAA4B,CAAC;CAGvF;AAED,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,IAAI,EAAE,4BAA4B,CAAC,IAAI,CAAC;IAExC;;OAEG;IACH,KAAK,EAAE,4BAA4B,CAAC,KAAK,CAAC;CAC3C;AAED,yBAAiB,4BAA4B,CAAC;IAC5C;;OAEG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,qBAAqB,EAAE,MAAM,CAAC;QAE9B;;WAEG;QACH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;KACrB;IAED,UAAiB,IAAI,CAAC;QACpB;;WAEG;QACH,UAAiB,MAAM;YACrB;;eAEG;YACH,WAAW,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;YAEhC;;eAEG;YACH,UAAU,CAAC,EAAE,MAAM,CAAC,SAAS,CAAC;YAE9B;;eAEG;YACH,UAAU,CAAC,EAAE,MAAM,CAAC,SAAS,CAAC;YAE9B;;eAEG;YACH,UAAU,CAAC,EAAE,MAAM,CAAC,SAAS,CAAC;SAC/B;QAED,UAAiB,MAAM,CAAC;YACtB;;eAEG;YACH,UAAiB,UAAU;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IG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;CACH"}
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.Organization = void 0;
5
5
  const resource_1 = require("../resource.js");
6
+ const core_1 = require("../core.js");
6
7
  class Organization extends resource_1.APIResource {
7
8
  /**
8
9
  * Get usage tier and credit balance information about the organization associated
@@ -11,6 +12,12 @@ class Organization extends resource_1.APIResource {
11
12
  retrieve(options) {
12
13
  return this._client.get('/v1/organization', options);
13
14
  }
15
+ retrieveUsage(body = {}, options) {
16
+ if ((0, core_1.isRequestOptions)(body)) {
17
+ return this.retrieveUsage({}, body);
18
+ }
19
+ return this._client.post('/v1/organization/usage', { body, ...options });
20
+ }
14
21
  }
15
22
  exports.Organization = Organization;
16
23
  //# sourceMappingURL=organization.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"organization.js","sourceRoot":"","sources":["../src/resources/organization.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAG1C,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;OAGG;IACH,QAAQ,CAAC,OAA6B;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC;IACvD,CAAC;CACF;AARD,oCAQC"}
1
+ {"version":3,"file":"organization.js","sourceRoot":"","sources":["../src/resources/organization.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAC1C,qCAA2C;AAG3C,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;OAGG;IACH,QAAQ,CAAC,OAA6B;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC;IACvD,CAAC;IAYD,aAAa,CACX,OAA8D,EAAE,EAChE,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,IAAI,CAAC,EAAE;YAC1B,OAAO,IAAI,CAAC,aAAa,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;SACrC;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wBAAwB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;CACF;AA5BD,oCA4BC"}
@@ -1,5 +1,6 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  import { APIResource } from "../resource.mjs";
3
+ import { isRequestOptions } from "../core.mjs";
3
4
  export class Organization extends APIResource {
4
5
  /**
5
6
  * Get usage tier and credit balance information about the organization associated
@@ -8,5 +9,11 @@ export class Organization extends APIResource {
8
9
  retrieve(options) {
9
10
  return this._client.get('/v1/organization', options);
10
11
  }
12
+ retrieveUsage(body = {}, options) {
13
+ if (isRequestOptions(body)) {
14
+ return this.retrieveUsage({}, body);
15
+ }
16
+ return this._client.post('/v1/organization/usage', { body, ...options });
17
+ }
11
18
  }
12
19
  //# sourceMappingURL=organization.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"organization.mjs","sourceRoot":"","sources":["../src/resources/organization.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;OAGG;IACH,QAAQ,CAAC,OAA6B;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC;IACvD,CAAC;CACF"}
1
+ {"version":3,"file":"organization.mjs","sourceRoot":"","sources":["../src/resources/organization.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;AAG3B,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;OAGG;IACH,QAAQ,CAAC,OAA6B;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC;IACvD,CAAC;IAYD,aAAa,CACX,OAA8D,EAAE,EAChE,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,IAAI,CAAC,EAAE;YAC1B,OAAO,IAAI,CAAC,aAAa,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;SACrC;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wBAAwB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;CACF"}
package/src/core.ts CHANGED
@@ -299,10 +299,10 @@ export abstract class APIClient {
299
299
  return null;
300
300
  }
301
301
 
302
- buildRequest<Req>(
302
+ async buildRequest<Req>(
303
303
  inputOptions: FinalRequestOptions<Req>,
304
304
  { retryCount = 0 }: { retryCount?: number } = {},
305
- ): { req: RequestInit; url: string; timeout: number } {
305
+ ): Promise<{ req: RequestInit; url: string; timeout: number }> {
306
306
  const options = { ...inputOptions };
307
307
  const { method, path, query, defaultBaseURL, headers: headers = {} } = options;
308
308
 
@@ -450,7 +450,9 @@ export abstract class APIClient {
450
450
 
451
451
  await this.prepareOptions(options);
452
452
 
453
- const { req, url, timeout } = this.buildRequest(options, { retryCount: maxRetries - retriesRemaining });
453
+ const { req, url, timeout } = await this.buildRequest(options, {
454
+ retryCount: maxRetries - retriesRemaining,
455
+ });
454
456
 
455
457
  await this.prepareRequest(req, { url, options });
456
458
 
package/src/index.ts CHANGED
@@ -5,12 +5,22 @@ import * as Core from './core';
5
5
  import * as Errors from './error';
6
6
  import * as Uploads from './uploads';
7
7
  import * as API from './resources/index';
8
+ import {
9
+ CharacterPerformance,
10
+ CharacterPerformanceCreateParams,
11
+ CharacterPerformanceCreateResponse,
12
+ } from './resources/character-performance';
8
13
  import {
9
14
  ImageToVideo,
10
15
  ImageToVideoCreateParams,
11
16
  ImageToVideoCreateResponse,
12
17
  } from './resources/image-to-video';
13
- import { Organization, OrganizationRetrieveResponse } from './resources/organization';
18
+ import {
19
+ Organization,
20
+ OrganizationRetrieveResponse,
21
+ OrganizationRetrieveUsageParams,
22
+ OrganizationRetrieveUsageResponse,
23
+ } from './resources/organization';
14
24
  import { TaskRetrieveResponse, Tasks } from './resources/tasks';
15
25
  import { TextToImage, TextToImageCreateParams, TextToImageCreateResponse } from './resources/text-to-image';
16
26
  import {
@@ -152,6 +162,7 @@ export class RunwayML extends Core.APIClient {
152
162
  imageToVideo: API.ImageToVideo = new API.ImageToVideo(this);
153
163
  textToImage: API.TextToImage = new API.TextToImage(this);
154
164
  videoUpscale: API.VideoUpscale = new API.VideoUpscale(this);
165
+ characterPerformance: API.CharacterPerformance = new API.CharacterPerformance(this);
155
166
  organization: API.Organization = new API.Organization(this);
156
167
 
157
168
  /**
@@ -202,6 +213,7 @@ RunwayML.Tasks = Tasks;
202
213
  RunwayML.ImageToVideo = ImageToVideo;
203
214
  RunwayML.TextToImage = TextToImage;
204
215
  RunwayML.VideoUpscale = VideoUpscale;
216
+ RunwayML.CharacterPerformance = CharacterPerformance;
205
217
  RunwayML.Organization = Organization;
206
218
  export declare namespace RunwayML {
207
219
  export type RequestOptions = Core.RequestOptions;
@@ -226,7 +238,18 @@ export declare namespace RunwayML {
226
238
  type VideoUpscaleCreateParams as VideoUpscaleCreateParams,
227
239
  };
228
240
 
229
- export { Organization as Organization, type OrganizationRetrieveResponse as OrganizationRetrieveResponse };
241
+ export {
242
+ CharacterPerformance as CharacterPerformance,
243
+ type CharacterPerformanceCreateResponse as CharacterPerformanceCreateResponse,
244
+ type CharacterPerformanceCreateParams as CharacterPerformanceCreateParams,
245
+ };
246
+
247
+ export {
248
+ Organization as Organization,
249
+ type OrganizationRetrieveResponse as OrganizationRetrieveResponse,
250
+ type OrganizationRetrieveUsageResponse as OrganizationRetrieveUsageResponse,
251
+ type OrganizationRetrieveUsageParams as OrganizationRetrieveUsageParams,
252
+ };
230
253
  }
231
254
 
232
255
  export { toFile, fileFromPath } from './uploads';
@@ -0,0 +1,135 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../resource';
4
+ import * as Core from '../core';
5
+ import { APIPromiseWithAwaitableTask, wrapAsWaitableResource } from '../lib/polling';
6
+
7
+ export class CharacterPerformance extends APIResource {
8
+ /**
9
+ * This endpoint will start a new task to control a character's facial expressions
10
+ * and body movements using a reference video.
11
+ */
12
+ create(
13
+ body: CharacterPerformanceCreateParams,
14
+ options?: Core.RequestOptions,
15
+ ): APIPromiseWithAwaitableTask<CharacterPerformanceCreateResponse> {
16
+ return wrapAsWaitableResource<CharacterPerformanceCreateResponse>(this._client)(
17
+ this._client.post('/v1/character_performance', { body, ...options }),
18
+ );
19
+ }
20
+ }
21
+
22
+ export interface CharacterPerformanceCreateResponse {
23
+ /**
24
+ * The ID of the newly created task.
25
+ */
26
+ id: string;
27
+ }
28
+
29
+ export interface CharacterPerformanceCreateParams {
30
+ /**
31
+ * The character to control. You can either provide a video or an image. A visually
32
+ * recognizable face must be visible and stay within the frame.
33
+ */
34
+ character: CharacterPerformanceCreateParams.Video | CharacterPerformanceCreateParams.Image;
35
+
36
+ /**
37
+ * The model variant to use.
38
+ */
39
+ model: 'act_two';
40
+
41
+ /**
42
+ * The resolution of the output video.
43
+ */
44
+ ratio: '1280:720' | '720:1280' | '960:960' | '1104:832' | '832:1104' | '1584:672';
45
+
46
+ reference: CharacterPerformanceCreateParams.Reference;
47
+
48
+ /**
49
+ * A boolean indicating whether to enable body control. When enabled, non-facial
50
+ * movements and gestures will be applied to the character in addition to facial
51
+ * expressions.
52
+ */
53
+ bodyControl?: boolean;
54
+
55
+ /**
56
+ * Settings that affect the behavior of the content moderation system.
57
+ */
58
+ contentModeration?: CharacterPerformanceCreateParams.ContentModeration;
59
+
60
+ /**
61
+ * An integer between 1 and 5 (inclusive). A larger value increases the intensity
62
+ * of the character's expression.
63
+ */
64
+ expressionIntensity?: number;
65
+
66
+ /**
67
+ * If unspecified, a random number is chosen. Varying the seed integer is a way to
68
+ * get different results for the same other request parameters. Using the same seed
69
+ * integer for an identical request will produce similar results.
70
+ */
71
+ seed?: number;
72
+ }
73
+
74
+ export namespace CharacterPerformanceCreateParams {
75
+ /**
76
+ * A video of your character. In the output, the character will use the reference
77
+ * video performance in its original animated environment and some of the
78
+ * character's own movements.
79
+ */
80
+ export interface Video {
81
+ type: 'video';
82
+
83
+ /**
84
+ * A HTTPS URL pointing to a video or a data URI containing a video of your
85
+ * character. See [our docs](/assets/inputs#videos) on video inputs for more
86
+ * information.
87
+ */
88
+ uri: string;
89
+ }
90
+
91
+ /**
92
+ * An image of your character. In the output, the character will use the reference
93
+ * video performance in its original static environment.
94
+ */
95
+ export interface Image {
96
+ type: 'image';
97
+
98
+ /**
99
+ * A HTTPS URL pointing to an image or a data URI containing an image of your
100
+ * character. See [our docs](/assets/inputs#images) on image inputs for more
101
+ * information.
102
+ */
103
+ uri: string;
104
+ }
105
+
106
+ export interface Reference {
107
+ type: 'video';
108
+
109
+ /**
110
+ * A HTTPS URL pointing to a video or a data URI containing a video of a person
111
+ * performing in the manner that you would like your character to perform. The
112
+ * video must be between 3 and 30 seconds in duration. See
113
+ * [our docs](/assets/inputs#videos) on video inputs for more information.
114
+ */
115
+ uri: string;
116
+ }
117
+
118
+ /**
119
+ * Settings that affect the behavior of the content moderation system.
120
+ */
121
+ export interface ContentModeration {
122
+ /**
123
+ * When set to `low`, the content moderation system will be less strict about
124
+ * preventing generations that include recognizable public figures.
125
+ */
126
+ publicFigureThreshold?: 'auto' | 'low';
127
+ }
128
+ }
129
+
130
+ export declare namespace CharacterPerformance {
131
+ export {
132
+ type CharacterPerformanceCreateResponse as CharacterPerformanceCreateResponse,
133
+ type CharacterPerformanceCreateParams as CharacterPerformanceCreateParams,
134
+ };
135
+ }
@@ -1,11 +1,21 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
+ export {
4
+ CharacterPerformance,
5
+ type CharacterPerformanceCreateResponse,
6
+ type CharacterPerformanceCreateParams,
7
+ } from './character-performance';
3
8
  export {
4
9
  ImageToVideo,
5
10
  type ImageToVideoCreateResponse,
6
11
  type ImageToVideoCreateParams,
7
12
  } from './image-to-video';
8
- export { Organization, type OrganizationRetrieveResponse } from './organization';
13
+ export {
14
+ Organization,
15
+ type OrganizationRetrieveResponse,
16
+ type OrganizationRetrieveUsageResponse,
17
+ type OrganizationRetrieveUsageParams,
18
+ } from './organization';
9
19
  export { Tasks, type TaskRetrieveResponse } from './tasks';
10
20
  export { TextToImage, type TextToImageCreateResponse, type TextToImageCreateParams } from './text-to-image';
11
21
  export {