@anuragpal02/zcl-contracts 0.13.0 → 0.14.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/client.d.ts +2 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +5 -1
- package/package.json +1 -1
package/dist/client.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { type CreditBalanceResponse } from './credits.js';
|
|
|
4
4
|
import { type CreateWorkspaceRequest, type Workspace, type WorkspaceMembership } from './workspaces.js';
|
|
5
5
|
import { type Asset, type AssetUpload, type CreateAssetUploadRequest, type CreateAssetUploadResponse, type FinalizeAssetUploadRequest, type ListAssetsResponse } from './assets.js';
|
|
6
6
|
import { type CreateProjectRequest, type LedMapResponse, type Project, type UpdateLedMapRequest, type UpdateProjectRequest } from './projects.js';
|
|
7
|
-
import { type CreateGenerationJobRequest, type CreatePanelSetRequest, type CreatePanelSetResponse, type CreateVideoLoopRequest, type EditGenerationJobRequest, type GenerationJobResponse, type GenerationJobStatus, type ListGenerationJobsResponse } from './generation.js';
|
|
7
|
+
import { type CreateGenerationJobRequest, type CreatePanelSetRequest, type CreatePanelSetResponse, type CreateVideoLoopRequest, type CreateVideoUpscaleRequest, type EditGenerationJobRequest, type GenerationJobResponse, type GenerationJobStatus, type ListGenerationJobsResponse } from './generation.js';
|
|
8
8
|
import { type DescribeImageRequest, type DescribeImageResponse } from './assistant.js';
|
|
9
9
|
type FetchLike = (request: Request) => Promise<Response>;
|
|
10
10
|
export type ZclApiClientOptions = {
|
|
@@ -81,6 +81,7 @@ export declare function createZclApiClient(options: ZclApiClientOptions): {
|
|
|
81
81
|
edit(workspaceId: string, projectId: string, input: EditGenerationJobRequest): Promise<GenerationJobResponse>;
|
|
82
82
|
createPanelSet(workspaceId: string, projectId: string, input: CreatePanelSetRequest): Promise<CreatePanelSetResponse>;
|
|
83
83
|
createVideoLoop(workspaceId: string, projectId: string, input: CreateVideoLoopRequest): Promise<GenerationJobResponse>;
|
|
84
|
+
createVideoUpscale(workspaceId: string, projectId: string, input: CreateVideoUpscaleRequest): Promise<GenerationJobResponse>;
|
|
84
85
|
get(workspaceId: string, projectId: string, jobId: string): Promise<GenerationJobResponse>;
|
|
85
86
|
list(workspaceId: string, projectId: string, options?: {
|
|
86
87
|
status?: GenerationJobStatus;
|
package/dist/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AACA,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,EAIL,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":"AACA,OAAO,EASL,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,EAChC,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,qBAAqB,EAC1B,KAAK,2BAA2B,EA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
@@ -5,7 +5,7 @@ import { creditBalanceResponseSchema } from './credits.js';
|
|
|
5
5
|
import { createWorkspaceRequestSchema, workspaceMembershipSchema, 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, editGenerationJobRequestSchema, generationJobResponseSchema, listGenerationJobsResponseSchema } from './generation.js';
|
|
8
|
+
import { createGenerationJobRequestSchema, createPanelSetRequestSchema, createPanelSetResponseSchema, createVideoLoopRequestSchema, createVideoUpscaleRequestSchema, editGenerationJobRequestSchema, generationJobResponseSchema, listGenerationJobsResponseSchema } from './generation.js';
|
|
9
9
|
import { describeImageRequestSchema, describeImageResponseSchema } from './assistant.js';
|
|
10
10
|
const workspaceListResponseSchema = listResponseSchema(workspaceSchema.extend({
|
|
11
11
|
membership: workspaceMembershipSchema
|
|
@@ -215,6 +215,10 @@ export function createZclApiClient(options) {
|
|
|
215
215
|
const body = createVideoLoopRequestSchema.parse(input);
|
|
216
216
|
return request(`/workspaces/${workspaceId}/projects/${projectId}/video-loops`, generationJobResponseSchema, { method: 'POST', body });
|
|
217
217
|
},
|
|
218
|
+
createVideoUpscale(workspaceId, projectId, input) {
|
|
219
|
+
const body = createVideoUpscaleRequestSchema.parse(input);
|
|
220
|
+
return request(`/workspaces/${workspaceId}/projects/${projectId}/video-upscales`, generationJobResponseSchema, { method: 'POST', body });
|
|
221
|
+
},
|
|
218
222
|
get(workspaceId, projectId, jobId) {
|
|
219
223
|
return request(`/workspaces/${workspaceId}/projects/${projectId}/generation-jobs/${jobId}`, generationJobResponseSchema);
|
|
220
224
|
},
|