@pixerate/schemas 1.11.0 → 1.13.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.
- package/dist/index.cjs +40 -1
- package/dist/index.d.cts +872 -23
- package/dist/index.d.ts +872 -23
- package/dist/index.js +37 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var AspectRatioSchema = z.enum([
|
|
|
14
14
|
"21:9"
|
|
15
15
|
]);
|
|
16
16
|
var VideoAspectRatioSchema = z.enum(["9:16", "16:9"]);
|
|
17
|
-
var VideoResolutionSchema = z.enum(["720p", "1080p", "4k", "720P", "1080P", "4K"]);
|
|
17
|
+
var VideoResolutionSchema = z.enum(["360p", "720p", "1080p", "4k", "360P", "720P", "1080P", "4K"]);
|
|
18
18
|
var VideoFrameImageSchema = z.union([
|
|
19
19
|
z.string(),
|
|
20
20
|
z.object({
|
|
@@ -329,6 +329,9 @@ var VideoModificationSchema = z.object({
|
|
|
329
329
|
changes: z.string().optional(),
|
|
330
330
|
aspectRatio: VideoAspectRatioSchema.optional(),
|
|
331
331
|
durationSeconds: z.number().optional(),
|
|
332
|
+
resolution: VideoResolutionSchema.optional(),
|
|
333
|
+
task: z.enum(["modify", "extend"]).optional(),
|
|
334
|
+
previousInteractionId: z.string().optional(),
|
|
332
335
|
seed: z.number().int().optional()
|
|
333
336
|
});
|
|
334
337
|
var CodeGenerationSchema = z.object({
|
|
@@ -362,6 +365,25 @@ var GenerateHarnessOptionsSchema = z.object({
|
|
|
362
365
|
componentName: z.string(),
|
|
363
366
|
docsProps: z.array(ComponentPropDocSchema).optional()
|
|
364
367
|
});
|
|
368
|
+
var InternalComponentDependencySchema = z.object({
|
|
369
|
+
type: z.literal("surreal"),
|
|
370
|
+
componentTypeId: z.string().describe("Slug of target component type (e.g. 'button')"),
|
|
371
|
+
aestheticId: z.string().optional().describe("Aesthetic style ID (e.g. 'glassmorphism')"),
|
|
372
|
+
variantId: z.string().optional().describe("Variant ID (e.g. 'glass-action-button')"),
|
|
373
|
+
versionRange: z.string().default("^1.0.0").describe("Semver range required"),
|
|
374
|
+
importedAs: z.string().describe("Local identifier name (e.g. 'Button')")
|
|
375
|
+
});
|
|
376
|
+
var ExternalPackageDependencySchema = z.object({
|
|
377
|
+
type: z.literal("npm"),
|
|
378
|
+
packageName: z.string().describe("NPM package name (e.g. 'bits-ui', '@radix-ui/react-dialog')"),
|
|
379
|
+
versionRange: z.string().default("^1.0.0").describe("Semver range (e.g. '^1.0.0', '^1.1.2')"),
|
|
380
|
+
isPeerDependency: z.boolean().default(false),
|
|
381
|
+
importSpecifiers: z.array(z.string()).optional()
|
|
382
|
+
});
|
|
383
|
+
var ComponentDependencySchema = z.discriminatedUnion("type", [
|
|
384
|
+
InternalComponentDependencySchema,
|
|
385
|
+
ExternalPackageDependencySchema
|
|
386
|
+
]);
|
|
365
387
|
var ComponentSynthesisSchema = z.object({
|
|
366
388
|
title: z.string().describe("Title of the synthesized component"),
|
|
367
389
|
description: z.string().describe("Detailed description of the component"),
|
|
@@ -376,6 +398,11 @@ var ComponentSynthesisSchema = z.object({
|
|
|
376
398
|
react: PreviewHarnessSchema,
|
|
377
399
|
webcomponent: PreviewHarnessSchema
|
|
378
400
|
}).optional(),
|
|
401
|
+
dependencies: z.object({
|
|
402
|
+
svelte: z.array(ComponentDependencySchema).default([]),
|
|
403
|
+
react: z.array(ComponentDependencySchema).default([]),
|
|
404
|
+
webcomponent: z.array(ComponentDependencySchema).default([])
|
|
405
|
+
}).optional(),
|
|
379
406
|
docs: ComponentDocsSchema
|
|
380
407
|
});
|
|
381
408
|
var ComponentTransformationResultSchema = z.object({
|
|
@@ -384,6 +411,11 @@ var ComponentTransformationResultSchema = z.object({
|
|
|
384
411
|
tags: z.array(z.string()),
|
|
385
412
|
platforms: z.record(PlatformLanguageSchema, z.string()),
|
|
386
413
|
harnesses: z.record(PlatformLanguageSchema, PreviewHarnessSchema),
|
|
414
|
+
dependencies: z.object({
|
|
415
|
+
svelte: z.array(ComponentDependencySchema).default([]),
|
|
416
|
+
react: z.array(ComponentDependencySchema).default([]),
|
|
417
|
+
webcomponent: z.array(ComponentDependencySchema).default([])
|
|
418
|
+
}).optional(),
|
|
387
419
|
docs: ComponentDocsSchema,
|
|
388
420
|
detectedLanguage: PlatformLanguageSchema,
|
|
389
421
|
themeSupport: ThemeSupportSchema
|
|
@@ -395,6 +427,7 @@ var ComponentPackageSchema = z.object({
|
|
|
395
427
|
screenshot: z.string().describe("Data URI or URL of actual rendered component"),
|
|
396
428
|
themeSupport: ThemeSupportSchema,
|
|
397
429
|
tags: z.array(z.string()),
|
|
430
|
+
dependencies: z.array(ComponentDependencySchema).default([]),
|
|
398
431
|
previewHarness: PreviewHarnessSchema.optional()
|
|
399
432
|
});
|
|
400
433
|
var UIComponentTypeSchema = z.object({
|
|
@@ -1450,6 +1483,7 @@ export {
|
|
|
1450
1483
|
AutoFitCaptionSchema,
|
|
1451
1484
|
CRDTSnapshotSchema,
|
|
1452
1485
|
CodeGenerationSchema,
|
|
1486
|
+
ComponentDependencySchema,
|
|
1453
1487
|
ComponentDocsSchema,
|
|
1454
1488
|
ComponentPackageSchema,
|
|
1455
1489
|
ComponentPropDefinitionSchema,
|
|
@@ -1468,6 +1502,7 @@ export {
|
|
|
1468
1502
|
DisplacementMapSchema,
|
|
1469
1503
|
DocumentGenerationOptionsSchema,
|
|
1470
1504
|
DropShadowSchema,
|
|
1505
|
+
ExternalPackageDependencySchema,
|
|
1471
1506
|
FORM_SCHEMA_JSON_SCHEMA,
|
|
1472
1507
|
FidelitySchema,
|
|
1473
1508
|
FieldPresenceSchema,
|
|
@@ -1489,6 +1524,7 @@ export {
|
|
|
1489
1524
|
ImageTransformationSchema,
|
|
1490
1525
|
ImageWatermarkSchema,
|
|
1491
1526
|
IngestionInputSchema,
|
|
1527
|
+
InternalComponentDependencySchema,
|
|
1492
1528
|
JsonGenerationSchema,
|
|
1493
1529
|
KenBurnsOptionsSchema,
|
|
1494
1530
|
LockClaimRequestSchema,
|