quantum-ai-sdk 0.3.1 → 0.3.3
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 +9 -1
- package/dist/client.js +20 -0
- package/dist/types.d.ts +51 -0
- package/package.json +1 -1
package/dist/client.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BillingRequest, BillingResponse } from "./compute-billing.js";
|
|
2
2
|
import { RealtimeSender, RealtimeReceiver } from "./realtime.js";
|
|
3
3
|
import type { RealtimeConfig, RealtimeSession } from "./realtime.js";
|
|
4
|
-
import type { AccountPricingResponse, AgentEvent, AgentRequest, AlignRequest, AlignResponse, AsyncJobResponse, AuthAppleRequest, AuthResponse, AvatarsResponse, BalanceResponse, BatchJobInfo, BatchJobsResponse, BatchJsonlResponse, BatchSubmitRequest, BatchSubmitResponse, ChatRequest, ChatResponse, ChunkDocumentRequest, ChunkDocumentResponse, ClientOptions, CloneVoiceRequest, CloneVoiceResponse, CreateKeyRequest, CreateKeyResponse, CreditBalanceResponse, CreditPacksResponse, CreditPurchaseRequest, CreditPurchaseResponse, CreditTiersResponse, DeleteResponse, DevProgramApplyRequest, DevProgramApplyResponse, DialogueRequest, DialogueResponse, DigitalTwinRequest, DocumentRequest, DocumentResponse, DubRequest, DubResponse, EmbedRequest, EmbedResponse, HeyGenTemplatesResponse, HeyGenVoicesResponse, ImageEditRequest, ImageEditResponse, ImageRequest, ImageResponse, InstanceResponse, InstancesResponse, IsolateVoiceRequest, IsolateVoiceResponse, JobCreateRequest, JobCreateResponse, JobListResponse, JobStreamEvent, WebSearchRequest, WebSearchResponse, LLMContextRequest, LLMContextResponse, SearchAnswerRequest, SearchAnswerResponse, JobStatusResponse, ListKeysResponse, MissionEvent, MissionRequest, ModelInfo, MusicRequest, MusicResponse, PhotoAvatarRequest, PricingInfo, ProcessDocumentRequest, ProcessDocumentResponse, ProvisionRequest, ProvisionResponse, RAGCorpus, RAGSearchRequest, RAGSearchResponse, RemixVoiceRequest, RemixVoiceResponse, ResponseMeta, SessionChatRequest, SessionChatResponse, SoundEffectRequest, SoundEffectResponse, SpeechToSpeechRequest, SpeechToSpeechResponse, SSHKeyRequest, StarfishTTSRequest, StarfishTTSResponse, StatusResponse, STTRequest, STTResponse, StreamEvent, SurrealRAGProvidersResponse, SurrealRAGSearchRequest, SurrealRAGSearchResponse, TemplatesResponse, TTSRequest, TTSResponse, UsageQuery, UsageResponse, UsageSummaryResponse, VideoRequest, VideoResponse, VideoStudioRequest, VideoTranslateRequest, VoiceDesignRequest, VoiceDesignResponse, VoicesResponse } from "./types.js";
|
|
4
|
+
import type { AccountPricingResponse, AgentEvent, AgentRequest, AlignRequest, AlignResponse, AsyncJobResponse, AuthAppleRequest, AuthResponse, AvatarsResponse, BalanceResponse, BatchJobInfo, BatchJobsResponse, BatchJsonlResponse, BatchSubmitRequest, BatchSubmitResponse, ChatRequest, ChatResponse, ChunkDocumentRequest, ChunkDocumentResponse, ClientOptions, CloneVoiceRequest, CloneVoiceResponse, CreateKeyRequest, CreateKeyResponse, CreditBalanceResponse, CreditPacksResponse, CreditPurchaseRequest, CreditPurchaseResponse, CreditTiersResponse, DeleteResponse, DevProgramApplyRequest, DevProgramApplyResponse, DialogueRequest, DialogueResponse, DigitalTwinRequest, DocumentRequest, DocumentResponse, DubRequest, DubResponse, EmbedRequest, EmbedResponse, HeyGenTemplatesResponse, HeyGenVoicesResponse, ImageEditRequest, ImageEditResponse, ImageRequest, ImageResponse, InstanceResponse, InstancesResponse, IsolateVoiceRequest, IsolateVoiceResponse, JobCreateRequest, JobCreateResponse, JobListResponse, JobStreamEvent, WebSearchRequest, WebSearchResponse, LLMContextRequest, LLMContextResponse, SearchAnswerRequest, SearchAnswerResponse, RemeshRequest, RetextureRequest, RigRequest, AnimateRequest, JobStatusResponse, ListKeysResponse, MissionEvent, MissionRequest, ModelInfo, MusicRequest, MusicResponse, PhotoAvatarRequest, PricingInfo, ProcessDocumentRequest, ProcessDocumentResponse, ProvisionRequest, ProvisionResponse, RAGCorpus, RAGSearchRequest, RAGSearchResponse, RemixVoiceRequest, RemixVoiceResponse, ResponseMeta, SessionChatRequest, SessionChatResponse, SoundEffectRequest, SoundEffectResponse, SpeechToSpeechRequest, SpeechToSpeechResponse, SSHKeyRequest, StarfishTTSRequest, StarfishTTSResponse, StatusResponse, STTRequest, STTResponse, StreamEvent, SurrealRAGProvidersResponse, SurrealRAGSearchRequest, SurrealRAGSearchResponse, TemplatesResponse, TTSRequest, TTSResponse, UsageQuery, UsageResponse, UsageSummaryResponse, VideoRequest, VideoResponse, VideoStudioRequest, VideoTranslateRequest, VoiceDesignRequest, VoiceDesignResponse, VoicesResponse } from "./types.js";
|
|
5
5
|
/**
|
|
6
6
|
* QuantumClient is the Quantum AI API client.
|
|
7
7
|
*
|
|
@@ -197,6 +197,14 @@ export declare class QuantumClient {
|
|
|
197
197
|
streamJob(jobId: string, signal?: AbortSignal): AsyncIterableIterator<JobStreamEvent>;
|
|
198
198
|
/** Generate a 3D model via the async jobs system. */
|
|
199
199
|
generate3D(model: string, prompt?: string, imageUrl?: string): Promise<JobCreateResponse>;
|
|
200
|
+
/** Remesh a 3D model (re-topology + format conversion). Submits job and polls to completion. */
|
|
201
|
+
remesh(req: RemeshRequest): Promise<JobStatusResponse>;
|
|
202
|
+
/** Retexture a 3D model with AI-generated textures from text or image. */
|
|
203
|
+
retexture(req: RetextureRequest): Promise<JobStatusResponse>;
|
|
204
|
+
/** Rig a humanoid 3D model. Returns rigged character + basic walk/run animations. */
|
|
205
|
+
rig(req: RigRequest): Promise<JobStatusResponse>;
|
|
206
|
+
/** Apply an animation to a rigged character. */
|
|
207
|
+
animate(req: AnimateRequest): Promise<JobStatusResponse>;
|
|
200
208
|
/** Create a scoped API key. */
|
|
201
209
|
createKey(req: CreateKeyRequest): Promise<CreateKeyResponse>;
|
|
202
210
|
/** List all API keys for the authenticated user. */
|
package/dist/client.js
CHANGED
|
@@ -338,6 +338,26 @@ export class QuantumClient {
|
|
|
338
338
|
async generate3D(model, prompt, imageUrl) {
|
|
339
339
|
return generate3D(this, model, prompt, imageUrl);
|
|
340
340
|
}
|
|
341
|
+
/** Remesh a 3D model (re-topology + format conversion). Submits job and polls to completion. */
|
|
342
|
+
async remesh(req) {
|
|
343
|
+
const job = await this.createJob({ type: "3d/remesh", params: req });
|
|
344
|
+
return this.pollJob(job.job_id, 5000, 120);
|
|
345
|
+
}
|
|
346
|
+
/** Retexture a 3D model with AI-generated textures from text or image. */
|
|
347
|
+
async retexture(req) {
|
|
348
|
+
const job = await this.createJob({ type: "3d/retexture", params: req });
|
|
349
|
+
return this.pollJob(job.job_id, 5000, 120);
|
|
350
|
+
}
|
|
351
|
+
/** Rig a humanoid 3D model. Returns rigged character + basic walk/run animations. */
|
|
352
|
+
async rig(req) {
|
|
353
|
+
const job = await this.createJob({ type: "3d/rig", params: req });
|
|
354
|
+
return this.pollJob(job.job_id, 5000, 120);
|
|
355
|
+
}
|
|
356
|
+
/** Apply an animation to a rigged character. */
|
|
357
|
+
async animate(req) {
|
|
358
|
+
const job = await this.createJob({ type: "3d/animate", params: req });
|
|
359
|
+
return this.pollJob(job.job_id, 5000, 120);
|
|
360
|
+
}
|
|
341
361
|
// ── API Keys ──────────────────────────────────────────────────────
|
|
342
362
|
/** Create a scoped API key. */
|
|
343
363
|
async createKey(req) {
|
package/dist/types.d.ts
CHANGED
|
@@ -1144,3 +1144,54 @@ export interface APIErrorBody {
|
|
|
1144
1144
|
code?: string;
|
|
1145
1145
|
};
|
|
1146
1146
|
}
|
|
1147
|
+
export interface RemeshRequest {
|
|
1148
|
+
input_task_id?: string;
|
|
1149
|
+
model_url?: string;
|
|
1150
|
+
target_formats?: string[];
|
|
1151
|
+
topology?: string;
|
|
1152
|
+
target_polycount?: number;
|
|
1153
|
+
resize_height?: number;
|
|
1154
|
+
origin_at?: string;
|
|
1155
|
+
convert_format_only?: boolean;
|
|
1156
|
+
}
|
|
1157
|
+
export interface ModelUrls {
|
|
1158
|
+
glb?: string;
|
|
1159
|
+
fbx?: string;
|
|
1160
|
+
obj?: string;
|
|
1161
|
+
usdz?: string;
|
|
1162
|
+
stl?: string;
|
|
1163
|
+
blend?: string;
|
|
1164
|
+
}
|
|
1165
|
+
export interface RigRequest {
|
|
1166
|
+
input_task_id?: string;
|
|
1167
|
+
model_url?: string;
|
|
1168
|
+
height_meters?: number;
|
|
1169
|
+
texture_image_url?: string;
|
|
1170
|
+
}
|
|
1171
|
+
export interface BasicAnimations {
|
|
1172
|
+
walking_glb_url?: string;
|
|
1173
|
+
walking_fbx_url?: string;
|
|
1174
|
+
walking_armature_glb_url?: string;
|
|
1175
|
+
running_glb_url?: string;
|
|
1176
|
+
running_fbx_url?: string;
|
|
1177
|
+
running_armature_glb_url?: string;
|
|
1178
|
+
}
|
|
1179
|
+
export interface AnimateRequest {
|
|
1180
|
+
rig_task_id: string;
|
|
1181
|
+
action_id: number;
|
|
1182
|
+
post_process?: {
|
|
1183
|
+
operation_type: string;
|
|
1184
|
+
fps?: number;
|
|
1185
|
+
};
|
|
1186
|
+
}
|
|
1187
|
+
export interface RetextureRequest {
|
|
1188
|
+
input_task_id?: string;
|
|
1189
|
+
model_url?: string;
|
|
1190
|
+
text_style_prompt?: string;
|
|
1191
|
+
image_style_url?: string;
|
|
1192
|
+
ai_model?: string;
|
|
1193
|
+
enable_original_uv?: boolean;
|
|
1194
|
+
enable_pbr?: boolean;
|
|
1195
|
+
remove_lighting?: boolean;
|
|
1196
|
+
target_formats?: string[];
|
|
1197
|
+
}
|