@pixerate/schemas 1.0.1 → 1.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.
package/README.md CHANGED
@@ -29,10 +29,15 @@ src/
29
29
  - **Schema**: `VideoAspectRatioSchema`
30
30
  - **Type**: `VideoAspectRatio` (`"9:16" | "16:9"`)
31
31
 
32
- ### 4. Generation & Transformation Payloads
32
+ ### 4. Service Client
33
+ - **Schema**: `ServiceClientSchema`
34
+ - **Type**: `ServiceClient` (`"pixerate" | "slopmachine" | "social" | "unknown"`)
35
+
36
+ ### 5. Generation & Transformation Payloads
33
37
  - **Image Generation**: `ImageGenerationPayload` (`ImageGenerationSchema`)
34
38
  - **Image Transformation**: `ImageTransformationPayload` (`ImageTransformationSchema`)
35
39
  - **Video Analysis**: `VideoAnalysisPayload` (`VideoAnalysisSchema`)
40
+ - **Queue / Media Jobs**: `QueueJob` (`QueueJobSchema`, includes optional `client: ServiceClient`)
36
41
 
37
42
  ---
38
43
 
package/dist/index.cjs CHANGED
@@ -25,6 +25,7 @@ __export(index_exports, {
25
25
  ImageGenerationSchema: () => ImageGenerationSchema,
26
26
  ImageTransformationSchema: () => ImageTransformationSchema,
27
27
  QueueJobSchema: () => QueueJobSchema,
28
+ ServiceClientSchema: () => ServiceClientSchema,
28
29
  VideoAnalysisCategorySchema: () => VideoAnalysisCategorySchema,
29
30
  VideoAnalysisSchema: () => VideoAnalysisSchema,
30
31
  VideoAspectRatioSchema: () => VideoAspectRatioSchema
@@ -74,10 +75,12 @@ var VideoAnalysisSchema = import_zod.z.object({
74
75
  category: VideoAnalysisCategorySchema,
75
76
  fidelity: FidelitySchema
76
77
  });
78
+ var ServiceClientSchema = import_zod.z.enum(["pixerate", "slopmachine", "social", "unknown"]);
77
79
  var QueueJobSchema = import_zod.z.object({
78
80
  id: import_zod.z.string(),
79
81
  type: import_zod.z.enum(["text", "image", "video", "analysis"]),
80
82
  status: import_zod.z.enum(["queued", "processing", "completed", "failed"]),
83
+ client: ServiceClientSchema.optional(),
81
84
  payload: import_zod.z.record(import_zod.z.any()).optional(),
82
85
  createdAt: import_zod.z.any().optional(),
83
86
  updatedAt: import_zod.z.any().optional()
@@ -89,6 +92,7 @@ var QueueJobSchema = import_zod.z.object({
89
92
  ImageGenerationSchema,
90
93
  ImageTransformationSchema,
91
94
  QueueJobSchema,
95
+ ServiceClientSchema,
92
96
  VideoAnalysisCategorySchema,
93
97
  VideoAnalysisSchema,
94
98
  VideoAspectRatioSchema
package/dist/index.d.cts CHANGED
@@ -59,10 +59,13 @@ 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 ServiceClientSchema: z.ZodEnum<["pixerate", "slopmachine", "social", "unknown"]>;
63
+ type ServiceClient = z.infer<typeof ServiceClientSchema>;
62
64
  declare const QueueJobSchema: z.ZodObject<{
63
65
  id: z.ZodString;
64
66
  type: z.ZodEnum<["text", "image", "video", "analysis"]>;
65
67
  status: z.ZodEnum<["queued", "processing", "completed", "failed"]>;
68
+ client: z.ZodOptional<z.ZodEnum<["pixerate", "slopmachine", "social", "unknown"]>>;
66
69
  payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
67
70
  createdAt: z.ZodOptional<z.ZodAny>;
68
71
  updatedAt: z.ZodOptional<z.ZodAny>;
@@ -70,6 +73,7 @@ declare const QueueJobSchema: z.ZodObject<{
70
73
  type: "text" | "image" | "video" | "analysis";
71
74
  status: "queued" | "processing" | "completed" | "failed";
72
75
  id: string;
76
+ client?: "pixerate" | "slopmachine" | "social" | "unknown" | undefined;
73
77
  payload?: Record<string, any> | undefined;
74
78
  createdAt?: any;
75
79
  updatedAt?: any;
@@ -77,10 +81,11 @@ declare const QueueJobSchema: z.ZodObject<{
77
81
  type: "text" | "image" | "video" | "analysis";
78
82
  status: "queued" | "processing" | "completed" | "failed";
79
83
  id: string;
84
+ client?: "pixerate" | "slopmachine" | "social" | "unknown" | undefined;
80
85
  payload?: Record<string, any> | undefined;
81
86
  createdAt?: any;
82
87
  updatedAt?: any;
83
88
  }>;
84
89
  type QueueJob = z.infer<typeof QueueJobSchema>;
85
90
 
86
- export { type AspectRatio, AspectRatioSchema, type Fidelity, FidelitySchema, type ImageGenerationPayload, ImageGenerationSchema, type ImageTransformationPayload, ImageTransformationSchema, type QueueJob, QueueJobSchema, type VideoAnalysisCategory, VideoAnalysisCategorySchema, type VideoAnalysisPayload, VideoAnalysisSchema, type VideoAspectRatio, VideoAspectRatioSchema };
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 };
package/dist/index.d.ts CHANGED
@@ -59,10 +59,13 @@ 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 ServiceClientSchema: z.ZodEnum<["pixerate", "slopmachine", "social", "unknown"]>;
63
+ type ServiceClient = z.infer<typeof ServiceClientSchema>;
62
64
  declare const QueueJobSchema: z.ZodObject<{
63
65
  id: z.ZodString;
64
66
  type: z.ZodEnum<["text", "image", "video", "analysis"]>;
65
67
  status: z.ZodEnum<["queued", "processing", "completed", "failed"]>;
68
+ client: z.ZodOptional<z.ZodEnum<["pixerate", "slopmachine", "social", "unknown"]>>;
66
69
  payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
67
70
  createdAt: z.ZodOptional<z.ZodAny>;
68
71
  updatedAt: z.ZodOptional<z.ZodAny>;
@@ -70,6 +73,7 @@ declare const QueueJobSchema: z.ZodObject<{
70
73
  type: "text" | "image" | "video" | "analysis";
71
74
  status: "queued" | "processing" | "completed" | "failed";
72
75
  id: string;
76
+ client?: "pixerate" | "slopmachine" | "social" | "unknown" | undefined;
73
77
  payload?: Record<string, any> | undefined;
74
78
  createdAt?: any;
75
79
  updatedAt?: any;
@@ -77,10 +81,11 @@ declare const QueueJobSchema: z.ZodObject<{
77
81
  type: "text" | "image" | "video" | "analysis";
78
82
  status: "queued" | "processing" | "completed" | "failed";
79
83
  id: string;
84
+ client?: "pixerate" | "slopmachine" | "social" | "unknown" | undefined;
80
85
  payload?: Record<string, any> | undefined;
81
86
  createdAt?: any;
82
87
  updatedAt?: any;
83
88
  }>;
84
89
  type QueueJob = z.infer<typeof QueueJobSchema>;
85
90
 
86
- export { type AspectRatio, AspectRatioSchema, type Fidelity, FidelitySchema, type ImageGenerationPayload, ImageGenerationSchema, type ImageTransformationPayload, ImageTransformationSchema, type QueueJob, QueueJobSchema, type VideoAnalysisCategory, VideoAnalysisCategorySchema, type VideoAnalysisPayload, VideoAnalysisSchema, type VideoAspectRatio, VideoAspectRatioSchema };
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 };
package/dist/index.js CHANGED
@@ -43,10 +43,12 @@ var VideoAnalysisSchema = z.object({
43
43
  category: VideoAnalysisCategorySchema,
44
44
  fidelity: FidelitySchema
45
45
  });
46
+ var ServiceClientSchema = z.enum(["pixerate", "slopmachine", "social", "unknown"]);
46
47
  var QueueJobSchema = z.object({
47
48
  id: z.string(),
48
49
  type: z.enum(["text", "image", "video", "analysis"]),
49
50
  status: z.enum(["queued", "processing", "completed", "failed"]),
51
+ client: ServiceClientSchema.optional(),
50
52
  payload: z.record(z.any()).optional(),
51
53
  createdAt: z.any().optional(),
52
54
  updatedAt: z.any().optional()
@@ -57,6 +59,7 @@ export {
57
59
  ImageGenerationSchema,
58
60
  ImageTransformationSchema,
59
61
  QueueJobSchema,
62
+ ServiceClientSchema,
60
63
  VideoAnalysisCategorySchema,
61
64
  VideoAnalysisSchema,
62
65
  VideoAspectRatioSchema
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pixerate/schemas",
3
- "version": "1.0.1",
3
+ "version": "1.1.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",