/** * Codex readiness for catalog, default-model and admission reads on the * shared subscription core: "is Codex ready in this workspace, and which * models may its connections serve?", answered from the provider-neutral * serving set (`subscription-core/catalog`) bound to Codex. */ import type { Database } from "./database.js"; import { subscriptionCoreConnectionAllowlist, subscriptionCoreConnectionAllowsModel, type SubscriptionCoreServingConnection } from "./subscription-core/catalog.js"; export type SubscriptionCoreCodexServingConnection = SubscriptionCoreServingConnection; /** Placement's static model admission for one connection (allowlists and exclusions). */ export declare const subscriptionCoreCodexConnectionAllowsModel: typeof subscriptionCoreConnectionAllowsModel; /** * The connection's admitted models as one allowlist (null: every model), for * the catalog's per-provider restriction union. Exclusions without an * allowlist cannot be listed; placement still refuses those models. */ export declare const subscriptionCoreCodexConnectionAllowlist: typeof subscriptionCoreConnectionAllowlist; /** * The core Codex connections that can serve new work of `subjectId` in this * workspace. A null or non-human subject * sees shared capacity only. */ export declare function listSubscriptionCoreCodexServingConnections(db: Database, input: { accountId: string; workspaceId: string; subjectId: string | null; }, now?: Date): Promise; /** * Codex readiness on the core: at least one connection can serve new work of * this subject here. */ export declare function subscriptionCoreCodexWorkspaceReady(db: Database, input: { accountId: string; workspaceId: string; subjectId: string | null; }): Promise;