@valbuild/shared 0.92.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.
@@ -754,6 +754,7 @@ export declare const Api: {
754
754
  query: {
755
755
  validate_sources: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>> & z.ZodType<"true" | "false", string[], z.core.$ZodTypeInternals<"true" | "false", string[]>>, z.ZodTransform<boolean, "true" | "false">>>;
756
756
  validate_binary_files: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>> & z.ZodType<"true" | "false", string[], z.core.$ZodTypeInternals<"true" | "false", string[]>>, z.ZodTransform<boolean, "true" | "false">>>;
757
+ exclude_patches: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>> & z.ZodType<"true" | "false", string[], z.core.$ZodTypeInternals<"true" | "false", string[]>>, z.ZodTransform<boolean, "true" | "false">>>;
757
758
  };
758
759
  cookies: {
759
760
  val_session: z.ZodOptional<z.ZodString>;
@@ -813,7 +814,7 @@ export declare const Api: {
813
814
  message: z.ZodString;
814
815
  value: z.ZodOptional<z.ZodUnknown>;
815
816
  fatal: z.ZodOptional<z.ZodBoolean>;
816
- 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>>>>;
817
818
  }, z.core.$strip>>>>;
818
819
  }, z.core.$strip>>;
819
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(),
@@ -1774,7 +1782,8 @@ var Api = {
1774
1782
  path: zod.z.string().optional(),
1775
1783
  query: {
1776
1784
  validate_sources: onlyOneBooleanQueryParam.optional(),
1777
- validate_binary_files: onlyOneBooleanQueryParam.optional()
1785
+ validate_binary_files: onlyOneBooleanQueryParam.optional(),
1786
+ exclude_patches: onlyOneBooleanQueryParam.optional()
1778
1787
  },
1779
1788
  cookies: {
1780
1789
  val_session: zod.z.string().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(),
@@ -1774,7 +1782,8 @@ var Api = {
1774
1782
  path: zod.z.string().optional(),
1775
1783
  query: {
1776
1784
  validate_sources: onlyOneBooleanQueryParam.optional(),
1777
- validate_binary_files: onlyOneBooleanQueryParam.optional()
1785
+ validate_binary_files: onlyOneBooleanQueryParam.optional(),
1786
+ exclude_patches: onlyOneBooleanQueryParam.optional()
1778
1787
  },
1779
1788
  cookies: {
1780
1789
  val_session: zod.z.string().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(),
@@ -1770,7 +1778,8 @@ var Api = {
1770
1778
  path: z.string().optional(),
1771
1779
  query: {
1772
1780
  validate_sources: onlyOneBooleanQueryParam.optional(),
1773
- validate_binary_files: onlyOneBooleanQueryParam.optional()
1781
+ validate_binary_files: onlyOneBooleanQueryParam.optional(),
1782
+ exclude_patches: onlyOneBooleanQueryParam.optional()
1774
1783
  },
1775
1784
  cookies: {
1776
1785
  val_session: z.string().optional()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@valbuild/shared",
3
- "version": "0.92.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.92.0"
34
+ "@valbuild/core": "0.94.0"
35
35
  },
36
36
  "files": [
37
37
  "dist",