@basou/core 0.17.0 → 0.19.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.19.0",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "Core primitives for Basou: sessions, events, approvals, git capability",
@@ -740,6 +740,13 @@
740
740
  "minLength": 1,
741
741
  "maxLength": 4096
742
742
  }
743
+ },
744
+ "kind": {
745
+ "type": "string",
746
+ "enum": [
747
+ "decision",
748
+ "track"
749
+ ]
743
750
  }
744
751
  },
745
752
  "required": [
@@ -753,6 +760,70 @@
753
760
  "title"
754
761
  ]
755
762
  },
763
+ {
764
+ "type": "object",
765
+ "properties": {
766
+ "schema_version": {
767
+ "type": "string",
768
+ "const": "0.1.0"
769
+ },
770
+ "id": {
771
+ "type": "string",
772
+ "pattern": "^evt_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
773
+ "description": "Basou evt id: `evt_` followed by a 26-character Crockford Base32 ULID."
774
+ },
775
+ "session_id": {
776
+ "type": "string",
777
+ "pattern": "^ses_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
778
+ "description": "Basou ses id: `ses_` followed by a 26-character Crockford Base32 ULID."
779
+ },
780
+ "occurred_at": {
781
+ "type": "string",
782
+ "format": "date-time",
783
+ "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)))$"
784
+ },
785
+ "source": {
786
+ "type": "string",
787
+ "minLength": 1
788
+ },
789
+ "prev_hash": {
790
+ "type": "string"
791
+ },
792
+ "type": {
793
+ "type": "string",
794
+ "const": "decision_voided"
795
+ },
796
+ "decision_id": {
797
+ "type": "string",
798
+ "pattern": "^decision_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
799
+ "description": "Basou decision id: `decision_` followed by a 26-character Crockford Base32 ULID."
800
+ },
801
+ "reason": {
802
+ "anyOf": [
803
+ {
804
+ "type": "string"
805
+ },
806
+ {
807
+ "type": "null"
808
+ }
809
+ ]
810
+ },
811
+ "superseded_by": {
812
+ "type": "string",
813
+ "pattern": "^decision_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
814
+ "description": "Basou decision id: `decision_` followed by a 26-character Crockford Base32 ULID."
815
+ }
816
+ },
817
+ "required": [
818
+ "schema_version",
819
+ "id",
820
+ "session_id",
821
+ "occurred_at",
822
+ "source",
823
+ "type",
824
+ "decision_id"
825
+ ]
826
+ },
756
827
  {
757
828
  "type": "object",
758
829
  "properties": {
@@ -981,6 +981,13 @@
981
981
  "minLength": 1,
982
982
  "maxLength": 4096
983
983
  }
984
+ },
985
+ "kind": {
986
+ "type": "string",
987
+ "enum": [
988
+ "decision",
989
+ "track"
990
+ ]
984
991
  }
985
992
  },
986
993
  "required": [
@@ -994,6 +1001,70 @@
994
1001
  "title"
995
1002
  ]
996
1003
  },
1004
+ {
1005
+ "type": "object",
1006
+ "properties": {
1007
+ "schema_version": {
1008
+ "type": "string",
1009
+ "const": "0.1.0"
1010
+ },
1011
+ "id": {
1012
+ "type": "string",
1013
+ "pattern": "^evt_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
1014
+ "description": "Basou evt id: `evt_` followed by a 26-character Crockford Base32 ULID."
1015
+ },
1016
+ "session_id": {
1017
+ "type": "string",
1018
+ "pattern": "^ses_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
1019
+ "description": "Basou ses id: `ses_` followed by a 26-character Crockford Base32 ULID."
1020
+ },
1021
+ "occurred_at": {
1022
+ "type": "string",
1023
+ "format": "date-time",
1024
+ "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)))$"
1025
+ },
1026
+ "source": {
1027
+ "type": "string",
1028
+ "minLength": 1
1029
+ },
1030
+ "prev_hash": {
1031
+ "type": "string"
1032
+ },
1033
+ "type": {
1034
+ "type": "string",
1035
+ "const": "decision_voided"
1036
+ },
1037
+ "decision_id": {
1038
+ "type": "string",
1039
+ "pattern": "^decision_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
1040
+ "description": "Basou decision id: `decision_` followed by a 26-character Crockford Base32 ULID."
1041
+ },
1042
+ "reason": {
1043
+ "anyOf": [
1044
+ {
1045
+ "type": "string"
1046
+ },
1047
+ {
1048
+ "type": "null"
1049
+ }
1050
+ ]
1051
+ },
1052
+ "superseded_by": {
1053
+ "type": "string",
1054
+ "pattern": "^decision_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
1055
+ "description": "Basou decision id: `decision_` followed by a 26-character Crockford Base32 ULID."
1056
+ }
1057
+ },
1058
+ "required": [
1059
+ "schema_version",
1060
+ "id",
1061
+ "session_id",
1062
+ "occurred_at",
1063
+ "source",
1064
+ "type",
1065
+ "decision_id"
1066
+ ]
1067
+ },
997
1068
  {
998
1069
  "type": "object",
999
1070
  "properties": {