@medicine-wheel/events 0.18.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.
@@ -2,7 +2,7 @@
2
2
  "asyncapi": "3.0.0",
3
3
  "info": {
4
4
  "title": "Medicine Wheel events",
5
- "version": "0.2.0",
5
+ "version": "0.3.0",
6
6
  "description": "The events a Medicine Wheel writes beside its store (events.jsonl) and publishes once a broker is chosen (miadi-chronicle://548). Each message is a MiadiEventEnvelope whose payload names records and carries labels; a consumer reads the record back from the wheel by subject.id. Package: @medicine-wheel/events."
7
7
  },
8
8
  "defaultContentType": "application/json",
@@ -214,6 +214,33 @@
214
214
  }
215
215
  }
216
216
  },
217
+ "chronicleLineageMade": {
218
+ "address": "medicine-wheel.chronicle.lineage.made",
219
+ "description": "One chronicle episode was related to another — it continues from it, or relates to it — with the words that say why. Written by: POST /api/edges between two chronicle_episode nodes; the Miadi lineage door (POST /api/chronicle/episodes/{ref}/lineage) writes there.",
220
+ "messages": {
221
+ "chronicleLineageMade": {
222
+ "$ref": "#/components/messages/chronicleLineageMade"
223
+ }
224
+ }
225
+ },
226
+ "chronicleLineageAmended": {
227
+ "address": "medicine-wheel.chronicle.lineage.amended",
228
+ "description": "A relation between two chronicle episodes changed — most often, the words that say why were written. Written by: PATCH /api/edges between two chronicle_episode nodes; POST /api/edges over an existing pair.",
229
+ "messages": {
230
+ "chronicleLineageAmended": {
231
+ "$ref": "#/components/messages/chronicleLineageAmended"
232
+ }
233
+ }
234
+ },
235
+ "chronicleLineageRemoved": {
236
+ "address": "medicine-wheel.chronicle.lineage.removed",
237
+ "description": "A relation between two chronicle episodes was released. Written by: DELETE /api/edges between two chronicle_episode nodes.",
238
+ "messages": {
239
+ "chronicleLineageRemoved": {
240
+ "$ref": "#/components/messages/chronicleLineageRemoved"
241
+ }
242
+ }
243
+ },
217
244
  "nodeCreated": {
218
245
  "address": "medicine-wheel.node.created",
219
246
  "description": "A relational node was created — a person, a place, a teaching, an agent. Written by: POST /api/nodes; MCP create_relational_node and the tools that make nodes.",
@@ -546,6 +573,42 @@
546
573
  }
547
574
  ]
548
575
  },
576
+ "chronicleLineageMade": {
577
+ "action": "send",
578
+ "summary": "One chronicle episode was related to another — it continues from it, or relates to it — with the words that say why.",
579
+ "channel": {
580
+ "$ref": "#/channels/chronicleLineageMade"
581
+ },
582
+ "messages": [
583
+ {
584
+ "$ref": "#/channels/chronicleLineageMade/messages/chronicleLineageMade"
585
+ }
586
+ ]
587
+ },
588
+ "chronicleLineageAmended": {
589
+ "action": "send",
590
+ "summary": "A relation between two chronicle episodes changed — most often, the words that say why were written.",
591
+ "channel": {
592
+ "$ref": "#/channels/chronicleLineageAmended"
593
+ },
594
+ "messages": [
595
+ {
596
+ "$ref": "#/channels/chronicleLineageAmended/messages/chronicleLineageAmended"
597
+ }
598
+ ]
599
+ },
600
+ "chronicleLineageRemoved": {
601
+ "action": "send",
602
+ "summary": "A relation between two chronicle episodes was released.",
603
+ "channel": {
604
+ "$ref": "#/channels/chronicleLineageRemoved"
605
+ },
606
+ "messages": [
607
+ {
608
+ "$ref": "#/channels/chronicleLineageRemoved/messages/chronicleLineageRemoved"
609
+ }
610
+ ]
611
+ },
549
612
  "nodeCreated": {
550
613
  "action": "send",
551
614
  "summary": "A relational node was created — a person, a place, a teaching, an agent.",
@@ -623,7 +686,7 @@
623
686
  "schemas": {
624
687
  "envelope": {
625
688
  "title": "MiadiEventEnvelope (Medicine Wheel)",
626
- "description": "A Medicine Wheel event in jgwill/Miadi's MiadiEventEnvelope 0.1.0. The payload carries references and labels, never a person's words.",
689
+ "description": "A Medicine Wheel event in jgwill/Miadi's MiadiEventEnvelope 0.1.0. The payload carries references and labels; a person's words travel only where privacy.content_included says so, and only words already published (an episode manifest's lineage sentence).",
627
690
  "type": "object",
628
691
  "required": [
629
692
  "id",
@@ -772,6 +835,13 @@
772
835
  }
773
836
  }
774
837
  },
838
+ "privacy": {
839
+ "properties": {
840
+ "content_included": {
841
+ "const": false
842
+ }
843
+ }
844
+ },
775
845
  "payload": {
776
846
  "type": "object",
777
847
  "properties": {
@@ -807,6 +877,13 @@
807
877
  }
808
878
  }
809
879
  },
880
+ "privacy": {
881
+ "properties": {
882
+ "content_included": {
883
+ "const": false
884
+ }
885
+ }
886
+ },
810
887
  "payload": {
811
888
  "type": "object",
812
889
  "properties": {
@@ -850,6 +927,13 @@
850
927
  }
851
928
  }
852
929
  },
930
+ "privacy": {
931
+ "properties": {
932
+ "content_included": {
933
+ "const": false
934
+ }
935
+ }
936
+ },
853
937
  "payload": {
854
938
  "type": "object",
855
939
  "properties": {}
@@ -877,6 +961,13 @@
877
961
  }
878
962
  }
879
963
  },
964
+ "privacy": {
965
+ "properties": {
966
+ "content_included": {
967
+ "const": false
968
+ }
969
+ }
970
+ },
880
971
  "payload": {
881
972
  "type": "object",
882
973
  "properties": {
@@ -936,6 +1027,13 @@
936
1027
  }
937
1028
  }
938
1029
  },
1030
+ "privacy": {
1031
+ "properties": {
1032
+ "content_included": {
1033
+ "const": false
1034
+ }
1035
+ }
1036
+ },
939
1037
  "payload": {
940
1038
  "type": "object",
941
1039
  "properties": {
@@ -1003,6 +1101,13 @@
1003
1101
  }
1004
1102
  }
1005
1103
  },
1104
+ "privacy": {
1105
+ "properties": {
1106
+ "content_included": {
1107
+ "const": false
1108
+ }
1109
+ }
1110
+ },
1006
1111
  "payload": {
1007
1112
  "type": "object",
1008
1113
  "properties": {
@@ -1042,6 +1147,13 @@
1042
1147
  }
1043
1148
  }
1044
1149
  },
1150
+ "privacy": {
1151
+ "properties": {
1152
+ "content_included": {
1153
+ "const": false
1154
+ }
1155
+ }
1156
+ },
1045
1157
  "payload": {
1046
1158
  "type": "object",
1047
1159
  "properties": {
@@ -1098,6 +1210,13 @@
1098
1210
  }
1099
1211
  }
1100
1212
  },
1213
+ "privacy": {
1214
+ "properties": {
1215
+ "content_included": {
1216
+ "const": false
1217
+ }
1218
+ }
1219
+ },
1101
1220
  "payload": {
1102
1221
  "type": "object",
1103
1222
  "properties": {
@@ -1159,6 +1278,13 @@
1159
1278
  }
1160
1279
  }
1161
1280
  },
1281
+ "privacy": {
1282
+ "properties": {
1283
+ "content_included": {
1284
+ "const": false
1285
+ }
1286
+ }
1287
+ },
1162
1288
  "payload": {
1163
1289
  "type": "object",
1164
1290
  "properties": {
@@ -1219,6 +1345,13 @@
1219
1345
  }
1220
1346
  }
