@x12i/memorix-service 3.0.4 → 3.0.6
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/README.md +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/magit/magit-pack-service.d.ts +55 -0
- package/dist/magit/magit-pack-service.d.ts.map +1 -0
- package/dist/magit/magit-pack-service.js +217 -0
- package/dist/magit/magit-pack-service.js.map +1 -0
- package/dist/magit/pack-to-patchset.d.ts +26 -0
- package/dist/magit/pack-to-patchset.d.ts.map +1 -0
- package/dist/magit/pack-to-patchset.js +123 -0
- package/dist/magit/pack-to-patchset.js.map +1 -0
- package/dist/mongo-metadata-store.d.ts.map +1 -1
- package/dist/mongo-metadata-store.js +3 -1
- package/dist/mongo-metadata-store.js.map +1 -1
- package/dist/openapi/openapi.json +195 -0
- package/dist/pipeline-compile.d.ts +19 -0
- package/dist/pipeline-compile.d.ts.map +1 -0
- package/dist/pipeline-compile.js +98 -0
- package/dist/pipeline-compile.js.map +1 -0
- package/dist/platform.d.ts +6 -0
- package/dist/platform.d.ts.map +1 -1
- package/dist/platform.js +75 -7
- package/dist/platform.js.map +1 -1
- package/dist/routes/connector-invocations.js +2 -2
- package/dist/routes/memory.d.ts.map +1 -1
- package/dist/routes/memory.js +171 -3
- package/dist/routes/memory.js.map +1 -1
- package/dist/routes/metadata.d.ts.map +1 -1
- package/dist/routes/metadata.js +43 -0
- package/dist/routes/metadata.js.map +1 -1
- package/dist/routes/pipelines.d.ts.map +1 -1
- package/dist/routes/pipelines.js +28 -3
- package/dist/routes/pipelines.js.map +1 -1
- package/openapi/openapi.json +195 -0
- package/package.json +7 -6
package/openapi/openapi.json
CHANGED
|
@@ -1158,6 +1158,201 @@
|
|
|
1158
1158
|
}
|
|
1159
1159
|
}
|
|
1160
1160
|
},
|
|
1161
|
+
"/api/metadata/versions": {
|
|
1162
|
+
"post": {
|
|
1163
|
+
"operationId": "metadataSaveVersion",
|
|
1164
|
+
"summary": "Save a pack version (not live; Magit-backed when METADATA_MAGIT=1)",
|
|
1165
|
+
"description": "Records a pack snapshot for history. Does not install. Requires METADATA_MAGIT=1 and org isolation.",
|
|
1166
|
+
"tags": [
|
|
1167
|
+
"Metadata"
|
|
1168
|
+
],
|
|
1169
|
+
"parameters": [
|
|
1170
|
+
{
|
|
1171
|
+
"$ref": "#/components/parameters/XMemorixOrgId"
|
|
1172
|
+
},
|
|
1173
|
+
{
|
|
1174
|
+
"$ref": "#/components/parameters/XMemorixAgentIds"
|
|
1175
|
+
}
|
|
1176
|
+
],
|
|
1177
|
+
"requestBody": {
|
|
1178
|
+
"required": true,
|
|
1179
|
+
"content": {
|
|
1180
|
+
"application/json": {
|
|
1181
|
+
"schema": {
|
|
1182
|
+
"type": "object",
|
|
1183
|
+
"required": [
|
|
1184
|
+
"message"
|
|
1185
|
+
],
|
|
1186
|
+
"properties": {
|
|
1187
|
+
"message": {
|
|
1188
|
+
"type": "string",
|
|
1189
|
+
"minLength": 1
|
|
1190
|
+
},
|
|
1191
|
+
"pack": {
|
|
1192
|
+
"$ref": "#/components/schemas/MetadataPack"
|
|
1193
|
+
},
|
|
1194
|
+
"packId": {
|
|
1195
|
+
"type": "string"
|
|
1196
|
+
}
|
|
1197
|
+
}
|
|
1198
|
+
},
|
|
1199
|
+
"example": {
|
|
1200
|
+
"packId": "opx",
|
|
1201
|
+
"message": "catalog draft before install"
|
|
1202
|
+
}
|
|
1203
|
+
}
|
|
1204
|
+
}
|
|
1205
|
+
},
|
|
1206
|
+
"responses": {
|
|
1207
|
+
"200": {
|
|
1208
|
+
"description": "Version saved (not installed)",
|
|
1209
|
+
"content": {
|
|
1210
|
+
"application/json": {
|
|
1211
|
+
"schema": {
|
|
1212
|
+
"type": "object",
|
|
1213
|
+
"required": [
|
|
1214
|
+
"scope",
|
|
1215
|
+
"saved",
|
|
1216
|
+
"commit",
|
|
1217
|
+
"checksum"
|
|
1218
|
+
],
|
|
1219
|
+
"properties": {
|
|
1220
|
+
"scope": {
|
|
1221
|
+
"$ref": "#/components/schemas/MemorixScope"
|
|
1222
|
+
},
|
|
1223
|
+
"saved": {
|
|
1224
|
+
"type": "boolean"
|
|
1225
|
+
},
|
|
1226
|
+
"commit": {
|
|
1227
|
+
"type": "string"
|
|
1228
|
+
},
|
|
1229
|
+
"checksum": {
|
|
1230
|
+
"type": "string"
|
|
1231
|
+
},
|
|
1232
|
+
"reused": {
|
|
1233
|
+
"type": "boolean"
|
|
1234
|
+
},
|
|
1235
|
+
"agentId": {
|
|
1236
|
+
"type": "string"
|
|
1237
|
+
},
|
|
1238
|
+
"note": {
|
|
1239
|
+
"type": "string"
|
|
1240
|
+
},
|
|
1241
|
+
"result": {}
|
|
1242
|
+
}
|
|
1243
|
+
}
|
|
1244
|
+
}
|
|
1245
|
+
}
|
|
1246
|
+
},
|
|
1247
|
+
"400": {
|
|
1248
|
+
"description": "Bad request / validation",
|
|
1249
|
+
"content": {
|
|
1250
|
+
"application/json": {
|
|
1251
|
+
"schema": {
|
|
1252
|
+
"$ref": "#/components/schemas/ErrorEnvelope"
|
|
1253
|
+
}
|
|
1254
|
+
}
|
|
1255
|
+
}
|
|
1256
|
+
},
|
|
1257
|
+
"503": {
|
|
1258
|
+
"description": "Magit unavailable (flag off or no isolation)",
|
|
1259
|
+
"content": {
|
|
1260
|
+
"application/json": {
|
|
1261
|
+
"schema": {
|
|
1262
|
+
"$ref": "#/components/schemas/ErrorEnvelope"
|
|
1263
|
+
}
|
|
1264
|
+
}
|
|
1265
|
+
}
|
|
1266
|
+
}
|
|
1267
|
+
}
|
|
1268
|
+
},
|
|
1269
|
+
"get": {
|
|
1270
|
+
"operationId": "metadataListVersions",
|
|
1271
|
+
"summary": "List saved pack versions for an agent",
|
|
1272
|
+
"description": "Requires METADATA_MAGIT=1 and org isolation.",
|
|
1273
|
+
"tags": [
|
|
1274
|
+
"Metadata"
|
|
1275
|
+
],
|
|
1276
|
+
"parameters": [
|
|
1277
|
+
{
|
|
1278
|
+
"$ref": "#/components/parameters/XMemorixOrgId"
|
|
1279
|
+
},
|
|
1280
|
+
{
|
|
1281
|
+
"$ref": "#/components/parameters/XMemorixAgentIds"
|
|
1282
|
+
},
|
|
1283
|
+
{
|
|
1284
|
+
"name": "agentId",
|
|
1285
|
+
"in": "query",
|
|
1286
|
+
"required": false,
|
|
1287
|
+
"schema": {
|
|
1288
|
+
"type": "string"
|
|
1289
|
+
},
|
|
1290
|
+
"description": "Defaults to first scoped agent id"
|
|
1291
|
+
},
|
|
1292
|
+
{
|
|
1293
|
+
"name": "maxCount",
|
|
1294
|
+
"in": "query",
|
|
1295
|
+
"required": false,
|
|
1296
|
+
"schema": {
|
|
1297
|
+
"type": "integer",
|
|
1298
|
+
"minimum": 1
|
|
1299
|
+
}
|
|
1300
|
+
}
|
|
1301
|
+
],
|
|
1302
|
+
"responses": {
|
|
1303
|
+
"200": {
|
|
1304
|
+
"description": "Version history",
|
|
1305
|
+
"content": {
|
|
1306
|
+
"application/json": {
|
|
1307
|
+
"schema": {
|
|
1308
|
+
"type": "object",
|
|
1309
|
+
"required": [
|
|
1310
|
+
"scope",
|
|
1311
|
+
"agentId",
|
|
1312
|
+
"versions"
|
|
1313
|
+
],
|
|
1314
|
+
"properties": {
|
|
1315
|
+
"scope": {
|
|
1316
|
+
"$ref": "#/components/schemas/MemorixScope"
|
|
1317
|
+
},
|
|
1318
|
+
"agentId": {
|
|
1319
|
+
"type": "string"
|
|
1320
|
+
},
|
|
1321
|
+
"versions": {
|
|
1322
|
+
"type": "array",
|
|
1323
|
+
"items": {
|
|
1324
|
+
"type": "object",
|
|
1325
|
+
"additionalProperties": true
|
|
1326
|
+
}
|
|
1327
|
+
}
|
|
1328
|
+
}
|
|
1329
|
+
}
|
|
1330
|
+
}
|
|
1331
|
+
}
|
|
1332
|
+
},
|
|
1333
|
+
"400": {
|
|
1334
|
+
"description": "Bad request",
|
|
1335
|
+
"content": {
|
|
1336
|
+
"application/json": {
|
|
1337
|
+
"schema": {
|
|
1338
|
+
"$ref": "#/components/schemas/ErrorEnvelope"
|
|
1339
|
+
}
|
|
1340
|
+
}
|
|
1341
|
+
}
|
|
1342
|
+
},
|
|
1343
|
+
"503": {
|
|
1344
|
+
"description": "Magit unavailable",
|
|
1345
|
+
"content": {
|
|
1346
|
+
"application/json": {
|
|
1347
|
+
"schema": {
|
|
1348
|
+
"$ref": "#/components/schemas/ErrorEnvelope"
|
|
1349
|
+
}
|
|
1350
|
+
}
|
|
1351
|
+
}
|
|
1352
|
+
}
|
|
1353
|
+
}
|
|
1354
|
+
}
|
|
1355
|
+
},
|
|
1161
1356
|
"/api/metadata/definition": {
|
|
1162
1357
|
"get": {
|
|
1163
1358
|
"operationId": "metadataGetDefinition",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@x12i/memorix-service",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.6",
|
|
4
4
|
"description": "Memorix production service composition root — one versioned API over accepted packages.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -32,17 +32,18 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@fastify/cors": "^10.0.1",
|
|
35
|
+
"@x12i/api-live-view": "^1.0.2",
|
|
35
36
|
"@x12i/core-service": "^1.0.0",
|
|
37
|
+
"@x12i/credorix-client": "^1.3.1",
|
|
38
|
+
"@x12i/magit": "^2.8.1",
|
|
39
|
+
"@x12i/memorix-connector-sdk": "^1.1.1",
|
|
36
40
|
"@x12i/memorix-data": "^3.0.2",
|
|
37
|
-
"@x12i/api-live-view": "^1.0.2",
|
|
38
41
|
"@x12i/memorix-data-journey": "^3.0.2",
|
|
39
42
|
"@x12i/memorix-format": "^3.0.2",
|
|
40
43
|
"@x12i/memorix-intelligence": "^3.0.2",
|
|
41
44
|
"@x12i/memorix-mapping": "^3.0.2",
|
|
42
|
-
"@x12i/
|
|
43
|
-
"@x12i/memorix-
|
|
44
|
-
"@x12i/memorix-connector-sdk": "^1.1.0",
|
|
45
|
-
"@x12i/memorix-metadata": "^3.0.2",
|
|
45
|
+
"@x12i/memorix-memory": "file:../memorix-memory",
|
|
46
|
+
"@x12i/memorix-metadata": "^3.0.3",
|
|
46
47
|
"@x12i/memorix-metadata-runtime": "^3.0.2",
|
|
47
48
|
"@x12i/memorix-pipeline": "^3.0.2",
|
|
48
49
|
"@x12i/memorix-relationship-store": "^3.0.2",
|