Start Core Hub FastAPI replacement foundation
This commit is contained in:
parent
75963233b6
commit
1e87adbcbb
37 changed files with 3292 additions and 30 deletions
56
src/core_hub/seeds.py
Normal file
56
src/core_hub/seeds.py
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
from .schemas import CatalogItem, HubCapabilityManifest, HubResource, Link
|
||||
|
||||
PUBLIC_HUBS = [
|
||||
HubResource(
|
||||
slug="core-hub",
|
||||
name="Core Hub",
|
||||
description="Third-generation production interaction framework.",
|
||||
capabilities=[
|
||||
"hub-registry",
|
||||
"interaction-events",
|
||||
"workplan-coordination",
|
||||
"operator-console",
|
||||
],
|
||||
links=[Link(rel="self", href="/api/v2/hubs/core-hub")],
|
||||
)
|
||||
]
|
||||
|
||||
PUBLIC_MANIFESTS = [
|
||||
HubCapabilityManifest(
|
||||
hub_slug="core-hub",
|
||||
capabilities=[
|
||||
"capability.infotech.core-hub",
|
||||
"api.v2.compatibility",
|
||||
"contract.ir",
|
||||
],
|
||||
endpoints=[
|
||||
Link(rel="hubs", href="/api/v2/hubs"),
|
||||
Link(rel="events", href="/api/v2/interaction-events"),
|
||||
Link(rel="widgets", href="/api/v2/widgets"),
|
||||
],
|
||||
)
|
||||
]
|
||||
|
||||
WIDGET_TYPES = [
|
||||
CatalogItem(slug="status-summary", name="Status Summary"),
|
||||
CatalogItem(slug="workplan-board", name="Workplan Board"),
|
||||
CatalogItem(slug="event-stream", name="Event Stream"),
|
||||
]
|
||||
|
||||
EVENT_TYPES = [
|
||||
CatalogItem(slug="interaction.event", name="Interaction Event"),
|
||||
CatalogItem(slug="workplan.progress", name="Workplan Progress"),
|
||||
CatalogItem(slug="evidence.recorded", name="Evidence Recorded"),
|
||||
]
|
||||
|
||||
ANNOTATION_CATEGORIES = [
|
||||
CatalogItem(slug="operator-note", name="Operator Note"),
|
||||
CatalogItem(slug="compatibility-delta", name="Compatibility Delta"),
|
||||
CatalogItem(slug="migration-evidence", name="Migration Evidence"),
|
||||
]
|
||||
|
||||
POLICY_SCOPES = [
|
||||
CatalogItem(slug="public-read", name="Public Read"),
|
||||
CatalogItem(slug="hub-write", name="Hub Write"),
|
||||
CatalogItem(slug="operator-admin", name="Operator Admin"),
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue