@anuragpal02/zcl-contracts 0.18.0 → 0.20.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/dist/admin.d.ts +39 -0
- package/dist/admin.d.ts.map +1 -1
- package/dist/admin.js +13 -0
- package/dist/assets.d.ts +4 -0
- package/dist/assets.d.ts.map +1 -1
- package/dist/assets.js +1 -0
- package/dist/client.d.ts +8 -2
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +20 -2
- package/dist/generation.d.ts +286 -0
- package/dist/generation.d.ts.map +1 -1
- package/dist/generation.js +82 -1
- package/package.json +1 -1
package/dist/admin.d.ts
CHANGED
|
@@ -15,6 +15,35 @@ export declare const adminMeResponseSchema: z.ZodObject<{
|
|
|
15
15
|
isPlatformAdmin: z.ZodLiteral<true>;
|
|
16
16
|
}, z.core.$strip>;
|
|
17
17
|
}, z.core.$strip>;
|
|
18
|
+
export declare const adminWorkspaceSummarySchema: z.ZodObject<{
|
|
19
|
+
id: z.ZodString;
|
|
20
|
+
name: z.ZodString;
|
|
21
|
+
type: z.ZodEnum<{
|
|
22
|
+
personal: "personal";
|
|
23
|
+
organization: "organization";
|
|
24
|
+
}>;
|
|
25
|
+
ownerEmail: z.ZodNullable<z.ZodString>;
|
|
26
|
+
memberCount: z.ZodNumber;
|
|
27
|
+
creditBalance: z.ZodNumber;
|
|
28
|
+
createdAt: z.ZodString;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
export declare const listAdminWorkspacesResponseSchema: z.ZodObject<{
|
|
31
|
+
data: z.ZodObject<{
|
|
32
|
+
workspaces: z.ZodArray<z.ZodObject<{
|
|
33
|
+
id: z.ZodString;
|
|
34
|
+
name: z.ZodString;
|
|
35
|
+
type: z.ZodEnum<{
|
|
36
|
+
personal: "personal";
|
|
37
|
+
organization: "organization";
|
|
38
|
+
}>;
|
|
39
|
+
ownerEmail: z.ZodNullable<z.ZodString>;
|
|
40
|
+
memberCount: z.ZodNumber;
|
|
41
|
+
creditBalance: z.ZodNumber;
|
|
42
|
+
createdAt: z.ZodString;
|
|
43
|
+
}, z.core.$strip>>;
|
|
44
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
}, z.core.$strip>;
|
|
18
47
|
export declare const adminUserSummarySchema: z.ZodObject<{
|
|
19
48
|
id: z.ZodString;
|
|
20
49
|
email: z.ZodString;
|
|
@@ -220,6 +249,8 @@ export declare const adminJobSummarySchema: z.ZodObject<{
|
|
|
220
249
|
"image.panel": "image.panel";
|
|
221
250
|
"video.loop": "video.loop";
|
|
222
251
|
"video.upscale": "video.upscale";
|
|
252
|
+
"video.smart": "video.smart";
|
|
253
|
+
"video.panel": "video.panel";
|
|
223
254
|
}>;
|
|
224
255
|
status: z.ZodEnum<{
|
|
225
256
|
queued: "queued";
|
|
@@ -248,6 +279,8 @@ export declare const listAdminJobsResponseSchema: z.ZodObject<{
|
|
|
248
279
|
"image.panel": "image.panel";
|
|
249
280
|
"video.loop": "video.loop";
|
|
250
281
|
"video.upscale": "video.upscale";
|
|
282
|
+
"video.smart": "video.smart";
|
|
283
|
+
"video.panel": "video.panel";
|
|
251
284
|
}>;
|
|
252
285
|
status: z.ZodEnum<{
|
|
253
286
|
queued: "queued";
|
|
@@ -295,6 +328,8 @@ export declare const adminJobDetailResponseSchema: z.ZodObject<{
|
|
|
295
328
|
"image.panel": "image.panel";
|
|
296
329
|
"video.loop": "video.loop";
|
|
297
330
|
"video.upscale": "video.upscale";
|
|
331
|
+
"video.smart": "video.smart";
|
|
332
|
+
"video.panel": "video.panel";
|
|
298
333
|
}>;
|
|
299
334
|
status: z.ZodEnum<{
|
|
300
335
|
queued: "queued";
|
|
@@ -347,6 +382,8 @@ export declare const adminUsageResponseSchema: z.ZodObject<{
|
|
|
347
382
|
"image.panel": "image.panel";
|
|
348
383
|
"video.loop": "video.loop";
|
|
349
384
|
"video.upscale": "video.upscale";
|
|
385
|
+
"video.smart": "video.smart";
|
|
386
|
+
"video.panel": "video.panel";
|
|
350
387
|
}>;
|
|
351
388
|
count: z.ZodNumber;
|
|
352
389
|
}, z.core.$strip>>;
|
|
@@ -407,4 +444,6 @@ export type AdminJobStep = z.infer<typeof adminJobStepSchema>;
|
|
|
407
444
|
export type AdminJobEvent = z.infer<typeof adminJobEventSchema>;
|
|
408
445
|
export type AdminJobDetailResponse = z.infer<typeof adminJobDetailResponseSchema>;
|
|
409
446
|
export type AdminUsageResponse = z.infer<typeof adminUsageResponseSchema>;
|
|
447
|
+
export type AdminWorkspaceSummary = z.infer<typeof adminWorkspaceSummarySchema>;
|
|
448
|
+
export type ListAdminWorkspacesResponse = z.infer<typeof listAdminWorkspacesResponseSchema>;
|
|
410
449
|
//# sourceMappingURL=admin.d.ts.map
|
package/dist/admin.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin.d.ts","sourceRoot":"","sources":["../src/admin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAOvB,eAAO,MAAM,sBAAsB;;;;;;;EAOjC,CAAA;AAGF,eAAO,MAAM,qBAAqB;;;;;;;iBAOjC,CAAA;AAED,eAAO,MAAM,sBAAsB;;;;;;;;iBAQjC,CAAA;AAEF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;iBAKxC,CAAA;AAGD,eAAO,MAAM,0BAA0B;;;;;;;;;;iBAKrC,CAAA;AAEF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;iBAUzC,CAAA;AAED,eAAO,MAAM,sBAAsB;;;;;;;;;;;;iBAKjC,CAAA;AAEF,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAiB9C,CAAA;AAGD,eAAO,MAAM,+BAA+B;;;iBAG1C,CAAA;AAEF,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;iBAK5C,CAAA;AAED,eAAO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AAoB,CAAC,CAAA;AACjE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AACnE,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAA;AAC/E,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAC7D,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAC/D,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAA;AACjF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA;AACzE,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAA;AAC/E,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAA"}
|
package/dist/admin.js
CHANGED
|
@@ -19,6 +19,19 @@ export const adminMeResponseSchema = apiSuccessSchema(z.object({
|
|
|
19
19
|
name: z.string(),
|
|
20
20
|
isPlatformAdmin: z.literal(true)
|
|
21
21
|
}));
|
|
22
|
+
export const adminWorkspaceSummarySchema = z.object({
|
|
23
|
+
id: idSchema,
|
|
24
|
+
name: z.string(),
|
|
25
|
+
type: workspaceTypeSchema,
|
|
26
|
+
ownerEmail: z.string().email().nullable(),
|
|
27
|
+
memberCount: z.number().int(),
|
|
28
|
+
creditBalance: z.number().int(),
|
|
29
|
+
createdAt: isoDateSchema,
|
|
30
|
+
});
|
|
31
|
+
export const listAdminWorkspacesResponseSchema = apiSuccessSchema(z.object({
|
|
32
|
+
workspaces: z.array(adminWorkspaceSummarySchema),
|
|
33
|
+
nextCursor: z.string().nullable(),
|
|
34
|
+
}));
|
|
22
35
|
export const adminUserSummarySchema = z.object({
|
|
23
36
|
id: idSchema,
|
|
24
37
|
email: z.string().email(),
|
package/dist/assets.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export declare const assetKindSchema: z.ZodEnum<{
|
|
|
6
6
|
final_image: "final_image";
|
|
7
7
|
video_preview: "video_preview";
|
|
8
8
|
video_final: "video_final";
|
|
9
|
+
panel_video: "panel_video";
|
|
9
10
|
export: "export";
|
|
10
11
|
}>;
|
|
11
12
|
export declare const assetStatusSchema: z.ZodEnum<{
|
|
@@ -35,6 +36,7 @@ export declare const assetSchema: z.ZodObject<{
|
|
|
35
36
|
final_image: "final_image";
|
|
36
37
|
video_preview: "video_preview";
|
|
37
38
|
video_final: "video_final";
|
|
39
|
+
panel_video: "panel_video";
|
|
38
40
|
export: "export";
|
|
39
41
|
}>;
|
|
40
42
|
status: z.ZodEnum<{
|
|
@@ -88,6 +90,7 @@ export declare const createAssetUploadResponseSchema: z.ZodObject<{
|
|
|
88
90
|
final_image: "final_image";
|
|
89
91
|
video_preview: "video_preview";
|
|
90
92
|
video_final: "video_final";
|
|
93
|
+
panel_video: "panel_video";
|
|
91
94
|
export: "export";
|
|
92
95
|
}>;
|
|
93
96
|
status: z.ZodEnum<{
|
|
@@ -133,6 +136,7 @@ export declare const listAssetsResponseSchema: z.ZodObject<{
|
|
|
133
136
|
final_image: "final_image";
|
|
134
137
|
video_preview: "video_preview";
|
|
135
138
|
video_final: "video_final";
|
|
139
|
+
panel_video: "panel_video";
|
|
136
140
|
export: "export";
|
|
137
141
|
}>;
|
|
138
142
|
status: z.ZodEnum<{
|
package/dist/assets.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../src/assets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../src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,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA"}
|
package/dist/assets.js
CHANGED
package/dist/client.d.ts
CHANGED
|
@@ -5,9 +5,9 @@ import { type CreditBalanceResponse } from './credits.js';
|
|
|
5
5
|
import { workspaceMemberSchema, type CreateWorkspaceRequest, type InviteMemberRequest, type InviteMemberResponse, type ListMembersResponse, type UpdateMemberRoleRequest, type UpdateWorkspaceRequest, type Workspace, type WorkspaceMembership } from './workspaces.js';
|
|
6
6
|
import { type Asset, type AssetUpload, type CreateAssetUploadRequest, type CreateAssetUploadResponse, type FinalizeAssetUploadRequest, type ListAssetsResponse } from './assets.js';
|
|
7
7
|
import { type CreateProjectRequest, type LedMapResponse, type Project, type UpdateLedMapRequest, type UpdateProjectRequest } from './projects.js';
|
|
8
|
-
import { type CreateGenerationJobRequest, type CreatePanelSetRequest, type CreatePanelSetResponse, type CreateVideoLoopRequest, type CreateVideoUpscaleRequest, type EditGenerationJobRequest, type GenerationJobResponse, type GenerationJobStatus, type GenerationJobType, type ListGenerationJobsResponse } from './generation.js';
|
|
8
|
+
import { type CreateGenerationJobRequest, type CreatePanelSetRequest, type CreatePanelSetResponse, type CreateSmartVideoRequest, type CreateSmartVideoResponse, type CreateVideoLoopRequest, type CreateVideoUpscaleRequest, type EditGenerationJobRequest, type GenerationJobResponse, type GenerationJobStatus, type GenerationJobType, type ListGenerationJobsResponse } from './generation.js';
|
|
9
9
|
import { type DescribeImageRequest, type DescribeImageResponse } from './assistant.js';
|
|
10
|
-
import { type AdminAdjustCreditsRequest, type AdminAdjustCreditsResponse, type AdminJobDetailResponse, type AdminJobStatus, type AdminMeResponse, type AdminUsageResponse, type AdminUserDetailResponse, type AdminWorkspaceDetailResponse, type ListAdminAuditResponse, type ListAdminJobsResponse, type ListAdminUsersResponse, type SetPlatformAdminRequest, type SetPlatformAdminResponse, type SetUserDisabledRequest, type SetUserDisabledResponse, type StepUpStartResponse, type StepUpVerifyResponse } from './admin.js';
|
|
10
|
+
import { type AdminAdjustCreditsRequest, type AdminAdjustCreditsResponse, type AdminJobDetailResponse, type AdminJobStatus, type AdminMeResponse, type AdminUsageResponse, type AdminUserDetailResponse, type AdminWorkspaceDetailResponse, type ListAdminAuditResponse, type ListAdminJobsResponse, type ListAdminUsersResponse, type ListAdminWorkspacesResponse, type SetPlatformAdminRequest, type SetPlatformAdminResponse, type SetUserDisabledRequest, type SetUserDisabledResponse, type StepUpStartResponse, type StepUpVerifyResponse } from './admin.js';
|
|
11
11
|
type FetchLike = (request: Request) => Promise<Response>;
|
|
12
12
|
export type ZclApiClientOptions = {
|
|
13
13
|
baseUrl: string;
|
|
@@ -98,6 +98,7 @@ export declare function createZclApiClient(options: ZclApiClientOptions): {
|
|
|
98
98
|
createPanelSet(workspaceId: string, projectId: string, input: CreatePanelSetRequest): Promise<CreatePanelSetResponse>;
|
|
99
99
|
createVideoLoop(workspaceId: string, projectId: string, input: CreateVideoLoopRequest): Promise<GenerationJobResponse>;
|
|
100
100
|
createVideoUpscale(workspaceId: string, projectId: string, input: CreateVideoUpscaleRequest): Promise<GenerationJobResponse>;
|
|
101
|
+
createSmartVideo(workspaceId: string, projectId: string, input: CreateSmartVideoRequest): Promise<CreateSmartVideoResponse>;
|
|
101
102
|
get(workspaceId: string, projectId: string, jobId: string): Promise<GenerationJobResponse>;
|
|
102
103
|
list(workspaceId: string, projectId: string, options?: {
|
|
103
104
|
status?: GenerationJobStatus;
|
|
@@ -114,6 +115,11 @@ export declare function createZclApiClient(options: ZclApiClientOptions): {
|
|
|
114
115
|
limit?: number;
|
|
115
116
|
cursor?: string;
|
|
116
117
|
}): Promise<ListAdminUsersResponse>;
|
|
118
|
+
listWorkspaces(options?: {
|
|
119
|
+
q?: string;
|
|
120
|
+
limit?: number;
|
|
121
|
+
cursor?: string;
|
|
122
|
+
}): Promise<ListAdminWorkspacesResponse>;
|
|
117
123
|
getUser(userId: string): Promise<AdminUserDetailResponse>;
|
|
118
124
|
getWorkspace(workspaceId: string): Promise<AdminWorkspaceDetailResponse>;
|
|
119
125
|
adjustCredits(workspaceId: string, input: AdminAdjustCreditsRequest): Promise<AdminAdjustCreditsResponse>;
|
package/dist/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EASL,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,EAChC,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,qBAAqB,EAC1B,KAAK,2BAA2B,EAChC,KAAK,eAAe,EACpB,KAAK,aAAa,EACnB,MAAM,WAAW,CAAA;AAClB,OAAO,EAA2C,KAAK,YAAY,EAAE,MAAM,aAAa,CAAA;AACxF,OAAO,EAA+B,KAAK,qBAAqB,EAAE,MAAM,cAAc,CAAA;AACtF,OAAO,EAOL,qBAAqB,EAIrB,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,SAAS,EACd,KAAK,mBAAmB,EACzB,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAML,KAAK,KAAK,EACV,KAAK,WAAW,EAChB,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAC/B,KAAK,kBAAkB,EACxB,MAAM,aAAa,CAAA;AACpB,OAAO,EAML,KAAK,oBAAoB,EACzB,KAAK,cAAc,EACnB,KAAK,OAAO,EACZ,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EAC1B,MAAM,eAAe,CAAA;AACtB,OAAO,
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAA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AM,CAAA;SAAE,GAAQ,OAAO,CAAC,kBAAkB,CAAC;;qBASjE,OAAO,CAAC,mBAAmB,CAAC;yBAGxB,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC;;;EAS1D;AAED,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAA"}
|
package/dist/client.js
CHANGED
|
@@ -5,9 +5,9 @@ import { creditBalanceResponseSchema } from './credits.js';
|
|
|
5
5
|
import { createWorkspaceRequestSchema, inviteMemberRequestSchema, inviteMemberResponseSchema, listMembersResponseSchema, updateMemberRoleRequestSchema, updateWorkspaceRequestSchema, workspaceMemberSchema, workspaceMembershipSchema, workspaceResponseSchema, workspaceSchema } from './workspaces.js';
|
|
6
6
|
import { assetSchema, createAssetUploadRequestSchema, createAssetUploadResponseSchema, finalizeAssetUploadRequestSchema, listAssetsResponseSchema } from './assets.js';
|
|
7
7
|
import { createProjectRequestSchema, ledMapResponseSchema, projectSchema, updateLedMapRequestSchema, updateProjectRequestSchema } from './projects.js';
|
|
8
|
-
import { createGenerationJobRequestSchema, createPanelSetRequestSchema, createPanelSetResponseSchema, createVideoLoopRequestSchema, createVideoUpscaleRequestSchema, editGenerationJobRequestSchema, generationJobResponseSchema, listGenerationJobsResponseSchema } from './generation.js';
|
|
8
|
+
import { createGenerationJobRequestSchema, createPanelSetRequestSchema, createPanelSetResponseSchema, createSmartVideoRequestSchema, createSmartVideoResponseSchema, createVideoLoopRequestSchema, createVideoUpscaleRequestSchema, editGenerationJobRequestSchema, generationJobResponseSchema, listGenerationJobsResponseSchema } from './generation.js';
|
|
9
9
|
import { describeImageRequestSchema, describeImageResponseSchema } from './assistant.js';
|
|
10
|
-
import { adminAdjustCreditsRequestSchema, adminAdjustCreditsResponseSchema, adminJobDetailResponseSchema, adminMeResponseSchema, adminUsageResponseSchema, adminUserDetailResponseSchema, adminWorkspaceDetailResponseSchema, listAdminAuditResponseSchema, listAdminJobsResponseSchema, listAdminUsersResponseSchema, setPlatformAdminRequestSchema, setPlatformAdminResponseSchema, setUserDisabledRequestSchema, setUserDisabledResponseSchema, stepUpStartResponseSchema, stepUpVerifyRequestSchema, stepUpVerifyResponseSchema } from './admin.js';
|
|
10
|
+
import { adminAdjustCreditsRequestSchema, adminAdjustCreditsResponseSchema, adminJobDetailResponseSchema, adminMeResponseSchema, adminUsageResponseSchema, adminUserDetailResponseSchema, adminWorkspaceDetailResponseSchema, listAdminAuditResponseSchema, listAdminJobsResponseSchema, listAdminUsersResponseSchema, listAdminWorkspacesResponseSchema, setPlatformAdminRequestSchema, setPlatformAdminResponseSchema, setUserDisabledRequestSchema, setUserDisabledResponseSchema, stepUpStartResponseSchema, stepUpVerifyRequestSchema, stepUpVerifyResponseSchema } from './admin.js';
|
|
11
11
|
const workspaceListResponseSchema = listResponseSchema(workspaceSchema.extend({
|
|
12
12
|
membership: workspaceMembershipSchema
|
|
13
13
|
}));
|
|
@@ -251,6 +251,10 @@ export function createZclApiClient(options) {
|
|
|
251
251
|
const body = createVideoUpscaleRequestSchema.parse(input);
|
|
252
252
|
return request(`/workspaces/${workspaceId}/projects/${projectId}/video-upscales`, generationJobResponseSchema, { method: 'POST', body });
|
|
253
253
|
},
|
|
254
|
+
createSmartVideo(workspaceId, projectId, input) {
|
|
255
|
+
const body = createSmartVideoRequestSchema.parse(input);
|
|
256
|
+
return request(`/workspaces/${workspaceId}/projects/${projectId}/smart-videos`, createSmartVideoResponseSchema, { method: 'POST', body });
|
|
257
|
+
},
|
|
254
258
|
get(workspaceId, projectId, jobId) {
|
|
255
259
|
return request(`/workspaces/${workspaceId}/projects/${projectId}/generation-jobs/${jobId}`, generationJobResponseSchema);
|
|
256
260
|
},
|
|
@@ -292,6 +296,20 @@ export function createZclApiClient(options) {
|
|
|
292
296
|
const query = params.toString() ? `?${params.toString()}` : '';
|
|
293
297
|
return request(`/admin/users${query}`, listAdminUsersResponseSchema);
|
|
294
298
|
},
|
|
299
|
+
listWorkspaces(options = {}) {
|
|
300
|
+
const params = new URLSearchParams();
|
|
301
|
+
if (options.q !== undefined) {
|
|
302
|
+
params.set('q', options.q);
|
|
303
|
+
}
|
|
304
|
+
if (options.limit !== undefined) {
|
|
305
|
+
params.set('limit', String(options.limit));
|
|
306
|
+
}
|
|
307
|
+
if (options.cursor !== undefined) {
|
|
308
|
+
params.set('cursor', options.cursor);
|
|
309
|
+
}
|
|
310
|
+
const query = params.toString() ? `?${params.toString()}` : '';
|
|
311
|
+
return request(`/admin/workspaces${query}`, listAdminWorkspacesResponseSchema);
|
|
312
|
+
},
|
|
295
313
|
getUser(userId) {
|
|
296
314
|
return request(`/admin/users/${userId}`, adminUserDetailResponseSchema);
|
|
297
315
|
},
|
package/dist/generation.d.ts
CHANGED
|
@@ -15,6 +15,8 @@ export declare const generationJobTypeSchema: z.ZodEnum<{
|
|
|
15
15
|
"image.panel": "image.panel";
|
|
16
16
|
"video.loop": "video.loop";
|
|
17
17
|
"video.upscale": "video.upscale";
|
|
18
|
+
"video.smart": "video.smart";
|
|
19
|
+
"video.panel": "video.panel";
|
|
18
20
|
}>;
|
|
19
21
|
export declare const imageAspectSchema: z.ZodEnum<{
|
|
20
22
|
"16:9": "16:9";
|
|
@@ -64,6 +66,180 @@ export declare const createVideoLoopRequestSchema: z.ZodObject<{
|
|
|
64
66
|
export declare const createVideoUpscaleRequestSchema: z.ZodObject<{
|
|
65
67
|
sourceJobId: z.ZodString;
|
|
66
68
|
}, z.core.$strip>;
|
|
69
|
+
export declare const createSmartVideoRequestSchema: z.ZodObject<{
|
|
70
|
+
sourceMode: z.ZodEnum<{
|
|
71
|
+
master: "master";
|
|
72
|
+
composite: "composite";
|
|
73
|
+
}>;
|
|
74
|
+
masterJobId: z.ZodOptional<z.ZodString>;
|
|
75
|
+
sourceAssetId: z.ZodOptional<z.ZodString>;
|
|
76
|
+
intensity: z.ZodEnum<{
|
|
77
|
+
subtle: "subtle";
|
|
78
|
+
medium: "medium";
|
|
79
|
+
dynamic: "dynamic";
|
|
80
|
+
}>;
|
|
81
|
+
recomposeWall: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
82
|
+
}, z.core.$strip>;
|
|
83
|
+
export declare const videoTierSchema: z.ZodEnum<{
|
|
84
|
+
"1080p": "1080p";
|
|
85
|
+
"4k": "4k";
|
|
86
|
+
}>;
|
|
87
|
+
export declare const videoAspectSchema: z.ZodEnum<{
|
|
88
|
+
"16:9": "16:9";
|
|
89
|
+
"9:16": "9:16";
|
|
90
|
+
}>;
|
|
91
|
+
export declare const panelPlacementSchema: z.ZodObject<{
|
|
92
|
+
panelId: z.ZodString;
|
|
93
|
+
name: z.ZodString;
|
|
94
|
+
x: z.ZodNumber;
|
|
95
|
+
y: z.ZodNumber;
|
|
96
|
+
w: z.ZodNumber;
|
|
97
|
+
h: z.ZodNumber;
|
|
98
|
+
}, z.core.$strip>;
|
|
99
|
+
export declare const videoJobSchema: z.ZodObject<{
|
|
100
|
+
id: z.ZodString;
|
|
101
|
+
tier: z.ZodEnum<{
|
|
102
|
+
"1080p": "1080p";
|
|
103
|
+
"4k": "4k";
|
|
104
|
+
}>;
|
|
105
|
+
side: z.ZodNullable<z.ZodEnum<{
|
|
106
|
+
center: "center";
|
|
107
|
+
top: "top";
|
|
108
|
+
left: "left";
|
|
109
|
+
right: "right";
|
|
110
|
+
}>>;
|
|
111
|
+
frameW: z.ZodNumber;
|
|
112
|
+
frameH: z.ZodNumber;
|
|
113
|
+
aspectRatio: z.ZodEnum<{
|
|
114
|
+
"16:9": "16:9";
|
|
115
|
+
"9:16": "9:16";
|
|
116
|
+
}>;
|
|
117
|
+
panelIds: z.ZodArray<z.ZodString>;
|
|
118
|
+
placements: z.ZodArray<z.ZodObject<{
|
|
119
|
+
panelId: z.ZodString;
|
|
120
|
+
name: z.ZodString;
|
|
121
|
+
x: z.ZodNumber;
|
|
122
|
+
y: z.ZodNumber;
|
|
123
|
+
w: z.ZodNumber;
|
|
124
|
+
h: z.ZodNumber;
|
|
125
|
+
}, z.core.$strip>>;
|
|
126
|
+
needsTopaz: z.ZodBoolean;
|
|
127
|
+
}, z.core.$strip>;
|
|
128
|
+
export declare const panelPlanEntrySchema: z.ZodObject<{
|
|
129
|
+
panelId: z.ZodString;
|
|
130
|
+
name: z.ZodString;
|
|
131
|
+
nativeW: z.ZodNumber;
|
|
132
|
+
nativeH: z.ZodNumber;
|
|
133
|
+
role: z.ZodEnum<{
|
|
134
|
+
center: "center";
|
|
135
|
+
top: "top";
|
|
136
|
+
left: "left";
|
|
137
|
+
right: "right";
|
|
138
|
+
}>;
|
|
139
|
+
tier: z.ZodEnum<{
|
|
140
|
+
"1080p": "1080p";
|
|
141
|
+
"4k": "4k";
|
|
142
|
+
}>;
|
|
143
|
+
needsTopaz: z.ZodBoolean;
|
|
144
|
+
derivedFrom: z.ZodNullable<z.ZodString>;
|
|
145
|
+
}, z.core.$strip>;
|
|
146
|
+
export declare const videoPlanSchema: z.ZodObject<{
|
|
147
|
+
jobs: z.ZodArray<z.ZodObject<{
|
|
148
|
+
id: z.ZodString;
|
|
149
|
+
tier: z.ZodEnum<{
|
|
150
|
+
"1080p": "1080p";
|
|
151
|
+
"4k": "4k";
|
|
152
|
+
}>;
|
|
153
|
+
side: z.ZodNullable<z.ZodEnum<{
|
|
154
|
+
center: "center";
|
|
155
|
+
top: "top";
|
|
156
|
+
left: "left";
|
|
157
|
+
right: "right";
|
|
158
|
+
}>>;
|
|
159
|
+
frameW: z.ZodNumber;
|
|
160
|
+
frameH: z.ZodNumber;
|
|
161
|
+
aspectRatio: z.ZodEnum<{
|
|
162
|
+
"16:9": "16:9";
|
|
163
|
+
"9:16": "9:16";
|
|
164
|
+
}>;
|
|
165
|
+
panelIds: z.ZodArray<z.ZodString>;
|
|
166
|
+
placements: z.ZodArray<z.ZodObject<{
|
|
167
|
+
panelId: z.ZodString;
|
|
168
|
+
name: z.ZodString;
|
|
169
|
+
x: z.ZodNumber;
|
|
170
|
+
y: z.ZodNumber;
|
|
171
|
+
w: z.ZodNumber;
|
|
172
|
+
h: z.ZodNumber;
|
|
173
|
+
}, z.core.$strip>>;
|
|
174
|
+
needsTopaz: z.ZodBoolean;
|
|
175
|
+
}, z.core.$strip>>;
|
|
176
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
177
|
+
panelId: z.ZodString;
|
|
178
|
+
name: z.ZodString;
|
|
179
|
+
nativeW: z.ZodNumber;
|
|
180
|
+
nativeH: z.ZodNumber;
|
|
181
|
+
role: z.ZodEnum<{
|
|
182
|
+
center: "center";
|
|
183
|
+
top: "top";
|
|
184
|
+
left: "left";
|
|
185
|
+
right: "right";
|
|
186
|
+
}>;
|
|
187
|
+
tier: z.ZodEnum<{
|
|
188
|
+
"1080p": "1080p";
|
|
189
|
+
"4k": "4k";
|
|
190
|
+
}>;
|
|
191
|
+
needsTopaz: z.ZodBoolean;
|
|
192
|
+
derivedFrom: z.ZodNullable<z.ZodString>;
|
|
193
|
+
}, z.core.$strip>>;
|
|
194
|
+
mirrorMap: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
195
|
+
jobCount: z.ZodOptional<z.ZodNumber>;
|
|
196
|
+
creditEstimate: z.ZodOptional<z.ZodNumber>;
|
|
197
|
+
naiveCreditEstimate: z.ZodOptional<z.ZodNumber>;
|
|
198
|
+
warnings: z.ZodArray<z.ZodString>;
|
|
199
|
+
}, z.core.$strip>;
|
|
200
|
+
export declare const panelVideoDescriptorSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
201
|
+
jobId: z.ZodString;
|
|
202
|
+
panelId: z.ZodString;
|
|
203
|
+
x: z.ZodNumber;
|
|
204
|
+
y: z.ZodNumber;
|
|
205
|
+
w: z.ZodNumber;
|
|
206
|
+
h: z.ZodNumber;
|
|
207
|
+
tier: z.ZodEnum<{
|
|
208
|
+
"1080p": "1080p";
|
|
209
|
+
"4k": "4k";
|
|
210
|
+
}>;
|
|
211
|
+
nativeW: z.ZodNumber;
|
|
212
|
+
nativeH: z.ZodNumber;
|
|
213
|
+
mode: z.ZodLiteral<"generated">;
|
|
214
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
215
|
+
assetId: z.ZodString;
|
|
216
|
+
panelId: z.ZodString;
|
|
217
|
+
x: z.ZodNumber;
|
|
218
|
+
y: z.ZodNumber;
|
|
219
|
+
w: z.ZodNumber;
|
|
220
|
+
h: z.ZodNumber;
|
|
221
|
+
tier: z.ZodEnum<{
|
|
222
|
+
"1080p": "1080p";
|
|
223
|
+
"4k": "4k";
|
|
224
|
+
}>;
|
|
225
|
+
nativeW: z.ZodNumber;
|
|
226
|
+
nativeH: z.ZodNumber;
|
|
227
|
+
mode: z.ZodLiteral<"reuse">;
|
|
228
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
229
|
+
sourcePanelId: z.ZodString;
|
|
230
|
+
panelId: z.ZodString;
|
|
231
|
+
x: z.ZodNumber;
|
|
232
|
+
y: z.ZodNumber;
|
|
233
|
+
w: z.ZodNumber;
|
|
234
|
+
h: z.ZodNumber;
|
|
235
|
+
tier: z.ZodEnum<{
|
|
236
|
+
"1080p": "1080p";
|
|
237
|
+
"4k": "4k";
|
|
238
|
+
}>;
|
|
239
|
+
nativeW: z.ZodNumber;
|
|
240
|
+
nativeH: z.ZodNumber;
|
|
241
|
+
mode: z.ZodLiteral<"mirror">;
|
|
242
|
+
}, z.core.$strip>], "mode">;
|
|
67
243
|
export declare const generationJobSchema: z.ZodObject<{
|
|
68
244
|
id: z.ZodString;
|
|
69
245
|
workspaceId: z.ZodString;
|
|
@@ -77,6 +253,8 @@ export declare const generationJobSchema: z.ZodObject<{
|
|
|
77
253
|
"image.panel": "image.panel";
|
|
78
254
|
"video.loop": "video.loop";
|
|
79
255
|
"video.upscale": "video.upscale";
|
|
256
|
+
"video.smart": "video.smart";
|
|
257
|
+
"video.panel": "video.panel";
|
|
80
258
|
}>;
|
|
81
259
|
status: z.ZodEnum<{
|
|
82
260
|
queued: "queued";
|
|
@@ -123,6 +301,8 @@ export declare const generationJobResponseSchema: z.ZodObject<{
|
|
|
123
301
|
"image.panel": "image.panel";
|
|
124
302
|
"video.loop": "video.loop";
|
|
125
303
|
"video.upscale": "video.upscale";
|
|
304
|
+
"video.smart": "video.smart";
|
|
305
|
+
"video.panel": "video.panel";
|
|
126
306
|
}>;
|
|
127
307
|
status: z.ZodEnum<{
|
|
128
308
|
queued: "queued";
|
|
@@ -144,6 +324,99 @@ export declare const generationJobResponseSchema: z.ZodObject<{
|
|
|
144
324
|
variantGroupId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
145
325
|
}, z.core.$strip>;
|
|
146
326
|
}, z.core.$strip>;
|
|
327
|
+
export declare const createSmartVideoResponseSchema: z.ZodObject<{
|
|
328
|
+
data: z.ZodObject<{
|
|
329
|
+
job: z.ZodObject<{
|
|
330
|
+
id: z.ZodString;
|
|
331
|
+
workspaceId: z.ZodString;
|
|
332
|
+
projectId: z.ZodString;
|
|
333
|
+
type: z.ZodEnum<{
|
|
334
|
+
"image.generate": "image.generate";
|
|
335
|
+
"prompt.enhance": "prompt.enhance";
|
|
336
|
+
"image.edit": "image.edit";
|
|
337
|
+
"image.mask": "image.mask";
|
|
338
|
+
"image.export": "image.export";
|
|
339
|
+
"image.panel": "image.panel";
|
|
340
|
+
"video.loop": "video.loop";
|
|
341
|
+
"video.upscale": "video.upscale";
|
|
342
|
+
"video.smart": "video.smart";
|
|
343
|
+
"video.panel": "video.panel";
|
|
344
|
+
}>;
|
|
345
|
+
status: z.ZodEnum<{
|
|
346
|
+
queued: "queued";
|
|
347
|
+
running: "running";
|
|
348
|
+
succeeded: "succeeded";
|
|
349
|
+
failed: "failed";
|
|
350
|
+
canceled: "canceled";
|
|
351
|
+
}>;
|
|
352
|
+
provider: z.ZodString;
|
|
353
|
+
params: z.ZodUnknown;
|
|
354
|
+
reservedCredits: z.ZodNumber;
|
|
355
|
+
createdByUserId: z.ZodString;
|
|
356
|
+
createdAt: z.ZodString;
|
|
357
|
+
updatedAt: z.ZodString;
|
|
358
|
+
resultAssetIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
359
|
+
ledMapVersion: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
360
|
+
sourceAssetIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
361
|
+
parentJobId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
362
|
+
variantGroupId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
363
|
+
}, z.core.$strip>;
|
|
364
|
+
videoPlan: z.ZodObject<{
|
|
365
|
+
jobs: z.ZodArray<z.ZodObject<{
|
|
366
|
+
id: z.ZodString;
|
|
367
|
+
tier: z.ZodEnum<{
|
|
368
|
+
"1080p": "1080p";
|
|
369
|
+
"4k": "4k";
|
|
370
|
+
}>;
|
|
371
|
+
side: z.ZodNullable<z.ZodEnum<{
|
|
372
|
+
center: "center";
|
|
373
|
+
top: "top";
|
|
374
|
+
left: "left";
|
|
375
|
+
right: "right";
|
|
376
|
+
}>>;
|
|
377
|
+
frameW: z.ZodNumber;
|
|
378
|
+
frameH: z.ZodNumber;
|
|
379
|
+
aspectRatio: z.ZodEnum<{
|
|
380
|
+
"16:9": "16:9";
|
|
381
|
+
"9:16": "9:16";
|
|
382
|
+
}>;
|
|
383
|
+
panelIds: z.ZodArray<z.ZodString>;
|
|
384
|
+
placements: z.ZodArray<z.ZodObject<{
|
|
385
|
+
panelId: z.ZodString;
|
|
386
|
+
name: z.ZodString;
|
|
387
|
+
x: z.ZodNumber;
|
|
388
|
+
y: z.ZodNumber;
|
|
389
|
+
w: z.ZodNumber;
|
|
390
|
+
h: z.ZodNumber;
|
|
391
|
+
}, z.core.$strip>>;
|
|
392
|
+
needsTopaz: z.ZodBoolean;
|
|
393
|
+
}, z.core.$strip>>;
|
|
394
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
395
|
+
panelId: z.ZodString;
|
|
396
|
+
name: z.ZodString;
|
|
397
|
+
nativeW: z.ZodNumber;
|
|
398
|
+
nativeH: z.ZodNumber;
|
|
399
|
+
role: z.ZodEnum<{
|
|
400
|
+
center: "center";
|
|
401
|
+
top: "top";
|
|
402
|
+
left: "left";
|
|
403
|
+
right: "right";
|
|
404
|
+
}>;
|
|
405
|
+
tier: z.ZodEnum<{
|
|
406
|
+
"1080p": "1080p";
|
|
407
|
+
"4k": "4k";
|
|
408
|
+
}>;
|
|
409
|
+
needsTopaz: z.ZodBoolean;
|
|
410
|
+
derivedFrom: z.ZodNullable<z.ZodString>;
|
|
411
|
+
}, z.core.$strip>>;
|
|
412
|
+
mirrorMap: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
413
|
+
jobCount: z.ZodOptional<z.ZodNumber>;
|
|
414
|
+
creditEstimate: z.ZodOptional<z.ZodNumber>;
|
|
415
|
+
naiveCreditEstimate: z.ZodOptional<z.ZodNumber>;
|
|
416
|
+
warnings: z.ZodArray<z.ZodString>;
|
|
417
|
+
}, z.core.$strip>;
|
|
418
|
+
}, z.core.$strip>;
|
|
419
|
+
}, z.core.$strip>;
|
|
147
420
|
export declare const panelDescriptorSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
148
421
|
jobId: z.ZodString;
|
|
149
422
|
panelId: z.ZodString;
|
|
@@ -183,6 +456,8 @@ export declare const createPanelSetResponseSchema: z.ZodObject<{
|
|
|
183
456
|
"image.panel": "image.panel";
|
|
184
457
|
"video.loop": "video.loop";
|
|
185
458
|
"video.upscale": "video.upscale";
|
|
459
|
+
"video.smart": "video.smart";
|
|
460
|
+
"video.panel": "video.panel";
|
|
186
461
|
}>;
|
|
187
462
|
status: z.ZodEnum<{
|
|
188
463
|
queued: "queued";
|
|
@@ -253,6 +528,8 @@ export declare const listGenerationJobsResponseSchema: z.ZodObject<{
|
|
|
253
528
|
"image.panel": "image.panel";
|
|
254
529
|
"video.loop": "video.loop";
|
|
255
530
|
"video.upscale": "video.upscale";
|
|
531
|
+
"video.smart": "video.smart";
|
|
532
|
+
"video.panel": "video.panel";
|
|
256
533
|
}>;
|
|
257
534
|
status: z.ZodEnum<{
|
|
258
535
|
queued: "queued";
|
|
@@ -283,6 +560,15 @@ export type CreatePanelSetRequest = z.input<typeof createPanelSetRequestSchema>;
|
|
|
283
560
|
export type CropFractions = z.infer<typeof cropFractionsSchema>;
|
|
284
561
|
export type CreateVideoLoopRequest = z.input<typeof createVideoLoopRequestSchema>;
|
|
285
562
|
export type CreateVideoUpscaleRequest = z.input<typeof createVideoUpscaleRequestSchema>;
|
|
563
|
+
export type CreateSmartVideoRequest = z.input<typeof createSmartVideoRequestSchema>;
|
|
564
|
+
export type VideoTier = z.infer<typeof videoTierSchema>;
|
|
565
|
+
export type VideoAspect = z.infer<typeof videoAspectSchema>;
|
|
566
|
+
export type PanelPlacement = z.infer<typeof panelPlacementSchema>;
|
|
567
|
+
export type VideoJob = z.infer<typeof videoJobSchema>;
|
|
568
|
+
export type PanelPlanEntry = z.infer<typeof panelPlanEntrySchema>;
|
|
569
|
+
export type VideoPlan = z.infer<typeof videoPlanSchema>;
|
|
570
|
+
export type PanelVideoDescriptor = z.infer<typeof panelVideoDescriptorSchema>;
|
|
571
|
+
export type CreateSmartVideoResponse = z.infer<typeof createSmartVideoResponseSchema>;
|
|
286
572
|
export type GenerationJob = z.infer<typeof generationJobSchema>;
|
|
287
573
|
export type CreateGenerationJobRequest = z.input<typeof createGenerationJobRequestSchema>;
|
|
288
574
|
export type ListGenerationJobsQuery = z.input<typeof listGenerationJobsQuerySchema>;
|
package/dist/generation.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generation.d.ts","sourceRoot":"","sources":["../src/generation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,eAAO,MAAM,yBAAyB;;;;;;EAAmE,CAAA;AAEzG,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"generation.d.ts","sourceRoot":"","sources":["../src/generation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,M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}
|
package/dist/generation.js
CHANGED
|
@@ -10,7 +10,9 @@ export const generationJobTypeSchema = z.enum([
|
|
|
10
10
|
'image.export',
|
|
11
11
|
'image.panel',
|
|
12
12
|
'video.loop',
|
|
13
|
-
'video.upscale'
|
|
13
|
+
'video.upscale',
|
|
14
|
+
'video.smart',
|
|
15
|
+
'video.panel'
|
|
14
16
|
]);
|
|
15
17
|
// Explicit output aspect for the concept-first "master" generation. The two ratios the
|
|
16
18
|
// image model supports for a free concept; the LED MAP step later fits the chosen master
|
|
@@ -55,6 +57,80 @@ export const createVideoLoopRequestSchema = z.object({
|
|
|
55
57
|
export const createVideoUpscaleRequestSchema = z.object({
|
|
56
58
|
sourceJobId: idSchema
|
|
57
59
|
});
|
|
60
|
+
// Smart video: orchestrates a full per-panel Veo generation pass for the wall.
|
|
61
|
+
// sourceMode='master' uses a finished image.generate job (masterJobId required);
|
|
62
|
+
// sourceMode='composite' uses a pre-composited reference asset (sourceAssetId required).
|
|
63
|
+
export const createSmartVideoRequestSchema = z.object({
|
|
64
|
+
sourceMode: z.enum(['master', 'composite']),
|
|
65
|
+
masterJobId: idSchema.optional(),
|
|
66
|
+
sourceAssetId: idSchema.optional(),
|
|
67
|
+
intensity: z.enum(['subtle', 'medium', 'dynamic']),
|
|
68
|
+
recomposeWall: z.boolean().optional().default(true)
|
|
69
|
+
});
|
|
70
|
+
// ─── Video plan schemas ────────────────────────────────────────────────────────
|
|
71
|
+
// Mirrors the planner types from videoPlanner.ts; surfaced read-only on the job.
|
|
72
|
+
export const videoTierSchema = z.enum(['1080p', '4k']);
|
|
73
|
+
export const videoAspectSchema = z.enum(['16:9', '9:16']);
|
|
74
|
+
export const panelPlacementSchema = z.object({
|
|
75
|
+
panelId: ledPanelIdSchema,
|
|
76
|
+
name: z.string(),
|
|
77
|
+
x: z.number().int(),
|
|
78
|
+
y: z.number().int(),
|
|
79
|
+
w: z.number().int(),
|
|
80
|
+
h: z.number().int()
|
|
81
|
+
});
|
|
82
|
+
export const videoJobSchema = z.object({
|
|
83
|
+
id: z.string(),
|
|
84
|
+
tier: videoTierSchema,
|
|
85
|
+
// null for jobs whose side is not determined (e.g. unexpected layout edge case)
|
|
86
|
+
side: z.enum(['center', 'top', 'left', 'right']).nullable(),
|
|
87
|
+
frameW: z.number().int(),
|
|
88
|
+
frameH: z.number().int(),
|
|
89
|
+
aspectRatio: videoAspectSchema,
|
|
90
|
+
panelIds: z.array(ledPanelIdSchema),
|
|
91
|
+
placements: z.array(panelPlacementSchema),
|
|
92
|
+
needsTopaz: z.boolean()
|
|
93
|
+
});
|
|
94
|
+
export const panelPlanEntrySchema = z.object({
|
|
95
|
+
panelId: ledPanelIdSchema,
|
|
96
|
+
name: z.string(),
|
|
97
|
+
nativeW: z.number().int(),
|
|
98
|
+
nativeH: z.number().int(),
|
|
99
|
+
role: z.enum(['center', 'top', 'left', 'right']),
|
|
100
|
+
tier: videoTierSchema,
|
|
101
|
+
needsTopaz: z.boolean(),
|
|
102
|
+
// Set when this panel is mirrored from another (no Veo job of its own).
|
|
103
|
+
derivedFrom: ledPanelIdSchema.nullable()
|
|
104
|
+
});
|
|
105
|
+
export const videoPlanSchema = z.object({
|
|
106
|
+
jobs: z.array(videoJobSchema),
|
|
107
|
+
entries: z.array(panelPlanEntrySchema),
|
|
108
|
+
// derived left panel id → primary (right) panel id it is mirrored from.
|
|
109
|
+
mirrorMap: z.record(ledPanelIdSchema, ledPanelIdSchema),
|
|
110
|
+
// Pre-computed job count (equals jobs.length; included for quick client reads).
|
|
111
|
+
jobCount: z.number().int().optional(),
|
|
112
|
+
// Credit estimates — real values populated after planner runs.
|
|
113
|
+
creditEstimate: z.number().optional(),
|
|
114
|
+
naiveCreditEstimate: z.number().optional(),
|
|
115
|
+
warnings: z.array(z.string())
|
|
116
|
+
});
|
|
117
|
+
// ─── Panel video descriptor ────────────────────────────────────────────────────
|
|
118
|
+
// Mirrors panelDescriptorSchema but for video: carries tier + native dims in base.
|
|
119
|
+
const panelVideoDescriptorBase = {
|
|
120
|
+
panelId: ledPanelIdSchema,
|
|
121
|
+
x: z.number().int().min(-1000000).max(1000000),
|
|
122
|
+
y: z.number().int().min(-1000000).max(1000000),
|
|
123
|
+
w: z.number().int().positive().max(100000),
|
|
124
|
+
h: z.number().int().positive().max(100000),
|
|
125
|
+
tier: videoTierSchema,
|
|
126
|
+
nativeW: z.number().int().positive(),
|
|
127
|
+
nativeH: z.number().int().positive()
|
|
128
|
+
};
|
|
129
|
+
export const panelVideoDescriptorSchema = z.discriminatedUnion('mode', [
|
|
130
|
+
z.object({ mode: z.literal('generated'), ...panelVideoDescriptorBase, jobId: idSchema }),
|
|
131
|
+
z.object({ mode: z.literal('reuse'), ...panelVideoDescriptorBase, assetId: idSchema }),
|
|
132
|
+
z.object({ mode: z.literal('mirror'), ...panelVideoDescriptorBase, sourcePanelId: ledPanelIdSchema })
|
|
133
|
+
]);
|
|
58
134
|
export const generationJobSchema = z.object({
|
|
59
135
|
id: idSchema,
|
|
60
136
|
workspaceId: idSchema,
|
|
@@ -78,6 +154,11 @@ export const generationJobSchema = z.object({
|
|
|
78
154
|
});
|
|
79
155
|
export const createGenerationJobRequestSchema = imageGenerateParamsSchema;
|
|
80
156
|
export const generationJobResponseSchema = apiSuccessSchema(generationJobSchema);
|
|
157
|
+
// Smart-video response: the parent job + the fully-resolved video plan.
|
|
158
|
+
export const createSmartVideoResponseSchema = apiSuccessSchema(z.object({
|
|
159
|
+
job: generationJobSchema,
|
|
160
|
+
videoPlan: videoPlanSchema
|
|
161
|
+
}));
|
|
81
162
|
// Geometry every panel carries regardless of mode (a snapshot of its pinned layout, so the
|
|
82
163
|
// web can place reuse/mirror panels that have no job to read params from).
|
|
83
164
|
const panelDescriptorBase = {
|