@basou/core 0.17.0 → 0.18.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@basou/core",
3
- "version": "0.17.0",
3
+ "version": "0.18.0",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "Core primitives for Basou: sessions, events, approvals, git capability",
@@ -753,6 +753,70 @@
753
753
  "title"
754
754
  ]
755
755
  },
756
+ {
757
+ "type": "object",
758
+ "properties": {
759
+ "schema_version": {
760
+ "type": "string",
761
+ "const": "0.1.0"
762
+ },
763
+ "id": {
764
+ "type": "string",
765
+ "pattern": "^evt_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
766
+ "description": "Basou evt id: `evt_` followed by a 26-character Crockford Base32 ULID."
767
+ },
768
+ "session_id": {
769
+ "type": "string",
770
+ "pattern": "^ses_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
771
+ "description": "Basou ses id: `ses_` followed by a 26-character Crockford Base32 ULID."
772
+ },
773
+ "occurred_at": {
774
+ "type": "string",
775
+ "format": "date-time",
776
+ "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)))$"
777
+ },
778
+ "source": {
779
+ "type": "string",
780
+ "minLength": 1
781
+ },
782
+ "prev_hash": {
783
+ "type": "string"
784
+ },
785
+ "type": {
786
+ "type": "string",
787
+ "const": "decision_voided"
788
+ },
789
+ "decision_id": {
790
+ "type": "string",
791
+ "pattern": "^decision_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
792
+ "description": "Basou decision id: `decision_` followed by a 26-character Crockford Base32 ULID."
793
+ },
794
+ "reason": {
795
+ "anyOf": [
796
+ {
797
+ "type": "string"
798
+ },
799
+ {
800
+ "type": "null"
801
+ }
802
+ ]
803
+ },
804
+ "superseded_by": {
805
+ "type": "string",
806
+ "pattern": "^decision_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
807
+ "description": "Basou decision id: `decision_` followed by a 26-character Crockford Base32 ULID."
808
+ }
809
+ },
810
+ "required": [
811
+ "schema_version",
812
+ "id",
813
+ "session_id",
814
+ "occurred_at",
815
+ "source",
816
+ "type",
817
+ "decision_id"
818
+ ]
819
+ },
756
820
  {
757
821
  "type": "object",
758
822
  "properties": {
@@ -994,6 +994,70 @@
994
994
  "title"
995
995
  ]
996
996
  },
997
+ {
998
+ "type": "object",
999
+ "properties": {
1000
+ "schema_version": {
1001
+ "type": "string",
1002
+ "const": "0.1.0"
1003
+ },
1004
+ "id": {
1005
+ "type": "string",
1006
+ "pattern": "^evt_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
1007
+ "description": "Basou evt id: `evt_` followed by a 26-character Crockford Base32 ULID."
1008
+ },
1009
+ "session_id": {
1010
+ "type": "string",
1011
+ "pattern": "^ses_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
1012
+ "description": "Basou ses id: `ses_` followed by a 26-character Crockford Base32 ULID."
1013
+ },
1014
+ "occurred_at": {
1015
+ "type": "string",
1016
+ "format": "date-time",
1017
+ "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)))$"
1018
+ },
1019
+ "source": {
1020
+ "type": "string",
1021
+ "minLength": 1
1022
+ },
1023
+ "prev_hash": {
1024
+ "type": "string"
1025
+ },
1026
+ "type": {
1027
+ "type": "string",
1028
+ "const": "decision_voided"
1029
+ },
1030
+ "decision_id": {
1031
+ "type": "string",
1032
+ "pattern": "^decision_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
1033
+ "description": "Basou decision id: `decision_` followed by a 26-character Crockford Base32 ULID."
1034
+ },
1035
+ "reason": {
1036
+ "anyOf": [
1037
+ {
1038
+ "type": "string"
1039
+ },
1040
+ {
1041
+ "type": "null"
1042
+ }
1043
+ ]
1044
+ },
1045
+ "superseded_by": {
1046
+ "type": "string",
1047
+ "pattern": "^decision_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
1048
+ "description": "Basou decision id: `decision_` followed by a 26-character Crockford Base32 ULID."
1049
+ }
1050
+ },
1051
+ "required": [
1052
+ "schema_version",
1053
+ "id",
1054
+ "session_id",
1055
+ "occurred_at",
1056
+ "source",
1057
+ "type",
1058
+ "decision_id"
1059
+ ]
1060
+ },
997
1061
  {
998
1062
  "type": "object",
999
1063
  "properties": {