1
This commit is contained in:
75
packages/shared/src/contracts/hyper3d.ts
Normal file
75
packages/shared/src/contracts/hyper3d.ts
Normal file
@@ -0,0 +1,75 @@
|
||||
export type Hyper3dGenerationMode = 'text-to-model' | 'image-to-model';
|
||||
|
||||
export type Hyper3dTextToModelRequest = {
|
||||
prompt: string;
|
||||
negativePrompt?: string | null;
|
||||
seed?: number | null;
|
||||
geometryFileFormat?: string | null;
|
||||
material?: string | null;
|
||||
quality?: string | null;
|
||||
meshMode?: string | null;
|
||||
addons?: string[];
|
||||
bboxCondition?: number[] | null;
|
||||
previewRender?: boolean | null;
|
||||
};
|
||||
|
||||
export type Hyper3dImageToModelRequest = {
|
||||
imageDataUrls?: string[];
|
||||
imageUrls?: string[];
|
||||
prompt?: string | null;
|
||||
conditionMode?: string | null;
|
||||
seed?: number | null;
|
||||
geometryFileFormat?: string | null;
|
||||
material?: string | null;
|
||||
quality?: string | null;
|
||||
meshMode?: string | null;
|
||||
addons?: string[];
|
||||
bboxCondition?: number[] | null;
|
||||
previewRender?: boolean | null;
|
||||
};
|
||||
|
||||
export type Hyper3dTaskSubmitResponse = {
|
||||
ok: boolean;
|
||||
provider: string;
|
||||
mode: Hyper3dGenerationMode;
|
||||
taskUuid: string;
|
||||
subscriptionKey: string;
|
||||
jobUuids: string[];
|
||||
message?: string | null;
|
||||
tier: string;
|
||||
};
|
||||
|
||||
export type Hyper3dTaskStatusRequest = {
|
||||
subscriptionKey: string;
|
||||
};
|
||||
|
||||
export type Hyper3dJobStatusPayload = {
|
||||
uuid?: string | null;
|
||||
status: string;
|
||||
progress?: number | null;
|
||||
message?: string | null;
|
||||
};
|
||||
|
||||
export type Hyper3dTaskStatusResponse = {
|
||||
ok: boolean;
|
||||
provider: string;
|
||||
status: string;
|
||||
jobs: Hyper3dJobStatusPayload[];
|
||||
raw: unknown;
|
||||
};
|
||||
|
||||
export type Hyper3dDownloadRequest = {
|
||||
taskUuid: string;
|
||||
};
|
||||
|
||||
export type Hyper3dDownloadFilePayload = {
|
||||
name: string;
|
||||
url: string;
|
||||
};
|
||||
|
||||
export type Hyper3dDownloadResponse = {
|
||||
ok: boolean;
|
||||
provider: string;
|
||||
files: Hyper3dDownloadFilePayload[];
|
||||
raw: unknown;
|
||||
};
|
||||
@@ -1,3 +1,4 @@
|
||||
export type * from './creativeAgent';
|
||||
export type * from './hyper3d';
|
||||
export type * from './puzzleCreativeTemplate';
|
||||
export type * from './visualNovel';
|
||||
|
||||
@@ -5,6 +5,7 @@ export * from './contracts/common';
|
||||
export type * from './contracts/creationAgentDocumentInput';
|
||||
export type * from './contracts/creativeAgent';
|
||||
export type * from './contracts/customWorldAgent';
|
||||
export type * from './contracts/hyper3d';
|
||||
export * from './contracts/match3dAgent';
|
||||
export * from './contracts/match3dRuntime';
|
||||
export * from './contracts/match3dWorks';
|
||||
|
||||
Reference in New Issue
Block a user