@remit/config-format 0.0.8 → 0.0.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/config-format",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "type": "module",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -43,6 +43,6 @@
43
43
  },
44
44
  "dependencies": {
45
45
  "@remit/domain-enums": "*",
46
- "zod": "^3.25.0"
46
+ "zod": "^4.6.7"
47
47
  }
48
48
  }
@@ -11,7 +11,6 @@
11
11
  "const": 2
12
12
  },
13
13
  "generator": {
14
- "description": "Which reader wrote this file, and when.",
15
14
  "type": "object",
16
15
  "properties": {
17
16
  "app": {
@@ -25,7 +24,7 @@
25
24
  "exportedAt": {
26
25
  "type": "string",
27
26
  "format": "date-time",
28
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-]\\d{2}:\\d{2})))$"
27
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
29
28
  }
30
29
  },
31
30
  "required": [
@@ -33,10 +32,10 @@
33
32
  "version",
34
33
  "exportedAt"
35
34
  ],
36
- "additionalProperties": false
35
+ "additionalProperties": false,
36
+ "description": "Which reader wrote this file, and when."
37
37
  },
38
38
  "provenance": {
39
- "description": "The instance this file was exported from. Never applied.",
40
39
  "type": "object",
41
40
  "properties": {
42
41
  "accountConfigId": {
@@ -52,7 +51,8 @@
52
51
  "accountConfigId",
53
52
  "instance"
54
53
  ],
55
- "additionalProperties": false
54
+ "additionalProperties": false,
55
+ "description": "The instance this file was exported from. Never applied."
56
56
  },
57
57
  "accountConfig": {
58
58
  "type": "object",
@@ -190,10 +190,10 @@
190
190
  "type": "boolean"
191
191
  },
192
192
  "setAt": {
193
- "description": "Epoch milliseconds the flag was set. 0 means it was set at an unknown time, on a row written before the field existed.",
194
193
  "type": "integer",
195
194
  "minimum": -9007199254740991,
196
- "maximum": 9007199254740991
195
+ "maximum": 9007199254740991,
196
+ "description": "Epoch milliseconds the flag was set. 0 means it was set at an unknown time, on a row written before the field existed."
197
197
  },
198
198
  "setBy": {
199
199
  "type": "string"
@@ -294,10 +294,10 @@
294
294
  "type": "boolean"
295
295
  },
296
296
  "setAt": {
297
- "description": "Epoch milliseconds the flag was set. 0 means it was set at an unknown time, on a row written before the field existed.",
298
297
  "type": "integer",
299
298
  "minimum": -9007199254740991,
300
- "maximum": 9007199254740991
299
+ "maximum": 9007199254740991,
300
+ "description": "Epoch milliseconds the flag was set. 0 means it was set at an unknown time, on a row written before the field existed."
301
301
  },
302
302
  "setBy": {
303
303
  "type": "string"
@@ -414,7 +414,7 @@
414
414
  {
415
415
  "type": "string",
416
416
  "format": "date-time",
417
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-]\\d{2}:\\d{2})))$"
417
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
418
418
  },
419
419
  {
420
420
  "type": "null"
@@ -531,10 +531,10 @@
531
531
  "type": "boolean"
532
532
  },
533
533
  "setAt": {
534
- "description": "Epoch milliseconds the flag was set. 0 means it was set at an unknown time, on a row written before the field existed.",
535
534
  "type": "integer",
536
535
  "minimum": -9007199254740991,
537
- "maximum": 9007199254740991
536
+ "maximum": 9007199254740991,
537
+ "description": "Epoch milliseconds the flag was set. 0 means it was set at an unknown time, on a row written before the field existed."
538
538
  },
539
539
  "setBy": {
540
540
  "type": "string"
@@ -561,10 +561,10 @@
561
561
  "type": "boolean"
562
562
  },
563
563
  "setAt": {
564
- "description": "Epoch milliseconds the flag was set. 0 means it was set at an unknown time, on a row written before the field existed.",
565
564
  "type": "integer",
566
565
  "minimum": -9007199254740991,
567
- "maximum": 9007199254740991
566
+ "maximum": 9007199254740991,
567
+ "description": "Epoch milliseconds the flag was set. 0 means it was set at an unknown time, on a row written before the field existed."
568
568
  },
569
569
  "setBy": {
570
570
  "type": "string"
@@ -591,10 +591,10 @@
591
591
  "type": "boolean"
592
592
  },
593
593
  "setAt": {
594
- "description": "Epoch milliseconds the flag was set. 0 means it was set at an unknown time, on a row written before the field existed.",
595
594
  "type": "integer",
596
595
  "minimum": -9007199254740991,
597
- "maximum": 9007199254740991
596
+ "maximum": 9007199254740991,
597
+ "description": "Epoch milliseconds the flag was set. 0 means it was set at an unknown time, on a row written before the field existed."
598
598
  },
