/** * AI Government Portal pack (`eaera-agent-government`) — content types, * action names, and the portal REST endpoints mounted by the engine. * * Source of truth: * `eaera-docs/company-os/ai-government-portal/be-docs/api_references.md`. */ export declare const GOV_CONTENT_TYPE: { readonly AGENT: "gov.agent"; readonly AGENT_TYPE: "gov.agent_type"; readonly TEAM: "gov.team"; readonly PROJECT: "gov.project"; readonly GATEWAY_PROVIDER: "gov.gateway_provider"; readonly GATEWAY_ROUTE: "gov.gateway_route"; readonly GATEWAY_CONSUMER: "gov.gateway_consumer"; readonly CONTENT_POLICY: "gov.content_policy"; readonly USAGE_RECORD: "gov.usage_record"; readonly COST_REPORT: "gov.cost_report"; readonly LIFECYCLE_EVENT: "gov.lifecycle_event"; readonly ALERT: "gov.alert"; readonly SETTING: "setting.gov"; }; export type GovContentTypeName = (typeof GOV_CONTENT_TYPE)[keyof typeof GOV_CONTENT_TYPE]; export declare const GOV_CONTENT_TYPE_NAMES: readonly GovContentTypeName[]; /** * Portal REST reads (pack router, api_references §6). Mounted by the engine * from the pack.yaml `routers:` block. Plain lists (agents, providers) have * NO dedicated endpoint — they go through the generic content API * (`GET /api/v1/content?type=`, §3). */ export declare const GOV_ENDPOINT: { readonly PROJECT_MATRIX: "/api/v1/projects/matrix"; readonly projectTasks: (name: string) => string; readonly GATEWAY_PLUGINS: "/api/v1/gateway/plugins"; /** Worker CR phase + Matrix MXID, realtime (needs the engine K8s client). */ readonly workerStatus: (name: string) => string; /** Worker gateway key straight from Secret `agentteams-creds-`. */ readonly workerGatewayKey: (name: string) => string; readonly USAGE_COST: "/api/v1/usage/cost"; readonly USAGE_DASHBOARD: "/api/v1/usage/dashboard"; readonly USAGE_EXPORT: "/api/v1/usage/export"; /** Generic action route — shared with the content service. */ readonly action: (uuid: string, actionName: string) => string; }; /** The 29 pack actions (api_references §5). */ export declare const GOV_ACTION_NAME: { readonly ONBOARD: "onboard"; readonly SUSPEND: "suspend"; readonly RESUME: "resume"; readonly DECOMMISSION: "decommission"; readonly UPDATE_CONFIG: "update_config"; readonly SYNC_AGENT_STATUS: "sync_agent_status"; readonly RESOLVE_CONFIG: "resolve_config"; readonly ENSURE_AGENT_TYPE_SEEDS: "ensure_agent_type_seeds"; readonly ENSURE_COORDINATOR: "ensure_coordinator"; readonly CREATE_CONSUMER: "create_consumer"; readonly REVOKE_CONSUMER: "revoke_consumer"; readonly SYNC_PROVIDER: "sync_provider"; readonly DELETE_PROVIDER: "delete_provider"; readonly SYNC_ROUTE: "sync_route"; readonly DELETE_ROUTE: "delete_route"; readonly SYNC_CONSUMER_LIMITS: "sync_consumer_limits"; readonly PUBLISH_CONTENT_POLICY: "publish_content_policy"; readonly ASSIGNMENT_MATRIX: "assignment_matrix"; readonly AGGREGATE_TASKS: "aggregate_tasks"; readonly RUN_MONITORING: "run_monitoring"; readonly CREATE_TEAM: "create_team"; readonly ARCHIVE_TEAM: "archive_team"; readonly AGGREGATE_USAGE: "aggregate_usage"; readonly GENERATE_COST_REPORT: "generate_cost_report"; readonly COMPUTE_COST: "compute_cost"; readonly DASHBOARD: "dashboard"; readonly EXPORT_USAGE: "export_usage"; readonly WORKER_STATUS: "worker_status"; readonly WORKER_GATEWAY_KEY: "worker_gateway_key"; }; export type GovActionName = (typeof GOV_ACTION_NAME)[keyof typeof GOV_ACTION_NAME]; /** * Action-by-CT contract — every pack action is bound to one content type. * Invoking an action on a uuid of another CT returns a dispatcher error. */ export declare const GOV_ACTION_BY_CT: Record; /** Time windows accepted by the usage endpoints (api_references §5/§6). */ export declare const GOV_USAGE_WINDOW: { readonly TODAY: "today"; readonly W24H: "24h"; readonly W7D: "7d"; readonly W30D: "30d"; readonly CUSTOM: "custom"; }; export type GovUsageWindow = (typeof GOV_USAGE_WINDOW)[keyof typeof GOV_USAGE_WINDOW]; /** Group-by dimensions for `GET /api/v1/usage/cost`. */ export declare const GOV_COST_GROUP: { readonly AGENT: "agent"; readonly PROJECT: "project"; readonly PROVIDER: "provider"; readonly MODEL: "model"; }; export type GovCostGroup = (typeof GOV_COST_GROUP)[keyof typeof GOV_COST_GROUP]; /** Backend defaults for the gov actions + usage REST reads. */ export declare const GOV_DEFAULTS: { readonly USAGE_WINDOW: "24h"; readonly COST_GROUP: "agent"; /** aggregate_usage window_minutes. */ readonly WINDOW_MINUTES: 5; /** aggregate_usage spike_multiplier. */ readonly SPIKE_MULTIPLIER: 2; /** aggregate_usage report_type. */ readonly REPORT_TYPE: "consumer"; /** dashboard group_key. */ readonly GROUP_KEY: "agent"; /** dashboard top_n. */ readonly TOP_N: 10; /** run_monitoring timeout (seconds). */ readonly MONITOR_TIMEOUT_S: 10; /** export_usage filename. */ readonly EXPORT_FILENAME: "usage.csv"; }; //# sourceMappingURL=gov.constant.d.ts.map