@runwayml/sdk 4.0.0 → 4.2.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.
- package/CHANGELOG.md +24 -0
- package/client.d.mts +3 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -0
- package/client.d.ts.map +1 -1
- package/client.js +12 -1
- package/client.js.map +1 -1
- package/client.mjs +12 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/organization.d.mts +2 -2
- package/resources/organization.d.mts.map +1 -1
- package/resources/organization.d.ts +2 -2
- package/resources/organization.d.ts.map +1 -1
- package/resources/recipes.d.mts +428 -0
- package/resources/recipes.d.mts.map +1 -0
- package/resources/recipes.d.ts +428 -0
- package/resources/recipes.d.ts.map +1 -0
- package/resources/recipes.js +51 -0
- package/resources/recipes.js.map +1 -0
- package/resources/recipes.mjs +47 -0
- package/resources/recipes.mjs.map +1 -0
- package/resources/video-to-video.d.mts +14 -6
- package/resources/video-to-video.d.mts.map +1 -1
- package/resources/video-to-video.d.ts +14 -6
- package/resources/video-to-video.d.ts.map +1 -1
- package/resources/video-to-video.js +0 -1
- package/resources/video-to-video.js.map +1 -1
- package/resources/video-to-video.mjs +0 -1
- package/resources/video-to-video.mjs.map +1 -1
- package/src/client.ts +42 -1
- package/src/resources/index.ts +15 -0
- package/src/resources/organization.ts +11 -1
- package/src/resources/recipes.ts +565 -0
- package/src/resources/video-to-video.ts +17 -7
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"video-to-video.d.ts","sourceRoot":"","sources":["../src/resources/video-to-video.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAC7D,OAAO,EAAE,2BAA2B,EAA0B,0BAAuB;AAErF;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C
|
|
1
|
+
{"version":3,"file":"video-to-video.d.ts","sourceRoot":"","sources":["../src/resources/video-to-video.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAC7D,OAAO,EAAE,2BAA2B,EAA0B,0BAAuB;AAErF;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;OAUG;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,MAAM,wBAAwB,GAChC,wBAAwB,CAAC,QAAQ,GACjC,wBAAwB,CAAC,SAAS,GAClC,wBAAwB,CAAC,aAAa,CAAC;AAE3C,MAAM,CAAC,OAAO,WAAW,wBAAwB,CAAC;IAChD,UAAiB,QAAQ;QACvB,KAAK,EAAE,QAAQ,CAAC;QAEhB;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,iBAAiB,CAAC,EAAE,QAAQ,CAAC,iBAAiB,CAAC;QAE/C;;;WAGG;QACH,SAAS,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,YAAY,GAAG,QAAQ,CAAC,YAAY,CAAC,CAAC;QAEjE;;;WAGG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;QAEpB;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf;;;;WAIG;QACH,IAAI,CAAC,E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AC;YAEZ;;;eAGG;YACH,QAAQ,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;SAC7B;QAED;;;WAGG;QACH,UAAiB,cAAc;YAC7B,IAAI,EAAE,OAAO,CAAC;YAEd;;eAEG;YACH,GAAG,EAAE,MAAM,CAAC;SACb;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"video-to-video.js","sourceRoot":"","sources":["../src/resources/video-to-video.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,+CAAqF;AAErF;;GAEG;AACH,MAAa,YAAa,SAAQ,sBAAW;IAC3C
|
|
1
|
+
{"version":3,"file":"video-to-video.js","sourceRoot":"","sources":["../src/resources/video-to-video.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,+CAAqF;AAErF;;GAEG;AACH,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;;;;;;;;OAUG;IACH,MAAM,CACJ,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAA,gCAAsB,EAA6B,IAAI,CAAC,OAAO,CAAC,CACrE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAC9D,CAAC;IACJ,CAAC;CACF;AApBD,oCAoBC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"video-to-video.mjs","sourceRoot":"","sources":["../src/resources/video-to-video.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAE/C,OAAO,EAA+B,sBAAsB,EAAE,2BAAuB;AAErF;;GAEG;AACH,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C
|
|
1
|
+
{"version":3,"file":"video-to-video.mjs","sourceRoot":"","sources":["../src/resources/video-to-video.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAE/C,OAAO,EAA+B,sBAAsB,EAAE,2BAAuB;AAErF;;GAEG;AACH,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;OAUG;IACH,MAAM,CACJ,IAA8B,EAC9B,OAAwB;QAExB,OAAO,sBAAsB,CAA6B,IAAI,CAAC,OAAO,CAAC,CACrE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAC9D,CAAC;IACJ,CAAC;CACF"}
|
package/src/client.ts
CHANGED
|
@@ -77,6 +77,21 @@ import {
|
|
|
77
77
|
RealtimeSessionRetrieveResponse,
|
|
78
78
|
RealtimeSessions,
|
|
79
79
|
} from './resources/realtime-sessions';
|
|
80
|
+
import {
|
|
81
|
+
RecipeMarketingStockImageParams,
|
|
82
|
+
RecipeMarketingStockImageResponse,
|
|
83
|
+
RecipeMultiShotVideoParams,
|
|
84
|
+
RecipeMultiShotVideoResponse,
|
|
85
|
+
RecipeProductAdParams,
|
|
86
|
+
RecipeProductAdResponse,
|
|
87
|
+
RecipeProductCampaignImageParams,
|
|
88
|
+
RecipeProductCampaignImageResponse,
|
|
89
|
+
RecipeProductSwapParams,
|
|
90
|
+
RecipeProductSwapResponse,
|
|
91
|
+
RecipeProductUgcParams,
|
|
92
|
+
RecipeProductUgcResponse,
|
|
93
|
+
Recipes,
|
|
94
|
+
} from './resources/recipes';
|
|
80
95
|
import { SoundEffect, SoundEffectCreateParams, SoundEffectCreateResponse } from './resources/sound-effect';
|
|
81
96
|
import {
|
|
82
97
|
SpeechToSpeech,
|
|
@@ -816,11 +831,19 @@ export class RunwayML {
|
|
|
816
831
|
return () => controller.abort();
|
|
817
832
|
}
|
|
818
833
|
|
|
819
|
-
private buildBody({ options
|
|
834
|
+
private buildBody({ options }: { options: FinalRequestOptions }): {
|
|
820
835
|
bodyHeaders: HeadersLike;
|
|
821
836
|
body: BodyInit | undefined;
|
|
822
837
|
} {
|
|
838
|
+
const { body, headers: rawHeaders } = options;
|
|
823
839
|
if (!body) {
|
|
840
|
+
// A resource method always passes a `body` key when its operation defines a
|
|
841
|
+
// request body, even if the caller omitted an optional body param. Keep the
|
|
842
|
+
// content-type for those, and only elide it for operations with no body at
|
|
843
|
+
// all (e.g. GET/DELETE).
|
|
844
|
+
if (body == null && 'body' in options) {
|
|
845
|
+
return this.#encoder({ body, headers: buildHeaders([rawHeaders]) });
|
|
846
|
+
}
|
|
824
847
|
return { bodyHeaders: undefined, body: undefined };
|
|
825
848
|
}
|
|
826
849
|
const headers = buildHeaders([rawHeaders]);
|
|
@@ -934,6 +957,7 @@ export class RunwayML {
|
|
|
934
957
|
avatarVideos: API.AvatarVideos = new API.AvatarVideos(this);
|
|
935
958
|
documents: API.Documents = new API.Documents(this);
|
|
936
959
|
realtimeSessions: API.RealtimeSessions = new API.RealtimeSessions(this);
|
|
960
|
+
recipes: API.Recipes = new API.Recipes(this);
|
|
937
961
|
voices: API.Voices = new API.Voices(this);
|
|
938
962
|
uploads: API.Uploads = new API.Uploads(this);
|
|
939
963
|
workflows: API.Workflows = new API.Workflows(this);
|
|
@@ -958,6 +982,7 @@ RunwayML.AvatarConversations = AvatarConversations;
|
|
|
958
982
|
RunwayML.AvatarVideos = AvatarVideos;
|
|
959
983
|
RunwayML.Documents = Documents;
|
|
960
984
|
RunwayML.RealtimeSessions = RealtimeSessions;
|
|
985
|
+
RunwayML.Recipes = Recipes;
|
|
961
986
|
RunwayML.Voices = Voices;
|
|
962
987
|
RunwayML.Uploads = Uploads;
|
|
963
988
|
RunwayML.Workflows = Workflows;
|
|
@@ -1090,6 +1115,22 @@ export declare namespace RunwayML {
|
|
|
1090
1115
|
type RealtimeSessionCreateParams as RealtimeSessionCreateParams,
|
|
1091
1116
|
};
|
|
1092
1117
|
|
|
1118
|
+
export {
|
|
1119
|
+
Recipes as Recipes,
|
|
1120
|
+
type RecipeMarketingStockImageResponse as RecipeMarketingStockImageResponse,
|
|
1121
|
+
type RecipeMultiShotVideoResponse as RecipeMultiShotVideoResponse,
|
|
1122
|
+
type RecipeProductAdResponse as RecipeProductAdResponse,
|
|
1123
|
+
type RecipeProductCampaignImageResponse as RecipeProductCampaignImageResponse,
|
|
1124
|
+
type RecipeProductSwapResponse as RecipeProductSwapResponse,
|
|
1125
|
+
type RecipeProductUgcResponse as RecipeProductUgcResponse,
|
|
1126
|
+
type RecipeMarketingStockImageParams as RecipeMarketingStockImageParams,
|
|
1127
|
+
type RecipeMultiShotVideoParams as RecipeMultiShotVideoParams,
|
|
1128
|
+
type RecipeProductAdParams as RecipeProductAdParams,
|
|
1129
|
+
type RecipeProductCampaignImageParams as RecipeProductCampaignImageParams,
|
|
1130
|
+
type RecipeProductSwapParams as RecipeProductSwapParams,
|
|
1131
|
+
type RecipeProductUgcParams as RecipeProductUgcParams,
|
|
1132
|
+
};
|
|
1133
|
+
|
|
1093
1134
|
export {
|
|
1094
1135
|
Voices as Voices,
|
|
1095
1136
|
type VoiceCreateResponse as VoiceCreateResponse,
|
package/src/resources/index.ts
CHANGED
|
@@ -58,6 +58,21 @@ export {
|
|
|
58
58
|
type RealtimeSessionRetrieveResponse,
|
|
59
59
|
type RealtimeSessionCreateParams,
|
|
60
60
|
} from './realtime-sessions';
|
|
61
|
+
export {
|
|
62
|
+
Recipes,
|
|
63
|
+
type RecipeMarketingStockImageResponse,
|
|
64
|
+
type RecipeMultiShotVideoResponse,
|
|
65
|
+
type RecipeProductAdResponse,
|
|
66
|
+
type RecipeProductCampaignImageResponse,
|
|
67
|
+
type RecipeProductSwapResponse,
|
|
68
|
+
type RecipeProductUgcResponse,
|
|
69
|
+
type RecipeMarketingStockImageParams,
|
|
70
|
+
type RecipeMultiShotVideoParams,
|
|
71
|
+
type RecipeProductAdParams,
|
|
72
|
+
type RecipeProductCampaignImageParams,
|
|
73
|
+
type RecipeProductSwapParams,
|
|
74
|
+
type RecipeProductUgcParams,
|
|
75
|
+
} from './recipes';
|
|
61
76
|
export { SoundEffect, type SoundEffectCreateResponse, type SoundEffectCreateParams } from './sound-effect';
|
|
62
77
|
export {
|
|
63
78
|
SpeechToSpeech,
|
|
@@ -139,6 +139,11 @@ export interface OrganizationRetrieveUsageResponse {
|
|
|
139
139
|
| 'happyhorse_1_0'
|
|
140
140
|
| 'aleph2'
|
|
141
141
|
| 'product_swap'
|
|
142
|
+
| 'product_ad'
|
|
143
|
+
| 'multi_shot_video'
|
|
144
|
+
| 'product_ugc'
|
|
145
|
+
| 'marketing_stock_image'
|
|
146
|
+
| 'product_campaign_image'
|
|
142
147
|
>;
|
|
143
148
|
|
|
144
149
|
results: Array<OrganizationRetrieveUsageResponse.Result>;
|
|
@@ -207,7 +212,12 @@ export namespace OrganizationRetrieveUsageResponse {
|
|
|
207
212
|
| 'klingO3_4k'
|
|
208
213
|
| 'happyhorse_1_0'
|
|
209
214
|
| 'aleph2'
|
|
210
|
-
| 'product_swap'
|
|
215
|
+
| 'product_swap'
|
|
216
|
+
| 'product_ad'
|
|
217
|
+
| 'multi_shot_video'
|
|
218
|
+
| 'product_ugc'
|
|
219
|
+
| 'marketing_stock_image'
|
|
220
|
+
| 'product_campaign_image';
|
|
211
221
|
}
|
|
212
222
|
}
|
|
213
223
|
}
|