@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.cjs
CHANGED
|
@@ -52,6 +52,7 @@ __export(index_exports, {
|
|
|
52
52
|
AutoFitCaptionSchema: () => AutoFitCaptionSchema,
|
|
53
53
|
CRDTSnapshotSchema: () => CRDTSnapshotSchema,
|
|
54
54
|
CodeGenerationSchema: () => CodeGenerationSchema,
|
|
55
|
+
ComponentDependencySchema: () => ComponentDependencySchema,
|
|
55
56
|
ComponentDocsSchema: () => ComponentDocsSchema,
|
|
56
57
|
ComponentPackageSchema: () => ComponentPackageSchema,
|
|
57
58
|
ComponentPropDefinitionSchema: () => ComponentPropDefinitionSchema,
|
|
@@ -70,6 +71,7 @@ __export(index_exports, {
|
|
|
70
71
|
DisplacementMapSchema: () => DisplacementMapSchema,
|
|
71
72
|
DocumentGenerationOptionsSchema: () => DocumentGenerationOptionsSchema,
|
|
72
73
|
DropShadowSchema: () => DropShadowSchema,
|
|
74
|
+
ExternalPackageDependencySchema: () => ExternalPackageDependencySchema,
|
|
73
75
|
FORM_SCHEMA_JSON_SCHEMA: () => FORM_SCHEMA_JSON_SCHEMA,
|
|
74
76
|
FidelitySchema: () => FidelitySchema,
|
|
75
77
|
FieldPresenceSchema: () => FieldPresenceSchema,
|
|
@@ -91,6 +93,7 @@ __export(index_exports, {
|
|
|
91
93
|
ImageTransformationSchema: () => ImageTransformationSchema,
|
|
92
94
|
ImageWatermarkSchema: () => ImageWatermarkSchema,
|
|
93
95
|
IngestionInputSchema: () => IngestionInputSchema,
|
|
96
|
+
InternalComponentDependencySchema: () => InternalComponentDependencySchema,
|
|
94
97
|
JsonGenerationSchema: () => JsonGenerationSchema,
|
|
95
98
|
KenBurnsOptionsSchema: () => KenBurnsOptionsSchema,
|
|
96
99
|
LockClaimRequestSchema: () => LockClaimRequestSchema,
|
|
@@ -190,7 +193,7 @@ var AspectRatioSchema = import_zod.z.enum([
|
|
|
190
193
|
"21:9"
|
|
191
194
|
]);
|
|
192
195
|
var VideoAspectRatioSchema = import_zod.z.enum(["9:16", "16:9"]);
|
|
193
|
-
var VideoResolutionSchema = import_zod.z.enum(["720p", "1080p", "4k", "720P", "1080P", "4K"]);
|
|
196
|
+
var VideoResolutionSchema = import_zod.z.enum(["360p", "720p", "1080p", "4k", "360P", "720P", "1080P", "4K"]);
|
|
194
197
|
var VideoFrameImageSchema = import_zod.z.union([
|
|
195
198
|
import_zod.z.string(),
|
|
196
199
|
import_zod.z.object({
|
|
@@ -505,6 +508,9 @@ var VideoModificationSchema = import_zod.z.object({
|
|
|
505
508
|
changes: import_zod.z.string().optional(),
|
|
506
509
|
aspectRatio: VideoAspectRatioSchema.optional(),
|
|
507
510
|
durationSeconds: import_zod.z.number().optional(),
|
|
511
|
+
resolution: VideoResolutionSchema.optional(),
|
|
512
|
+
task: import_zod.z.enum(["modify", "extend"]).optional(),
|
|
513
|
+
previousInteractionId: import_zod.z.string().optional(),
|
|
508
514
|
seed: import_zod.z.number().int().optional()
|
|
509
515
|
});
|
|
510
516
|
var CodeGenerationSchema = import_zod.z.object({
|
|
@@ -538,6 +544,25 @@ var GenerateHarnessOptionsSchema = import_zod.z.object({
|
|
|
538
544
|
componentName: import_zod.z.string(),
|
|
539
545
|
docsProps: import_zod.z.array(ComponentPropDocSchema).optional()
|
|
540
546
|
});
|
|
547
|
+
var InternalComponentDependencySchema = import_zod.z.object({
|
|
548
|
+
type: import_zod.z.literal("surreal"),
|
|
549
|
+
componentTypeId: import_zod.z.string().describe("Slug of target component type (e.g. 'button')"),
|
|
550
|
+
aestheticId: import_zod.z.string().optional().describe("Aesthetic style ID (e.g. 'glassmorphism')"),
|
|
551
|
+
variantId: import_zod.z.string().optional().describe("Variant ID (e.g. 'glass-action-button')"),
|
|
552
|
+
versionRange: import_zod.z.string().default("^1.0.0").describe("Semver range required"),
|
|
553
|
+
importedAs: import_zod.z.string().describe("Local identifier name (e.g. 'Button')")
|
|
554
|
+
});
|
|
555
|
+
var ExternalPackageDependencySchema = import_zod.z.object({
|
|
556
|
+
type: import_zod.z.literal("npm"),
|
|
557
|
+
packageName: import_zod.z.string().describe("NPM package name (e.g. 'bits-ui', '@radix-ui/react-dialog')"),
|
|
558
|
+
versionRange: import_zod.z.string().default("^1.0.0").describe("Semver range (e.g. '^1.0.0', '^1.1.2')"),
|
|
559
|
+
isPeerDependency: import_zod.z.boolean().default(false),
|
|
560
|
+
importSpecifiers: import_zod.z.array(import_zod.z.string()).optional()
|
|
561
|
+
});
|
|
562
|
+
var ComponentDependencySchema = import_zod.z.discriminatedUnion("type", [
|
|
563
|
+
InternalComponentDependencySchema,
|
|
564
|
+
ExternalPackageDependencySchema
|
|
565
|
+
]);
|
|
541
566
|
var ComponentSynthesisSchema = import_zod.z.object({
|
|
542
567
|
title: import_zod.z.string().describe("Title of the synthesized component"),
|
|
543
568
|
description: import_zod.z.string().describe("Detailed description of the component"),
|
|
@@ -552,6 +577,11 @@ var ComponentSynthesisSchema = import_zod.z.object({
|
|
|
552
577
|
react: PreviewHarnessSchema,
|
|
553
578
|
webcomponent: PreviewHarnessSchema
|
|
554
579
|
}).optional(),
|
|
580
|
+
dependencies: import_zod.z.object({
|
|
581
|
+
svelte: import_zod.z.array(ComponentDependencySchema).default([]),
|
|
582
|
+
react: import_zod.z.array(ComponentDependencySchema).default([]),
|
|
583
|
+
webcomponent: import_zod.z.array(ComponentDependencySchema).default([])
|
|
584
|
+
}).optional(),
|
|
555
585
|
docs: ComponentDocsSchema
|
|
556
586
|
});
|
|
557
587
|
var ComponentTransformationResultSchema = import_zod.z.object({
|
|
@@ -560,6 +590,11 @@ var ComponentTransformationResultSchema = import_zod.z.object({
|
|
|
560
590
|
tags: import_zod.z.array(import_zod.z.string()),
|
|
561
591
|
platforms: import_zod.z.record(PlatformLanguageSchema, import_zod.z.string()),
|
|
562
592
|
harnesses: import_zod.z.record(PlatformLanguageSchema, PreviewHarnessSchema),
|
|
593
|
+
dependencies: import_zod.z.object({
|
|
594
|
+
svelte: import_zod.z.array(ComponentDependencySchema).default([]),
|
|
595
|
+
react: import_zod.z.array(ComponentDependencySchema).default([]),
|
|
596
|
+
webcomponent: import_zod.z.array(ComponentDependencySchema).default([])
|
|
597
|
+
}).optional(),
|
|
563
598
|
docs: ComponentDocsSchema,
|
|
564
599
|
detectedLanguage: PlatformLanguageSchema,
|
|
565
600
|
themeSupport: ThemeSupportSchema
|
|
@@ -571,6 +606,7 @@ var ComponentPackageSchema = import_zod.z.object({
|
|
|
571
606
|
screenshot: import_zod.z.string().describe("Data URI or URL of actual rendered component"),
|
|
572
607
|
themeSupport: ThemeSupportSchema,
|
|
573
608
|
tags: import_zod.z.array(import_zod.z.string()),
|
|
609
|
+
dependencies: import_zod.z.array(ComponentDependencySchema).default([]),
|
|
574
610
|
previewHarness: PreviewHarnessSchema.optional()
|
|
575
611
|
});
|
|
576
612
|
var UIComponentTypeSchema = import_zod.z.object({
|
|
@@ -1627,6 +1663,7 @@ var CRDTSnapshotSchema = import_zod.z.object({
|
|
|
1627
1663
|
AutoFitCaptionSchema,
|
|
1628
1664
|
CRDTSnapshotSchema,
|
|
1629
1665
|
CodeGenerationSchema,
|
|
1666
|
+
ComponentDependencySchema,
|
|
1630
1667
|
ComponentDocsSchema,
|
|
1631
1668
|
ComponentPackageSchema,
|
|
1632
1669
|
ComponentPropDefinitionSchema,
|
|
@@ -1645,6 +1682,7 @@ var CRDTSnapshotSchema = import_zod.z.object({
|
|
|
1645
1682
|
DisplacementMapSchema,
|
|
1646
1683
|
DocumentGenerationOptionsSchema,
|
|
1647
1684
|
DropShadowSchema,
|
|
1685
|
+
ExternalPackageDependencySchema,
|
|
1648
1686
|
FORM_SCHEMA_JSON_SCHEMA,
|
|
1649
1687
|
FidelitySchema,
|
|
1650
1688
|
FieldPresenceSchema,
|
|
@@ -1666,6 +1704,7 @@ var CRDTSnapshotSchema = import_zod.z.object({
|
|
|
1666
1704
|
ImageTransformationSchema,
|
|
1667
1705
|
ImageWatermarkSchema,
|
|
1668
1706
|
IngestionInputSchema,
|
|
1707
|
+
InternalComponentDependencySchema,
|
|
1669
1708
|
JsonGenerationSchema,
|
|
1670
1709
|
KenBurnsOptionsSchema,
|
|
1671
1710
|
LockClaimRequestSchema,
|