@valbuild/shared 0.101.0 → 0.101.1

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.
@@ -932,6 +932,10 @@ export declare const Api: {
932
932
  binaryFilePatchErrors: z.ZodRecord<z.ZodString, z.ZodObject<{
933
933
  message: z.ZodString;
934
934
  }, z.core.$strip>>;
935
+ unappliablePatches: z.ZodOptional<z.ZodRecord<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>, z.ZodObject<{
936
+ moduleFilePath: z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>;
937
+ message: z.ZodString;
938
+ }, z.core.$strip>>>;
935
939
  }, z.core.$strip>, z.ZodArray<z.ZodObject<{
936
940
  message: z.ZodString;
937
941
  }, z.core.$strip>>]>>;
@@ -2000,7 +2000,19 @@ var Api = {
2000
2000
  message: zod.z.string(),
2001
2001
  details: zod.z.union([zod.z.object({
2002
2002
  sourceFilePatchErrors: zod.z.record(ModuleFilePath, zod.z.array(GenericError)),
2003
- binaryFilePatchErrors: zod.z.record(zod.z.string(), GenericError)
2003
+ binaryFilePatchErrors: zod.z.record(zod.z.string(), GenericError),
2004
+ /**
2005
+ * The patches that could not be applied, keyed by patch id.
2006
+ *
2007
+ * Same failures as sourceFilePatchErrors, but attributed to
2008
+ * the patch that caused them, which is what the studio needs
2009
+ * in order to name the change and offer to remove it.
2010
+ * Optional so older servers still parse.
2011
+ */
2012
+ unappliablePatches: zod.z.record(PatchId, zod.z.object({
2013
+ moduleFilePath: ModuleFilePath,
2014
+ message: zod.z.string()
2015
+ })).optional()
2004
2016
  }), zod.z.array(GenericError)]).optional()
2005
2017
  }), zod.z.object({
2006
2018
  message: zod.z.string(),
@@ -2000,7 +2000,19 @@ var Api = {
2000
2000
  message: zod.z.string(),
2001
2001
  details: zod.z.union([zod.z.object({
2002
2002
  sourceFilePatchErrors: zod.z.record(ModuleFilePath, zod.z.array(GenericError)),
2003
- binaryFilePatchErrors: zod.z.record(zod.z.string(), GenericError)
2003
+ binaryFilePatchErrors: zod.z.record(zod.z.string(), GenericError),
2004
+ /**
2005
+ * The patches that could not be applied, keyed by patch id.
2006
+ *
2007
+ * Same failures as sourceFilePatchErrors, but attributed to
2008
+ * the patch that caused them, which is what the studio needs
2009
+ * in order to name the change and offer to remove it.
2010
+ * Optional so older servers still parse.
2011
+ */
2012
+ unappliablePatches: zod.z.record(PatchId, zod.z.object({
2013
+ moduleFilePath: ModuleFilePath,
2014
+ message: zod.z.string()
2015
+ })).optional()
2004
2016
  }), zod.z.array(GenericError)]).optional()
2005
2017
  }), zod.z.object({
2006
2018
  message: zod.z.string(),
@@ -1996,7 +1996,19 @@ var Api = {
1996
1996
  message: z.string(),
1997
1997
  details: z.union([z.object({
1998
1998
  sourceFilePatchErrors: z.record(ModuleFilePath, z.array(GenericError)),
1999
- binaryFilePatchErrors: z.record(z.string(), GenericError)
1999
+ binaryFilePatchErrors: z.record(z.string(), GenericError),
2000
+ /**
2001
+ * The patches that could not be applied, keyed by patch id.
2002
+ *
2003
+ * Same failures as sourceFilePatchErrors, but attributed to
2004
+ * the patch that caused them, which is what the studio needs
2005
+ * in order to name the change and offer to remove it.
2006
+ * Optional so older servers still parse.
2007
+ */
2008
+ unappliablePatches: z.record(PatchId, z.object({
2009
+ moduleFilePath: ModuleFilePath,
2010
+ message: z.string()
2011
+ })).optional()
2000
2012
  }), z.array(GenericError)]).optional()
2001
2013
  }), z.object({
2002
2014
  message: z.string(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@valbuild/shared",
3
- "version": "0.101.0",
3
+ "version": "0.101.1",
4
4
  "private": false,
5
5
  "description": "Val shared types and utilities",
6
6
  "repository": {