@pixerate/schemas 1.1.5 → 1.1.7
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 +13 -1
- package/dist/index.d.cts +26 -4
- package/dist/index.d.ts +26 -4
- package/dist/index.js +11 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -21,9 +21,11 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
21
21
|
var index_exports = {};
|
|
22
22
|
__export(index_exports, {
|
|
23
23
|
AspectRatioSchema: () => AspectRatioSchema,
|
|
24
|
+
CodeGenerationSchema: () => CodeGenerationSchema,
|
|
24
25
|
FidelitySchema: () => FidelitySchema,
|
|
25
26
|
ImageGenerationSchema: () => ImageGenerationSchema,
|
|
26
27
|
ImageTransformationSchema: () => ImageTransformationSchema,
|
|
28
|
+
JsonGenerationSchema: () => JsonGenerationSchema,
|
|
27
29
|
QueueJobSchema: () => QueueJobSchema,
|
|
28
30
|
ServiceClientSchema: () => ServiceClientSchema,
|
|
29
31
|
VideoAnalysisCategorySchema: () => VideoAnalysisCategorySchema,
|
|
@@ -75,10 +77,18 @@ var VideoAnalysisSchema = import_zod.z.object({
|
|
|
75
77
|
category: VideoAnalysisCategorySchema,
|
|
76
78
|
fidelity: FidelitySchema
|
|
77
79
|
});
|
|
80
|
+
var CodeGenerationSchema = import_zod.z.object({
|
|
81
|
+
prompt: import_zod.z.string(),
|
|
82
|
+
language: import_zod.z.string()
|
|
83
|
+
});
|
|
84
|
+
var JsonGenerationSchema = import_zod.z.object({
|
|
85
|
+
prompt: import_zod.z.string(),
|
|
86
|
+
schema: import_zod.z.record(import_zod.z.any()).optional()
|
|
87
|
+
});
|
|
78
88
|
var ServiceClientSchema = import_zod.z.enum(["pixerate", "slopmachine", "social", "surrealui", "surreal-ui", "unknown"]);
|
|
79
89
|
var QueueJobSchema = import_zod.z.object({
|
|
80
90
|
id: import_zod.z.string(),
|
|
81
|
-
type: import_zod.z.enum(["text", "image", "video", "analysis"]),
|
|
91
|
+
type: import_zod.z.enum(["text", "image", "video", "analysis", "audio"]),
|
|
82
92
|
status: import_zod.z.enum(["queued", "processing", "completed", "failed"]),
|
|
83
93
|
client: ServiceClientSchema.optional(),
|
|
84
94
|
payload: import_zod.z.record(import_zod.z.any()).optional(),
|
|
@@ -88,9 +98,11 @@ var QueueJobSchema = import_zod.z.object({
|
|
|
88
98
|
// Annotate the CommonJS export names for ESM import in node:
|
|
89
99
|
0 && (module.exports = {
|
|
90
100
|
AspectRatioSchema,
|
|
101
|
+
CodeGenerationSchema,
|
|
91
102
|
FidelitySchema,
|
|
92
103
|
ImageGenerationSchema,
|
|
93
104
|
ImageTransformationSchema,
|
|
105
|
+
JsonGenerationSchema,
|
|
94
106
|
QueueJobSchema,
|
|
95
107
|
ServiceClientSchema,
|
|
96
108
|
VideoAnalysisCategorySchema,
|
package/dist/index.d.cts
CHANGED
|
@@ -59,18 +59,40 @@ declare const VideoAnalysisSchema: z.ZodObject<{
|
|
|
59
59
|
category: "Scenes" | "Environments" | "Things" | "Creatures" | "People" | "Clothes" | "Shapes" | "Effects" | "Uploads";
|
|
60
60
|
}>;
|
|
61
61
|
type VideoAnalysisPayload = z.infer<typeof VideoAnalysisSchema>;
|
|
62
|
+
declare const CodeGenerationSchema: z.ZodObject<{
|
|
63
|
+
prompt: z.ZodString;
|
|
64
|
+
language: z.ZodString;
|
|
65
|
+
}, "strip", z.ZodTypeAny, {
|
|
66
|
+
prompt: string;
|
|
67
|
+
language: string;
|
|
68
|
+
}, {
|
|
69
|
+
prompt: string;
|
|
70
|
+
language: string;
|
|
71
|
+
}>;
|
|
72
|
+
type CodeGenerationPayload = z.infer<typeof CodeGenerationSchema>;
|
|
73
|
+
declare const JsonGenerationSchema: z.ZodObject<{
|
|
74
|
+
prompt: z.ZodString;
|
|
75
|
+
schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
76
|
+
}, "strip", z.ZodTypeAny, {
|
|
77
|
+
prompt: string;
|
|
78
|
+
schema?: Record<string, any> | undefined;
|
|
79
|
+
}, {
|
|
80
|
+
prompt: string;
|
|
81
|
+
schema?: Record<string, any> | undefined;
|
|
82
|
+
}>;
|
|
83
|
+
type JsonGenerationPayload = z.infer<typeof JsonGenerationSchema>;
|
|
62
84
|
declare const ServiceClientSchema: z.ZodEnum<["pixerate", "slopmachine", "social", "surrealui", "surreal-ui", "unknown"]>;
|
|
63
85
|
type ServiceClient = z.infer<typeof ServiceClientSchema>;
|
|
64
86
|
declare const QueueJobSchema: z.ZodObject<{
|
|
65
87
|
id: z.ZodString;
|
|
66
|
-
type: z.ZodEnum<["text", "image", "video", "analysis"]>;
|
|
88
|
+
type: z.ZodEnum<["text", "image", "video", "analysis", "audio"]>;
|
|
67
89
|
status: z.ZodEnum<["queued", "processing", "completed", "failed"]>;
|
|
68
90
|
client: z.ZodOptional<z.ZodEnum<["pixerate", "slopmachine", "social", "surrealui", "surreal-ui", "unknown"]>>;
|
|
69
91
|
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
70
92
|
createdAt: z.ZodOptional<z.ZodAny>;
|
|
71
93
|
updatedAt: z.ZodOptional<z.ZodAny>;
|
|
72
94
|
}, "strip", z.ZodTypeAny, {
|
|
73
|
-
type: "text" | "image" | "video" | "analysis";
|
|
95
|
+
type: "text" | "image" | "video" | "analysis" | "audio";
|
|
74
96
|
status: "queued" | "processing" | "completed" | "failed";
|
|
75
97
|
id: string;
|
|
76
98
|
client?: "pixerate" | "slopmachine" | "social" | "surrealui" | "surreal-ui" | "unknown" | undefined;
|
|
@@ -78,7 +100,7 @@ declare const QueueJobSchema: z.ZodObject<{
|
|
|
78
100
|
createdAt?: any;
|
|
79
101
|
updatedAt?: any;
|
|
80
102
|
}, {
|
|
81
|
-
type: "text" | "image" | "video" | "analysis";
|
|
103
|
+
type: "text" | "image" | "video" | "analysis" | "audio";
|
|
82
104
|
status: "queued" | "processing" | "completed" | "failed";
|
|
83
105
|
id: string;
|
|
84
106
|
client?: "pixerate" | "slopmachine" | "social" | "surrealui" | "surreal-ui" | "unknown" | undefined;
|
|
@@ -88,4 +110,4 @@ declare const QueueJobSchema: z.ZodObject<{
|
|
|
88
110
|
}>;
|
|
89
111
|
type QueueJob = z.infer<typeof QueueJobSchema>;
|
|
90
112
|
|
|
91
|
-
export { type AspectRatio, AspectRatioSchema, type Fidelity, FidelitySchema, type ImageGenerationPayload, ImageGenerationSchema, type ImageTransformationPayload, ImageTransformationSchema, type QueueJob, QueueJobSchema, type ServiceClient, ServiceClientSchema, type VideoAnalysisCategory, VideoAnalysisCategorySchema, type VideoAnalysisPayload, VideoAnalysisSchema, type VideoAspectRatio, VideoAspectRatioSchema };
|
|
113
|
+
export { 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -59,18 +59,40 @@ declare const VideoAnalysisSchema: z.ZodObject<{
|
|
|
59
59
|
category: "Scenes" | "Environments" | "Things" | "Creatures" | "People" | "Clothes" | "Shapes" | "Effects" | "Uploads";
|
|
60
60
|
}>;
|
|
61
61
|
type VideoAnalysisPayload = z.infer<typeof VideoAnalysisSchema>;
|
|
62
|
+
declare const CodeGenerationSchema: z.ZodObject<{
|
|
63
|
+
prompt: z.ZodString;
|
|
64
|
+
language: z.ZodString;
|
|
65
|
+
}, "strip", z.ZodTypeAny, {
|
|
66
|
+
prompt: string;
|
|
67
|
+
language: string;
|
|
68
|
+
}, {
|
|
69
|
+
prompt: string;
|
|
70
|
+
language: string;
|
|
71
|
+
}>;
|
|
72
|
+
type CodeGenerationPayload = z.infer<typeof CodeGenerationSchema>;
|
|
73
|
+
declare const JsonGenerationSchema: z.ZodObject<{
|
|
74
|
+
prompt: z.ZodString;
|
|
75
|
+
schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
76
|
+
}, "strip", z.ZodTypeAny, {
|
|
77
|
+
prompt: string;
|
|
78
|
+
schema?: Record<string, any> | undefined;
|
|
79
|
+
}, {
|
|
80
|
+
prompt: string;
|
|
81
|
+
schema?: Record<string, any> | undefined;
|
|
82
|
+
}>;
|
|
83
|
+
type JsonGenerationPayload = z.infer<typeof JsonGenerationSchema>;
|
|
62
84
|
declare const ServiceClientSchema: z.ZodEnum<["pixerate", "slopmachine", "social", "surrealui", "surreal-ui", "unknown"]>;
|
|
63
85
|
type ServiceClient = z.infer<typeof ServiceClientSchema>;
|
|
64
86
|
declare const QueueJobSchema: z.ZodObject<{
|
|
65
87
|
id: z.ZodString;
|
|
66
|
-
type: z.ZodEnum<["text", "image", "video", "analysis"]>;
|
|
88
|
+
type: z.ZodEnum<["text", "image", "video", "analysis", "audio"]>;
|
|
67
89
|
status: z.ZodEnum<["queued", "processing", "completed", "failed"]>;
|
|
68
90
|
client: z.ZodOptional<z.ZodEnum<["pixerate", "slopmachine", "social", "surrealui", "surreal-ui", "unknown"]>>;
|
|
69
91
|
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
70
92
|
createdAt: z.ZodOptional<z.ZodAny>;
|
|
71
93
|
updatedAt: z.ZodOptional<z.ZodAny>;
|
|
72
94
|
}, "strip", z.ZodTypeAny, {
|
|
73
|
-
type: "text" | "image" | "video" | "analysis";
|
|
95
|
+
type: "text" | "image" | "video" | "analysis" | "audio";
|
|
74
96
|
status: "queued" | "processing" | "completed" | "failed";
|
|
75
97
|
id: string;
|
|
76
98
|
client?: "pixerate" | "slopmachine" | "social" | "surrealui" | "surreal-ui" | "unknown" | undefined;
|
|
@@ -78,7 +100,7 @@ declare const QueueJobSchema: z.ZodObject<{
|
|
|
78
100
|
createdAt?: any;
|
|
79
101
|
updatedAt?: any;
|
|
80
102
|
}, {
|
|
81
|
-
type: "text" | "image" | "video" | "analysis";
|
|
103
|
+
type: "text" | "image" | "video" | "analysis" | "audio";
|
|
82
104
|
status: "queued" | "processing" | "completed" | "failed";
|
|
83
105
|
id: string;
|
|
84
106
|
client?: "pixerate" | "slopmachine" | "social" | "surrealui" | "surreal-ui" | "unknown" | undefined;
|
|
@@ -88,4 +110,4 @@ declare const QueueJobSchema: z.ZodObject<{
|
|
|
88
110
|
}>;
|
|
89
111
|
type QueueJob = z.infer<typeof QueueJobSchema>;
|
|
90
112
|
|
|
91
|
-
export { type AspectRatio, AspectRatioSchema, type Fidelity, FidelitySchema, type ImageGenerationPayload, ImageGenerationSchema, type ImageTransformationPayload, ImageTransformationSchema, type QueueJob, QueueJobSchema, type ServiceClient, ServiceClientSchema, type VideoAnalysisCategory, VideoAnalysisCategorySchema, type VideoAnalysisPayload, VideoAnalysisSchema, type VideoAspectRatio, VideoAspectRatioSchema };
|
|
113
|
+
export { 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 };
|
package/dist/index.js
CHANGED
|
@@ -43,10 +43,18 @@ var VideoAnalysisSchema = z.object({
|
|
|
43
43
|
category: VideoAnalysisCategorySchema,
|
|
44
44
|
fidelity: FidelitySchema
|
|
45
45
|
});
|
|
46
|
+
var CodeGenerationSchema = z.object({
|
|
47
|
+
prompt: z.string(),
|
|
48
|
+
language: z.string()
|
|
49
|
+
});
|
|
50
|
+
var JsonGenerationSchema = z.object({
|
|
51
|
+
prompt: z.string(),
|
|
52
|
+
schema: z.record(z.any()).optional()
|
|
53
|
+
});
|
|
46
54
|
var ServiceClientSchema = z.enum(["pixerate", "slopmachine", "social", "surrealui", "surreal-ui", "unknown"]);
|
|
47
55
|
var QueueJobSchema = z.object({
|
|
48
56
|
id: z.string(),
|
|
49
|
-
type: z.enum(["text", "image", "video", "analysis"]),
|
|
57
|
+
type: z.enum(["text", "image", "video", "analysis", "audio"]),
|
|
50
58
|
status: z.enum(["queued", "processing", "completed", "failed"]),
|
|
51
59
|
client: ServiceClientSchema.optional(),
|
|
52
60
|
payload: z.record(z.any()).optional(),
|
|
@@ -55,9 +63,11 @@ var QueueJobSchema = z.object({
|
|
|
55
63
|
});
|
|
56
64
|
export {
|
|
57
65
|
AspectRatioSchema,
|
|
66
|
+
CodeGenerationSchema,
|
|
58
67
|
FidelitySchema,
|
|
59
68
|
ImageGenerationSchema,
|
|
60
69
|
ImageTransformationSchema,
|
|
70
|
+
JsonGenerationSchema,
|
|
61
71
|
QueueJobSchema,
|
|
62
72
|
ServiceClientSchema,
|
|
63
73
|
VideoAnalysisCategorySchema,
|