599
599
  "setBy": {
600
600
  "type": "string"
@@ -621,10 +621,10 @@
621
621
  "type": "boolean"
622
622
  },
623
623
  "setAt": {
624
- "description": "Epoch milliseconds the flag was set. 0 means it was set at an unknown time, on a row written before the field existed.",
625
624
  "type": "integer",
626
625
  "minimum": -9007199254740991,
627
- "maximum": 9007199254740991
626
+ "maximum": 9007199254740991,
627
+ "description": "Epoch milliseconds the flag was set. 0 means it was set at an unknown time, on a row written before the field existed."
628
628
  },
629
629
  "setBy": {
630
630
  "type": "string"
@@ -651,10 +651,10 @@
651
651
  "type": "boolean"
652
652
  },
653
653
  "setAt": {
654
- "description": "Epoch milliseconds the flag was set. 0 means it was set at an unknown time, on a row written before the field existed.",
655
654
  "type": "integer",
656
655
  "minimum": -9007199254740991,
657
- "maximum": 9007199254740991
656
+ "maximum": 9007199254740991,
657
+ "description": "Epoch milliseconds the flag was set. 0 means it was set at an unknown time, on a row written before the field existed."
658
658
  },
659
659
  "setBy": {
660
660
  "type": "string"
@@ -690,10 +690,10 @@
690
690
  ]
691
691
  },
692
692
  "setAt": {
693
- "description": "Epoch milliseconds the flag was set. 0 means it was set at an unknown time, on a row written before the field existed.",
694
693
  "type": "integer",
695
694
  "minimum": -9007199254740991,
696
- "maximum": 9007199254740991
695
+ "maximum": 9007199254740991,
696
+ "description": "Epoch milliseconds the flag was set. 0 means it was set at an unknown time, on a row written before the field existed."
697
697
  },
698
698
  "setBy": {
699
699
  "type": "string"
@@ -720,10 +720,10 @@
720
720
  "type": "boolean"
721
721
  },
722
722
  "setAt": {
723
- "description": "Epoch milliseconds the flag was set. 0 means it was set at an unknown time, on a row written before the field existed.",
724
723
  "type": "integer",
725
724
  "minimum": -9007199254740991,
726
- "maximum": 9007199254740991
725
+ "maximum": 9007199254740991,
726
+ "description": "Epoch milliseconds the flag was set. 0 means it was set at an unknown time, on a row written before the field existed."
727
727
  },
728
728
  "setBy": {
729
729
  "type": "string"
@@ -750,10 +750,10 @@
750
750
  "type": "boolean"
751
751
  },
752
752
  "setAt": {
753
- "description": "Epoch milliseconds the flag was set. 0 means it was set at an unknown time, on a row written before the field existed.",
754
753
  "type": "integer",
755
754
  "minimum": -9007199254740991,
756
- "maximum": 9007199254740991
755
+ "maximum": 9007199254740991,
756
+ "description": "Epoch milliseconds the flag was set. 0 means it was set at an unknown time, on a row written before the field existed."
757
757
  },
758
758
  "setBy": {
759
759
  "type": "string"
@@ -802,10 +802,10 @@
802
802
  "additionalProperties": false
803
803
  },
804
804
  "messageDecisions": {
805
- "description": "Reserved for a later schema version; must be empty in v1.",
806
805
  "maxItems": 0,
807
806
  "type": "array",
808
- "items": {}
807
+ "items": {},
808
+ "description": "Reserved for a later schema version; must be empty in v1."
809
809
  }
810
810
  },
811
811
  "required": [
package/src/document.ts CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  LabelColor,
8
8
  MessageCategory,
9
9
  } from "@remit/domain-enums";
10
- import { z } from "zod/v4";
10
+ import { z } from "zod";
11
11
  import { CONFIG_KIND, CURRENT_SCHEMA_VERSION } from "./version.js";
12
12
 
13
13
  const NonEmpty = z.string().min(1);
package/src/envelope.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { z } from "zod/v4";
1
+ import { z } from "zod";
2
2
  import { CONFIG_KIND } from "./version.js";
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { z } from "zod/v4";
1
+ import { z } from "zod";
2
2
  import { ReaderConfigDocumentSchema } from "./document.js";
3
3
  import { CONFIG_SCHEMA_ID, CURRENT_SCHEMA_VERSION } from "./version.js";
4
4
 
package/src/migrations.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { z } from "zod/v4";
1
+ import { z } from "zod";
2
2
  import { ConfigVersionError } from "./errors.js";
3
3
  import { CURRENT_SCHEMA_VERSION } from "./version.js";
4
4