quantum-ai-sdk 0.3.1 → 0.3.2

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 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, 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,12 @@ 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
+ /** Rig a humanoid 3D model. Returns rigged character + basic walk/run animations. */
203
+ rig(req: RigRequest): Promise<JobStatusResponse>;
204
+ /** Apply an animation to a rigged character. */
205
+ animate(req: AnimateRequest): Promise<JobStatusResponse>;
200
206
  /** Create a scoped API key. */
201
207
  createKey(req: CreateKeyRequest): Promise<CreateKeyResponse>;
202
208
  /** List all API keys for the authenticated user. */
package/dist/client.js CHANGED
@@ -338,6 +338,21 @@ 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
+ /** Rig a humanoid 3D model. Returns rigged character + basic walk/run animations. */
347
+ async rig(req) {
348
+ const job = await this.createJob({ type: "3d/rig", params: req });
349
+ return this.pollJob(job.job_id, 5000, 120);
350
+ }
351
+ /** Apply an animation to a rigged character. */
352
+ async animate(req) {
353
+ const job = await this.createJob({ type: "3d/animate", params: req });
354
+ return this.pollJob(job.job_id, 5000, 120);
355
+ }
341
356
  // ── API Keys ──────────────────────────────────────────────────────
342
357
  /** Create a scoped API key. */
343
358
  async createKey(req) {
package/dist/types.d.ts CHANGED
@@ -1144,3 +1144,43 @@ 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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quantum-ai-sdk",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Cosmic Duck SDK — 100+ AI endpoints across 10 providers",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",