@marlinjai/studio-mcp 0.7.0 → 0.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.
- package/README.md +10 -2
- package/dist/cli.js +930 -142
- package/dist/index.d.ts +397 -3
- package/dist/index.js +930 -142
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -199,6 +199,7 @@ declare const WorkflowDocumentSchema: z.ZodObject<{
|
|
|
199
199
|
json: "json";
|
|
200
200
|
mask: "mask";
|
|
201
201
|
mesh3d: "mesh3d";
|
|
202
|
+
reference: "reference";
|
|
202
203
|
}>;
|
|
203
204
|
}, z.core.$strip>>;
|
|
204
205
|
layout: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -442,6 +443,7 @@ declare const OpSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
442
443
|
mask: "mask";
|
|
443
444
|
mesh3d: "mesh3d";
|
|
444
445
|
json: "json";
|
|
446
|
+
reference: "reference";
|
|
445
447
|
}>;
|
|
446
448
|
index: z.ZodOptional<z.ZodNumber>;
|
|
447
449
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -456,6 +458,7 @@ declare const OpSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
456
458
|
mask: "mask";
|
|
457
459
|
mesh3d: "mesh3d";
|
|
458
460
|
json: "json";
|
|
461
|
+
reference: "reference";
|
|
459
462
|
}>;
|
|
460
463
|
}, z.core.$strip>, z.ZodObject<{
|
|
461
464
|
type: z.ZodLiteral<"exposeAsInput">;
|
|
@@ -738,6 +741,7 @@ declare const PatchSchema: z.ZodObject<{
|
|
|
738
741
|
mask: "mask";
|
|
739
742
|
mesh3d: "mesh3d";
|
|
740
743
|
json: "json";
|
|
744
|
+
reference: "reference";
|
|
741
745
|
}>;
|
|
742
746
|
index: z.ZodOptional<z.ZodNumber>;
|
|
743
747
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -752,6 +756,7 @@ declare const PatchSchema: z.ZodObject<{
|
|
|
752
756
|
mask: "mask";
|
|
753
757
|
mesh3d: "mesh3d";
|
|
754
758
|
json: "json";
|
|
759
|
+
reference: "reference";
|
|
755
760
|
}>;
|
|
756
761
|
}, z.core.$strip>, z.ZodObject<{
|
|
757
762
|
type: z.ZodLiteral<"exposeAsInput">;
|
|
@@ -859,7 +864,7 @@ interface ApplyError {
|
|
|
859
864
|
* Pure: no database, no provider, no DOM.
|
|
860
865
|
*/
|
|
861
866
|
|
|
862
|
-
type ProjectionIssueCode = "no_task_nodes" | "not_runnable" | "no_model" | "prompt_required" | "source_uploading" | "keyframe_positions" | "no_inputs" | "param_unmappable" | "param_type_conflict" | "integrity";
|
|
867
|
+
type ProjectionIssueCode = "no_task_nodes" | "not_runnable" | "no_model" | "prompt_required" | "source_uploading" | "keyframe_positions" | "character_references" | "no_inputs" | "param_unmappable" | "param_type_conflict" | "integrity";
|
|
863
868
|
interface ProjectionIssue {
|
|
864
869
|
code: ProjectionIssueCode;
|
|
865
870
|
/** The node the issue is about, when it is about one. */
|
|
@@ -867,6 +872,243 @@ interface ProjectionIssue {
|
|
|
867
872
|
message: string;
|
|
868
873
|
}
|
|
869
874
|
|
|
875
|
+
declare const CompositionDocumentSchema: z.ZodObject<{
|
|
876
|
+
schema: z.ZodLiteral<1>;
|
|
877
|
+
kind: z.ZodEnum<{
|
|
878
|
+
carousel: "carousel";
|
|
879
|
+
reel: "reel";
|
|
880
|
+
}>;
|
|
881
|
+
aspect: z.ZodEnum<{
|
|
882
|
+
"4:5": "4:5";
|
|
883
|
+
"1:1": "1:1";
|
|
884
|
+
"9:16": "9:16";
|
|
885
|
+
}>;
|
|
886
|
+
label: z.ZodString;
|
|
887
|
+
brandSlug: z.ZodString;
|
|
888
|
+
kitVersionAtEdit: z.ZodNumber;
|
|
889
|
+
items: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
890
|
+
id: z.ZodString;
|
|
891
|
+
type: z.ZodLiteral<"slide">;
|
|
892
|
+
background: z.ZodObject<{
|
|
893
|
+
assetId: z.ZodOptional<z.ZodString>;
|
|
894
|
+
fit: z.ZodEnum<{
|
|
895
|
+
cover: "cover";
|
|
896
|
+
contain: "contain";
|
|
897
|
+
}>;
|
|
898
|
+
focal: z.ZodObject<{
|
|
899
|
+
x: z.ZodNumber;
|
|
900
|
+
y: z.ZodNumber;
|
|
901
|
+
}, z.core.$strict>;
|
|
902
|
+
fill: z.ZodOptional<z.ZodString>;
|
|
903
|
+
}, z.core.$strict>;
|
|
904
|
+
overlays: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
905
|
+
start: z.ZodOptional<z.ZodNumber>;
|
|
906
|
+
end: z.ZodOptional<z.ZodNumber>;
|
|
907
|
+
id: z.ZodString;
|
|
908
|
+
type: z.ZodLiteral<"text">;
|
|
909
|
+
box: z.ZodObject<{
|
|
910
|
+
x: z.ZodNumber;
|
|
911
|
+
y: z.ZodNumber;
|
|
912
|
+
w: z.ZodNumber;
|
|
913
|
+
h: z.ZodNumber;
|
|
914
|
+
}, z.core.$strict>;
|
|
915
|
+
text: z.ZodString;
|
|
916
|
+
styleRole: z.ZodEnum<{
|
|
917
|
+
headline: "headline";
|
|
918
|
+
body: "body";
|
|
919
|
+
}>;
|
|
920
|
+
fontRole: z.ZodEnum<{
|
|
921
|
+
primary: "primary";
|
|
922
|
+
secondary: "secondary";
|
|
923
|
+
}>;
|
|
924
|
+
weight: z.ZodNumber;
|
|
925
|
+
italic: z.ZodBoolean;
|
|
926
|
+
colorRole: z.ZodString;
|
|
927
|
+
align: z.ZodEnum<{
|
|
928
|
+
left: "left";
|
|
929
|
+
center: "center";
|
|
930
|
+
right: "right";
|
|
931
|
+
}>;
|
|
932
|
+
background: z.ZodOptional<z.ZodObject<{
|
|
933
|
+
colorRole: z.ZodString;
|
|
934
|
+
opacity: z.ZodNumber;
|
|
935
|
+
padding: z.ZodNumber;
|
|
936
|
+
}, z.core.$strict>>;
|
|
937
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
938
|
+
start: z.ZodOptional<z.ZodNumber>;
|
|
939
|
+
end: z.ZodOptional<z.ZodNumber>;
|
|
940
|
+
id: z.ZodString;
|
|
941
|
+
type: z.ZodLiteral<"logo">;
|
|
942
|
+
box: z.ZodObject<{
|
|
943
|
+
x: z.ZodNumber;
|
|
944
|
+
y: z.ZodNumber;
|
|
945
|
+
w: z.ZodNumber;
|
|
946
|
+
h: z.ZodNumber;
|
|
947
|
+
}, z.core.$strict>;
|
|
948
|
+
variant: z.ZodEnum<{
|
|
949
|
+
light: "light";
|
|
950
|
+
dark: "dark";
|
|
951
|
+
}>;
|
|
952
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
953
|
+
start: z.ZodOptional<z.ZodNumber>;
|
|
954
|
+
end: z.ZodOptional<z.ZodNumber>;
|
|
955
|
+
id: z.ZodString;
|
|
956
|
+
type: z.ZodLiteral<"shape">;
|
|
957
|
+
box: z.ZodObject<{
|
|
958
|
+
x: z.ZodNumber;
|
|
959
|
+
y: z.ZodNumber;
|
|
960
|
+
w: z.ZodNumber;
|
|
961
|
+
h: z.ZodNumber;
|
|
962
|
+
}, z.core.$strict>;
|
|
963
|
+
shape: z.ZodEnum<{
|
|
964
|
+
rect: "rect";
|
|
965
|
+
pill: "pill";
|
|
966
|
+
}>;
|
|
967
|
+
colorRole: z.ZodString;
|
|
968
|
+
opacity: z.ZodNumber;
|
|
969
|
+
}, z.core.$strict>], "type">>;
|
|
970
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
971
|
+
id: z.ZodString;
|
|
972
|
+
type: z.ZodLiteral<"clip">;
|
|
973
|
+
assetId: z.ZodString;
|
|
974
|
+
trimIn: z.ZodNumber;
|
|
975
|
+
trimOut: z.ZodNumber;
|
|
976
|
+
overlays: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
977
|
+
start: z.ZodOptional<z.ZodNumber>;
|
|
978
|
+
end: z.ZodOptional<z.ZodNumber>;
|
|
979
|
+
id: z.ZodString;
|
|
980
|
+
type: z.ZodLiteral<"text">;
|
|
981
|
+
box: z.ZodObject<{
|
|
982
|
+
x: z.ZodNumber;
|
|
983
|
+
y: z.ZodNumber;
|
|
984
|
+
w: z.ZodNumber;
|
|
985
|
+
h: z.ZodNumber;
|
|
986
|
+
}, z.core.$strict>;
|
|
987
|
+
text: z.ZodString;
|
|
988
|
+
styleRole: z.ZodEnum<{
|
|
989
|
+
headline: "headline";
|
|
990
|
+
body: "body";
|
|
991
|
+
}>;
|
|
992
|
+
fontRole: z.ZodEnum<{
|
|
993
|
+
primary: "primary";
|
|
994
|
+
secondary: "secondary";
|
|
995
|
+
}>;
|
|
996
|
+
weight: z.ZodNumber;
|
|
997
|
+
italic: z.ZodBoolean;
|
|
998
|
+
colorRole: z.ZodString;
|
|
999
|
+
align: z.ZodEnum<{
|
|
1000
|
+
left: "left";
|
|
1001
|
+
center: "center";
|
|
1002
|
+
right: "right";
|
|
1003
|
+
}>;
|
|
1004
|
+
background: z.ZodOptional<z.ZodObject<{
|
|
1005
|
+
colorRole: z.ZodString;
|
|
1006
|
+
opacity: z.ZodNumber;
|
|
1007
|
+
padding: z.ZodNumber;
|
|
1008
|
+
}, z.core.$strict>>;
|
|
1009
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1010
|
+
start: z.ZodOptional<z.ZodNumber>;
|
|
1011
|
+
end: z.ZodOptional<z.ZodNumber>;
|
|
1012
|
+
id: z.ZodString;
|
|
1013
|
+
type: z.ZodLiteral<"logo">;
|
|
1014
|
+
box: z.ZodObject<{
|
|
1015
|
+
x: z.ZodNumber;
|
|
1016
|
+
y: z.ZodNumber;
|
|
1017
|
+
w: z.ZodNumber;
|
|
1018
|
+
h: z.ZodNumber;
|
|
1019
|
+
}, z.core.$strict>;
|
|
1020
|
+
variant: z.ZodEnum<{
|
|
1021
|
+
light: "light";
|
|
1022
|
+
dark: "dark";
|
|
1023
|
+
}>;
|
|
1024
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1025
|
+
start: z.ZodOptional<z.ZodNumber>;
|
|
1026
|
+
end: z.ZodOptional<z.ZodNumber>;
|
|
1027
|
+
id: z.ZodString;
|
|
1028
|
+
type: z.ZodLiteral<"shape">;
|
|
1029
|
+
box: z.ZodObject<{
|
|
1030
|
+
x: z.ZodNumber;
|
|
1031
|
+
y: z.ZodNumber;
|
|
1032
|
+
w: z.ZodNumber;
|
|
1033
|
+
h: z.ZodNumber;
|
|
1034
|
+
}, z.core.$strict>;
|
|
1035
|
+
shape: z.ZodEnum<{
|
|
1036
|
+
rect: "rect";
|
|
1037
|
+
pill: "pill";
|
|
1038
|
+
}>;
|
|
1039
|
+
colorRole: z.ZodString;
|
|
1040
|
+
opacity: z.ZodNumber;
|
|
1041
|
+
}, z.core.$strict>], "type">>;
|
|
1042
|
+
}, z.core.$strict>]>>;
|
|
1043
|
+
reelOverlays: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1044
|
+
start: z.ZodOptional<z.ZodNumber>;
|
|
1045
|
+
end: z.ZodOptional<z.ZodNumber>;
|
|
1046
|
+
id: z.ZodString;
|
|
1047
|
+
type: z.ZodLiteral<"text">;
|
|
1048
|
+
box: z.ZodObject<{
|
|
1049
|
+
x: z.ZodNumber;
|
|
1050
|
+
y: z.ZodNumber;
|
|
1051
|
+
w: z.ZodNumber;
|
|
1052
|
+
h: z.ZodNumber;
|
|
1053
|
+
}, z.core.$strict>;
|
|
1054
|
+
text: z.ZodString;
|
|
1055
|
+
styleRole: z.ZodEnum<{
|
|
1056
|
+
headline: "headline";
|
|
1057
|
+
body: "body";
|
|
1058
|
+
}>;
|
|
1059
|
+
fontRole: z.ZodEnum<{
|
|
1060
|
+
primary: "primary";
|
|
1061
|
+
secondary: "secondary";
|
|
1062
|
+
}>;
|
|
1063
|
+
weight: z.ZodNumber;
|
|
1064
|
+
italic: z.ZodBoolean;
|
|
1065
|
+
colorRole: z.ZodString;
|
|
1066
|
+
align: z.ZodEnum<{
|
|
1067
|
+
left: "left";
|
|
1068
|
+
center: "center";
|
|
1069
|
+
right: "right";
|
|
1070
|
+
}>;
|
|
1071
|
+
background: z.ZodOptional<z.ZodObject<{
|
|
1072
|
+
colorRole: z.ZodString;
|
|
1073
|
+
opacity: z.ZodNumber;
|
|
1074
|
+
padding: z.ZodNumber;
|
|
1075
|
+
}, z.core.$strict>>;
|
|
1076
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1077
|
+
start: z.ZodOptional<z.ZodNumber>;
|
|
1078
|
+
end: z.ZodOptional<z.ZodNumber>;
|
|
1079
|
+
id: z.ZodString;
|
|
1080
|
+
type: z.ZodLiteral<"logo">;
|
|
1081
|
+
box: z.ZodObject<{
|
|
1082
|
+
x: z.ZodNumber;
|
|
1083
|
+
y: z.ZodNumber;
|
|
1084
|
+
w: z.ZodNumber;
|
|
1085
|
+
h: z.ZodNumber;
|
|
1086
|
+
}, z.core.$strict>;
|
|
1087
|
+
variant: z.ZodEnum<{
|
|
1088
|
+
light: "light";
|
|
1089
|
+
dark: "dark";
|
|
1090
|
+
}>;
|
|
1091
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1092
|
+
start: z.ZodOptional<z.ZodNumber>;
|
|
1093
|
+
end: z.ZodOptional<z.ZodNumber>;
|
|
1094
|
+
id: z.ZodString;
|
|
1095
|
+
type: z.ZodLiteral<"shape">;
|
|
1096
|
+
box: z.ZodObject<{
|
|
1097
|
+
x: z.ZodNumber;
|
|
1098
|
+
y: z.ZodNumber;
|
|
1099
|
+
w: z.ZodNumber;
|
|
1100
|
+
h: z.ZodNumber;
|
|
1101
|
+
}, z.core.$strict>;
|
|
1102
|
+
shape: z.ZodEnum<{
|
|
1103
|
+
rect: "rect";
|
|
1104
|
+
pill: "pill";
|
|
1105
|
+
}>;
|
|
1106
|
+
colorRole: z.ZodString;
|
|
1107
|
+
opacity: z.ZodNumber;
|
|
1108
|
+
}, z.core.$strict>], "type">>;
|
|
1109
|
+
}, z.core.$strict>;
|
|
1110
|
+
type CompositionDocument = z.infer<typeof CompositionDocumentSchema>;
|
|
1111
|
+
|
|
870
1112
|
/**
|
|
871
1113
|
* Server configuration, resolved from the environment once at startup.
|
|
872
1114
|
*
|
|
@@ -947,6 +1189,82 @@ interface CampaignContents {
|
|
|
947
1189
|
shotsRendering: number;
|
|
948
1190
|
}
|
|
949
1191
|
type JobStatus = 'queued' | 'running' | 'succeeded' | 'failed' | 'canceled' | (string & {});
|
|
1192
|
+
/** `GET /api/brands/[slug]/kit` (file URLs are Studio-relative and not used by the tools). */
|
|
1193
|
+
interface BrandKitResponse {
|
|
1194
|
+
version: number;
|
|
1195
|
+
colors: {
|
|
1196
|
+
id: string;
|
|
1197
|
+
name: string;
|
|
1198
|
+
hex: string;
|
|
1199
|
+
}[];
|
|
1200
|
+
typeRoles: {
|
|
1201
|
+
headline: {
|
|
1202
|
+
px: number;
|
|
1203
|
+
};
|
|
1204
|
+
body: {
|
|
1205
|
+
px: number;
|
|
1206
|
+
};
|
|
1207
|
+
};
|
|
1208
|
+
fonts: {
|
|
1209
|
+
role: 'primary' | 'secondary';
|
|
1210
|
+
family: string;
|
|
1211
|
+
source: string;
|
|
1212
|
+
files: {
|
|
1213
|
+
weight: number;
|
|
1214
|
+
style: 'normal' | 'italic';
|
|
1215
|
+
}[];
|
|
1216
|
+
}[];
|
|
1217
|
+
logos: {
|
|
1218
|
+
variant: 'light' | 'dark';
|
|
1219
|
+
width: number;
|
|
1220
|
+
height: number;
|
|
1221
|
+
}[];
|
|
1222
|
+
}
|
|
1223
|
+
interface CompositionSummary {
|
|
1224
|
+
id: string;
|
|
1225
|
+
projectId: string;
|
|
1226
|
+
kind: 'carousel' | 'reel';
|
|
1227
|
+
label: string;
|
|
1228
|
+
brandSlug: string;
|
|
1229
|
+
revision: number;
|
|
1230
|
+
updatedAt: string;
|
|
1231
|
+
}
|
|
1232
|
+
/** One asset of a project as `GET /api/v1/projects/[id]/assets` returns it (signed `url`). */
|
|
1233
|
+
interface ProjectAsset {
|
|
1234
|
+
id: string;
|
|
1235
|
+
projectId: string;
|
|
1236
|
+
subtype: string;
|
|
1237
|
+
url: string | null;
|
|
1238
|
+
thumbUrl?: string | null;
|
|
1239
|
+
mimeType: string | null;
|
|
1240
|
+
prompt: string | null;
|
|
1241
|
+
metadata: Record<string, unknown>;
|
|
1242
|
+
createdAt: string;
|
|
1243
|
+
}
|
|
1244
|
+
/** A Lumitra Social project as `GET /api/v1/social/projects` lists it. */
|
|
1245
|
+
interface SocialProjectSummary {
|
|
1246
|
+
id: string;
|
|
1247
|
+
slug: string;
|
|
1248
|
+
name: string;
|
|
1249
|
+
igHandle?: string | null;
|
|
1250
|
+
defaultLanguage?: string;
|
|
1251
|
+
}
|
|
1252
|
+
/** One send of a post to Lumitra Social. */
|
|
1253
|
+
interface SocialSendView {
|
|
1254
|
+
id: string;
|
|
1255
|
+
status: 'sending' | 'sent' | 'failed';
|
|
1256
|
+
format: string;
|
|
1257
|
+
projectSlug: string;
|
|
1258
|
+
scheduledAt: string | null;
|
|
1259
|
+
postId: string | null;
|
|
1260
|
+
plannerUrl: string;
|
|
1261
|
+
errorCode: string | null;
|
|
1262
|
+
errorMessage: string | null;
|
|
1263
|
+
createdAt: string;
|
|
1264
|
+
}
|
|
1265
|
+
interface CompositionRecord extends CompositionSummary {
|
|
1266
|
+
document: CompositionDocument;
|
|
1267
|
+
}
|
|
950
1268
|
interface JobResponse {
|
|
951
1269
|
job: {
|
|
952
1270
|
id: string;
|
|
@@ -1428,6 +1746,9 @@ declare class StudioClient {
|
|
|
1428
1746
|
budgetUsd?: number;
|
|
1429
1747
|
/** S6b: bypasses a per-key confirmation threshold for this one request. */
|
|
1430
1748
|
confirm?: boolean;
|
|
1749
|
+
/** Runs despite the continuity check of a clip with a start and an end
|
|
1750
|
+
* frame (400 `continuity_mismatch` / `continuity_unchecked` otherwise). */
|
|
1751
|
+
acknowledgeContinuity?: boolean;
|
|
1431
1752
|
}): Promise<RunStartResponse>;
|
|
1432
1753
|
getRun(runId: string): Promise<RunResponse>;
|
|
1433
1754
|
/** Submit a human decision on a parked judge node (P3 J2). Approving
|
|
@@ -1490,6 +1811,8 @@ declare class StudioClient {
|
|
|
1490
1811
|
* creates a character (422 `likeness_rights_confirmation_required`,
|
|
1491
1812
|
* before anything is spent); ignored by a recipe that creates none. */
|
|
1492
1813
|
likenessRightsConfirmed?: true;
|
|
1814
|
+
/** Runs despite the continuity check, as on runWorkflow. */
|
|
1815
|
+
acknowledgeContinuity?: boolean;
|
|
1493
1816
|
}): Promise<{
|
|
1494
1817
|
runId: string;
|
|
1495
1818
|
status: string;
|
|
@@ -1522,6 +1845,70 @@ declare class StudioClient {
|
|
|
1522
1845
|
acknowledgeLossy?: boolean;
|
|
1523
1846
|
projectId?: string;
|
|
1524
1847
|
}): Promise<WorkflowApplyResponse>;
|
|
1848
|
+
/** A brand's kit: colours, the two type sizes, fonts by role, logos by variant, version. */
|
|
1849
|
+
getBrandKit(brandSlug: string): Promise<{
|
|
1850
|
+
kit: BrandKitResponse;
|
|
1851
|
+
}>;
|
|
1852
|
+
listCompositions(opts?: {
|
|
1853
|
+
projectId?: string;
|
|
1854
|
+
}): Promise<{
|
|
1855
|
+
compositions: CompositionSummary[];
|
|
1856
|
+
}>;
|
|
1857
|
+
/** 201 created; 200 with `replayed: true` when a create with this idempotencyKey already made it. */
|
|
1858
|
+
createComposition(body: {
|
|
1859
|
+
kind: 'carousel' | 'reel';
|
|
1860
|
+
brandSlug: string;
|
|
1861
|
+
projectId?: string;
|
|
1862
|
+
aspect?: string;
|
|
1863
|
+
label?: string;
|
|
1864
|
+
ops?: unknown[];
|
|
1865
|
+
idempotencyKey?: string;
|
|
1866
|
+
}): Promise<{
|
|
1867
|
+
composition: CompositionRecord;
|
|
1868
|
+
replayed?: boolean;
|
|
1869
|
+
}>;
|
|
1870
|
+
/** A project's assets, newest first, optionally of one subtype (Image, Video, CarouselSlide, Reel, ...). */
|
|
1871
|
+
listProjectAssets(projectId: string, opts?: {
|
|
1872
|
+
subtype?: string;
|
|
1873
|
+
limit?: number;
|
|
1874
|
+
}): Promise<{
|
|
1875
|
+
assets: ProjectAsset[];
|
|
1876
|
+
}>;
|
|
1877
|
+
getComposition(compositionId: string): Promise<{
|
|
1878
|
+
composition: CompositionRecord;
|
|
1879
|
+
}>;
|
|
1880
|
+
/** 409 stale_revision (with the current composition) or idempotency_mismatch; 422 invalid_patch. */
|
|
1881
|
+
patchComposition(compositionId: string, patch: {
|
|
1882
|
+
baseRevision: number;
|
|
1883
|
+
ops: unknown[];
|
|
1884
|
+
idempotencyKey: string;
|
|
1885
|
+
}): Promise<{
|
|
1886
|
+
composition: CompositionRecord;
|
|
1887
|
+
applied: unknown[];
|
|
1888
|
+
inverse: unknown[];
|
|
1889
|
+
replayed: boolean;
|
|
1890
|
+
}>;
|
|
1891
|
+
/** The company's Lumitra Social projects (409 not_connected / link_broken until an owner connects it in Studio). */
|
|
1892
|
+
listSocialProjects(brandSlug?: string): Promise<{
|
|
1893
|
+
projects: SocialProjectSummary[];
|
|
1894
|
+
lastProjectSlug: string | null;
|
|
1895
|
+
}>;
|
|
1896
|
+
/** Send the rendered post to Lumitra Social; idempotent on `idempotencyKey`. */
|
|
1897
|
+
sendCompositionToSocial(compositionId: string, body: {
|
|
1898
|
+
projectSlug: string;
|
|
1899
|
+
caption?: string;
|
|
1900
|
+
hashtags?: string;
|
|
1901
|
+
scheduledAt?: string | null;
|
|
1902
|
+
idempotencyKey: string;
|
|
1903
|
+
}): Promise<{
|
|
1904
|
+
send: SocialSendView;
|
|
1905
|
+
replayed: boolean;
|
|
1906
|
+
}>;
|
|
1907
|
+
/** Start (or join) a render. 422 not_ready with `reasons`; 429 render_limit or render_busy (a reel of this company is rendering). */
|
|
1908
|
+
renderComposition(compositionId: string): Promise<{
|
|
1909
|
+
jobId: string;
|
|
1910
|
+
reused: boolean;
|
|
1911
|
+
}>;
|
|
1525
1912
|
/** Stateless dry-run of ops and run params against a document. No side effects. */
|
|
1526
1913
|
validateWorkflow(body: {
|
|
1527
1914
|
document: WorkflowDocument;
|
|
@@ -1656,7 +2043,7 @@ declare function registerTools(server: McpServer, base: ToolContext): void;
|
|
|
1656
2043
|
*/
|
|
1657
2044
|
|
|
1658
2045
|
declare const SERVER_NAME = "lumitra-studio";
|
|
1659
|
-
declare const SERVER_VERSION = "0.
|
|
2046
|
+
declare const SERVER_VERSION = "0.9.0";
|
|
1660
2047
|
interface CreateServerOptions {
|
|
1661
2048
|
config?: StudioConfig;
|
|
1662
2049
|
env?: NodeJS.ProcessEnv;
|
|
@@ -1918,6 +2305,7 @@ declare const studioWorkflowCreate: ToolDef<{
|
|
|
1918
2305
|
mask: "mask";
|
|
1919
2306
|
mesh3d: "mesh3d";
|
|
1920
2307
|
json: "json";
|
|
2308
|
+
reference: "reference";
|
|
1921
2309
|
}>;
|
|
1922
2310
|
index: z.ZodOptional<z.ZodNumber>;
|
|
1923
2311
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1932,6 +2320,7 @@ declare const studioWorkflowCreate: ToolDef<{
|
|
|
1932
2320
|
mask: "mask";
|
|
1933
2321
|
mesh3d: "mesh3d";
|
|
1934
2322
|
json: "json";
|
|
2323
|
+
reference: "reference";
|
|
1935
2324
|
}>;
|
|
1936
2325
|
}, z.core.$strip>, z.ZodObject<{
|
|
1937
2326
|
type: z.ZodLiteral<"exposeAsInput">;
|
|
@@ -2216,6 +2605,7 @@ declare const studioWorkflowApply: ToolDef<{
|
|
|
2216
2605
|
mask: "mask";
|
|
2217
2606
|
mesh3d: "mesh3d";
|
|
2218
2607
|
json: "json";
|
|
2608
|
+
reference: "reference";
|
|
2219
2609
|
}>;
|
|
2220
2610
|
index: z.ZodOptional<z.ZodNumber>;
|
|
2221
2611
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -2230,6 +2620,7 @@ declare const studioWorkflowApply: ToolDef<{
|
|
|
2230
2620
|
mask: "mask";
|
|
2231
2621
|
mesh3d: "mesh3d";
|
|
2232
2622
|
json: "json";
|
|
2623
|
+
reference: "reference";
|
|
2233
2624
|
}>;
|
|
2234
2625
|
}, z.core.$strip>, z.ZodObject<{
|
|
2235
2626
|
type: z.ZodLiteral<"exposeAsInput">;
|
|
@@ -2400,6 +2791,7 @@ declare const studioWorkflowValidate: ToolDef<{
|
|
|
2400
2791
|
json: "json";
|
|
2401
2792
|
mask: "mask";
|
|
2402
2793
|
mesh3d: "mesh3d";
|
|
2794
|
+
reference: "reference";
|
|
2403
2795
|
}>;
|
|
2404
2796
|
}, z.core.$strip>>;
|
|
2405
2797
|
layout: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -2643,6 +3035,7 @@ declare const studioWorkflowValidate: ToolDef<{
|
|
|
2643
3035
|
mask: "mask";
|
|
2644
3036
|
mesh3d: "mesh3d";
|
|
2645
3037
|
json: "json";
|
|
3038
|
+
reference: "reference";
|
|
2646
3039
|
}>;
|
|
2647
3040
|
index: z.ZodOptional<z.ZodNumber>;
|
|
2648
3041
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -2657,6 +3050,7 @@ declare const studioWorkflowValidate: ToolDef<{
|
|
|
2657
3050
|
mask: "mask";
|
|
2658
3051
|
mesh3d: "mesh3d";
|
|
2659
3052
|
json: "json";
|
|
3053
|
+
reference: "reference";
|
|
2660
3054
|
}>;
|
|
2661
3055
|
}, z.core.$strip>, z.ZodObject<{
|
|
2662
3056
|
type: z.ZodLiteral<"exposeAsInput">;
|
|
@@ -3016,4 +3410,4 @@ declare function parseArgs(argv: string[]): CliArgs;
|
|
|
3016
3410
|
declare function createHttpHandler(): (req: IncomingMessage, res: ServerResponse) => Promise<void>;
|
|
3017
3411
|
declare function main(argv?: string[]): Promise<void>;
|
|
3018
3412
|
|
|
3019
|
-
export { type AllTenantsUsageResponse, type Binding, CHARACTER_SHEET_DEFINITION, CHARACTER_SHEET_NODES, type CampaignContents, type CampaignListing, type CandidatePlan, type CharacterReference, type CharacterSummary, type CharacterSwapInput, ConfigError, ContractError, type CreateServerOptions, DEFAULT_BASE_URL, DEFAULT_MOTION_PROMPT, DEFAULT_SWAP_EDIT_MODEL, DEFAULT_SWAP_PROMPT, DEFAULT_SWAP_VIDEO_MODEL, DEFAULT_TIMEOUT_MS, type DocumentSummary, type FetchLike, type GenerateImageResponse, type JobResponse, type JobStatus, type JudgeCandidate, MINT_REFERENCE_CATEGORIES, type NodeResultResponse, type NodeRun, type NodeStatus, type NodeSummary, type NodeTypesResponse, type PollOptions, PollTimeoutError, type ProjectContents, type ProjectSummary, type Projection, type RemovedNode, type RunResponse, type RunStartResponse, type RunStatus, SERVER_NAME, SERVER_VERSION, SUMMARY_TEXT_CHARS, SWAP_SCOPES, type SavedWorkflowListing, type SpendLedger, StudioApiError, StudioClient, type StudioClientOptions, type StudioConfig, type StudioMcp, type SummaryMeta, type SwapPromptOptions, type SwapScope, TOOLS, TOOL_NAMES, type TaskDescriptor, type TenantSpendSummary, type TenantUsageResponse, type ToolContext, type ToolDef, ToolInputError, type ToolResult, type TurnaroundView, type UploadFile, type UsageByModel, type UsageResponse, WORKFLOW_TOOLS, type WorkflowApplyResponse, type WorkflowCreateResponse, type WorkflowDefinition, type WorkflowDocumentResponse, type WorkflowNode, type WorkflowValidateResponse, affectedNodes, buildCharacterSheetParams, buildCharacterSwapDefinition, categoryForNode, characterSheetDefinition, composeSwapPrompt, createHttpHandler, createStudioMcpServer, extensionForMime, filenameFromUrl, invokeTool, main, mimeForFilename, parseArgs, parseDocument, parseOps, pollUntil, projectionOf, redactSecret, registerTools, resolveConfig, seedFacePrompt, studioWorkflowApply, studioWorkflowCreate, studioWorkflowDescribe, studioWorkflowGet, studioWorkflowScreenshot, studioWorkflowValidate, summarizeDocument, summarizeNode, touchedNodeIds, turnaroundViewPrompt, waitForJob, waitForRun };
|
|
3413
|
+
export { type AllTenantsUsageResponse, type Binding, type BrandKitResponse, CHARACTER_SHEET_DEFINITION, CHARACTER_SHEET_NODES, type CampaignContents, type CampaignListing, type CandidatePlan, type CharacterReference, type CharacterSummary, type CharacterSwapInput, type CompositionRecord, type CompositionSummary, ConfigError, ContractError, type CreateServerOptions, DEFAULT_BASE_URL, DEFAULT_MOTION_PROMPT, DEFAULT_SWAP_EDIT_MODEL, DEFAULT_SWAP_PROMPT, DEFAULT_SWAP_VIDEO_MODEL, DEFAULT_TIMEOUT_MS, type DocumentSummary, type FetchLike, type GenerateImageResponse, type JobResponse, type JobStatus, type JudgeCandidate, MINT_REFERENCE_CATEGORIES, type NodeResultResponse, type NodeRun, type NodeStatus, type NodeSummary, type NodeTypesResponse, type PollOptions, PollTimeoutError, type ProjectAsset, type ProjectContents, type ProjectSummary, type Projection, type RemovedNode, type RunResponse, type RunStartResponse, type RunStatus, SERVER_NAME, SERVER_VERSION, SUMMARY_TEXT_CHARS, SWAP_SCOPES, type SavedWorkflowListing, type SocialProjectSummary, type SocialSendView, type SpendLedger, StudioApiError, StudioClient, type StudioClientOptions, type StudioConfig, type StudioMcp, type SummaryMeta, type SwapPromptOptions, type SwapScope, TOOLS, TOOL_NAMES, type TaskDescriptor, type TenantSpendSummary, type TenantUsageResponse, type ToolContext, type ToolDef, ToolInputError, type ToolResult, type TurnaroundView, type UploadFile, type UsageByModel, type UsageResponse, WORKFLOW_TOOLS, type WorkflowApplyResponse, type WorkflowCreateResponse, type WorkflowDefinition, type WorkflowDocumentResponse, type WorkflowNode, type WorkflowValidateResponse, affectedNodes, buildCharacterSheetParams, buildCharacterSwapDefinition, categoryForNode, characterSheetDefinition, composeSwapPrompt, createHttpHandler, createStudioMcpServer, extensionForMime, filenameFromUrl, invokeTool, main, mimeForFilename, parseArgs, parseDocument, parseOps, pollUntil, projectionOf, redactSecret, registerTools, resolveConfig, seedFacePrompt, studioWorkflowApply, studioWorkflowCreate, studioWorkflowDescribe, studioWorkflowGet, studioWorkflowScreenshot, studioWorkflowValidate, summarizeDocument, summarizeNode, touchedNodeIds, turnaroundViewPrompt, waitForJob, waitForRun };
|