@pixerate/schemas 1.1.9 → 1.1.11

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 CHANGED
@@ -32,11 +32,15 @@ __export(index_exports, {
32
32
  AgentToolTypeSchema: () => AgentToolTypeSchema,
33
33
  AspectRatioSchema: () => AspectRatioSchema,
34
34
  CodeGenerationSchema: () => CodeGenerationSchema,
35
+ ComponentPropDefinitionSchema: () => ComponentPropDefinitionSchema,
36
+ ComponentSynthesisSchema: () => ComponentSynthesisSchema,
35
37
  FidelitySchema: () => FidelitySchema,
36
38
  ImageGenerationSchema: () => ImageGenerationSchema,
37
39
  ImageTransformationSchema: () => ImageTransformationSchema,
38
40
  JsonGenerationSchema: () => JsonGenerationSchema,
39
41
  QueueJobSchema: () => QueueJobSchema,
42
+ QueueJobStatusSchema: () => QueueJobStatusSchema,
43
+ QueueJobTypeSchema: () => QueueJobTypeSchema,
40
44
  ServiceClientSchema: () => ServiceClientSchema,
41
45
  VideoAnalysisCategorySchema: () => VideoAnalysisCategorySchema,
42
46
  VideoAnalysisSchema: () => VideoAnalysisSchema,
@@ -91,11 +95,26 @@ var CodeGenerationSchema = import_zod.z.object({
91
95
  prompt: import_zod.z.string(),
92
96
  language: import_zod.z.string()
93
97
  });
98
+ var ComponentPropDefinitionSchema = import_zod.z.object({
99
+ name: import_zod.z.string(),
100
+ type: import_zod.z.string(),
101
+ default: import_zod.z.string().optional(),
102
+ description: import_zod.z.string().optional()
103
+ });
104
+ var ComponentSynthesisSchema = import_zod.z.object({
105
+ svelte5: import_zod.z.string().describe("Synthesized Svelte 5 component implementation using runes"),
106
+ reactTsx: import_zod.z.string().describe("Synthesized React 19 TSX component implementation"),
107
+ webComponent: import_zod.z.string().describe("Synthesized WebComponent custom element implementation"),
108
+ usageDocs: import_zod.z.string().describe("Markdown documentation detailing props and usage patterns"),
109
+ propsSummary: import_zod.z.array(ComponentPropDefinitionSchema).describe("List of prop definitions and types"),
110
+ supportedThemes: import_zod.z.enum(["default", "light-and-dark"]).describe("Color theme support classification"),
111
+ previewHtml: import_zod.z.string().optional().describe("Self-contained interactive preview HTML harness")
112
+ });
94
113
  var JsonGenerationSchema = import_zod.z.object({
95
114
  prompt: import_zod.z.string(),
96
115
  schema: import_zod.z.record(import_zod.z.any()).optional()
97
116
  });
98
- var ServiceClientSchema = import_zod.z.enum(["pixerate", "slopmachine", "social", "surrealui", "surreal-ui", "symphonia", "unknown"]);
117
+ var ServiceClientSchema = import_zod.z.enum(["pixerate", "slopmachine", "social", "surrealui", "surreal-ui", "symphonia", "flair", "operative", "unknown"]);
99
118
  var AgentToolTypeSchema = import_zod.z.enum(["code_execution", "google_search", "url_context", "file_search", "custom"]);
100
119
  var AgentDocumentAttachmentSchema = import_zod.z.object({
101
120
  data: import_zod.z.string().optional(),
@@ -155,10 +174,12 @@ var AgentInteractionResultSchema = import_zod.z.object({
155
174
  createdAt: import_zod.z.string().optional(),
156
175
  updatedAt: import_zod.z.string().optional()
157
176
  });
177
+ var QueueJobTypeSchema = import_zod.z.enum(["text", "image", "video", "analysis", "audio", "agent", "code", "component"]);
178
+ var QueueJobStatusSchema = import_zod.z.enum(["queued", "processing", "completed", "failed"]);
158
179
  var QueueJobSchema = import_zod.z.object({
159
180
  id: import_zod.z.string(),
160
- type: import_zod.z.enum(["text", "image", "video", "analysis", "audio", "agent"]),
161
- status: import_zod.z.enum(["queued", "processing", "completed", "failed"]),
181
+ type: QueueJobTypeSchema,
182
+ status: QueueJobStatusSchema,
162
183
  client: ServiceClientSchema.optional(),
163
184
  payload: import_zod.z.record(import_zod.z.any()).optional(),
164
185
  createdAt: import_zod.z.any().optional(),
@@ -178,11 +199,15 @@ var QueueJobSchema = import_zod.z.object({
178
199
  AgentToolTypeSchema,
179
200
  AspectRatioSchema,
180
201
  CodeGenerationSchema,
202
+ ComponentPropDefinitionSchema,
203
+ ComponentSynthesisSchema,
181
204
  FidelitySchema,
182
205
  ImageGenerationSchema,
183
206
  ImageTransformationSchema,
184
207
  JsonGenerationSchema,
185
208
  QueueJobSchema,
209
+ QueueJobStatusSchema,
210
+ QueueJobTypeSchema,
186
211
  ServiceClientSchema,
187
212
  VideoAnalysisCategorySchema,
188
213
  VideoAnalysisSchema,
package/dist/index.d.cts CHANGED
@@ -70,6 +70,74 @@ declare const CodeGenerationSchema: z.ZodObject<{
70
70
  language: string;
71
71
  }>;
72
72
  type CodeGenerationPayload = z.infer<typeof CodeGenerationSchema>;
73
+ declare const ComponentPropDefinitionSchema: z.ZodObject<{
74
+ name: z.ZodString;
75
+ type: z.ZodString;
76
+ default: z.ZodOptional<z.ZodString>;
77
+ description: z.ZodOptional<z.ZodString>;
78
+ }, "strip", z.ZodTypeAny, {
79
+ type: string;
80
+ name: string;
81
+ default?: string | undefined;
82
+ description?: string | undefined;
83
+ }, {
84
+ type: string;
85
+ name: string;
86
+ default?: string | undefined;
87
+ description?: string | undefined;
88
+ }>;
89
+ type ComponentPropDefinition = z.infer<typeof ComponentPropDefinitionSchema>;
90
+ declare const ComponentSynthesisSchema: z.ZodObject<{
91
+ svelte5: z.ZodString;
92
+ reactTsx: z.ZodString;
93
+ webComponent: z.ZodString;
94
+ usageDocs: z.ZodString;
95
+ propsSummary: z.ZodArray<z.ZodObject<{
96
+ name: z.ZodString;
97
+ type: z.ZodString;
98
+ default: z.ZodOptional<z.ZodString>;
99
+ description: z.ZodOptional<z.ZodString>;
100
+ }, "strip", z.ZodTypeAny, {
101
+ type: string;
102
+ name: string;
103
+ default?: string | undefined;
104
+ description?: string | undefined;
105
+ }, {
106
+ type: string;
107
+ name: string;
108
+ default?: string | undefined;
109
+ description?: string | undefined;
110
+ }>, "many">;
111
+ supportedThemes: z.ZodEnum<["default", "light-and-dark"]>;
112
+ previewHtml: z.ZodOptional<z.ZodString>;
113
+ }, "strip", z.ZodTypeAny, {
114
+ svelte5: string;
115
+ reactTsx: string;
116
+ webComponent: string;
117
+ usageDocs: string;
118
+ propsSummary: {
119
+ type: string;
120
+ name: string;
121
+ default?: string | undefined;
122
+ description?: string | undefined;
123
+ }[];
124
+ supportedThemes: "default" | "light-and-dark";
125
+ previewHtml?: string | undefined;
126
+ }, {
127
+ svelte5: string;
128
+ reactTsx: string;
129
+ webComponent: string;
130
+ usageDocs: string;
131
+ propsSummary: {
132
+ type: string;
133
+ name: string;
134
+ default?: string | undefined;
135
+ description?: string | undefined;
136
+ }[];
137
+ supportedThemes: "default" | "light-and-dark";
138
+ previewHtml?: string | undefined;
139
+ }>;
140
+ type ComponentSynthesisPayload = z.infer<typeof ComponentSynthesisSchema>;
73
141
  declare const JsonGenerationSchema: z.ZodObject<{
74
142
  prompt: z.ZodString;
75
143
  schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
@@ -81,7 +149,7 @@ declare const JsonGenerationSchema: z.ZodObject<{
81
149
  schema?: Record<string, any> | undefined;
82
150
  }>;
83
151
  type JsonGenerationPayload = z.infer<typeof JsonGenerationSchema>;
84
- declare const ServiceClientSchema: z.ZodEnum<["pixerate", "slopmachine", "social", "surrealui", "surreal-ui", "symphonia", "unknown"]>;
152
+ declare const ServiceClientSchema: z.ZodEnum<["pixerate", "slopmachine", "social", "surrealui", "surreal-ui", "symphonia", "flair", "operative", "unknown"]>;
85
153
  type ServiceClient = z.infer<typeof ServiceClientSchema>;
86
154
  declare const AgentToolTypeSchema: z.ZodEnum<["code_execution", "google_search", "url_context", "file_search", "custom"]>;
87
155
  type AgentToolType = z.infer<typeof AgentToolTypeSchema>;
@@ -448,31 +516,35 @@ declare const AgentInteractionResultSchema: z.ZodObject<{
448
516
  updatedAt?: string | undefined;
449
517
  }>;
450
518
  type AgentInteractionResult = z.infer<typeof AgentInteractionResultSchema>;
519
+ declare const QueueJobTypeSchema: z.ZodEnum<["text", "image", "video", "analysis", "audio", "agent", "code", "component"]>;
520
+ type QueueJobType = z.infer<typeof QueueJobTypeSchema>;
521
+ declare const QueueJobStatusSchema: z.ZodEnum<["queued", "processing", "completed", "failed"]>;
522
+ type QueueJobStatus = z.infer<typeof QueueJobStatusSchema>;
451
523
  declare const QueueJobSchema: z.ZodObject<{
452
524
  id: z.ZodString;
453
- type: z.ZodEnum<["text", "image", "video", "analysis", "audio", "agent"]>;
525
+ type: z.ZodEnum<["text", "image", "video", "analysis", "audio", "agent", "code", "component"]>;
454
526
  status: z.ZodEnum<["queued", "processing", "completed", "failed"]>;
455
- client: z.ZodOptional<z.ZodEnum<["pixerate", "slopmachine", "social", "surrealui", "surreal-ui", "symphonia", "unknown"]>>;
527
+ client: z.ZodOptional<z.ZodEnum<["pixerate", "slopmachine", "social", "surrealui", "surreal-ui", "symphonia", "flair", "operative", "unknown"]>>;
456
528
  payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
457
529
  createdAt: z.ZodOptional<z.ZodAny>;
458
530
  updatedAt: z.ZodOptional<z.ZodAny>;
459
531
  }, "strip", z.ZodTypeAny, {
460
- type: "agent" | "text" | "image" | "video" | "analysis" | "audio";
532
+ type: "code" | "agent" | "text" | "image" | "video" | "analysis" | "audio" | "component";
461
533
  status: "queued" | "completed" | "failed" | "processing";
462
534
  id: string;
463
535
  createdAt?: any;
464
536
  updatedAt?: any;
465
- client?: "pixerate" | "slopmachine" | "social" | "surrealui" | "surreal-ui" | "symphonia" | "unknown" | undefined;
537
+ client?: "pixerate" | "slopmachine" | "social" | "surrealui" | "surreal-ui" | "symphonia" | "flair" | "operative" | "unknown" | undefined;
466
538
  payload?: Record<string, any> | undefined;
467
539
  }, {
468
- type: "agent" | "text" | "image" | "video" | "analysis" | "audio";
540
+ type: "code" | "agent" | "text" | "image" | "video" | "analysis" | "audio" | "component";
469
541
  status: "queued" | "completed" | "failed" | "processing";
470
542
  id: string;
471
543
  createdAt?: any;
472
544
  updatedAt?: any;
473
- client?: "pixerate" | "slopmachine" | "social" | "surrealui" | "surreal-ui" | "symphonia" | "unknown" | undefined;
545
+ client?: "pixerate" | "slopmachine" | "social" | "surrealui" | "surreal-ui" | "symphonia" | "flair" | "operative" | "unknown" | undefined;
474
546
  payload?: Record<string, any> | undefined;
475
547
  }>;
476
548
  type QueueJob = z.infer<typeof QueueJobSchema>;
477
549
 
478
- export { type AgentConfig, AgentConfigSchema, type AgentDocumentAttachment, AgentDocumentAttachmentSchema, type AgentEnvironment, AgentEnvironmentSchema, type AgentInteractionRequest, AgentInteractionRequestSchema, type AgentInteractionResult, AgentInteractionResultSchema, type AgentInteractionStatus, AgentInteractionStatusSchema, type AgentNetworkAllowlistRule, AgentNetworkAllowlistRuleSchema, type AgentNetworkTransformRule, AgentNetworkTransformRuleSchema, type AgentTool, AgentToolSchema, type AgentToolType, AgentToolTypeSchema, type AspectRatio, AspectRatioSchema, type CodeGenerationPayload, CodeGenerationSchema, type Fidelity, FidelitySchema, type ImageGenerationPayload, ImageGenerationSchema, type ImageTransformationPayload, ImageTransformationSchema, type JsonGenerationPayload, JsonGenerationSchema, type QueueJob, QueueJobSchema, type ServiceClient, ServiceClientSchema, type VideoAnalysisCategory, VideoAnalysisCategorySchema, type VideoAnalysisPayload, VideoAnalysisSchema, type VideoAspectRatio, VideoAspectRatioSchema };
550
+ export { type AgentConfig, AgentConfigSchema, type AgentDocumentAttachment, AgentDocumentAttachmentSchema, type AgentEnvironment, AgentEnvironmentSchema, type AgentInteractionRequest, AgentInteractionRequestSchema, type AgentInteractionResult, AgentInteractionResultSchema, type AgentInteractionStatus, AgentInteractionStatusSchema, type AgentNetworkAllowlistRule, AgentNetworkAllowlistRuleSchema, type AgentNetworkTransformRule, AgentNetworkTransformRuleSchema, type AgentTool, AgentToolSchema, type AgentToolType, AgentToolTypeSchema, type AspectRatio, AspectRatioSchema, type CodeGenerationPayload, CodeGenerationSchema, type ComponentPropDefinition, ComponentPropDefinitionSchema, type ComponentSynthesisPayload, ComponentSynthesisSchema, type Fidelity, FidelitySchema, type ImageGenerationPayload, ImageGenerationSchema, type ImageTransformationPayload, ImageTransformationSchema, type JsonGenerationPayload, JsonGenerationSchema, type QueueJob, QueueJobSchema, type QueueJobStatus, QueueJobStatusSchema, type QueueJobType, QueueJobTypeSchema, type ServiceClient, ServiceClientSchema, type VideoAnalysisCategory, VideoAnalysisCategorySchema, type VideoAnalysisPayload, VideoAnalysisSchema, type VideoAspectRatio, VideoAspectRatioSchema };
package/dist/index.d.ts CHANGED
@@ -70,6 +70,74 @@ declare const CodeGenerationSchema: z.ZodObject<{
70
70
  language: string;
71
71
  }>;
72
72
  type CodeGenerationPayload = z.infer<typeof CodeGenerationSchema>;
73
+ declare const ComponentPropDefinitionSchema: z.ZodObject<{
74
+ name: z.ZodString;
75
+ type: z.ZodString;
76
+ default: z.ZodOptional<z.ZodString>;
77
+ description: z.ZodOptional<z.ZodString>;
78
+ }, "strip", z.ZodTypeAny, {
79
+ type: string;
80
+ name: string;
81
+ default?: string | undefined;
82
+ description?: string | undefined;
83
+ }, {
84
+ type: string;
85
+ name: string;
86
+ default?: string | undefined;
87
+ description?: string | undefined;
88
+ }>;
89
+ type ComponentPropDefinition = z.infer<typeof ComponentPropDefinitionSchema>;
90
+ declare const ComponentSynthesisSchema: z.ZodObject<{
91
+ svelte5: z.ZodString;
92
+ reactTsx: z.ZodString;
93
+ webComponent: z.ZodString;
94
+ usageDocs: z.ZodString;
95
+ propsSummary: z.ZodArray<z.ZodObject<{
96
+ name: z.ZodString;
97
+ type: z.ZodString;
98
+ default: z.ZodOptional<z.ZodString>;
99
+ description: z.ZodOptional<z.ZodString>;
100
+ }, "strip", z.ZodTypeAny, {
101
+ type: string;
102
+ name: string;
103
+ default?: string | undefined;
104
+ description?: string | undefined;
105
+ }, {
106
+ type: string;
107
+ name: string;
108
+ default?: string | undefined;
109
+ description?: string | undefined;
110
+ }>, "many">;
111
+ supportedThemes: z.ZodEnum<["default", "light-and-dark"]>;
112
+ previewHtml: z.ZodOptional<z.ZodString>;
113
+ }, "strip", z.ZodTypeAny, {
114
+ svelte5: string;
115
+ reactTsx: string;
116
+ webComponent: string;
117
+ usageDocs: string;
118
+ propsSummary: {
119
+ type: string;
120
+ name: string;
121
+ default?: string | undefined;
122
+ description?: string | undefined;
123
+ }[];
124
+ supportedThemes: "default" | "light-and-dark";
125
+ previewHtml?: string | undefined;
126
+ }, {
127
+ svelte5: string;
128
+ reactTsx: string;
129
+ webComponent: string;
130
+ usageDocs: string;
131
+ propsSummary: {
132
+ type: string;
133
+ name: string;
134
+ default?: string | undefined;
135
+ description?: string | undefined;
136
+ }[];
137
+ supportedThemes: "default" | "light-and-dark";
138
+ previewHtml?: string | undefined;
139
+ }>;
140
+ type ComponentSynthesisPayload = z.infer<typeof ComponentSynthesisSchema>;
73
141
  declare const JsonGenerationSchema: z.ZodObject<{
74
142
  prompt: z.ZodString;
75
143
  schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
@@ -81,7 +149,7 @@ declare const JsonGenerationSchema: z.ZodObject<{
81
149
  schema?: Record<string, any> | undefined;
82
150
  }>;
83
151
  type JsonGenerationPayload = z.infer<typeof JsonGenerationSchema>;
84
- declare const ServiceClientSchema: z.ZodEnum<["pixerate", "slopmachine", "social", "surrealui", "surreal-ui", "symphonia", "unknown"]>;
152
+ declare const ServiceClientSchema: z.ZodEnum<["pixerate", "slopmachine", "social", "surrealui", "surreal-ui", "symphonia", "flair", "operative", "unknown"]>;
85
153
  type ServiceClient = z.infer<typeof ServiceClientSchema>;
86
154
  declare const AgentToolTypeSchema: z.ZodEnum<["code_execution", "google_search", "url_context", "file_search", "custom"]>;
87
155
  type AgentToolType = z.infer<typeof AgentToolTypeSchema>;
@@ -448,31 +516,35 @@ declare const AgentInteractionResultSchema: z.ZodObject<{
448
516
  updatedAt?: string | undefined;
449
517
  }>;
450
518
  type AgentInteractionResult = z.infer<typeof AgentInteractionResultSchema>;
519
+ declare const QueueJobTypeSchema: z.ZodEnum<["text", "image", "video", "analysis", "audio", "agent", "code", "component"]>;
520
+ type QueueJobType = z.infer<typeof QueueJobTypeSchema>;
521
+ declare const QueueJobStatusSchema: z.ZodEnum<["queued", "processing", "completed", "failed"]>;
522
+ type QueueJobStatus = z.infer<typeof QueueJobStatusSchema>;
451
523
  declare const QueueJobSchema: z.ZodObject<{
452
524
  id: z.ZodString;
453
- type: z.ZodEnum<["text", "image", "video", "analysis", "audio", "agent"]>;
525
+ type: z.ZodEnum<["text", "image", "video", "analysis", "audio", "agent", "code", "component"]>;
454
526
  status: z.ZodEnum<["queued", "processing", "completed", "failed"]>;
455
- client: z.ZodOptional<z.ZodEnum<["pixerate", "slopmachine", "social", "surrealui", "surreal-ui", "symphonia", "unknown"]>>;
527
+ client: z.ZodOptional<z.ZodEnum<["pixerate", "slopmachine", "social", "surrealui", "surreal-ui", "symphonia", "flair", "operative", "unknown"]>>;
456
528
  payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
457
529
  createdAt: z.ZodOptional<z.ZodAny>;
458
530
  updatedAt: z.ZodOptional<z.ZodAny>;
459
531
  }, "strip", z.ZodTypeAny, {
460
- type: "agent" | "text" | "image" | "video" | "analysis" | "audio";
532
+ type: "code" | "agent" | "text" | "image" | "video" | "analysis" | "audio" | "component";
461
533
  status: "queued" | "completed" | "failed" | "processing";
462
534
  id: string;
463
535
  createdAt?: any;
464
536
  updatedAt?: any;
465
- client?: "pixerate" | "slopmachine" | "social" | "surrealui" | "surreal-ui" | "symphonia" | "unknown" | undefined;
537
+ client?: "pixerate" | "slopmachine" | "social" | "surrealui" | "surreal-ui" | "symphonia" | "flair" | "operative" | "unknown" | undefined;
466
538
  payload?: Record<string, any> | undefined;
467
539
  }, {
468
- type: "agent" | "text" | "image" | "video" | "analysis" | "audio";
540
+ type: "code" | "agent" | "text" | "image" | "video" | "analysis" | "audio" | "component";
469
541
  status: "queued" | "completed" | "failed" | "processing";
470
542
  id: string;
471
543
  createdAt?: any;
472
544
  updatedAt?: any;
473
- client?: "pixerate" | "slopmachine" | "social" | "surrealui" | "surreal-ui" | "symphonia" | "unknown" | undefined;
545
+ client?: "pixerate" | "slopmachine" | "social" | "surrealui" | "surreal-ui" | "symphonia" | "flair" | "operative" | "unknown" | undefined;
474
546
  payload?: Record<string, any> | undefined;
475
547
  }>;
476
548
  type QueueJob = z.infer<typeof QueueJobSchema>;
477
549
 
478
- export { type AgentConfig, AgentConfigSchema, type AgentDocumentAttachment, AgentDocumentAttachmentSchema, type AgentEnvironment, AgentEnvironmentSchema, type AgentInteractionRequest, AgentInteractionRequestSchema, type AgentInteractionResult, AgentInteractionResultSchema, type AgentInteractionStatus, AgentInteractionStatusSchema, type AgentNetworkAllowlistRule, AgentNetworkAllowlistRuleSchema, type AgentNetworkTransformRule, AgentNetworkTransformRuleSchema, type AgentTool, AgentToolSchema, type AgentToolType, AgentToolTypeSchema, type AspectRatio, AspectRatioSchema, type CodeGenerationPayload, CodeGenerationSchema, type Fidelity, FidelitySchema, type ImageGenerationPayload, ImageGenerationSchema, type ImageTransformationPayload, ImageTransformationSchema, type JsonGenerationPayload, JsonGenerationSchema, type QueueJob, QueueJobSchema, type ServiceClient, ServiceClientSchema, type VideoAnalysisCategory, VideoAnalysisCategorySchema, type VideoAnalysisPayload, VideoAnalysisSchema, type VideoAspectRatio, VideoAspectRatioSchema };
550
+ export { type AgentConfig, AgentConfigSchema, type AgentDocumentAttachment, AgentDocumentAttachmentSchema, type AgentEnvironment, AgentEnvironmentSchema, type AgentInteractionRequest, AgentInteractionRequestSchema, type AgentInteractionResult, AgentInteractionResultSchema, type AgentInteractionStatus, AgentInteractionStatusSchema, type AgentNetworkAllowlistRule, AgentNetworkAllowlistRuleSchema, type AgentNetworkTransformRule, AgentNetworkTransformRuleSchema, type AgentTool, AgentToolSchema, type AgentToolType, AgentToolTypeSchema, type AspectRatio, AspectRatioSchema, type CodeGenerationPayload, CodeGenerationSchema, type ComponentPropDefinition, ComponentPropDefinitionSchema, type ComponentSynthesisPayload, ComponentSynthesisSchema, type Fidelity, FidelitySchema, type ImageGenerationPayload, ImageGenerationSchema, type ImageTransformationPayload, ImageTransformationSchema, type JsonGenerationPayload, JsonGenerationSchema, type QueueJob, QueueJobSchema, type QueueJobStatus, QueueJobStatusSchema, type QueueJobType, QueueJobTypeSchema, type ServiceClient, ServiceClientSchema, type VideoAnalysisCategory, VideoAnalysisCategorySchema, type VideoAnalysisPayload, VideoAnalysisSchema, type VideoAspectRatio, VideoAspectRatioSchema };
package/dist/index.js CHANGED
@@ -47,11 +47,26 @@ var CodeGenerationSchema = z.object({
47
47
  prompt: z.string(),
48
48
  language: z.string()
49
49
  });
50
+ var ComponentPropDefinitionSchema = z.object({
51
+ name: z.string(),
52
+ type: z.string(),
53
+ default: z.string().optional(),
54
+ description: z.string().optional()
55
+ });
56
+ var ComponentSynthesisSchema = z.object({
57
+ svelte5: z.string().describe("Synthesized Svelte 5 component implementation using runes"),
58
+ reactTsx: z.string().describe("Synthesized React 19 TSX component implementation"),
59
+ webComponent: z.string().describe("Synthesized WebComponent custom element implementation"),
60
+ usageDocs: z.string().describe("Markdown documentation detailing props and usage patterns"),
61
+ propsSummary: z.array(ComponentPropDefinitionSchema).describe("List of prop definitions and types"),
62
+ supportedThemes: z.enum(["default", "light-and-dark"]).describe("Color theme support classification"),
63
+ previewHtml: z.string().optional().describe("Self-contained interactive preview HTML harness")
64
+ });
50
65
  var JsonGenerationSchema = z.object({
51
66
  prompt: z.string(),
52
67
  schema: z.record(z.any()).optional()
53
68
  });
54
- var ServiceClientSchema = z.enum(["pixerate", "slopmachine", "social", "surrealui", "surreal-ui", "symphonia", "unknown"]);
69
+ var ServiceClientSchema = z.enum(["pixerate", "slopmachine", "social", "surrealui", "surreal-ui", "symphonia", "flair", "operative", "unknown"]);
55
70
  var AgentToolTypeSchema = z.enum(["code_execution", "google_search", "url_context", "file_search", "custom"]);
56
71
  var AgentDocumentAttachmentSchema = z.object({
57
72
  data: z.string().optional(),
@@ -111,10 +126,12 @@ var AgentInteractionResultSchema = z.object({
111
126
  createdAt: z.string().optional(),
112
127
  updatedAt: z.string().optional()
113
128
  });
129
+ var QueueJobTypeSchema = z.enum(["text", "image", "video", "analysis", "audio", "agent", "code", "component"]);
130
+ var QueueJobStatusSchema = z.enum(["queued", "processing", "completed", "failed"]);
114
131
  var QueueJobSchema = z.object({
115
132
  id: z.string(),
116
- type: z.enum(["text", "image", "video", "analysis", "audio", "agent"]),
117
- status: z.enum(["queued", "processing", "completed", "failed"]),
133
+ type: QueueJobTypeSchema,
134
+ status: QueueJobStatusSchema,
118
135
  client: ServiceClientSchema.optional(),
119
136
  payload: z.record(z.any()).optional(),
120
137
  createdAt: z.any().optional(),
@@ -133,11 +150,15 @@ export {
133
150
  AgentToolTypeSchema,
134
151
  AspectRatioSchema,
135
152
  CodeGenerationSchema,
153
+ ComponentPropDefinitionSchema,
154
+ ComponentSynthesisSchema,
136
155
  FidelitySchema,
137
156
  ImageGenerationSchema,
138
157
  ImageTransformationSchema,
139
158
  JsonGenerationSchema,
140
159
  QueueJobSchema,
160
+ QueueJobStatusSchema,
161
+ QueueJobTypeSchema,
141
162
  ServiceClientSchema,
142
163
  VideoAnalysisCategorySchema,
143
164
  VideoAnalysisSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pixerate/schemas",
3
- "version": "1.1.9",
3
+ "version": "1.1.11",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",