1221
1347
  },
1348
+ "privacy": {
1349
+ "properties": {
1350
+ "content_included": {
1351
+ "const": false
1352
+ }
1353
+ }
1354
+ },
1222
1355
  "payload": {
1223
1356
  "type": "object",
1224
1357
  "properties": {
@@ -1259,6 +1392,13 @@
1259
1392
  }
1260
1393
  }
1261
1394
  },
1395
+ "privacy": {
1396
+ "properties": {
1397
+ "content_included": {
1398
+ "const": false
1399
+ }
1400
+ }
1401
+ },
1262
1402
  "payload": {
1263
1403
  "type": "object",
1264
1404
  "properties": {
@@ -1311,6 +1451,13 @@
1311
1451
  }
1312
1452
  }
1313
1453
  },
1454
+ "privacy": {
1455
+ "properties": {
1456
+ "content_included": {
1457
+ "const": false
1458
+ }
1459
+ }
1460
+ },
1314
1461
  "payload": {
1315
1462
  "type": "object",
1316
1463
  "properties": {
@@ -1363,6 +1510,13 @@
1363
1510
  }
1364
1511
  }
1365
1512
  },
1513
+ "privacy": {
1514
+ "properties": {
1515
+ "content_included": {
1516
+ "const": false
1517
+ }
1518
+ }
1519
+ },
1366
1520
  "payload": {
1367
1521
  "type": "object",
1368
1522
  "properties": {
@@ -1403,6 +1557,13 @@
1403
1557
  }
1404
1558
  }
1405
1559
  },
1560
+ "privacy": {
1561
+ "properties": {
1562
+ "content_included": {
1563
+ "const": false
1564
+ }
1565
+ }
1566
+ },
1406
1567
  "payload": {
1407
1568
  "type": "object",
1408
1569
  "properties": {
@@ -1446,6 +1607,13 @@
1446
1607
  }
1447
1608
  }
1448
1609
  },
1610
+ "privacy": {
1611
+ "properties": {
1612
+ "content_included": {
1613
+ "const": false
1614
+ }
1615
+ }
1616
+ },
1449
1617
  "payload": {
1450
1618
  "type": "object",
1451
1619
  "properties": {
@@ -1493,6 +1661,13 @@
1493
1661
  }
1494
1662
  }
1495
1663
  },
1664
+ "privacy": {
1665
+ "properties": {
1666
+ "content_included": {
1667
+ "const": false
1668
+ }
1669
+ }
1670
+ },
1496
1671
  "payload": {
1497
1672
  "type": "object",
1498
1673
  "properties": {
@@ -1532,6 +1707,13 @@
1532
1707
  }
1533
1708
  }
1534
1709
  },
1710
+ "privacy": {
1711
+ "properties": {
1712
+ "content_included": {
1713
+ "const": false
1714
+ }
1715
+ }
1716
+ },
1535
1717
  "payload": {
1536
1718
  "type": "object",
1537
1719
  "properties": {
@@ -1575,6 +1757,13 @@
1575
1757
  }
1576
1758
  }
1577
1759
  },
1760
+ "privacy": {
1761
+ "properties": {
1762
+ "content_included": {
1763
+ "const": false
1764
+ }
1765
+ }
1766
+ },
1578
1767
  "payload": {
1579
1768
  "type": "object",
1580
1769
  "properties": {
@@ -1622,6 +1811,13 @@
1622
1811
  }
1623
1812
  }
1624
1813
  },
1814
+ "privacy": {
1815
+ "properties": {
1816
+ "content_included": {
1817
+ "const": false
1818
+ }
1819
+ }
1820
+ },
1625
1821
  "payload": {
1626
1822
  "type": "object",
1627
1823
  "properties": {
@@ -1661,6 +1857,13 @@
1661
1857
  }
1662
1858
  }
1663
1859
  },
1860
+ "privacy": {
1861
+ "properties": {
1862
+ "content_included": {
1863
+ "const": false
1864
+ }
1865
+ }
1866
+ },
1664
1867
  "payload": {
1665
1868
  "type": "object",
1666
1869
  "properties": {
@@ -1713,6 +1916,13 @@
1713
1916
  }
1714
1917
  }
1715
1918
  },
1919
+ "privacy": {
1920
+ "properties": {
1921
+ "content_included": {
1922
+ "const": false
1923
+ }
1924
+ }
1925
+ },
1716
1926
  "payload": {
1717
1927
  "type": "object",
1718
1928
  "properties": {
@@ -1758,6 +1968,13 @@
1758
1968
  }
1759
1969
  }
1760
1970
  },
1971
+ "privacy": {
1972
+ "properties": {
1973
+ "content_included": {
1974
+ "const": false
1975
+ }
1976
+ }
1977
+ },
1761
1978
  "payload": {
1762
1979
  "type": "object",
1763
1980
  "properties": {
@@ -1810,6 +2027,13 @@
1810
2027
  }
1811
2028
  }
1812
2029
  },
2030
+ "privacy": {
2031
+ "properties": {
2032
+ "content_included": {
2033
+ "const": false
2034
+ }
2035
+ }
2036
+ },
1813
2037
  "payload": {
1814
2038
  "type": "object",
1815
2039
  "properties": {
@@ -1835,6 +2059,181 @@
1835
2059
  }
1836
2060
  ]
1837
2061
  },
2062
+ "chronicleLineageMade": {
2063
+ "title": "medicine-wheel.chronicle.lineage.made",
2064
+ "description": "One chronicle episode was related to another — it continues from it, or relates to it — with the words that say why. Written by: POST /api/edges between two chronicle_episode nodes; the Miadi lineage door (POST /api/chronicle/episodes/{ref}/lineage) writes there. Correlation: the episode the relation starts from.",
2065
+ "allOf": [
2066
+ {
2067
+ "$ref": "#/components/schemas/envelope"
2068
+ },
2069
+ {
2070
+ "properties": {
2071
+ "event_type": {
2072
+ "const": "medicine-wheel.chronicle.lineage.made"
2073
+ },
2074
+ "subject": {
2075
+ "properties": {
2076
+ "kind": {
2077
+ "const": "relation"
2078
+ }
2079
+ }
2080
+ },
2081
+ "privacy": {
2082
+ "properties": {
2083
+ "content_included": {
2084
+ "const": true
2085
+ }
2086
+ }
2087
+ },
2088
+ "payload": {
2089
+ "type": "object",
2090
+ "properties": {
2091
+ "from_id": {
2092
+ "type": "string",
2093
+ "description": "The episode the relation starts from (`chronicle:<folder>`)."
2094
+ },
2095
+ "to_id": {
2096
+ "type": "string",
2097
+ "description": "The episode it relates to (`chronicle:<folder>`)."
2098
+ },
2099
+ "relationship_type": {
2100
+ "type": "string",
2101
+ "description": "`continues_from` or `relates_to`."
2102
+ },
2103
+ "relation": {
2104
+ "type": "string",
2105
+ "description": "Why they are related — the sentence the episode manifest (episode.yaml) carries, already committed to the chronicle."
2106
+ }
2107
+ },
2108
+ "required": [
2109
+ "from_id",
2110
+ "to_id",
2111
+ "relationship_type"
2112
+ ]
2113
+ }
2114
+ }
2115
+ }
2116
+ ]
2117
+ },
2118
+ "chronicleLineageAmended": {
2119
+ "title": "medicine-wheel.chronicle.lineage.amended",
2120
+ "description": "A relation between two chronicle episodes changed — most often, the words that say why were written. Written by: PATCH /api/edges between two chronicle_episode nodes; POST /api/edges over an existing pair. Correlation: the episode the relation starts from.",
2121
+ "allOf": [
2122
+ {
2123
+ "$ref": "#/components/schemas/envelope"
2124
+ },
2125
+ {
2126
+ "properties": {
2127
+ "event_type": {
2128
+ "const": "medicine-wheel.chronicle.lineage.amended"
2129
+ },
2130
+ "subject": {
2131
+ "properties": {
2132
+ "kind": {
2133
+ "const": "relation"
2134
+ }
2135
+ }
2136
+ },
2137
+ "privacy": {
2138
+ "properties": {
2139
+ "content_included": {
2140
+ "const": true
2141
+ }
2142
+ }
2143
+ },
2144
+ "payload": {
2145
+ "type": "object",
2146
+ "properties": {
2147
+ "from_id": {
2148
+ "type": "string",
2149
+ "description": "The episode the relation starts from (`chronicle:<folder>`)."
2150
+ },
2151
+ "to_id": {
2152
+ "type": "string",
2153
+ "description": "The episode it relates to (`chronicle:<folder>`)."
2154
+ },
2155
+ "relationship_type": {
2156
+ "type": "string",
2157
+ "description": "`continues_from` or `relates_to`."
2158
+ },
2159
+ "relation": {
2160
+ "type": "string",
2161
+ "description": "Why they are related — the sentence the episode manifest (episode.yaml) carries, already committed to the chronicle."
2162
+ },
2163
+ "changed": {
2164
+ "type": "array",
2165
+ "items": {
2166
+ "type": "string"
2167
+ },
2168
+ "description": "The fields the write changed. Metadata keys appear as `metadata.<key>`."
2169
+ }
2170
+ },
2171
+ "required": [
2172
+ "from_id",
2173
+ "to_id",
2174
+ "relationship_type",
2175
+ "changed"
2176
+ ]
2177
+ }
2178
+ }
2179
+ }
2180
+ ]
2181
+ },
2182
+ "chronicleLineageRemoved": {
2183
+ "title": "medicine-wheel.chronicle.lineage.removed",
2184
+ "description": "A relation between two chronicle episodes was released. Written by: DELETE /api/edges between two chronicle_episode nodes. Correlation: the episode the relation starts from.",
2185
+ "allOf": [
2186
+ {
2187
+ "$ref": "#/components/schemas/envelope"
2188
+ },
2189
+ {
2190
+ "properties": {
2191
+ "event_type": {
2192
+ "const": "medicine-wheel.chronicle.lineage.removed"
2193
+ },
2194
+ "subject": {
2195
+ "properties": {
2196
+ "kind": {
2197
+ "const": "relation"
2198
+ }
2199
+ }
2200
+ },
2201
+ "privacy": {
2202
+ "properties": {
2203
+ "content_included": {
2204
+ "const": true
2205
+ }
2206
+ }
2207
+ },
2208
+ "payload": {
2209
+ "type": "object",
2210
+ "properties": {
2211
+ "from_id": {
2212
+ "type": "string",
2213
+ "description": "The episode the relation starts from (`chronicle:<folder>`)."
2214
+ },
2215
+ "to_id": {
2216
+ "type": "string",
2217
+ "description": "The episode it relates to (`chronicle:<folder>`)."
2218
+ },
2219
+ "relationship_type": {
2220
+ "type": "string",
2221
+ "description": "`continues_from` or `relates_to`."
2222
+ },
2223
+ "relation": {
2224
+ "type": "string",
2225
+ "description": "Why they are related — the sentence the episode manifest (episode.yaml) carries, already committed to the chronicle."
2226
+ }
2227
+ },
2228
+ "required": [
2229
+ "from_id",
2230
+ "to_id"
2231
+ ]
2232
+ }
2233
+ }
2234
+ }
2235
+ ]
2236
+ },
1838
2237
  "nodeCreated": {
1839
2238
  "title": "medicine-wheel.node.created",
1840
2239
  "description": "A relational node was created — a person, a place, a teaching, an agent. Written by: POST /api/nodes; MCP create_relational_node and the tools that make nodes.",
@@ -1854,6 +2253,13 @@
1854
2253
  }
1855
2254
  }
1856
2255
  },
2256
+ "privacy": {
2257
+ "properties": {
2258
+ "content_included": {
2259
+ "const": false
2260
+ }
2261
+ }
2262
+ },
1857
2263
  "payload": {
1858
2264
  "type": "object",
1859
2265
  "properties": {
@@ -1897,6 +2303,13 @@
1897
2303
  }
1898
2304
  }
1899
2305
  },
2306
+ "privacy": {
2307
+ "properties": {
2308
+ "content_included": {
2309
+ "const": false
2310
+ }
2311
+ }
2312
+ },
1900
2313
  "payload": {
1901
2314
  "type": "object",
1902
2315
  "properties": {
@@ -1944,6 +2357,13 @@
1944
2357
  }
1945
2358
  }
1946
2359
  },
2360
+ "privacy": {
2361
+ "properties": {
2362
+ "content_included": {
2363
+ "const": false
2364
+ }
2365
+ }
2366
+ },
1947
2367
  "payload": {
1948
2368
  "type": "object",
1949
2369
  "properties": {
@@ -1983,6 +2403,13 @@
1983
2403
  }
1984
2404
  }
1985
2405
  },
2406
+ "privacy": {
2407
+ "properties": {
2408
+ "content_included": {
2409
+ "const": false
2410
+ }
2411
+ }
2412
+ },
1986
2413
  "payload": {
1987
2414
  "type": "object",
1988
2415
  "properties": {
@@ -2028,6 +2455,13 @@
2028
2455
  }
2029
2456
  }
2030
2457
  },
2458
+ "privacy": {
2459
+ "properties": {
2460
+ "content_included": {
2461
+ "const": false
2462
+ }
2463
+ }
2464
+ },
2031
2465
  "payload": {
2032
2466
  "type": "object",
2033
2467
  "properties": {
@@ -2081,6 +2515,13 @@
2081
2515
  }
2082
2516
  }
2083
2517
  },
2518
+ "privacy": {
2519
+ "properties": {
2520
+ "content_included": {
2521
+ "const": false
2522
+ }
2523
+ }
2524
+ },
2084
2525
  "payload": {
2085
2526
  "type": "object",
2086
2527
  "properties": {
@@ -2315,6 +2756,33 @@
2315
2756
  "$ref": "#/components/schemas/memoryConclusionRemoved"
2316
2757
  }
2317
2758
  },
2759
+ "chronicleLineageMade": {
2760
+ "name": "medicine-wheel.chronicle.lineage.made",
2761
+ "title": "chronicle.lineage.made",
2762
+ "summary": "One chronicle episode was related to another — it continues from it, or relates to it — with the words that say why.",
2763
+ "contentType": "application/json",
2764
+ "payload": {
2765
+ "$ref": "#/components/schemas/chronicleLineageMade"
2766
+ }
2767
+ },
2768
+ "chronicleLineageAmended": {
2769
+ "name": "medicine-wheel.chronicle.lineage.amended",
2770
+ "title": "chronicle.lineage.amended",
2771
+ "summary": "A relation between two chronicle episodes changed — most often, the words that say why were written.",
2772
+ "contentType": "application/json",
2773
+ "payload": {
2774
+ "$ref": "#/components/schemas/chronicleLineageAmended"
2775
+ }
2776
+ },
2777
+ "chronicleLineageRemoved": {
2778
+ "name": "medicine-wheel.chronicle.lineage.removed",
2779
+ "title": "chronicle.lineage.removed",
2780
+ "summary": "A relation between two chronicle episodes was released.",
2781
+ "contentType": "application/json",
2782
+ "payload": {
2783
+ "$ref": "#/components/schemas/chronicleLineageRemoved"
2784
+ }
2785
+ },
2318
2786
  "nodeCreated": {
2319
2787
  "name": "medicine-wheel.node.created",
2320
2788
  "title": "node.created",