@valbuild/shared 0.93.0 → 0.94.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.
@@ -814,7 +814,7 @@ export declare const Api: {
814
814
  message: z.ZodString;
815
815
  value: z.ZodOptional<z.ZodUnknown>;
816
816
  fatal: z.ZodOptional<z.ZodBoolean>;
817
- fixes: z.ZodOptional<z.ZodArray<z.ZodType<"image:add-metadata" | "image:check-metadata" | "image:upload-remote" | "image:download-remote" | "image:check-remote" | "file:add-metadata" | "file:check-metadata" | "file:upload-remote" | "file:download-remote" | "file:check-remote" | "keyof:check-keys" | "router:check-route", unknown, z.core.$ZodTypeInternals<"image:add-metadata" | "image:check-metadata" | "image:upload-remote" | "image:download-remote" | "image:check-remote" | "file:add-metadata" | "file:check-metadata" | "file:upload-remote" | "file:download-remote" | "file:check-remote" | "keyof:check-keys" | "router:check-route", unknown>>>>;
817
+ fixes: z.ZodOptional<z.ZodArray<z.ZodType<"image:add-metadata" | "image:check-metadata" | "image:upload-remote" | "image:download-remote" | "image:check-remote" | "images:check-remote" | "file:add-metadata" | "file:check-metadata" | "file:upload-remote" | "file:download-remote" | "file:check-remote" | "files:check-remote" | "keyof:check-keys" | "router:check-route" | "images:check-unique-folder" | "files:check-unique-folder" | "images:check-all-files" | "files:check-all-files", unknown, z.core.$ZodTypeInternals<"image:add-metadata" | "image:check-metadata" | "image:upload-remote" | "image:download-remote" | "image:check-remote" | "images:check-remote" | "file:add-metadata" | "file:check-metadata" | "file:upload-remote" | "file:download-remote" | "file:check-remote" | "files:check-remote" | "keyof:check-keys" | "router:check-route" | "images:check-unique-folder" | "files:check-unique-folder" | "images:check-all-files" | "files:check-all-files", unknown>>>>;
818
818
  }, z.core.$strip>>>>;
819
819
  }, z.core.$strip>>;
820
820
  }, z.core.$strip>;
@@ -1103,8 +1103,16 @@ var SerializedRecordSchema = zod.z.lazy(function () {
1103
1103
  return zod.z.object({
1104
1104
  type: zod.z.literal("record"),
1105
1105
  item: SerializedSchema,
1106
- opt: zod.z["boolean"]()
1107
- });
1106
+ opt: zod.z["boolean"](),
1107
+ // Optional gallery marker for files/images
1108
+ mediaType: zod.z.union([zod.z.literal("files"), zod.z.literal("images")]).optional(),
1109
+ // Optional legacy gallery metadata
1110
+ accept: zod.z.string().optional(),
1111
+ directory: zod.z.string().optional(),
1112
+ remote: zod.z["boolean"]().optional(),
1113
+ alt: SerializedSchema.optional(),
1114
+ moduleMetadata: zod.z.record(zod.z.string(), zod.z.record(zod.z.string(), zod.z.any())).optional()
1115
+ }).passthrough();
1108
1116
  });
