Add Inter-Hub migration bundle importer

This commit is contained in:
2026-06-27 13:30:30 +02:00
parent a1fc57b278
commit e4f7cfed60
12 changed files with 861 additions and 5 deletions

View File

@@ -0,0 +1,66 @@
{
"schemaVersion": "core-hub.migration.v1",
"source": "inter-hub-haskell",
"exportedAt": "2026-06-27T00:00:00Z",
"records": {
"hubs": [
{
"id": "11111111-1111-4111-8111-111111111111",
"slug": "ops-hub",
"name": "Ops Hub",
"domain": "ops.coulomb.social",
"hubKind": "domain",
"hubFamily": "vsm",
"vsmFunction": "OPS",
"vsmSystem": "1"
}
],
"hubCapabilityManifests": [
{
"id": "22222222-2222-4222-8222-222222222222",
"hubSlug": "ops-hub",
"manifestVersion": "1.0",
"status": "active"
}
],
"apiConsumers": [
{
"id": "33333333-3333-4333-8333-333333333333",
"slug": "ops-hub",
"name": "ops-hub",
"hubCapabilityManifestId": "22222222-2222-4222-8222-222222222222",
"keyPrefix": "ch_prefixonly"
}
],
"apiKeys": [
{
"id": "44444444-4444-4444-8444-444444444444",
"apiConsumerSlug": "ops-hub",
"keyPrefix": "ch_prefixonly",
"keyHash": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"scopes": "framework:read hub:ops-hub:write"
}
],
"widgets": [
{
"id": "55555555-5555-4555-8555-555555555555",
"hubSlug": "ops-hub",
"name": "Readiness",
"widgetType": "ops-readiness-gate",
"capabilityRef": "ops:readiness",
"viewContext": "ops-hub/readiness",
"policyScope": "ops-registry"
}
],
"interactionEvents": [
{
"id": "66666666-6666-4666-8666-666666666666",
"widgetId": "55555555-5555-4555-8555-555555555555",
"eventType": "ops-endpoint-verified",
"metadata": {
"expectedStatus": 401
}
}
]
}
}

View File

@@ -0,0 +1,71 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://core-hub.local/contracts/schemas/migration-bundle.schema.json",
"title": "Core Hub Migration Bundle",
"type": "object",
"required": [
"schemaVersion",
"source",
"records"
],
"additionalProperties": true,
"properties": {
"schemaVersion": {
"const": "core-hub.migration.v1"
},
"source": {
"type": "string"
},
"exportedAt": {
"type": "string"
},
"records": {
"type": "object",
"additionalProperties": false,
"properties": {
"hubs": {
"type": "array",
"items": {
"type": "object"
},
"default": []
},
"hubCapabilityManifests": {
"type": "array",
"items": {
"type": "object"
},
"default": []
},
"apiConsumers": {
"type": "array",
"items": {
"type": "object"
},
"default": []
},
"apiKeys": {
"type": "array",
"items": {
"type": "object"
},
"default": []
},
"widgets": {
"type": "array",
"items": {
"type": "object"
},
"default": []
},
"interactionEvents": {
"type": "array",
"items": {
"type": "object"
},
"default": []
}
}
}
}
}