export declare const OPENAI_V1_ORGANIZATION_ADMIN_API_KEYS_ENDPOINT: "/v1/organization/admin/api/keys";
export declare const DEFAULT_OPENAI_V1_ORGANIZATION_ADMIN_API_KEYS_BASE_URL: "https://api.openai.com";
export type OpenAIV1OrganizationAdminApiKeysMethod = "GET" | "POST" | "DELETE";
export type OpenAIV1OrganizationAdminApiKeysBoundary = "input" | "contract" | "governance" | "auth" | "scope" | "provider" | "response";
export type OpenAIV1OrganizationAdminApiKeysErrorCode = "MISSING_OPERATION" | "MISSING_RUNTIME_ID" | "CONTRACT_REJECTED" | "GOVERNANCE_REJECTED" | "SCOPE_DENIED" | "AUTH_REJECTED" | "CALLER_REQUIRED" | "PROVIDER_AUTH_FAILED" | "PROVIDER_RATE_LIMITED" | "PROVIDER_TIMEOUT" | "PROVIDER_UNAVAILABLE" | "RESPONSE_FORMAT_DRIFT" | "CALLER_FAILED";
export type OpenAIV1OrganizationAdminApiKeysGate = {
    accepted: boolean;
    reason?: string;
};
export type OpenAIV1OrganizationAdminApiKeysRuntimeContext = {
    runtimeId?: string;
    invocationId?: string;
    traceId?: string;
    callerId?: string;
};
export type OpenAIV1OrganizationAdminApiKeysAuthEnvelope = {
    kind: "bearer" | "api-key" | "none";
    present: boolean;
    redactedToken?: string;
};
export type OpenAIV1OrganizationAdminApiKeysRequestEnvelope = {
    provider: "openai";
    apiVersion: "v1";
    endpoint: typeof OPENAI_V1_ORGANIZATION_ADMIN_API_KEYS_ENDPOINT;
    operation: string;
    method: OpenAIV1OrganizationAdminApiKeysMethod;
    url: string;
    pathSuffix: string;
    query: Readonly<Record<string, string>>;
    headers: Readonly<Record<string, string>>;
    body?: unknown;
    runtime: Required<OpenAIV1OrganizationAdminApiKeysRuntimeContext>;
    requestedScopes: readonly string[];
    grantedScopes: readonly string[];
    dryRun: boolean;
    providerCallPlanned: boolean;
    unsafeSideEffects: false;
    providerFieldsOpaque: true;
};
export type OpenAIV1OrganizationAdminApiKeysProviderCaller = (envelope: OpenAIV1OrganizationAdminApiKeysRequestEnvelope) => unknown | Promise<unknown>;
export type OpenAIV1OrganizationAdminApiKeysInvocationRequest = {
    operation?: string;
    method?: OpenAIV1OrganizationAdminApiKeysMethod;
    pathSuffix?: string;
    query?: Readonly<Record<string, string | number | boolean | undefined>>;
    headers?: Readonly<Record<string, string | undefined>>;
    body?: unknown;
    baseUrl?: string;
    auth?: OpenAIV1OrganizationAdminApiKeysAuthEnvelope;
    runtime?: OpenAIV1OrganizationAdminApiKeysRuntimeContext;
    requiredScopes?: readonly string[];
    allowedScopes?: readonly string[];
    contract?: OpenAIV1OrganizationAdminApiKeysGate;
    governance?: OpenAIV1OrganizationAdminApiKeysGate;
    dryRun?: boolean;
    mockResponse?: unknown;
    expectResponseObject?: boolean;
    caller?: OpenAIV1OrganizationAdminApiKeysProviderCaller;
};
export type OpenAIV1OrganizationAdminApiKeysResponseEnvelope = {
    provider: "openai";
    endpoint: typeof OPENAI_V1_ORGANIZATION_ADMIN_API_KEYS_ENDPOINT;
    mode: "dry-run" | "mock" | "caller";
    raw: unknown;
    providerFieldsOpaque: true;
};
export type OpenAIV1OrganizationAdminApiKeysCapabilitySignal = {
    provider: "openai";
    endpoint: typeof OPENAI_V1_ORGANIZATION_ADMIN_API_KEYS_ENDPOINT;
    operation: string;
    rawShape: "admin-api-key-object" | "admin-api-key-list" | "mock" | "dry-run";
};
export type OpenAIV1OrganizationAdminApiKeysError = {
    code: OpenAIV1OrganizationAdminApiKeysErrorCode;
    message: string;
    boundary: OpenAIV1OrganizationAdminApiKeysBoundary;
    retryable: boolean;
};
export type OpenAIV1OrganizationAdminApiKeysResult = {
    ok: true;
    request: OpenAIV1OrganizationAdminApiKeysRequestEnvelope;
    response: OpenAIV1OrganizationAdminApiKeysResponseEnvelope;
    capability: OpenAIV1OrganizationAdminApiKeysCapabilitySignal;
    events: readonly string[];
} | {
    ok: false;
    error: OpenAIV1OrganizationAdminApiKeysError;
    request?: OpenAIV1OrganizationAdminApiKeysRequestEnvelope;
    events: readonly string[];
};
export declare function classifyOpenAIV1OrganizationAdminApiKeysProviderError(error: unknown): OpenAIV1OrganizationAdminApiKeysErrorCode;
export declare function invokeOpenAIV1OrganizationAdminApiKeys(input?: OpenAIV1OrganizationAdminApiKeysInvocationRequest): Promise<OpenAIV1OrganizationAdminApiKeysResult>;