1109
1117
  var SerializedKeyOfSchema = zod.z.lazy(function () {
1110
1118
  return zod.z.object({
@@ -1182,7 +1190,7 @@ var ValConfig = zod.z.object({
1182
1190
  gitCommit: zod.z.string().optional(),
1183
1191
  gitBranch: zod.z.string().optional()
1184
1192
  });
1185
- var ValidationFixZ = zod.z.union([zod.z.literal("image:add-metadata"), zod.z.literal("image:check-metadata"), zod.z.literal("image:check-remote"), zod.z.literal("image:upload-remote"), zod.z.literal("image:download-remote"), zod.z.literal("file:add-metadata"), zod.z.literal("file:check-metadata"), zod.z.literal("file:check-remote"), zod.z.literal("file:upload-remote"), zod.z.literal("file:download-remote"), zod.z.literal("keyof:check-keys"), zod.z.literal("router:check-route")]);
1193
+ var ValidationFixZ = zod.z.union([zod.z.literal("image:add-metadata"), zod.z.literal("image:check-metadata"), zod.z.literal("image:check-remote"), zod.z.literal("image:upload-remote"), zod.z.literal("image:download-remote"), zod.z.literal("images:check-remote"), zod.z.literal("file:add-metadata"), zod.z.literal("file:check-metadata"), zod.z.literal("file:check-remote"), zod.z.literal("file:upload-remote"), zod.z.literal("file:download-remote"), zod.z.literal("files:check-remote"), zod.z.literal("keyof:check-keys"), zod.z.literal("router:check-route"), zod.z.literal("images:check-unique-folder"), zod.z.literal("files:check-unique-folder"), zod.z.literal("images:check-all-files"), zod.z.literal("files:check-all-files")]);
1186
1194
  var ValidationError = zod.z.object({
1187
1195
  message: zod.z.string(),
1188
1196
  value: zod.z.unknown().optional(),
@@ -1103,8 +1103,16 @@ var SerializedRecordSchema = zod.z.lazy(function () {
1103
1103
  return zod.z.object({
1104
1104
  type: zod.z.literal("record"),
1105
1105
  item: SerializedSchema,
1106
- opt: zod.z["boolean"]()
1107
- });
1106
+ opt: zod.z["boolean"](),
1107
+ // Optional gallery marker for files/images
1108
+ mediaType: zod.z.union([zod.z.literal("files"), zod.z.literal("images")]).optional(),
1109
+ // Optional legacy gallery metadata
1110
+ accept: zod.z.string().optional(),
1111
+ directory: zod.z.string().optional(),
1112
+ remote: zod.z["boolean"]().optional(),
1113
+ alt: SerializedSchema.optional(),
1114
+ moduleMetadata: zod.z.record(zod.z.string(), zod.z.record(zod.z.string(), zod.z.any())).optional()
1115
+ }).passthrough();
1108
1116
  });
1109
1117
  var SerializedKeyOfSchema = zod.z.lazy(function () {
1110
1118
  return zod.z.object({
@@ -1182,7 +1190,7 @@ var ValConfig = zod.z.object({
1182
1190
  gitCommit: zod.z.string().optional(),
1183
1191
  gitBranch: zod.z.string().optional()
1184
1192
  });
1185
- var ValidationFixZ = zod.z.union([zod.z.literal("image:add-metadata"), zod.z.literal("image:check-metadata"), zod.z.literal("image:check-remote"), zod.z.literal("image:upload-remote"), zod.z.literal("image:download-remote"), zod.z.literal("file:add-metadata"), zod.z.literal("file:check-metadata"), zod.z.literal("file:check-remote"), zod.z.literal("file:upload-remote"), zod.z.literal("file:download-remote"), zod.z.literal("keyof:check-keys"), zod.z.literal("router:check-route")]);
1193
+ var ValidationFixZ = zod.z.union([zod.z.literal("image:add-metadata"), zod.z.literal("image:check-metadata"), zod.z.literal("image:check-remote"), zod.z.literal("image:upload-remote"), zod.z.literal("image:download-remote"), zod.z.literal("images:check-remote"), zod.z.literal("file:add-metadata"), zod.z.literal("file:check-metadata"), zod.z.literal("file:check-remote"), zod.z.literal("file:upload-remote"), zod.z.literal("file:download-remote"), zod.z.literal("files:check-remote"), zod.z.literal("keyof:check-keys"), zod.z.literal("router:check-route"), zod.z.literal("images:check-unique-folder"), zod.z.literal("files:check-unique-folder"), zod.z.literal("images:check-all-files"), zod.z.literal("files:check-all-files")]);
1186
1194
  var ValidationError = zod.z.object({
1187
1195
  message: zod.z.string(),
1188
1196
  value: zod.z.unknown().optional(),
@@ -1099,8 +1099,16 @@ var SerializedRecordSchema = z.lazy(function () {
1099
1099
  return z.object({
1100
1100
  type: z.literal("record"),
1101
1101
  item: SerializedSchema,
1102
- opt: z["boolean"]()
1103
- });
1102
+ opt: z["boolean"](),
1103
+ // Optional gallery marker for files/images
1104
+ mediaType: z.union([z.literal("files"), z.literal("images")]).optional(),
1105
+ // Optional legacy gallery metadata
1106
+ accept: z.string().optional(),
1107
+ directory: z.string().optional(),
1108
+ remote: z["boolean"]().optional(),
1109
+ alt: SerializedSchema.optional(),
1110
+ moduleMetadata: z.record(z.string(), z.record(z.string(), z.any())).optional()
1111
+ }).passthrough();
1104
1112
  });
1105
1113
  var SerializedKeyOfSchema = z.lazy(function () {
1106
1114
  return z.object({
@@ -1178,7 +1186,7 @@ var ValConfig = z.object({
1178
1186
  gitCommit: z.string().optional(),
1179
1187
  gitBranch: z.string().optional()
1180
1188
  });
1181
- var ValidationFixZ = z.union([z.literal("image:add-metadata"), z.literal("image:check-metadata"), z.literal("image:check-remote"), z.literal("image:upload-remote"), z.literal("image:download-remote"), z.literal("file:add-metadata"), z.literal("file:check-metadata"), z.literal("file:check-remote"), z.literal("file:upload-remote"), z.literal("file:download-remote"), z.literal("keyof:check-keys"), z.literal("router:check-route")]);
1189
+ var ValidationFixZ = z.union([z.literal("image:add-metadata"), z.literal("image:check-metadata"), z.literal("image:check-remote"), z.literal("image:upload-remote"), z.literal("image:download-remote"), z.literal("images:check-remote"), z.literal("file:add-metadata"), z.literal("file:check-metadata"), z.literal("file:check-remote"), z.literal("file:upload-remote"), z.literal("file:download-remote"), z.literal("files:check-remote"), z.literal("keyof:check-keys"), z.literal("router:check-route"), z.literal("images:check-unique-folder"), z.literal("files:check-unique-folder"), z.literal("images:check-all-files"), z.literal("files:check-all-files")]);
1182
1190
  var ValidationError = z.object({
1183
1191
  message: z.string(),
1184
1192
  value: z.unknown().optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@valbuild/shared",
3
- "version": "0.93.0",
3
+ "version": "0.94.0",
4
4
  "private": false,
5
5
  "description": "Val shared types and utilities",
6
6
  "repository": {
@@ -31,7 +31,7 @@
31
31
  "dependencies": {
32
32
  "zod": "^4.3.5",
33
33
  "zod-validation-error": "^5.0.0",
34
- "@valbuild/core": "0.93.0"
34
+ "@valbuild/core": "0.94.0"
35
35
  },
36
36
  "files": [
37
37
  "dist",