57 lines
1.7 KiB
Python
57 lines
1.7 KiB
Python
|
|
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"),
|
||
|
|
]
|