@basou/core 0.7.0 → 0.9.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.7.0",
3
+ "version": "0.9.0",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "Core primitives for Basou: sessions, events, approvals, git capability",
@@ -30,6 +30,9 @@
30
30
  "type": "string",
31
31
  "minLength": 1
32
32
  },
33
+ "prev_hash": {
34
+ "type": "string"
35
+ },
33
36
  "type": {
34
37
  "type": "string",
35
38
  "const": "session_started"
@@ -70,6 +73,9 @@
70
73
  "type": "string",
71
74
  "minLength": 1
72
75
  },
76
+ "prev_hash": {
77
+ "type": "string"
78
+ },
73
79
  "type": {
74
80
  "type": "string",
75
81
  "const": "session_ended"
@@ -115,6 +121,9 @@
115
121
  "type": "string",
116
122
  "minLength": 1
117
123
  },
124
+ "prev_hash": {
125
+ "type": "string"
126
+ },
118
127
  "type": {
119
128
  "type": "string",
120
129
  "const": "session_status_changed"
@@ -163,6 +172,9 @@
163
172
  "type": "string",
164
173
  "minLength": 1
165
174
  },
175
+ "prev_hash": {
176
+ "type": "string"
177
+ },
166
178
  "type": {
167
179
  "type": "string",
168
180
  "const": "approval_requested"
@@ -254,6 +266,9 @@
254
266
  "type": "string",
255
267
  "minLength": 1
256
268
  },
269
+ "prev_hash": {
270
+ "type": "string"
271
+ },
257
272
  "type": {
258
273
  "type": "string",
259
274
  "const": "approval_approved"
@@ -313,6 +328,9 @@
313
328
  "type": "string",
314
329
  "minLength": 1
315
330
  },
331
+ "prev_hash": {
332
+ "type": "string"
333
+ },
316
334
  "type": {
317
335
  "type": "string",
318
336
  "const": "approval_rejected"
@@ -366,6 +384,9 @@
366
384
  "type": "string",
367
385
  "minLength": 1
368
386
  },
387
+ "prev_hash": {
388
+ "type": "string"
389
+ },
369
390
  "type": {
370
391
  "type": "string",
371
392
  "const": "approval_expired"
@@ -412,6 +433,9 @@
412
433
  "type": "string",
413
434
  "minLength": 1
414
435
  },
436
+ "prev_hash": {
437
+ "type": "string"
438
+ },
415
439
  "type": {
416
440
  "type": "string",
417
441
  "const": "command_executed"
@@ -506,6 +530,9 @@
506
530
  "type": "string",
507
531
  "minLength": 1
508
532
  },
533
+ "prev_hash": {
534
+ "type": "string"
535
+ },
509
536
  "type": {
510
537
  "type": "string",
511
538
  "const": "git_snapshot"
@@ -589,6 +616,9 @@
589
616
  "type": "string",
590
617
  "minLength": 1
591
618
  },
619
+ "prev_hash": {
620
+ "type": "string"
621
+ },
592
622
  "type": {
593
623
  "type": "string",
594
624
  "const": "file_changed"
@@ -653,6 +683,9 @@
653
683
  "type": "string",
654
684
  "minLength": 1
655
685
  },
686
+ "prev_hash": {
687
+ "type": "string"
688
+ },
656
689
  "type": {
657
690
  "type": "string",
658
691
  "const": "decision_recorded"
@@ -746,6 +779,9 @@
746
779
  "type": "string",
747
780
  "minLength": 1
748
781
  },
782
+ "prev_hash": {
783
+ "type": "string"
784
+ },
749
785
  "type": {
750
786
  "type": "string",
751
787
  "const": "task_created"
@@ -796,6 +832,9 @@
796
832
  "type": "string",
797
833
  "minLength": 1
798
834
  },
835
+ "prev_hash": {
836
+ "type": "string"
837
+ },
799
838
  "type": {
800
839
  "type": "string",
801
840
  "const": "task_status_changed"
@@ -850,6 +889,9 @@
850
889
  "type": "string",
851
890
  "minLength": 1
852
891
  },
892
+ "prev_hash": {
893
+ "type": "string"
894
+ },
853
895
  "type": {
854
896
  "type": "string",
855
897
  "const": "task_reconciled"
@@ -932,6 +974,9 @@
932
974
  "type": "string",
933
975
  "minLength": 1
934
976
  },
977
+ "prev_hash": {
978
+ "type": "string"
979
+ },
935
980
  "type": {
936
981
  "type": "string",
937
982
  "const": "task_linkage_refreshed"
@@ -1002,6 +1047,9 @@
1002
1047
  "type": "string",
1003
1048
  "minLength": 1
1004
1049
  },
