@warlok-net/core 0.1.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.
@@ -0,0 +1,764 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const config: {
4
+ api: {
5
+ baseUrl: string;
6
+ timeout: number;
7
+ };
8
+ services: {
9
+ trellis: {
10
+ url: string;
11
+ timeout: number;
12
+ };
13
+ unirig: {
14
+ url: string;
15
+ timeout: number;
16
+ };
17
+ };
18
+ storage: {
19
+ bucket: string;
20
+ publicUrl: string;
21
+ };
22
+ };
23
+
24
+ declare const UserTierSchema: z.ZodEnum<["free", "pro", "enterprise"]>;
25
+ type UserTier = z.infer<typeof UserTierSchema>;
26
+ declare const UserSchema: z.ZodObject<{
27
+ id: z.ZodString;
28
+ email: z.ZodString;
29
+ name: z.ZodNullable<z.ZodString>;
30
+ tier: z.ZodEnum<["free", "pro", "enterprise"]>;
31
+ generationCredits: z.ZodNumber;
32
+ imageUrl: z.ZodNullable<z.ZodString>;
33
+ createdAt: z.ZodString;
34
+ updatedAt: z.ZodString;
35
+ }, "strip", z.ZodTypeAny, {
36
+ id: string;
37
+ email: string;
38
+ name: string | null;
39
+ tier: "free" | "pro" | "enterprise";
40
+ generationCredits: number;
41
+ imageUrl: string | null;
42
+ createdAt: string;
43
+ updatedAt: string;
44
+ }, {
45
+ id: string;
46
+ email: string;
47
+ name: string | null;
48
+ tier: "free" | "pro" | "enterprise";
49
+ generationCredits: number;
50
+ imageUrl: string | null;
51
+ createdAt: string;
52
+ updatedAt: string;
53
+ }>;
54
+ type User = z.infer<typeof UserSchema>;
55
+ declare const ApiKeySchema: z.ZodObject<{
56
+ id: z.ZodString;
57
+ userId: z.ZodString;
58
+ name: z.ZodString;
59
+ keyPrefix: z.ZodString;
60
+ scopes: z.ZodArray<z.ZodString, "many">;
61
+ lastUsedAt: z.ZodNullable<z.ZodString>;
62
+ expiresAt: z.ZodNullable<z.ZodString>;
63
+ createdAt: z.ZodString;
64
+ }, "strip", z.ZodTypeAny, {
65
+ id: string;
66
+ name: string;
67
+ createdAt: string;
68
+ userId: string;
69
+ keyPrefix: string;
70
+ scopes: string[];
71
+ lastUsedAt: string | null;
72
+ expiresAt: string | null;
73
+ }, {
74
+ id: string;
75
+ name: string;
76
+ createdAt: string;
77
+ userId: string;
78
+ keyPrefix: string;
79
+ scopes: string[];
80
+ lastUsedAt: string | null;
81
+ expiresAt: string | null;
82
+ }>;
83
+ type ApiKey = z.infer<typeof ApiKeySchema>;
84
+ declare const CreateApiKeyRequestSchema: z.ZodObject<{
85
+ name: z.ZodString;
86
+ scopes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
87
+ expiresInDays: z.ZodOptional<z.ZodNumber>;
88
+ }, "strip", z.ZodTypeAny, {
89
+ name: string;
90
+ scopes: string[];
91
+ expiresInDays?: number | undefined;
92
+ }, {
93
+ name: string;
94
+ scopes?: string[] | undefined;
95
+ expiresInDays?: number | undefined;
96
+ }>;
97
+ type CreateApiKeyRequest = z.infer<typeof CreateApiKeyRequestSchema>;
98
+ declare const ApiKeyCreatedResponseSchema: z.ZodObject<{
99
+ apiKey: z.ZodObject<{
100
+ id: z.ZodString;
101
+ userId: z.ZodString;
102
+ name: z.ZodString;
103
+ keyPrefix: z.ZodString;
104
+ scopes: z.ZodArray<z.ZodString, "many">;
105
+ lastUsedAt: z.ZodNullable<z.ZodString>;
106
+ expiresAt: z.ZodNullable<z.ZodString>;
107
+ createdAt: z.ZodString;
108
+ }, "strip", z.ZodTypeAny, {
109
+ id: string;
110
+ name: string;
111
+ createdAt: string;
112
+ userId: string;
113
+ keyPrefix: string;
114
+ scopes: string[];
115
+ lastUsedAt: string | null;
116
+ expiresAt: string | null;
117
+ }, {
118
+ id: string;
119
+ name: string;
120
+ createdAt: string;
121
+ userId: string;
122
+ keyPrefix: string;
123
+ scopes: string[];
124
+ lastUsedAt: string | null;
125
+ expiresAt: string | null;
126
+ }>;
127
+ secretKey: z.ZodString;
128
+ }, "strip", z.ZodTypeAny, {
129
+ apiKey: {
130
+ id: string;
131
+ name: string;
132
+ createdAt: string;
133
+ userId: string;
134
+ keyPrefix: string;
135
+ scopes: string[];
136
+ lastUsedAt: string | null;
137
+ expiresAt: string | null;
138
+ };
139
+ secretKey: string;
140
+ }, {
141
+ apiKey: {
142
+ id: string;
143
+ name: string;
144
+ createdAt: string;
145
+ userId: string;
146
+ keyPrefix: string;
147
+ scopes: string[];
148
+ lastUsedAt: string | null;
149
+ expiresAt: string | null;
150
+ };
151
+ secretKey: string;
152
+ }>;
153
+ type ApiKeyCreatedResponse = z.infer<typeof ApiKeyCreatedResponseSchema>;
154
+ declare const AssetTypeSchema: z.ZodEnum<["character", "prop", "environment", "vehicle", "creature", "weapon", "material"]>;
155
+ type AssetType = z.infer<typeof AssetTypeSchema>;
156
+ declare const GenerationEntityTypeSchema: z.ZodEnum<["noun", "person", "place", "thing"]>;
157
+ type GenerationEntityType = z.infer<typeof GenerationEntityTypeSchema>;
158
+ declare const GenerationInputSchema: z.ZodEffects<z.ZodObject<{
159
+ prompt: z.ZodOptional<z.ZodString>;
160
+ imageUrl: z.ZodOptional<z.ZodString>;
161
+ imageBase64: z.ZodOptional<z.ZodString>;
162
+ }, "strip", z.ZodTypeAny, {
163
+ imageUrl?: string | undefined;
164
+ prompt?: string | undefined;
165
+ imageBase64?: string | undefined;
166
+ }, {
167
+ imageUrl?: string | undefined;
168
+ prompt?: string | undefined;
169
+ imageBase64?: string | undefined;
170
+ }>, {
171
+ imageUrl?: string | undefined;
172
+ prompt?: string | undefined;
173
+ imageBase64?: string | undefined;
174
+ }, {
175
+ imageUrl?: string | undefined;
176
+ prompt?: string | undefined;
177
+ imageBase64?: string | undefined;
178
+ }>;
179
+ type GenerationInput = z.infer<typeof GenerationInputSchema>;
180
+ declare const CreateGenerationV2RequestSchema: z.ZodObject<{
181
+ name: z.ZodOptional<z.ZodString>;
182
+ entityType: z.ZodEnum<["noun", "person", "place", "thing"]>;
183
+ input: z.ZodEffects<z.ZodObject<{
184
+ prompt: z.ZodOptional<z.ZodString>;
185
+ imageUrl: z.ZodOptional<z.ZodString>;
186
+ imageBase64: z.ZodOptional<z.ZodString>;
187
+ }, "strip", z.ZodTypeAny, {
188
+ imageUrl?: string | undefined;
189
+ prompt?: string | undefined;
190
+ imageBase64?: string | undefined;
191
+ }, {
192
+ imageUrl?: string | undefined;
193
+ prompt?: string | undefined;
194
+ imageBase64?: string | undefined;
195
+ }>, {
196
+ imageUrl?: string | undefined;
197
+ prompt?: string | undefined;
198
+ imageBase64?: string | undefined;
199
+ }, {
200
+ imageUrl?: string | undefined;
201
+ prompt?: string | undefined;
202
+ imageBase64?: string | undefined;
203
+ }>;
204
+ options: z.ZodDefault<z.ZodObject<{
205
+ rigForMixamo: z.ZodDefault<z.ZodBoolean>;
206
+ includeTpose: z.ZodDefault<z.ZodBoolean>;
207
+ optimize: z.ZodDefault<z.ZodBoolean>;
208
+ }, "strip", z.ZodTypeAny, {
209
+ rigForMixamo: boolean;
210
+ includeTpose: boolean;
211
+ optimize: boolean;
212
+ }, {
213
+ rigForMixamo?: boolean | undefined;
214
+ includeTpose?: boolean | undefined;
215
+ optimize?: boolean | undefined;
216
+ }>>;
217
+ }, "strip", z.ZodTypeAny, {
218
+ options: {
219
+ rigForMixamo: boolean;
220
+ includeTpose: boolean;
221
+ optimize: boolean;
222
+ };
223
+ entityType: "noun" | "person" | "place" | "thing";
224
+ input: {
225
+ imageUrl?: string | undefined;
226
+ prompt?: string | undefined;
227
+ imageBase64?: string | undefined;
228
+ };
229
+ name?: string | undefined;
230
+ }, {
231
+ entityType: "noun" | "person" | "place" | "thing";
232
+ input: {
233
+ imageUrl?: string | undefined;
234
+ prompt?: string | undefined;
235
+ imageBase64?: string | undefined;
236
+ };
237
+ options?: {
238
+ rigForMixamo?: boolean | undefined;
239
+ includeTpose?: boolean | undefined;
240
+ optimize?: boolean | undefined;
241
+ } | undefined;
242
+ name?: string | undefined;
243
+ }>;
244
+ type CreateGenerationV2Request = z.infer<typeof CreateGenerationV2RequestSchema>;
245
+ declare const GenerationStageSchema: z.ZodEnum<["pending", "preprocessing", "generating", "rigging", "complete", "failed"]>;
246
+ type GenerationStage = z.infer<typeof GenerationStageSchema>;
247
+ declare const GenerationProvenanceSchema: z.ZodObject<{
248
+ preprocessService: z.ZodOptional<z.ZodString>;
249
+ preprocessJobId: z.ZodOptional<z.ZodString>;
250
+ preprocessSourceMode: z.ZodOptional<z.ZodString>;
251
+ preprocessPromptImageUrl: z.ZodOptional<z.ZodString>;
252
+ preprocessProcessedImageUrl: z.ZodOptional<z.ZodString>;
253
+ preprocessPromptImageProvider: z.ZodOptional<z.ZodString>;
254
+ preprocessPromptImageNotes: z.ZodOptional<z.ZodString>;
255
+ preprocessTposePrompt: z.ZodOptional<z.ZodString>;
256
+ preprocessAnalysisProvider: z.ZodOptional<z.ZodString>;
257
+ preprocessBackgroundRemovalProvider: z.ZodOptional<z.ZodString>;
258
+ preprocessDescriptionEnhancementProvider: z.ZodOptional<z.ZodString>;
259
+ trellisService: z.ZodOptional<z.ZodString>;
260
+ trellisJobId: z.ZodOptional<z.ZodString>;
261
+ trellisBackendMetadata: z.ZodOptional<z.ZodAny>;
262
+ unirigService: z.ZodOptional<z.ZodString>;
263
+ unirigJobId: z.ZodOptional<z.ZodString>;
264
+ pipelineVersion: z.ZodOptional<z.ZodString>;
265
+ }, "strip", z.ZodTypeAny, {
266
+ preprocessService?: string | undefined;
267
+ preprocessJobId?: string | undefined;
268
+ preprocessSourceMode?: string | undefined;
269
+ preprocessPromptImageUrl?: string | undefined;
270
+ preprocessProcessedImageUrl?: string | undefined;
271
+ preprocessPromptImageProvider?: string | undefined;
272
+ preprocessPromptImageNotes?: string | undefined;
273
+ preprocessTposePrompt?: string | undefined;
274
+ preprocessAnalysisProvider?: string | undefined;
275
+ preprocessBackgroundRemovalProvider?: string | undefined;
276
+ preprocessDescriptionEnhancementProvider?: string | undefined;
277
+ trellisService?: string | undefined;
278
+ trellisJobId?: string | undefined;
279
+ trellisBackendMetadata?: any;
280
+ unirigService?: string | undefined;
281
+ unirigJobId?: string | undefined;
282
+ pipelineVersion?: string | undefined;
283
+ }, {
284
+ preprocessService?: string | undefined;
285
+ preprocessJobId?: string | undefined;
286
+ preprocessSourceMode?: string | undefined;
287
+ preprocessPromptImageUrl?: string | undefined;
288
+ preprocessProcessedImageUrl?: string | undefined;
289
+ preprocessPromptImageProvider?: string | undefined;
290
+ preprocessPromptImageNotes?: string | undefined;
291
+ preprocessTposePrompt?: string | undefined;
292
+ preprocessAnalysisProvider?: string | undefined;
293
+ preprocessBackgroundRemovalProvider?: string | undefined;
294
+ preprocessDescriptionEnhancementProvider?: string | undefined;
295
+ trellisService?: string | undefined;
296
+ trellisJobId?: string | undefined;
297
+ trellisBackendMetadata?: any;
298
+ unirigService?: string | undefined;
299
+ unirigJobId?: string | undefined;
300
+ pipelineVersion?: string | undefined;
301
+ }>;
302
+ type GenerationProvenance = z.infer<typeof GenerationProvenanceSchema>;
303
+ declare const GenerationV2Schema: z.ZodObject<{
304
+ id: z.ZodString;
305
+ name: z.ZodString;
306
+ entityType: z.ZodEnum<["noun", "person", "place", "thing"]>;
307
+ status: z.ZodEnum<["pending", "preprocessing", "generating", "rigging", "complete", "failed"]>;
308
+ progress: z.ZodNumber;
309
+ input: z.ZodObject<{
310
+ prompt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
311
+ hasImage: z.ZodBoolean;
312
+ imageUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
313
+ }, "strip", z.ZodTypeAny, {
314
+ hasImage: boolean;
315
+ imageUrl?: string | null | undefined;
316
+ prompt?: string | null | undefined;
317
+ }, {
318
+ hasImage: boolean;
319
+ imageUrl?: string | null | undefined;
320
+ prompt?: string | null | undefined;
321
+ }>;
322
+ options: z.ZodObject<{
323
+ rigForMixamo: z.ZodBoolean;
324
+ includeTpose: z.ZodBoolean;
325
+ optimize: z.ZodBoolean;
326
+ }, "strip", z.ZodTypeAny, {
327
+ rigForMixamo: boolean;
328
+ includeTpose: boolean;
329
+ optimize: boolean;
330
+ }, {
331
+ rigForMixamo: boolean;
332
+ includeTpose: boolean;
333
+ optimize: boolean;
334
+ }>;
335
+ outputs: z.ZodObject<{
336
+ previewPngUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
337
+ promptImageUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
338
+ modelUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
339
+ riggedModelUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
340
+ mixamoReady: z.ZodBoolean;
341
+ }, "strip", z.ZodTypeAny, {
342
+ mixamoReady: boolean;
343
+ previewPngUrl?: string | null | undefined;
344
+ promptImageUrl?: string | null | undefined;
345
+ modelUrl?: string | null | undefined;
346
+ riggedModelUrl?: string | null | undefined;
347
+ }, {
348
+ mixamoReady: boolean;
349
+ previewPngUrl?: string | null | undefined;
350
+ promptImageUrl?: string | null | undefined;
351
+ modelUrl?: string | null | undefined;
352
+ riggedModelUrl?: string | null | undefined;
353
+ }>;
354
+ provenance: z.ZodOptional<z.ZodObject<{
355
+ preprocessService: z.ZodOptional<z.ZodString>;
356
+ preprocessJobId: z.ZodOptional<z.ZodString>;
357
+ preprocessSourceMode: z.ZodOptional<z.ZodString>;
358
+ preprocessPromptImageUrl: z.ZodOptional<z.ZodString>;
359
+ preprocessProcessedImageUrl: z.ZodOptional<z.ZodString>;
360
+ preprocessPromptImageProvider: z.ZodOptional<z.ZodString>;
361
+ preprocessPromptImageNotes: z.ZodOptional<z.ZodString>;
362
+ preprocessTposePrompt: z.ZodOptional<z.ZodString>;
363
+ preprocessAnalysisProvider: z.ZodOptional<z.ZodString>;
364
+ preprocessBackgroundRemovalProvider: z.ZodOptional<z.ZodString>;
365
+ preprocessDescriptionEnhancementProvider: z.ZodOptional<z.ZodString>;
366
+ trellisService: z.ZodOptional<z.ZodString>;
367
+ trellisJobId: z.ZodOptional<z.ZodString>;
368
+ trellisBackendMetadata: z.ZodOptional<z.ZodAny>;
369
+ unirigService: z.ZodOptional<z.ZodString>;
370
+ unirigJobId: z.ZodOptional<z.ZodString>;
371
+ pipelineVersion: z.ZodOptional<z.ZodString>;
372
+ }, "strip", z.ZodTypeAny, {
373
+ preprocessService?: string | undefined;
374
+ preprocessJobId?: string | undefined;
375
+ preprocessSourceMode?: string | undefined;
376
+ preprocessPromptImageUrl?: string | undefined;
377
+ preprocessProcessedImageUrl?: string | undefined;
378
+ preprocessPromptImageProvider?: string | undefined;
379
+ preprocessPromptImageNotes?: string | undefined;
380
+ preprocessTposePrompt?: string | undefined;
381
+ preprocessAnalysisProvider?: string | undefined;
382
+ preprocessBackgroundRemovalProvider?: string | undefined;
383
+ preprocessDescriptionEnhancementProvider?: string | undefined;
384
+ trellisService?: string | undefined;
385
+ trellisJobId?: string | undefined;
386
+ trellisBackendMetadata?: any;
387
+ unirigService?: string | undefined;
388
+ unirigJobId?: string | undefined;
389
+ pipelineVersion?: string | undefined;
390
+ }, {
391
+ preprocessService?: string | undefined;
392
+ preprocessJobId?: string | undefined;
393
+ preprocessSourceMode?: string | undefined;
394
+ preprocessPromptImageUrl?: string | undefined;
395
+ preprocessProcessedImageUrl?: string | undefined;
396
+ preprocessPromptImageProvider?: string | undefined;
397
+ preprocessPromptImageNotes?: string | undefined;
398
+ preprocessTposePrompt?: string | undefined;
399
+ preprocessAnalysisProvider?: string | undefined;
400
+ preprocessBackgroundRemovalProvider?: string | undefined;
401
+ preprocessDescriptionEnhancementProvider?: string | undefined;
402
+ trellisService?: string | undefined;
403
+ trellisJobId?: string | undefined;
404
+ trellisBackendMetadata?: any;
405
+ unirigService?: string | undefined;
406
+ unirigJobId?: string | undefined;
407
+ pipelineVersion?: string | undefined;
408
+ }>>;
409
+ error: z.ZodNullable<z.ZodOptional<z.ZodString>>;
410
+ createdAt: z.ZodString;
411
+ updatedAt: z.ZodString;
412
+ }, "strip", z.ZodTypeAny, {
413
+ options: {
414
+ rigForMixamo: boolean;
415
+ includeTpose: boolean;
416
+ optimize: boolean;
417
+ };
418
+ status: "pending" | "preprocessing" | "generating" | "rigging" | "complete" | "failed";
419
+ id: string;
420
+ name: string;
421
+ createdAt: string;
422
+ updatedAt: string;
423
+ entityType: "noun" | "person" | "place" | "thing";
424
+ input: {
425
+ hasImage: boolean;
426
+ imageUrl?: string | null | undefined;
427
+ prompt?: string | null | undefined;
428
+ };
429
+ progress: number;
430
+ outputs: {
431
+ mixamoReady: boolean;
432
+ previewPngUrl?: string | null | undefined;
433
+ promptImageUrl?: string | null | undefined;
434
+ modelUrl?: string | null | undefined;
435
+ riggedModelUrl?: string | null | undefined;
436
+ };
437
+ provenance?: {
438
+ preprocessService?: string | undefined;
439
+ preprocessJobId?: string | undefined;
440
+ preprocessSourceMode?: string | undefined;
441
+ preprocessPromptImageUrl?: string | undefined;
442
+ preprocessProcessedImageUrl?: string | undefined;
443
+ preprocessPromptImageProvider?: string | undefined;
444
+ preprocessPromptImageNotes?: string | undefined;
445
+ preprocessTposePrompt?: string | undefined;
446
+ preprocessAnalysisProvider?: string | undefined;
447
+ preprocessBackgroundRemovalProvider?: string | undefined;
448
+ preprocessDescriptionEnhancementProvider?: string | undefined;
449
+ trellisService?: string | undefined;
450
+ trellisJobId?: string | undefined;
451
+ trellisBackendMetadata?: any;
452
+ unirigService?: string | undefined;
453
+ unirigJobId?: string | undefined;
454
+ pipelineVersion?: string | undefined;
455
+ } | undefined;
456
+ error?: string | null | undefined;
457
+ }, {
458
+ options: {
459
+ rigForMixamo: boolean;
460
+ includeTpose: boolean;
461
+ optimize: boolean;
462
+ };
463
+ status: "pending" | "preprocessing" | "generating" | "rigging" | "complete" | "failed";
464
+ id: string;
465
+ name: string;
466
+ createdAt: string;
467
+ updatedAt: string;
468
+ entityType: "noun" | "person" | "place" | "thing";
469
+ input: {
470
+ hasImage: boolean;
471
+ imageUrl?: string | null | undefined;
472
+ prompt?: string | null | undefined;
473
+ };
474
+ progress: number;
475
+ outputs: {
476
+ mixamoReady: boolean;
477
+ previewPngUrl?: string | null | undefined;
478
+ promptImageUrl?: string | null | undefined;
479
+ modelUrl?: string | null | undefined;
480
+ riggedModelUrl?: string | null | undefined;
481
+ };
482
+ provenance?: {
483
+ preprocessService?: string | undefined;
484
+ preprocessJobId?: string | undefined;
485
+ preprocessSourceMode?: string | undefined;
486
+ preprocessPromptImageUrl?: string | undefined;
487
+ preprocessProcessedImageUrl?: string | undefined;
488
+ preprocessPromptImageProvider?: string | undefined;
489
+ preprocessPromptImageNotes?: string | undefined;
490
+ preprocessTposePrompt?: string | undefined;
491
+ preprocessAnalysisProvider?: string | undefined;
492
+ preprocessBackgroundRemovalProvider?: string | undefined;
493
+ preprocessDescriptionEnhancementProvider?: string | undefined;
494
+ trellisService?: string | undefined;
495
+ trellisJobId?: string | undefined;
496
+ trellisBackendMetadata?: any;
497
+ unirigService?: string | undefined;
498
+ unirigJobId?: string | undefined;
499
+ pipelineVersion?: string | undefined;
500
+ } | undefined;
501
+ error?: string | null | undefined;
502
+ }>;
503
+ type GenerationV2 = z.infer<typeof GenerationV2Schema>;
504
+ declare const AssetStatusSchema: z.ZodEnum<["pending", "preprocessing", "generating", "rigging", "complete", "failed"]>;
505
+ type AssetStatus = z.infer<typeof AssetStatusSchema>;
506
+ declare const GeneratedAssetSchema: z.ZodObject<{
507
+ id: z.ZodString;
508
+ name: z.ZodString;
509
+ type: z.ZodEnum<["character", "prop", "environment", "vehicle", "creature", "weapon", "material"]>;
510
+ status: z.ZodEnum<["pending", "preprocessing", "generating", "rigging", "complete", "failed"]>;
511
+ sourceImage: z.ZodOptional<z.ZodString>;
512
+ sourcePrompt: z.ZodOptional<z.ZodString>;
513
+ modelUrl: z.ZodOptional<z.ZodString>;
514
+ riggedModelUrl: z.ZodOptional<z.ZodString>;
515
+ thumbnailUrl: z.ZodOptional<z.ZodString>;
516
+ animations: z.ZodDefault<z.ZodArray<z.ZodObject<{
517
+ id: z.ZodString;
518
+ name: z.ZodString;
519
+ url: z.ZodString;
520
+ duration: z.ZodNumber;
521
+ }, "strip", z.ZodTypeAny, {
522
+ id: string;
523
+ name: string;
524
+ url: string;
525
+ duration: number;
526
+ }, {
527
+ id: string;
528
+ name: string;
529
+ url: string;
530
+ duration: number;
531
+ }>, "many">>;
532
+ metadata: z.ZodObject<{
533
+ polyCount: z.ZodOptional<z.ZodNumber>;
534
+ textureResolution: z.ZodOptional<z.ZodString>;
535
+ fileSize: z.ZodOptional<z.ZodNumber>;
536
+ generatedAt: z.ZodString;
537
+ generationTime: z.ZodOptional<z.ZodNumber>;
538
+ }, "strip", z.ZodTypeAny, {
539
+ generatedAt: string;
540
+ polyCount?: number | undefined;
541
+ textureResolution?: string | undefined;
542
+ fileSize?: number | undefined;
543
+ generationTime?: number | undefined;
544
+ }, {
545
+ generatedAt: string;
546
+ polyCount?: number | undefined;
547
+ textureResolution?: string | undefined;
548
+ fileSize?: number | undefined;
549
+ generationTime?: number | undefined;
550
+ }>;
551
+ createdAt: z.ZodString;
552
+ updatedAt: z.ZodString;
553
+ }, "strip", z.ZodTypeAny, {
554
+ type: "character" | "prop" | "environment" | "vehicle" | "creature" | "weapon" | "material";
555
+ status: "pending" | "preprocessing" | "generating" | "rigging" | "complete" | "failed";
556
+ id: string;
557
+ name: string;
558
+ createdAt: string;
559
+ updatedAt: string;
560
+ animations: {
561
+ id: string;
562
+ name: string;
563
+ url: string;
564
+ duration: number;
565
+ }[];
566
+ metadata: {
567
+ generatedAt: string;
568
+ polyCount?: number | undefined;
569
+ textureResolution?: string | undefined;
570
+ fileSize?: number | undefined;
571
+ generationTime?: number | undefined;
572
+ };
573
+ modelUrl?: string | undefined;
574
+ riggedModelUrl?: string | undefined;
575
+ sourceImage?: string | undefined;
576
+ sourcePrompt?: string | undefined;
577
+ thumbnailUrl?: string | undefined;
578
+ }, {
579
+ type: "character" | "prop" | "environment" | "vehicle" | "creature" | "weapon" | "material";
580
+ status: "pending" | "preprocessing" | "generating" | "rigging" | "complete" | "failed";
581
+ id: string;
582
+ name: string;
583
+ createdAt: string;
584
+ updatedAt: string;
585
+ metadata: {
586
+ generatedAt: string;
587
+ polyCount?: number | undefined;
588
+ textureResolution?: string | undefined;
589
+ fileSize?: number | undefined;
590
+ generationTime?: number | undefined;
591
+ };
592
+ modelUrl?: string | undefined;
593
+ riggedModelUrl?: string | undefined;
594
+ sourceImage?: string | undefined;
595
+ sourcePrompt?: string | undefined;
596
+ thumbnailUrl?: string | undefined;
597
+ animations?: {
598
+ id: string;
599
+ name: string;
600
+ url: string;
601
+ duration: number;
602
+ }[] | undefined;
603
+ }>;
604
+ type GeneratedAsset = z.infer<typeof GeneratedAssetSchema>;
605
+ declare const GenerationRequestSchema: z.ZodEffects<z.ZodObject<{
606
+ type: z.ZodEnum<["character", "prop", "environment", "vehicle", "creature", "weapon", "material"]>;
607
+ name: z.ZodString;
608
+ prompt: z.ZodOptional<z.ZodString>;
609
+ imageUrl: z.ZodOptional<z.ZodString>;
610
+ imageBase64: z.ZodOptional<z.ZodString>;
611
+ options: z.ZodDefault<z.ZodObject<{
612
+ autoRig: z.ZodDefault<z.ZodBoolean>;
613
+ targetFormat: z.ZodDefault<z.ZodEnum<["glb", "gltf", "fbx"]>>;
614
+ textureResolution: z.ZodDefault<z.ZodEnum<["512", "1024", "2048"]>>;
615
+ optimize: z.ZodDefault<z.ZodBoolean>;
616
+ }, "strip", z.ZodTypeAny, {
617
+ optimize: boolean;
618
+ textureResolution: "512" | "1024" | "2048";
619
+ autoRig: boolean;
620
+ targetFormat: "glb" | "gltf" | "fbx";
621
+ }, {
622
+ optimize?: boolean | undefined;
623
+ textureResolution?: "512" | "1024" | "2048" | undefined;
624
+ autoRig?: boolean | undefined;
625
+ targetFormat?: "glb" | "gltf" | "fbx" | undefined;
626
+ }>>;
627
+ }, "strip", z.ZodTypeAny, {
628
+ options: {
629
+ optimize: boolean;
630
+ textureResolution: "512" | "1024" | "2048";
631
+ autoRig: boolean;
632
+ targetFormat: "glb" | "gltf" | "fbx";
633
+ };
634
+ type: "character" | "prop" | "environment" | "vehicle" | "creature" | "weapon" | "material";
635
+ name: string;
636
+ imageUrl?: string | undefined;
637
+ prompt?: string | undefined;
638
+ imageBase64?: string | undefined;
639
+ }, {
640
+ type: "character" | "prop" | "environment" | "vehicle" | "creature" | "weapon" | "material";
641
+ name: string;
642
+ options?: {
643
+ optimize?: boolean | undefined;
644
+ textureResolution?: "512" | "1024" | "2048" | undefined;
645
+ autoRig?: boolean | undefined;
646
+ targetFormat?: "glb" | "gltf" | "fbx" | undefined;
647
+ } | undefined;
648
+ imageUrl?: string | undefined;
649
+ prompt?: string | undefined;
650
+ imageBase64?: string | undefined;
651
+ }>, {
652
+ options: {
653
+ optimize: boolean;
654
+ textureResolution: "512" | "1024" | "2048";
655
+ autoRig: boolean;
656
+ targetFormat: "glb" | "gltf" | "fbx";
657
+ };
658
+ type: "character" | "prop" | "environment" | "vehicle" | "creature" | "weapon" | "material";
659
+ name: string;
660
+ imageUrl?: string | undefined;
661
+ prompt?: string | undefined;
662
+ imageBase64?: string | undefined;
663
+ }, {
664
+ type: "character" | "prop" | "environment" | "vehicle" | "creature" | "weapon" | "material";
665
+ name: string;
666
+ options?: {
667
+ optimize?: boolean | undefined;
668
+ textureResolution?: "512" | "1024" | "2048" | undefined;
669
+ autoRig?: boolean | undefined;
670
+ targetFormat?: "glb" | "gltf" | "fbx" | undefined;
671
+ } | undefined;
672
+ imageUrl?: string | undefined;
673
+ prompt?: string | undefined;
674
+ imageBase64?: string | undefined;
675
+ }>;
676
+ type GenerationRequest = z.infer<typeof GenerationRequestSchema>;
677
+ declare const AnimationRequestSchema: z.ZodObject<{
678
+ assetId: z.ZodString;
679
+ animationType: z.ZodEnum<["mixamo", "generated", "custom"]>;
680
+ animationName: z.ZodOptional<z.ZodString>;
681
+ prompt: z.ZodOptional<z.ZodString>;
682
+ mixamoId: z.ZodOptional<z.ZodString>;
683
+ }, "strip", z.ZodTypeAny, {
684
+ assetId: string;
685
+ animationType: "custom" | "mixamo" | "generated";
686
+ prompt?: string | undefined;
687
+ animationName?: string | undefined;
688
+ mixamoId?: string | undefined;
689
+ }, {
690
+ assetId: string;
691
+ animationType: "custom" | "mixamo" | "generated";
692
+ prompt?: string | undefined;
693
+ animationName?: string | undefined;
694
+ mixamoId?: string | undefined;
695
+ }>;
696
+ type AnimationRequest = z.infer<typeof AnimationRequestSchema>;
697
+ declare const ApiResponseSchema: <T extends z.ZodTypeAny>(dataSchema: T) => z.ZodObject<{
698
+ success: z.ZodBoolean;
699
+ data: z.ZodOptional<T>;
700
+ error: z.ZodOptional<z.ZodObject<{
701
+ code: z.ZodString;
702
+ message: z.ZodString;
703
+ }, "strip", z.ZodTypeAny, {
704
+ code: string;
705
+ message: string;
706
+ }, {
707
+ code: string;
708
+ message: string;
709
+ }>>;
710
+ }, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
711
+ success: z.ZodBoolean;
712
+ data: z.ZodOptional<T>;
713
+ error: z.ZodOptional<z.ZodObject<{
714
+ code: z.ZodString;
715
+ message: z.ZodString;
716
+ }, "strip", z.ZodTypeAny, {
717
+ code: string;
718
+ message: string;
719
+ }, {
720
+ code: string;
721
+ message: string;
722
+ }>>;
723
+ }>, any> extends infer T_1 ? { [k in keyof T_1]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
724
+ success: z.ZodBoolean;
725
+ data: z.ZodOptional<T>;
726
+ error: z.ZodOptional<z.ZodObject<{
727
+ code: z.ZodString;
728
+ message: z.ZodString;
729
+ }, "strip", z.ZodTypeAny, {
730
+ code: string;
731
+ message: string;
732
+ }, {
733
+ code: string;
734
+ message: string;
735
+ }>>;
736
+ }>, any>[k]; } : never, z.baseObjectInputType<{
737
+ success: z.ZodBoolean;
738
+ data: z.ZodOptional<T>;
739
+ error: z.ZodOptional<z.ZodObject<{
740
+ code: z.ZodString;
741
+ message: z.ZodString;
742
+ }, "strip", z.ZodTypeAny, {
743
+ code: string;
744
+ message: string;
745
+ }, {
746
+ code: string;
747
+ message: string;
748
+ }>>;
749
+ }> extends infer T_2 ? { [k_1 in keyof T_2]: z.baseObjectInputType<{
750
+ success: z.ZodBoolean;
751
+ data: z.ZodOptional<T>;
752
+ error: z.ZodOptional<z.ZodObject<{
753
+ code: z.ZodString;
754
+ message: z.ZodString;
755
+ }, "strip", z.ZodTypeAny, {
756
+ code: string;
757
+ message: string;
758
+ }, {
759
+ code: string;
760
+ message: string;
761
+ }>>;
762
+ }>[k_1]; } : never>;
763
+
764
+ export { type AnimationRequest, AnimationRequestSchema, type ApiKey, type ApiKeyCreatedResponse, ApiKeyCreatedResponseSchema, ApiKeySchema, ApiResponseSchema, type AssetStatus, AssetStatusSchema, type AssetType, AssetTypeSchema, type CreateApiKeyRequest, CreateApiKeyRequestSchema, type CreateGenerationV2Request, CreateGenerationV2RequestSchema, type GeneratedAsset, GeneratedAssetSchema, type GenerationEntityType, GenerationEntityTypeSchema, type GenerationInput, GenerationInputSchema, type GenerationProvenance, GenerationProvenanceSchema, type GenerationRequest, GenerationRequestSchema, type GenerationStage, GenerationStageSchema, type GenerationV2, GenerationV2Schema, type User, UserSchema, type UserTier, UserTierSchema, config };