import * as z from "zod/v4"; import { OpenEnum } from "../../types/enums.js"; export type GetApiKeyPolicyAssignmentGlobals = { /** * The app identifier should be your app's URL and is used as the primary identifier for rankings. * * @remarks * This is used to track API usage per application. */ httpReferer?: string | undefined; /** * The app display name allows you to customize how your app appears in OpenRouter's dashboard. * * @remarks */ appTitle?: string | undefined; /** * Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings. * * @remarks */ appCategories?: string | undefined; }; /** * Policy type the assignment is read or changed for */ export declare const GetApiKeyPolicyAssignmentPolicyType: { readonly Budget: "budget"; readonly ModelAvailability: "model_availability"; readonly Moderation: "moderation"; readonly RateLimit: "rate_limit"; }; /** * Policy type the assignment is read or changed for */ export type GetApiKeyPolicyAssignmentPolicyType = OpenEnum; export type GetApiKeyPolicyAssignmentRequest = { /** * The app identifier should be your app's URL and is used as the primary identifier for rankings. * * @remarks * This is used to track API usage per application. */ httpReferer?: string | undefined; /** * The app display name allows you to customize how your app appears in OpenRouter's dashboard. * * @remarks */ appTitle?: string | undefined; /** * Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings. * * @remarks */ appCategories?: string | undefined; /** * API key hash */ hash: string; /** * Workspace the policy belongs to. Required for an organization management key; a workspace-scoped key defaults to its own workspace and gets 403 for any other. */ workspaceId?: string | undefined; /** * Policy type the assignment is read or changed for */ policyType: GetApiKeyPolicyAssignmentPolicyType; }; /** @internal */ export declare const GetApiKeyPolicyAssignmentPolicyType$outboundSchema: z.ZodType; /** @internal */ export type GetApiKeyPolicyAssignmentRequest$Outbound = { "HTTP-Referer"?: string | undefined; appTitle?: string | undefined; appCategories?: string | undefined; hash: string; workspace_id?: string | undefined; policy_type: string; }; /** @internal */ export declare const GetApiKeyPolicyAssignmentRequest$outboundSchema: z.ZodType; export declare function getApiKeyPolicyAssignmentRequestToJSON(getApiKeyPolicyAssignmentRequest: GetApiKeyPolicyAssignmentRequest): string; //# sourceMappingURL=getapikeypolicyassignment.d.ts.map