1050
+ "prev_hash": {
1051
+ "type": "string"
1052
+ },
1005
1053
  "type": {
1006
1054
  "type": "string",
1007
1055
  "const": "task_deleted"
@@ -1054,6 +1102,9 @@
1054
1102
  "type": "string",
1055
1103
  "minLength": 1
1056
1104
  },
1105
+ "prev_hash": {
1106
+ "type": "string"
1107
+ },
1057
1108
  "type": {
1058
1109
  "type": "string",
1059
1110
  "const": "task_archived"
@@ -1106,6 +1157,9 @@
1106
1157
  "type": "string",
1107
1158
  "minLength": 1
1108
1159
  },
1160
+ "prev_hash": {
1161
+ "type": "string"
1162
+ },
1109
1163
  "type": {
1110
1164
  "type": "string",
1111
1165
  "const": "note_added"
@@ -1150,6 +1204,9 @@
1150
1204
  "type": "string",
1151
1205
  "minLength": 1
1152
1206
  },
1207
+ "prev_hash": {
1208
+ "type": "string"
1209
+ },
1153
1210
  "type": {
1154
1211
  "type": "string",
1155
1212
  "const": "adapter_output"
@@ -56,6 +56,11 @@
56
56
  },
57
57
  "external_id": {
58
58
  "type": "string"
59
+ },
60
+ "source_size_bytes": {
61
+ "type": "integer",
62
+ "minimum": 0,
63
+ "maximum": 9007199254740991
59
64
  }
60
65
  },
61
66
  "required": [
@@ -206,6 +211,24 @@
206
211
  "maximum": 9007199254740991
207
212
  }
208
213
  }
214
+ },
215
+ "integrity": {
216
+ "type": "object",
217
+ "properties": {
218
+ "head_hash": {
219
+ "type": "string"
220
+ },
221
+ "event_count": {
222
+ "type": "integer",
223
+ "minimum": 0,
224
+ "maximum": 9007199254740991
225
+ }
226
+ },
227
+ "required": [
228
+ "head_hash",
229
+ "event_count"
230
+ ],
231
+ "additionalProperties": false
209
232
  }
210
233
  },
211
234
  "required": [
@@ -248,6 +271,9 @@
248
271
  "type": "string",
249
272
  "minLength": 1
250
273
  },
274
+ "prev_hash": {
275
+ "type": "string"
276
+ },
251
277
  "type": {
252
278
  "type": "string",
253
279
  "const": "session_started"
@@ -288,6 +314,9 @@
288
314
  "type": "string",
289
315
  "minLength": 1
290
316
  },
317
+ "prev_hash": {
318
+ "type": "string"
319
+ },
291
320
  "type": {
292
321
  "type": "string",
293
322
  "const": "session_ended"
@@ -333,6 +362,9 @@
333
362
  "type": "string",
334
363
  "minLength": 1
335
364
  },
365
+ "prev_hash": {
366
+ "type": "string"
367
+ },
336
368
  "type": {
337
369
  "type": "string",
338
370
  "const": "session_status_changed"
@@ -381,6 +413,9 @@
381
413
  "type": "string",
382
414
  "minLength": 1
383
415
  },
416
+ "prev_hash": {
417
+ "type": "string"
418
+ },
384
419
  "type": {
385
420
  "type": "string",
386
421
  "const": "approval_requested"
@@ -472,6 +507,9 @@
472
507
  "type": "string",
473
508
  "minLength": 1
474
509
  },
510
+ "prev_hash": {
511
+ "type": "string"
512
+ },
475
513
  "type": {
476
514
  "type": "string",
477
515
  "const": "approval_approved"
@@ -531,6 +569,9 @@
531
569
  "type": "string",
532
570
  "minLength": 1
533
571
  },
572
+ "prev_hash": {
573
+ "type": "string"
574
+ },
534
575
  "type": {
535
576
  "type": "string",
536
577
  "const": "approval_rejected"
@@ -584,6 +625,9 @@
584
625
  "type": "string",
585
626
  "minLength": 1
586
627
  },
628
+ "prev_hash": {
629
+ "type": "string"
630
+ },
587
631
  "type": {
588
632
  "type": "string",
589
633
  "const": "approval_expired"
@@ -630,6 +674,9 @@
630
674
  "type": "string",
631
675
  "minLength": 1
632
676
  },
