@peasant-labs/schema 0.31.0 → 0.31.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.
@@ -3156,7 +3156,7 @@ export const zVillageShareEvent = z.object({
3156
3156
  fail("decided_by_actor does not match the status's actor capacity");
3157
3157
  if (value.status === "pending" && value.decided_at !== null)
3158
3158
  fail("pending attempts must have null decided_at");
3159
- if (value.status !== "pending" && value.status !== "approved" && value.decided_at === null)
3159
+ if (value.status !== "pending" && value.status !== "approved" && value.status !== "rejected" && value.decided_at === null)
3160
3160
  fail("this terminal status requires decided_at");
3161
3161
  if (value.decided_at !== null && (value.decided_at === "0001-01-01T00:00:00Z" || /^0001-01-01T00:00:00\.0+Z$/.test(value.decided_at)))
3162
3162
  fail("decided_at must be a nonzero UTC timestamp when present");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peasant-labs/schema",
3
- "version": "0.31.0",
3
+ "version": "0.31.1",
4
4
  "description": "Generated TypeScript contract bindings for the peasant-labs schema module",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {