@x12i/memorix-service 3.0.3 → 3.0.4

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.
Files changed (59) hide show
  1. package/README.md +20 -8
  2. package/dist/access-gate.d.ts +15 -0
  3. package/dist/access-gate.d.ts.map +1 -0
  4. package/dist/access-gate.js +38 -0
  5. package/dist/access-gate.js.map +1 -0
  6. package/dist/app.d.ts.map +1 -1
  7. package/dist/app.js +4 -0
  8. package/dist/app.js.map +1 -1
  9. package/dist/callback-grant.d.ts +16 -0
  10. package/dist/callback-grant.d.ts.map +1 -0
  11. package/dist/callback-grant.js +72 -0
  12. package/dist/callback-grant.js.map +1 -0
  13. package/dist/index.d.ts +1 -1
  14. package/dist/index.d.ts.map +1 -1
  15. package/dist/index.js +1 -1
  16. package/dist/index.js.map +1 -1
  17. package/dist/isolation.d.ts +9 -25
  18. package/dist/isolation.d.ts.map +1 -1
  19. package/dist/isolation.js +19 -59
  20. package/dist/isolation.js.map +1 -1
  21. package/dist/known-packs.d.ts +1 -1
  22. package/dist/known-packs.d.ts.map +1 -1
  23. package/dist/known-packs.js +3 -2
  24. package/dist/known-packs.js.map +1 -1
  25. package/dist/live.d.ts +8 -0
  26. package/dist/live.d.ts.map +1 -1
  27. package/dist/live.js +49 -0
  28. package/dist/live.js.map +1 -1
  29. package/dist/openapi/openapi.json +1465 -213
  30. package/dist/platform.d.ts +20 -1
  31. package/dist/platform.d.ts.map +1 -1
  32. package/dist/platform.js +134 -9
  33. package/dist/platform.js.map +1 -1
  34. package/dist/relationships/operator-links.d.ts +1 -1
  35. package/dist/relationships/operator-links.js +1 -1
  36. package/dist/routes/connector-invocations.d.ts +7 -0
  37. package/dist/routes/connector-invocations.d.ts.map +1 -0
  38. package/dist/routes/connector-invocations.js +216 -0
  39. package/dist/routes/connector-invocations.js.map +1 -0
  40. package/dist/routes/data.d.ts.map +1 -1
  41. package/dist/routes/data.js +4 -0
  42. package/dist/routes/data.js.map +1 -1
  43. package/dist/routes/memory.d.ts.map +1 -1
  44. package/dist/routes/memory.js +719 -7
  45. package/dist/routes/memory.js.map +1 -1
  46. package/dist/routes/metadata.d.ts.map +1 -1
  47. package/dist/routes/metadata.js +2 -1
  48. package/dist/routes/metadata.js.map +1 -1
  49. package/dist/routes/operations.d.ts.map +1 -1
  50. package/dist/routes/operations.js +3 -1
  51. package/dist/routes/operations.js.map +1 -1
  52. package/dist/routes/pipelines.d.ts.map +1 -1
  53. package/dist/routes/pipelines.js +67 -0
  54. package/dist/routes/pipelines.js.map +1 -1
  55. package/dist/routes/relationships.d.ts.map +1 -1
  56. package/dist/routes/relationships.js +3 -0
  57. package/dist/routes/relationships.js.map +1 -1
  58. package/openapi/openapi.json +1465 -213
  59. package/package.json +5 -3
@@ -254,7 +254,7 @@
254
254
  "scope": {
255
255
  "orgId": "acme",
256
256
  "agentIds": [
257
- "ops"
257
+ "opx"
258
258
  ]
259
259
  },
260
260
  "platform": {
@@ -538,7 +538,7 @@
538
538
  "scope": {
539
539
  "orgId": "acme",
540
540
  "agentIds": [
541
- "ops"
541
+ "opx"
542
542
  ]
543
543
  },
544
544
  "effective": {
@@ -916,7 +916,7 @@
916
916
  }
917
917
  },
918
918
  "example": {
919
- "packId": "ops"
919
+ "packId": "opx"
920
920
  }
921
921
  }
922
922
  }
@@ -1046,7 +1046,7 @@
1046
1046
  },
1047
1047
  "example": {
1048
1048
  "confirm": true,
1049
- "packId": "ops"
1049
+ "packId": "opx"
1050
1050
  }
1051
1051
  }
1052
1052
  }
@@ -1401,7 +1401,7 @@
1401
1401
  "scope": {
1402
1402
  "orgId": "acme",
1403
1403
  "agentIds": [
1404
- "ops"
1404
+ "opx"
1405
1405
  ]
1406
1406
  },
1407
1407
  "addressing": {
@@ -2223,7 +2223,7 @@
2223
2223
  "scope": {
2224
2224
  "orgId": "acme",
2225
2225
  "agentIds": [
2226
- "ops"
2226
+ "opx"
2227
2227
  ]
2228
2228
  },
2229
2229
  "direction": "forward",
@@ -2736,7 +2736,7 @@
2736
2736
  }
2737
2737
  }
2738
2738
  },
2739
- "description": "removeDefinitionLinks other definitions untouched"
2739
+ "description": "removeDefinitionLinks \u2014 other definitions untouched"
2740
2740
  }
2741
2741
  },
2742
2742
  "/api/relationships/related-property": {
@@ -3183,17 +3183,34 @@
3183
3183
  "type": "array",
3184
3184
  "items": {
3185
3185
  "type": "object",
3186
+ "required": [
3187
+ "id"
3188
+ ],
3186
3189
  "properties": {
3187
- "sourceId": {
3190
+ "id": {
3188
3191
  "type": "string"
3189
3192
  },
3190
- "credentialRef": {
3193
+ "name": {
3194
+ "type": "string"
3195
+ },
3196
+ "kind": {
3191
3197
  "type": "string"
3192
3198
  },
3193
- "mode": {
3199
+ "credentialRef": {
3194
3200
  "type": "string"
3201
+ },
3202
+ "routes": {
3203
+ "type": "array",
3204
+ "items": {
3205
+ "$ref": "#/components/schemas/MemorySourceRoute"
3206
+ }
3207
+ },
3208
+ "provenance": {
3209
+ "type": "object",
3210
+ "additionalProperties": true
3195
3211
  }
3196
- }
3212
+ },
3213
+ "additionalProperties": true
3197
3214
  }
3198
3215
  },
3199
3216
  "note": {
@@ -5109,7 +5126,7 @@
5109
5126
  "/api/intelligence/compare": {
5110
5127
  "post": {
5111
5128
  "operationId": "intelligenceCompare",
5112
- "summary": "Compare proposals to approved ops",
5129
+ "summary": "Compare proposals to approved opx",
5113
5130
  "tags": [
5114
5131
  "Intelligence"
5115
5132
  ],
@@ -5742,222 +5759,1251 @@
5742
5759
  }
5743
5760
  }
5744
5761
  }
5745
- }
5746
- },
5747
- "components": {
5748
- "parameters": {
5749
- "XMemorixOrgId": {
5750
- "name": "x-memorix-org-id",
5751
- "in": "header",
5752
- "required": true,
5753
- "schema": {
5754
- "type": "string",
5755
- "minLength": 1
5756
- },
5757
- "description": "Organization / data-universe id"
5758
- },
5759
- "XMemorixAgentIds": {
5760
- "name": "x-memorix-agent-ids",
5761
- "in": "header",
5762
- "required": true,
5763
- "schema": {
5764
- "type": "string",
5765
- "minLength": 1
5766
- },
5767
- "description": "Comma-separated agentIds for effective metadata",
5768
- "example": "ops,fieldstone"
5769
- }
5770
5762
  },
5771
- "schemas": {
5772
- "MemorixScope": {
5773
- "type": "object",
5774
- "required": [
5775
- "orgId",
5776
- "agentIds"
5777
- ],
5778
- "additionalProperties": false,
5779
- "properties": {
5780
- "orgId": {
5781
- "type": "string",
5782
- "minLength": 1,
5783
- "description": "Data universe / org isolation key"
5784
- },
5785
- "agentIds": {
5786
- "type": "array",
5787
- "items": {
5788
- "type": "string",
5789
- "minLength": 1
5790
- },
5791
- "minItems": 1,
5792
- "uniqueItems": true,
5793
- "description": "Effective metadata agent chain (canonicalized/sorted)"
5794
- }
5795
- },
5796
- "example": {
5797
- "orgId": "acme",
5798
- "agentIds": [
5799
- "ops",
5800
- "fieldstone"
5801
- ]
5802
- }
5803
- },
5804
- "MemorixIdentifier": {
5805
- "type": "object",
5806
- "required": [
5807
- "kind",
5808
- "value"
5763
+ "/api/memory/sources/{sourceId}/connection": {
5764
+ "get": {
5765
+ "operationId": "memoryGetSourceConnection",
5766
+ "summary": "Probe source connection (configured URL + reachability)",
5767
+ "tags": [
5768
+ "Memory"
5809
5769
  ],
5810
- "properties": {
5811
- "kind": {
5812
- "type": "string"
5813
- },
5814
- "value": {
5815
- "type": "string"
5770
+ "parameters": [
5771
+ {
5772
+ "$ref": "#/components/parameters/XMemorixOrgId"
5816
5773
  },
5817
- "issuer": {
5818
- "type": "string"
5774
+ {
5775
+ "$ref": "#/components/parameters/XMemorixAgentIds"
5819
5776
  },
5820
- "normalizedValue": {
5821
- "type": "string"
5777
+ {
5778
+ "name": "sourceId",
5779
+ "in": "path",
5780
+ "required": true,
5781
+ "schema": {
5782
+ "type": "string"
5783
+ }
5822
5784
  }
5823
- }
5824
- },
5825
- "MemorixRecordV2": {
5826
- "type": "object",
5827
- "required": [
5828
- "format",
5829
- "recordId",
5830
- "revision",
5831
- "objectType",
5832
- "contentType",
5833
- "dataCategory",
5834
- "concept",
5835
- "data",
5836
- "_system"
5837
5785
  ],
5838
- "properties": {
5839
- "format": {
5840
- "type": "string",
5841
- "enum": [
5842
- "memorix-record/2"
5843
- ]
5844
- },
5845
- "recordId": {
5846
- "type": "string"
5847
- },
5848
- "revision": {
5849
- "type": "integer",
5850
- "minimum": 1
5851
- },
5852
- "objectType": {
5853
- "type": "string"
5854
- },
5855
- "contentType": {
5856
- "type": "string"
5857
- },
5858
- "dataCategory": {
5859
- "type": "string",
5860
- "enum": [
5861
- "entity",
5862
- "event",
5863
- "knowledge"
5864
- ]
5865
- },
5866
- "concept": {
5867
- "type": "object",
5868
- "required": [
5869
- "title",
5870
- "identifiers"
5871
- ],
5872
- "properties": {
5873
- "title": {
5874
- "type": "string"
5875
- },
5876
- "identifiers": {
5877
- "type": "object",
5878
- "required": [
5879
- "primary"
5880
- ],
5881
- "properties": {
5882
- "primary": {
5883
- "$ref": "#/components/schemas/MemorixIdentifier"
5884
- },
5885
- "alternates": {
5886
- "type": "array",
5887
- "items": {
5888
- "$ref": "#/components/schemas/MemorixIdentifier"
5889
- }
5890
- }
5891
- }
5892
- }
5893
- }
5894
- },
5895
- "data": {
5896
- "type": "object",
5897
- "additionalProperties": true
5898
- },
5899
- "analytics": {
5900
- "type": "object",
5901
- "additionalProperties": true
5902
- },
5903
- "enrichment": {
5904
- "type": "object",
5905
- "additionalProperties": true
5906
- },
5907
- "insights": {
5908
- "type": "object",
5909
- "additionalProperties": true
5910
- },
5911
- "_system": {
5912
- "type": "object",
5913
- "required": [
5914
- "state",
5915
- "createdAt",
5916
- "modifiedAt"
5917
- ],
5918
- "properties": {
5919
- "state": {
5920
- "type": "string",
5921
- "enum": [
5922
- "active",
5923
- "archived",
5924
- "superseded"
5925
- ]
5926
- },
5927
- "createdAt": {
5928
- "type": "string",
5929
- "format": "date-time"
5930
- },
5931
- "modifiedAt": {
5932
- "type": "string",
5933
- "format": "date-time"
5934
- },
5935
- "observedAt": {
5936
- "type": "string",
5937
- "format": "date-time"
5938
- },
5939
- "lifecycle": {
5940
- "type": "array",
5941
- "items": {
5786
+ "responses": {
5787
+ "200": {
5788
+ "description": "Connection probe result",
5789
+ "content": {
5790
+ "application/json": {
5791
+ "schema": {
5942
5792
  "type": "object",
5943
5793
  "required": [
5944
- "process",
5945
- "processedAt"
5794
+ "scope",
5795
+ "sourceId",
5796
+ "status",
5797
+ "configured",
5798
+ "reachable",
5799
+ "checkedAt"
5946
5800
  ],
5947
5801
  "properties": {
5948
- "process": {
5802
+ "scope": {
5803
+ "$ref": "#/components/schemas/MemorixScope"
5804
+ },
5805
+ "sourceId": {
5949
5806
  "type": "string"
5950
5807
  },
5951
- "processedAt": {
5808
+ "status": {
5809
+ "type": "string",
5810
+ "enum": [
5811
+ "Connected",
5812
+ "Unreachable",
5813
+ "Missing URL"
5814
+ ]
5815
+ },
5816
+ "configured": {
5817
+ "type": "boolean"
5818
+ },
5819
+ "reachable": {
5820
+ "type": "boolean"
5821
+ },
5822
+ "checkedAt": {
5952
5823
  "type": "string",
5953
5824
  "format": "date-time"
5954
5825
  }
5955
5826
  }
5956
5827
  }
5957
- },
5958
- "provenance": {
5959
- "type": "object",
5960
- "additionalProperties": true
5828
+ }
5829
+ }
5830
+ },
5831
+ "404": {
5832
+ "description": "Source not in effective metadata",
5833
+ "content": {
5834
+ "application/json": {
5835
+ "schema": {
5836
+ "$ref": "#/components/schemas/ErrorEnvelope"
5837
+ }
5838
+ }
5839
+ }
5840
+ }
5841
+ }
5842
+ }
5843
+ },
5844
+ "/api/memory/sources/{sourceId}/checkpoints": {
5845
+ "get": {
5846
+ "operationId": "memoryListSourceCheckpoints",
5847
+ "summary": "List source checkpoints",
5848
+ "tags": [
5849
+ "Memory"
5850
+ ],
5851
+ "parameters": [
5852
+ {
5853
+ "$ref": "#/components/parameters/XMemorixOrgId"
5854
+ },
5855
+ {
5856
+ "$ref": "#/components/parameters/XMemorixAgentIds"
5857
+ },
5858
+ {
5859
+ "name": "sourceId",
5860
+ "in": "path",
5861
+ "required": true,
5862
+ "schema": {
5863
+ "type": "string"
5864
+ }
5865
+ },
5866
+ {
5867
+ "name": "mode",
5868
+ "in": "query",
5869
+ "schema": {
5870
+ "type": "string",
5871
+ "enum": [
5872
+ "knowledge",
5873
+ "context"
5874
+ ]
5875
+ }
5876
+ },
5877
+ {
5878
+ "name": "technical",
5879
+ "in": "query",
5880
+ "schema": {
5881
+ "type": "string"
5882
+ }
5883
+ }
5884
+ ],
5885
+ "responses": {
5886
+ "200": {
5887
+ "description": "Checkpoint summaries for source routes",
5888
+ "content": {
5889
+ "application/json": {
5890
+ "schema": {
5891
+ "type": "object",
5892
+ "required": [
5893
+ "scope",
5894
+ "sourceId",
5895
+ "checkpoints"
5896
+ ],
5897
+ "properties": {
5898
+ "scope": {
5899
+ "$ref": "#/components/schemas/MemorixScope"
5900
+ },
5901
+ "sourceId": {
5902
+ "type": "string"
5903
+ },
5904
+ "checkpoints": {
5905
+ "type": "array",
5906
+ "items": {
5907
+ "$ref": "#/components/schemas/MemoryCheckpointSummary"
5908
+ }
5909
+ },
5910
+ "note": {
5911
+ "type": "string"
5912
+ }
5913
+ }
5914
+ }
5915
+ }
5916
+ }
5917
+ },
5918
+ "400": {
5919
+ "description": "Bad request / validation",
5920
+ "content": {
5921
+ "application/json": {
5922
+ "schema": {
5923
+ "$ref": "#/components/schemas/ErrorEnvelope"
5924
+ }
5925
+ }
5926
+ }
5927
+ },
5928
+ "404": {
5929
+ "description": "Not found",
5930
+ "content": {
5931
+ "application/json": {
5932
+ "schema": {
5933
+ "$ref": "#/components/schemas/ErrorEnvelope"
5934
+ }
5935
+ }
5936
+ }
5937
+ },
5938
+ "503": {
5939
+ "description": "Service unavailable",
5940
+ "content": {
5941
+ "application/json": {
5942
+ "schema": {
5943
+ "$ref": "#/components/schemas/ErrorEnvelope"
5944
+ }
5945
+ }
5946
+ }
5947
+ }
5948
+ }
5949
+ },
5950
+ "put": {
5951
+ "operationId": "memoryPutSourceCheckpoint",
5952
+ "summary": "Set source checkpoint (called services)",
5953
+ "tags": [
5954
+ "Memory"
5955
+ ],
5956
+ "parameters": [
5957
+ {
5958
+ "$ref": "#/components/parameters/XMemorixOrgId"
5959
+ },
5960
+ {
5961
+ "$ref": "#/components/parameters/XMemorixAgentIds"
5962
+ },
5963
+ {
5964
+ "name": "sourceId",
5965
+ "in": "path",
5966
+ "required": true,
5967
+ "schema": {
5968
+ "type": "string"
5969
+ }
5970
+ }
5971
+ ],
5972
+ "requestBody": {
5973
+ "required": true,
5974
+ "content": {
5975
+ "application/json": {
5976
+ "schema": {
5977
+ "type": "object",
5978
+ "required": [
5979
+ "objectType"
5980
+ ],
5981
+ "properties": {
5982
+ "objectType": {
5983
+ "type": "string"
5984
+ },
5985
+ "routeEndpoint": {
5986
+ "type": "string"
5987
+ },
5988
+ "mode": {
5989
+ "type": "string",
5990
+ "enum": [
5991
+ "knowledge",
5992
+ "context"
5993
+ ]
5994
+ },
5995
+ "workRef": {
5996
+ "type": "string"
5997
+ },
5998
+ "method": {
5999
+ "type": "string",
6000
+ "enum": [
6001
+ "cursor",
6002
+ "watermark",
6003
+ "fullScanHash"
6004
+ ]
6005
+ },
6006
+ "committedCursor": {
6007
+ "type": "string",
6008
+ "nullable": true
6009
+ },
6010
+ "watermarkValue": {
6011
+ "type": "string",
6012
+ "nullable": true
6013
+ },
6014
+ "fingerprintsEstablished": {
6015
+ "type": "boolean"
6016
+ },
6017
+ "pullId": {
6018
+ "type": "string"
6019
+ }
6020
+ }
6021
+ }
6022
+ }
6023
+ }
6024
+ },
6025
+ "responses": {
6026
+ "200": {
6027
+ "description": "Checkpoint saved",
6028
+ "content": {
6029
+ "application/json": {
6030
+ "schema": {
6031
+ "type": "object",
6032
+ "properties": {
6033
+ "scope": {
6034
+ "$ref": "#/components/schemas/MemorixScope"
6035
+ },
6036
+ "sourceId": {
6037
+ "type": "string"
6038
+ },
6039
+ "checkpoint": {
6040
+ "$ref": "#/components/schemas/MemoryCheckpointSummary"
6041
+ }
6042
+ }
6043
+ }
6044
+ }
6045
+ }
6046
+ },
6047
+ "400": {
6048
+ "description": "Bad request / validation",
6049
+ "content": {
6050
+ "application/json": {
6051
+ "schema": {
6052
+ "$ref": "#/components/schemas/ErrorEnvelope"
6053
+ }
6054
+ }
6055
+ }
6056
+ },
6057
+ "404": {
6058
+ "description": "Not found",
6059
+ "content": {
6060
+ "application/json": {
6061
+ "schema": {
6062
+ "$ref": "#/components/schemas/ErrorEnvelope"
6063
+ }
6064
+ }
6065
+ }
6066
+ },
6067
+ "503": {
6068
+ "description": "Service unavailable",
6069
+ "content": {
6070
+ "application/json": {
6071
+ "schema": {
6072
+ "$ref": "#/components/schemas/ErrorEnvelope"
6073
+ }
6074
+ }
6075
+ }
6076
+ }
6077
+ }
6078
+ }
6079
+ },
6080
+ "/api/memory/sources/{sourceId}/checkpoints/{checkpointKey}": {
6081
+ "get": {
6082
+ "operationId": "memoryGetSourceCheckpoint",
6083
+ "summary": "Get one source checkpoint (includes technical cursor)",
6084
+ "tags": [
6085
+ "Memory"
6086
+ ],
6087
+ "parameters": [
6088
+ {
6089
+ "$ref": "#/components/parameters/XMemorixOrgId"
6090
+ },
6091
+ {
6092
+ "$ref": "#/components/parameters/XMemorixAgentIds"
6093
+ },
6094
+ {
6095
+ "name": "sourceId",
6096
+ "in": "path",
6097
+ "required": true,
6098
+ "schema": {
6099
+ "type": "string"
6100
+ }
6101
+ },
6102
+ {
6103
+ "name": "checkpointKey",
6104
+ "in": "path",
6105
+ "required": true,
6106
+ "schema": {
6107
+ "type": "string"
6108
+ }
6109
+ }
6110
+ ],
6111
+ "responses": {
6112
+ "200": {
6113
+ "description": "Checkpoint with technical details",
6114
+ "content": {
6115
+ "application/json": {
6116
+ "schema": {
6117
+ "type": "object",
6118
+ "properties": {
6119
+ "scope": {
6120
+ "$ref": "#/components/schemas/MemorixScope"
6121
+ },
6122
+ "sourceId": {
6123
+ "type": "string"
6124
+ },
6125
+ "checkpoint": {
6126
+ "$ref": "#/components/schemas/MemoryCheckpointSummary"
6127
+ }
6128
+ }
6129
+ }
6130
+ }
6131
+ }
6132
+ },
6133
+ "400": {
6134
+ "description": "Bad request / validation",
6135
+ "content": {
6136
+ "application/json": {
6137
+ "schema": {
6138
+ "$ref": "#/components/schemas/ErrorEnvelope"
6139
+ }
6140
+ }
6141
+ }
6142
+ },
6143
+ "404": {
6144
+ "description": "Not found",
6145
+ "content": {
6146
+ "application/json": {
6147
+ "schema": {
6148
+ "$ref": "#/components/schemas/ErrorEnvelope"
6149
+ }
6150
+ }
6151
+ }
6152
+ },
6153
+ "503": {
6154
+ "description": "Service unavailable",
6155
+ "content": {
6156
+ "application/json": {
6157
+ "schema": {
6158
+ "$ref": "#/components/schemas/ErrorEnvelope"
6159
+ }
6160
+ }
6161
+ }
6162
+ }
6163
+ }
6164
+ }
6165
+ },
6166
+ "/api/memory/sources/{sourceId}/checkpoints/reset": {
6167
+ "post": {
6168
+ "operationId": "memoryResetSourceCheckpoint",
6169
+ "summary": "Reset source checkpoint(s)",
6170
+ "tags": [
6171
+ "Memory"
6172
+ ],
6173
+ "parameters": [
6174
+ {
6175
+ "$ref": "#/components/parameters/XMemorixOrgId"
6176
+ },
6177
+ {
6178
+ "$ref": "#/components/parameters/XMemorixAgentIds"
6179
+ },
6180
+ {
6181
+ "name": "sourceId",
6182
+ "in": "path",
6183
+ "required": true,
6184
+ "schema": {
6185
+ "type": "string"
6186
+ }
6187
+ }
6188
+ ],
6189
+ "requestBody": {
6190
+ "required": true,
6191
+ "content": {
6192
+ "application/json": {
6193
+ "schema": {
6194
+ "type": "object",
6195
+ "properties": {
6196
+ "objectType": {
6197
+ "type": "string"
6198
+ },
6199
+ "routeEndpoint": {
6200
+ "type": "string"
6201
+ },
6202
+ "mode": {
6203
+ "type": "string",
6204
+ "enum": [
6205
+ "knowledge",
6206
+ "context"
6207
+ ]
6208
+ },
6209
+ "workRef": {
6210
+ "type": "string"
6211
+ },
6212
+ "all": {
6213
+ "type": "boolean"
6214
+ }
6215
+ }
6216
+ }
6217
+ }
6218
+ }
6219
+ },
6220
+ "responses": {
6221
+ "200": {
6222
+ "description": "Checkpoint(s) cleared",
6223
+ "content": {
6224
+ "application/json": {
6225
+ "schema": {
6226
+ "type": "object",
6227
+ "properties": {
6228
+ "scope": {
6229
+ "$ref": "#/components/schemas/MemorixScope"
6230
+ },
6231
+ "sourceId": {
6232
+ "type": "string"
6233
+ },
6234
+ "reset": {
6235
+ "type": "array",
6236
+ "items": {
6237
+ "type": "string"
6238
+ }
6239
+ },
6240
+ "note": {
6241
+ "type": "string"
6242
+ }
6243
+ }
6244
+ }
6245
+ }
6246
+ }
6247
+ },
6248
+ "400": {
6249
+ "description": "Bad request / validation",
6250
+ "content": {
6251
+ "application/json": {
6252
+ "schema": {
6253
+ "$ref": "#/components/schemas/ErrorEnvelope"
6254
+ }
6255
+ }
6256
+ }
6257
+ },
6258
+ "404": {
6259
+ "description": "Not found",
6260
+ "content": {
6261
+ "application/json": {
6262
+ "schema": {
6263
+ "$ref": "#/components/schemas/ErrorEnvelope"
6264
+ }
6265
+ }
6266
+ }
6267
+ },
6268
+ "503": {
6269
+ "description": "Service unavailable",
6270
+ "content": {
6271
+ "application/json": {
6272
+ "schema": {
6273
+ "$ref": "#/components/schemas/ErrorEnvelope"
6274
+ }
6275
+ }
6276
+ }
6277
+ }
6278
+ }
6279
+ }
6280
+ },
6281
+ "/api/pipelines/runs/{runId}/cancel": {
6282
+ "post": {
6283
+ "operationId": "pipelinesCancel",
6284
+ "summary": "Cancel pipeline run",
6285
+ "tags": [
6286
+ "Pipelines"
6287
+ ],
6288
+ "parameters": [
6289
+ {
6290
+ "$ref": "#/components/parameters/XMemorixOrgId"
6291
+ },
6292
+ {
6293
+ "$ref": "#/components/parameters/XMemorixAgentIds"
6294
+ },
6295
+ {
6296
+ "name": "runId",
6297
+ "in": "path",
6298
+ "required": true,
6299
+ "schema": {
6300
+ "type": "string"
6301
+ }
6302
+ }
6303
+ ],
6304
+ "responses": {
6305
+ "200": {
6306
+ "description": "Cancelled",
6307
+ "content": {
6308
+ "application/json": {
6309
+ "schema": {
6310
+ "type": "object",
6311
+ "properties": {
6312
+ "scope": {
6313
+ "type": "object"
6314
+ },
6315
+ "runId": {
6316
+ "type": "string"
6317
+ },
6318
+ "status": {
6319
+ "type": "string"
6320
+ },
6321
+ "run": {
6322
+ "type": "object"
6323
+ },
6324
+ "note": {
6325
+ "type": "string"
6326
+ }
6327
+ }
6328
+ }
6329
+ }
6330
+ }
6331
+ },
6332
+ "400": {
6333
+ "description": "Bad request / validation",
6334
+ "content": {
6335
+ "application/json": {
6336
+ "schema": {
6337
+ "$ref": "#/components/schemas/ErrorEnvelope"
6338
+ }
6339
+ }
6340
+ }
6341
+ },
6342
+ "404": {
6343
+ "description": "Not found"
6344
+ },
6345
+ "503": {
6346
+ "description": "Service unavailable",
6347
+ "content": {
6348
+ "application/json": {
6349
+ "schema": {
6350
+ "$ref": "#/components/schemas/ErrorEnvelope"
6351
+ }
6352
+ }
6353
+ }
6354
+ }
6355
+ }
6356
+ }
6357
+ },
6358
+ "/api/pipelines/runs/{runId}/artifacts": {
6359
+ "get": {
6360
+ "operationId": "pipelinesListArtifacts",
6361
+ "summary": "List pipeline run artifacts",
6362
+ "tags": [
6363
+ "Pipelines"
6364
+ ],
6365
+ "parameters": [
6366
+ {
6367
+ "$ref": "#/components/parameters/XMemorixOrgId"
6368
+ },
6369
+ {
6370
+ "$ref": "#/components/parameters/XMemorixAgentIds"
6371
+ },
6372
+ {
6373
+ "name": "runId",
6374
+ "in": "path",
6375
+ "required": true,
6376
+ "schema": {
6377
+ "type": "string"
6378
+ }
6379
+ }
6380
+ ],
6381
+ "responses": {
6382
+ "200": {
6383
+ "description": "Artifact refs",
6384
+ "content": {
6385
+ "application/json": {
6386
+ "schema": {
6387
+ "type": "object"
6388
+ }
6389
+ }
6390
+ }
6391
+ },
6392
+ "404": {
6393
+ "description": "Not found"
6394
+ }
6395
+ }
6396
+ }
6397
+ },
6398
+ "/api/pipelines/runs/{runId}/artifacts/{artifactId}": {
6399
+ "get": {
6400
+ "operationId": "pipelinesGetArtifact",
6401
+ "summary": "Get pipeline run artifact",
6402
+ "tags": [
6403
+ "Pipelines"
6404
+ ],
6405
+ "parameters": [
6406
+ {
6407
+ "$ref": "#/components/parameters/XMemorixOrgId"
6408
+ },
6409
+ {
6410
+ "$ref": "#/components/parameters/XMemorixAgentIds"
6411
+ },
6412
+ {
6413
+ "name": "runId",
6414
+ "in": "path",
6415
+ "required": true,
6416
+ "schema": {
6417
+ "type": "string"
6418
+ }
6419
+ },
6420
+ {
6421
+ "name": "artifactId",
6422
+ "in": "path",
6423
+ "required": true,
6424
+ "schema": {
6425
+ "type": "string"
6426
+ }
6427
+ }
6428
+ ],
6429
+ "responses": {
6430
+ "200": {
6431
+ "description": "Artifact payload",
6432
+ "content": {
6433
+ "application/json": {
6434
+ "schema": {
6435
+ "type": "object"
6436
+ }
6437
+ }
6438
+ }
6439
+ },
6440
+ "404": {
6441
+ "description": "Not found"
6442
+ }
6443
+ }
6444
+ }
6445
+ },
6446
+ "/api/memory/sources/{sourceId}/commit-page": {
6447
+ "post": {
6448
+ "operationId": "memoryCommitPage",
6449
+ "summary": "Atomically land raw page and commit checkpoint",
6450
+ "tags": [
6451
+ "Memory"
6452
+ ],
6453
+ "parameters": [
6454
+ {
6455
+ "$ref": "#/components/parameters/XMemorixOrgId"
6456
+ },
6457
+ {
6458
+ "$ref": "#/components/parameters/XMemorixAgentIds"
6459
+ },
6460
+ {
6461
+ "name": "sourceId",
6462
+ "in": "path",
6463
+ "required": true,
6464
+ "schema": {
6465
+ "type": "string"
6466
+ }
6467
+ }
6468
+ ],
6469
+ "requestBody": {
6470
+ "required": true,
6471
+ "content": {
6472
+ "application/json": {
6473
+ "schema": {
6474
+ "type": "object",
6475
+ "required": [
6476
+ "objectType",
6477
+ "items",
6478
+ "expectedCheckpointRevision"
6479
+ ],
6480
+ "properties": {
6481
+ "objectType": {
6482
+ "type": "string"
6483
+ },
6484
+ "routeEndpoint": {
6485
+ "type": "string"
6486
+ },
6487
+ "mode": {
6488
+ "type": "string",
6489
+ "enum": [
6490
+ "knowledge",
6491
+ "context"
6492
+ ]
6493
+ },
6494
+ "workRef": {
6495
+ "type": "string"
6496
+ },
6497
+ "items": {
6498
+ "type": "array",
6499
+ "items": {
6500
+ "type": "object"
6501
+ }
6502
+ },
6503
+ "nextCheckpoint": {
6504
+ "type": "object"
6505
+ },
6506
+ "expectedCheckpointRevision": {
6507
+ "type": "integer"
6508
+ }
6509
+ }
6510
+ }
6511
+ }
6512
+ }
6513
+ },
6514
+ "responses": {
6515
+ "200": {
6516
+ "description": "Landing receipt",
6517
+ "content": {
6518
+ "application/json": {
6519
+ "schema": {
6520
+ "type": "object"
6521
+ }
6522
+ }
6523
+ }
6524
+ },
6525
+ "400": {
6526
+ "description": "Validation error"
6527
+ },
6528
+ "403": {
6529
+ "description": "Access denied"
6530
+ },
6531
+ "409": {
6532
+ "description": "Checkpoint revision conflict"
6533
+ }
6534
+ }
6535
+ }
6536
+ },
6537
+ "/api/memory/sources/{sourceId}/schedule": {
6538
+ "get": {
6539
+ "operationId": "memoryGetSchedule",
6540
+ "summary": "Get Memory pull schedule for a source",
6541
+ "tags": [
6542
+ "Memory"
6543
+ ],
6544
+ "parameters": [
6545
+ {
6546
+ "$ref": "#/components/parameters/XMemorixOrgId"
6547
+ },
6548
+ {
6549
+ "$ref": "#/components/parameters/XMemorixAgentIds"
6550
+ },
6551
+ {
6552
+ "name": "sourceId",
6553
+ "in": "path",
6554
+ "required": true,
6555
+ "schema": {
6556
+ "type": "string"
6557
+ }
6558
+ },
6559
+ {
6560
+ "name": "mode",
6561
+ "in": "query",
6562
+ "schema": {
6563
+ "type": "string",
6564
+ "enum": [
6565
+ "knowledge",
6566
+ "context"
6567
+ ]
6568
+ }
6569
+ }
6570
+ ],
6571
+ "responses": {
6572
+ "200": {
6573
+ "description": "Schedule or null"
6574
+ }
6575
+ }
6576
+ },
6577
+ "put": {
6578
+ "operationId": "memoryPutSchedule",
6579
+ "summary": "Create or update Memory pull schedule",
6580
+ "tags": [
6581
+ "Memory"
6582
+ ],
6583
+ "parameters": [
6584
+ {
6585
+ "$ref": "#/components/parameters/XMemorixOrgId"
6586
+ },
6587
+ {
6588
+ "$ref": "#/components/parameters/XMemorixAgentIds"
6589
+ },
6590
+ {
6591
+ "name": "sourceId",
6592
+ "in": "path",
6593
+ "required": true,
6594
+ "schema": {
6595
+ "type": "string"
6596
+ }
6597
+ }
6598
+ ],
6599
+ "requestBody": {
6600
+ "required": true,
6601
+ "content": {
6602
+ "application/json": {
6603
+ "schema": {
6604
+ "type": "object",
6605
+ "required": [
6606
+ "interval"
6607
+ ],
6608
+ "properties": {
6609
+ "interval": {
6610
+ "type": "object",
6611
+ "required": [
6612
+ "every",
6613
+ "unit"
6614
+ ],
6615
+ "properties": {
6616
+ "every": {
6617
+ "type": "integer",
6618
+ "minimum": 1
6619
+ },
6620
+ "unit": {
6621
+ "type": "string",
6622
+ "enum": [
6623
+ "minutes",
6624
+ "hours",
6625
+ "days"
6626
+ ]
6627
+ }
6628
+ }
6629
+ },
6630
+ "firstPull": {
6631
+ "type": "string",
6632
+ "enum": [
6633
+ "immediate",
6634
+ "after-interval"
6635
+ ]
6636
+ },
6637
+ "status": {
6638
+ "type": "string",
6639
+ "enum": [
6640
+ "active",
6641
+ "paused"
6642
+ ]
6643
+ },
6644
+ "mode": {
6645
+ "type": "string",
6646
+ "enum": [
6647
+ "knowledge",
6648
+ "context"
6649
+ ]
6650
+ }
6651
+ }
6652
+ }
6653
+ }
6654
+ }
6655
+ },
6656
+ "responses": {
6657
+ "200": {
6658
+ "description": "Saved schedule"
6659
+ }
6660
+ }
6661
+ },
6662
+ "delete": {
6663
+ "operationId": "memoryDeleteSchedule",
6664
+ "summary": "Remove Memory pull schedule",
6665
+ "tags": [
6666
+ "Memory"
6667
+ ],
6668
+ "parameters": [
6669
+ {
6670
+ "$ref": "#/components/parameters/XMemorixOrgId"
6671
+ },
6672
+ {
6673
+ "$ref": "#/components/parameters/XMemorixAgentIds"
6674
+ },
6675
+ {
6676
+ "name": "sourceId",
6677
+ "in": "path",
6678
+ "required": true,
6679
+ "schema": {
6680
+ "type": "string"
6681
+ }
6682
+ },
6683
+ {
6684
+ "name": "mode",
6685
+ "in": "query",
6686
+ "schema": {
6687
+ "type": "string",
6688
+ "enum": [
6689
+ "knowledge",
6690
+ "context"
6691
+ ]
6692
+ }
6693
+ }
6694
+ ],
6695
+ "responses": {
6696
+ "200": {
6697
+ "description": "Removed"
6698
+ }
6699
+ }
6700
+ }
6701
+ },
6702
+ "/api/memory/sources/{sourceId}/schedule/pause": {
6703
+ "post": {
6704
+ "operationId": "memoryPauseSchedule",
6705
+ "summary": "Pause Memory pull schedule",
6706
+ "tags": [
6707
+ "Memory"
6708
+ ],
6709
+ "parameters": [
6710
+ {
6711
+ "$ref": "#/components/parameters/XMemorixOrgId"
6712
+ },
6713
+ {
6714
+ "$ref": "#/components/parameters/XMemorixAgentIds"
6715
+ },
6716
+ {
6717
+ "name": "sourceId",
6718
+ "in": "path",
6719
+ "required": true,
6720
+ "schema": {
6721
+ "type": "string"
6722
+ }
6723
+ }
6724
+ ],
6725
+ "responses": {
6726
+ "200": {
6727
+ "description": "Paused"
6728
+ }
6729
+ }
6730
+ }
6731
+ },
6732
+ "/api/memory/sources/{sourceId}/schedule/resume": {
6733
+ "post": {
6734
+ "operationId": "memoryResumeSchedule",
6735
+ "summary": "Resume Memory pull schedule",
6736
+ "tags": [
6737
+ "Memory"
6738
+ ],
6739
+ "parameters": [
6740
+ {
6741
+ "$ref": "#/components/parameters/XMemorixOrgId"
6742
+ },
6743
+ {
6744
+ "$ref": "#/components/parameters/XMemorixAgentIds"
6745
+ },
6746
+ {
6747
+ "name": "sourceId",
6748
+ "in": "path",
6749
+ "required": true,
6750
+ "schema": {
6751
+ "type": "string"
6752
+ }
6753
+ }
6754
+ ],
6755
+ "responses": {
6756
+ "200": {
6757
+ "description": "Resumed"
6758
+ }
6759
+ }
6760
+ }
6761
+ },
6762
+ "/api/memory/sources/{sourceId}/schedule/run-now": {
6763
+ "post": {
6764
+ "operationId": "memoryRunScheduleNow",
6765
+ "summary": "Run Memory pull schedule now",
6766
+ "tags": [
6767
+ "Memory"
6768
+ ],
6769
+ "parameters": [
6770
+ {
6771
+ "$ref": "#/components/parameters/XMemorixOrgId"
6772
+ },
6773
+ {
6774
+ "$ref": "#/components/parameters/XMemorixAgentIds"
6775
+ },
6776
+ {
6777
+ "name": "sourceId",
6778
+ "in": "path",
6779
+ "required": true,
6780
+ "schema": {
6781
+ "type": "string"
6782
+ }
6783
+ }
6784
+ ],
6785
+ "responses": {
6786
+ "200": {
6787
+ "description": "Pull started"
6788
+ }
6789
+ }
6790
+ }
6791
+ }
6792
+ },
6793
+ "components": {
6794
+ "parameters": {
6795
+ "XMemorixOrgId": {
6796
+ "name": "x-memorix-org-id",
6797
+ "in": "header",
6798
+ "required": true,
6799
+ "schema": {
6800
+ "type": "string",
6801
+ "minLength": 1
6802
+ },
6803
+ "description": "Organization / data-universe id"
6804
+ },
6805
+ "XMemorixAgentIds": {
6806
+ "name": "x-memorix-agent-ids",
6807
+ "in": "header",
6808
+ "required": true,
6809
+ "schema": {
6810
+ "type": "string",
6811
+ "minLength": 1
6812
+ },
6813
+ "description": "Comma-separated agentIds for effective metadata",
6814
+ "example": "ops,fieldstone"
6815
+ }
6816
+ },
6817
+ "schemas": {
6818
+ "MemorixScope": {
6819
+ "type": "object",
6820
+ "required": [
6821
+ "orgId",
6822
+ "agentIds"
6823
+ ],
6824
+ "additionalProperties": false,
6825
+ "properties": {
6826
+ "orgId": {
6827
+ "type": "string",
6828
+ "minLength": 1,
6829
+ "description": "Data universe / org isolation key"
6830
+ },
6831
+ "agentIds": {
6832
+ "type": "array",
6833
+ "items": {
6834
+ "type": "string",
6835
+ "minLength": 1
6836
+ },
6837
+ "minItems": 1,
6838
+ "uniqueItems": true,
6839
+ "description": "Effective metadata agent chain (canonicalized/sorted)"
6840
+ }
6841
+ },
6842
+ "example": {
6843
+ "orgId": "acme",
6844
+ "agentIds": [
6845
+ "opx",
6846
+ "fieldstone"
6847
+ ]
6848
+ }
6849
+ },
6850
+ "MemorixIdentifier": {
6851
+ "type": "object",
6852
+ "required": [
6853
+ "kind",
6854
+ "value"
6855
+ ],
6856
+ "properties": {
6857
+ "kind": {
6858
+ "type": "string"
6859
+ },
6860
+ "value": {
6861
+ "type": "string"
6862
+ },
6863
+ "issuer": {
6864
+ "type": "string"
6865
+ },
6866
+ "normalizedValue": {
6867
+ "type": "string"
6868
+ }
6869
+ }
6870
+ },
6871
+ "MemorixRecordV2": {
6872
+ "type": "object",
6873
+ "required": [
6874
+ "format",
6875
+ "recordId",
6876
+ "revision",
6877
+ "objectType",
6878
+ "contentType",
6879
+ "dataCategory",
6880
+ "concept",
6881
+ "data",
6882
+ "_system"
6883
+ ],
6884
+ "properties": {
6885
+ "format": {
6886
+ "type": "string",
6887
+ "enum": [
6888
+ "memorix-record/2"
6889
+ ]
6890
+ },
6891
+ "recordId": {
6892
+ "type": "string"
6893
+ },
6894
+ "revision": {
6895
+ "type": "integer",
6896
+ "minimum": 1
6897
+ },
6898
+ "objectType": {
6899
+ "type": "string"
6900
+ },
6901
+ "contentType": {
6902
+ "type": "string"
6903
+ },
6904
+ "dataCategory": {
6905
+ "type": "string",
6906
+ "enum": [
6907
+ "entity",
6908
+ "event",
6909
+ "knowledge"
6910
+ ]
6911
+ },
6912
+ "concept": {
6913
+ "type": "object",
6914
+ "required": [
6915
+ "title",
6916
+ "identifiers"
6917
+ ],
6918
+ "properties": {
6919
+ "title": {
6920
+ "type": "string"
6921
+ },
6922
+ "identifiers": {
6923
+ "type": "object",
6924
+ "required": [
6925
+ "primary"
6926
+ ],
6927
+ "properties": {
6928
+ "primary": {
6929
+ "$ref": "#/components/schemas/MemorixIdentifier"
6930
+ },
6931
+ "alternates": {
6932
+ "type": "array",
6933
+ "items": {
6934
+ "$ref": "#/components/schemas/MemorixIdentifier"
6935
+ }
6936
+ }
6937
+ }
6938
+ }
6939
+ }
6940
+ },
6941
+ "data": {
6942
+ "type": "object",
6943
+ "additionalProperties": true
6944
+ },
6945
+ "analytics": {
6946
+ "type": "object",
6947
+ "additionalProperties": true
6948
+ },
6949
+ "enrichment": {
6950
+ "type": "object",
6951
+ "additionalProperties": true
6952
+ },
6953
+ "insights": {
6954
+ "type": "object",
6955
+ "additionalProperties": true
6956
+ },
6957
+ "_system": {
6958
+ "type": "object",
6959
+ "required": [
6960
+ "state",
6961
+ "createdAt",
6962
+ "modifiedAt"
6963
+ ],
6964
+ "properties": {
6965
+ "state": {
6966
+ "type": "string",
6967
+ "enum": [
6968
+ "active",
6969
+ "archived",
6970
+ "superseded"
6971
+ ]
6972
+ },
6973
+ "createdAt": {
6974
+ "type": "string",
6975
+ "format": "date-time"
6976
+ },
6977
+ "modifiedAt": {
6978
+ "type": "string",
6979
+ "format": "date-time"
6980
+ },
6981
+ "observedAt": {
6982
+ "type": "string",
6983
+ "format": "date-time"
6984
+ },
6985
+ "lifecycle": {
6986
+ "type": "array",
6987
+ "items": {
6988
+ "type": "object",
6989
+ "required": [
6990
+ "process",
6991
+ "processedAt"
6992
+ ],
6993
+ "properties": {
6994
+ "process": {
6995
+ "type": "string"
6996
+ },
6997
+ "processedAt": {
6998
+ "type": "string",
6999
+ "format": "date-time"
7000
+ }
7001
+ }
7002
+ }
7003
+ },
7004
+ "provenance": {
7005
+ "type": "object",
7006
+ "additionalProperties": true
5961
7007
  }
5962
7008
  }
5963
7009
  }
@@ -6530,7 +7576,7 @@
6530
7576
  },
6531
7577
  "credentialRef": {
6532
7578
  "type": "string",
6533
- "description": "Credential reference only never resolved secrets"
7579
+ "description": "Credential reference only \u2014 never resolved secrets"
6534
7580
  },
6535
7581
  "cursor": {
6536
7582
  "type": "string"
@@ -6613,6 +7659,151 @@
6613
7659
  "items": {
6614
7660
  "type": "string"
6615
7661
  }
7662
+ },
7663
+ "routeSummaries": {
7664
+ "type": "array",
7665
+ "items": {
7666
+ "type": "object",
7667
+ "properties": {
7668
+ "objectType": {
7669
+ "type": "string"
7670
+ },
7671
+ "routeEndpoint": {
7672
+ "type": "string"
7673
+ },
7674
+ "items": {
7675
+ "type": "integer"
7676
+ },
7677
+ "created": {
7678
+ "type": "integer"
7679
+ },
7680
+ "updated": {
7681
+ "type": "integer"
7682
+ },
7683
+ "deduplicated": {
7684
+ "type": "integer"
7685
+ },
7686
+ "quarantined": {
7687
+ "type": "integer"
7688
+ },
7689
+ "startingCursor": {
7690
+ "type": [
7691
+ "string",
7692
+ "null"
7693
+ ]
7694
+ },
7695
+ "endingCursor": {
7696
+ "type": [
7697
+ "string",
7698
+ "null"
7699
+ ]
7700
+ }
7701
+ }
7702
+ }
7703
+ }
7704
+ }
7705
+ },
7706
+ "MemorySourceRoute": {
7707
+ "type": "object",
7708
+ "required": [
7709
+ "endpoint",
7710
+ "objectType",
7711
+ "dataCategory"
7712
+ ],
7713
+ "properties": {
7714
+ "endpoint": {
7715
+ "type": "string"
7716
+ },
7717
+ "objectType": {
7718
+ "type": "string"
7719
+ },
7720
+ "dataCategory": {
7721
+ "type": "string"
7722
+ },
7723
+ "checkpoint": {
7724
+ "type": "object",
7725
+ "properties": {
7726
+ "method": {
7727
+ "type": "string",
7728
+ "enum": [
7729
+ "cursor",
7730
+ "watermark",
7731
+ "fullScanHash"
7732
+ ]
7733
+ },
7734
+ "watermarkField": {
7735
+ "type": "string"
7736
+ }
7737
+ }
7738
+ },
7739
+ "modes": {
7740
+ "type": "array",
7741
+ "items": {
7742
+ "type": "string",
7743
+ "enum": [
7744
+ "context",
7745
+ "knowledge"
7746
+ ]
7747
+ }
7748
+ }
7749
+ }
7750
+ },
7751
+ "MemoryPullSchedule": {
7752
+ "type": "object",
7753
+ "properties": {
7754
+ "scheduleId": {
7755
+ "type": "string"
7756
+ },
7757
+ "sourceId": {
7758
+ "type": "string"
7759
+ },
7760
+ "mode": {
7761
+ "type": "string"
7762
+ },
7763
+ "interval": {
7764
+ "type": "object",
7765
+ "properties": {
7766
+ "every": {
7767
+ "type": "integer",
7768
+ "minimum": 1
7769
+ },
7770
+ "unit": {
7771
+ "type": "string",
7772
+ "enum": [
7773
+ "minutes",
7774
+ "hours",
7775
+ "days"
7776
+ ]
7777
+ }
7778
+ }
7779
+ },
7780
+ "firstPull": {
7781
+ "type": "string",
7782
+ "enum": [
7783
+ "immediate",
7784
+ "after-interval"
7785
+ ]
7786
+ },
7787
+ "status": {
7788
+ "type": "string",
7789
+ "enum": [
7790
+ "active",
7791
+ "paused"
7792
+ ]
7793
+ },
7794
+ "nextDueAt": {
7795
+ "type": "string",
7796
+ "format": "date-time"
7797
+ },
7798
+ "lastFiredAt": {
7799
+ "type": "string",
7800
+ "format": "date-time"
7801
+ },
7802
+ "lastPullId": {
7803
+ "type": "string"
7804
+ },
7805
+ "lastStatus": {
7806
+ "type": "string"
6616
7807
  }
6617
7808
  }
6618
7809
  },
@@ -6647,7 +7838,7 @@
6647
7838
  },
6648
7839
  "message": {
6649
7840
  "type": "string",
6650
- "description": "Sanitized no secret payloads"
7841
+ "description": "Sanitized \u2014 no secret payloads"
6651
7842
  },
6652
7843
  "createdAt": {
6653
7844
  "type": "string",
@@ -6869,6 +8060,67 @@
6869
8060
  "type": "string"
6870
8061
  }
6871
8062
  }
8063
+ },
8064
+ "MemoryCheckpointSummary": {
8065
+ "type": "object",
8066
+ "required": [
8067
+ "checkpointKey",
8068
+ "sourceId",
8069
+ "objectType",
8070
+ "routeEndpoint",
8071
+ "mode",
8072
+ "method",
8073
+ "checkpointStatus"
8074
+ ],
8075
+ "properties": {
8076
+ "checkpointKey": {
8077
+ "type": "string"
8078
+ },
8079
+ "sourceId": {
8080
+ "type": "string"
8081
+ },
8082
+ "objectType": {
8083
+ "type": "string"
8084
+ },
8085
+ "routeEndpoint": {
8086
+ "type": "string"
8087
+ },
8088
+ "mode": {
8089
+ "type": "string",
8090
+ "enum": [
8091
+ "knowledge",
8092
+ "context"
8093
+ ]
8094
+ },
8095
+ "method": {
8096
+ "type": "string",
8097
+ "enum": [
8098
+ "cursor",
8099
+ "watermark",
8100
+ "fullScanHash"
8101
+ ]
8102
+ },
8103
+ "checkpointStatus": {
8104
+ "type": "string",
8105
+ "enum": [
8106
+ "saved",
8107
+ "fingerprints_saved",
8108
+ "not_established"
8109
+ ]
8110
+ },
8111
+ "lastSuccessfulPull": {
8112
+ "type": "string",
8113
+ "nullable": true
8114
+ },
8115
+ "lastPullId": {
8116
+ "type": "string",
8117
+ "nullable": true
8118
+ },
8119
+ "technical": {
8120
+ "type": "object",
8121
+ "additionalProperties": true
8122
+ }
8123
+ }
6872
8124
  }
6873
8125
  }
6874
8126
  }