mirror of
https://github.com/storytold/placeholder-artcraft.git
synced 2026-10-17 00:13:00 +00:00
0daf83dba9
Need to remove secrets before entire repo can be made public.
42 lines
1.4 KiB
TypeScript
42 lines
1.4 KiB
TypeScript
import { ApiManager, ApiResponse } from './ApiManager.js';
|
|
import { Prompts } from './models/Prompts.js';
|
|
export declare class PromptsApi extends ApiManager {
|
|
enqueueImageGeneration({ disableSystemPrompt, prompt, snapshotMediaToken, additionalImages, }: {
|
|
disableSystemPrompt: boolean;
|
|
prompt: string;
|
|
snapshotMediaToken: string;
|
|
additionalImages?: string[];
|
|
}): Promise<ApiResponse<string>>;
|
|
pollJobSession(jobToken: string, thumbnailWidth?: number): Promise<ApiResponse<{
|
|
job_token: string;
|
|
request: {
|
|
maybe_model_title: string;
|
|
};
|
|
status: {
|
|
status: string;
|
|
progress_percentage: number;
|
|
};
|
|
result: {
|
|
image_url: string;
|
|
thumbnail_url: string;
|
|
public_bucket_path: string;
|
|
generated_images?: string[];
|
|
error?: string;
|
|
};
|
|
}>>;
|
|
pollStudioSessionJobs(jobToken: string): Promise<ApiResponse<{
|
|
status: string;
|
|
result: {
|
|
generated_images?: string[];
|
|
error?: string;
|
|
};
|
|
}>>;
|
|
GetPromptsByToken({ token, }: {
|
|
token: string;
|
|
}): Promise<ApiResponse<Prompts>>;
|
|
uploadSceneSnapshot({ screenshot, sceneMediaToken, }: {
|
|
screenshot: File;
|
|
sceneMediaToken?: string;
|
|
}): Promise<ApiResponse<string>>;
|
|
}
|
|
//# sourceMappingURL=PromptsApi.d.ts.map
|