677
+ "prev_hash": {
678
+ "type": "string"
679
+ },
633
680
  "type": {
634
681
  "type": "string",
635
682
  "const": "command_executed"
@@ -724,6 +771,9 @@
724
771
  "type": "string",
725
772
  "minLength": 1
726
773
  },
774
+ "prev_hash": {
775
+ "type": "string"
776
+ },
727
777
  "type": {
728
778
  "type": "string",
729
779
  "const": "git_snapshot"
@@ -807,6 +857,9 @@
807
857
  "type": "string",
808
858
  "minLength": 1
809
859
  },
860
+ "prev_hash": {
861
+ "type": "string"
862
+ },
810
863
  "type": {
811
864
  "type": "string",
812
865
  "const": "file_changed"
@@ -871,6 +924,9 @@
871
924
  "type": "string",
872
925
  "minLength": 1
873
926
  },
927
+ "prev_hash": {
928
+ "type": "string"
929
+ },
874
930
  "type": {
875
931
  "type": "string",
876
932
  "const": "decision_recorded"
@@ -964,6 +1020,9 @@
964
1020
  "type": "string",
965
1021
  "minLength": 1
966
1022
  },
1023
+ "prev_hash": {
1024
+ "type": "string"
1025
+ },
967
1026
  "type": {
968
1027
  "type": "string",
969
1028
  "const": "task_created"
@@ -1014,6 +1073,9 @@
1014
1073
  "type": "string",
1015
1074
  "minLength": 1
1016
1075
  },
1076
+ "prev_hash": {
1077
+ "type": "string"
1078
+ },
1017
1079
  "type": {
1018
1080
  "type": "string",
1019
1081
  "const": "task_status_changed"
@@ -1068,6 +1130,9 @@
1068
1130
  "type": "string",
1069
1131
  "minLength": 1
1070
1132
  },
1133
+ "prev_hash": {
1134
+ "type": "string"
1135
+ },
1071
1136
  "type": {
1072
1137
  "type": "string",
1073
1138
  "const": "task_reconciled"
@@ -1150,6 +1215,9 @@
1150
1215
  "type": "string",
1151
1216
  "minLength": 1
1152
1217
  },
1218
+ "prev_hash": {
1219
+ "type": "string"
1220
+ },
1153
1221
  "type": {
1154
1222
  "type": "string",
1155
1223
  "const": "task_linkage_refreshed"
@@ -1220,6 +1288,9 @@
1220
1288
  "type": "string",
1221
1289
  "minLength": 1
1222
1290
  },
1291
+ "prev_hash": {
1292
+ "type": "string"
1293
+ },
1223
1294
  "type": {
1224
1295
  "type": "string",
1225
1296
  "const": "task_deleted"
@@ -1272,6 +1343,9 @@
1272
1343
  "type": "string",
1273
1344
  "minLength": 1
1274
1345
  },
1346
+ "prev_hash": {
1347
+ "type": "string"
1348
+ },
1275
1349
  "type": {
1276
1350
  "type": "string",
1277
1351
  "const": "task_archived"
@@ -1324,6 +1398,9 @@
1324
1398
  "type": "string",
1325
1399
  "minLength": 1
1326
1400
  },
1401
+ "prev_hash": {
1402
+ "type": "string"
1403
+ },
1327
1404
  "type": {
1328
1405
  "type": "string",
1329
1406
  "const": "note_added"
@@ -1368,6 +1445,9 @@
1368
1445
  "type": "string",
1369
1446
  "minLength": 1
1370
1447
  },
1448
+ "prev_hash": {
1449
+ "type": "string"
1450
+ },
1371
1451
  "type": {
1372
1452
  "type": "string",
1373
1453
  "const": "adapter_output"
@@ -57,6 +57,11 @@
57
57
  },
58
58
  "external_id": {
59
59
  "type": "string"
60
+ },
61
+ "source_size_bytes": {
62
+ "type": "integer",
63
+ "minimum": 0,
64
+ "maximum": 9007199254740991
60
65
  }
61
66
  },
62
67
  "required": [
@@ -208,6 +213,24 @@
208
213
  "maximum": 9007199254740991
209
214
  }
210
215
  }
216
+ },
217
+ "integrity": {
218
+ "type": "object",
219
+ "properties": {
220
+ "head_hash": {
221
+ "type": "string"
222
+ },
223
+ "event_count": {
224
+ "type": "integer",
225
+ "minimum": 0,
226
+ "maximum": 9007199254740991
227
+ }
228
+ },
229
+ "required": [
230
+ "head_hash",
231
+ "event_count"
232
+ ],
233
+ "additionalProperties": false
211
234
  }
212
235
  },
213
236
  "required": [