import { AuthApiTransports } from "../../../shared/transports.js"; import { PolyesterMutationOptions, PolyesterRequestOptions } from "../../../shared/request-options.js"; import { ApiKeyPolicy, ApplyApiKeyPolicyInputSchema, CreateApiKeyPolicyInputSchema, GetApiKeyPolicyInputSchema, ListApiKeyPoliciesInputSchema, UpdateApiKeyPolicyInputSchema } from "./api-key-policies.schemas.js"; import * as v from "valibot"; //#region src/services/policies/api-key-policies/api-key-policies.d.ts /** * Manages reusable API key policy templates and their assignment to API keys. */ declare class ApiKeyPoliciesService { #private; constructor(transports: AuthApiTransports); /** * Returns API key policy templates available to the caller. */ list(input?: v.InferInput, options?: PolyesterRequestOptions): Promise; /** * Fetches an API key policy by base58 policy ID, falling back to the SDK default no-permissions policy when no ID or policy is returned. */ get(input: v.InferInput, options?: PolyesterRequestOptions): Promise; /** * Creates an API key policy template with a spot-market scope, allowed actions, and optional immediate assignment to a key. */ create(input: v.InferInput, options?: PolyesterMutationOptions): Promise; /** * Updates selected API key policy fields using optimistic concurrency. */ update(input: v.InferInput, options?: PolyesterMutationOptions): Promise; /** * Deletes an API key policy template when it is not in use. */ delete(policyId: string, options?: PolyesterMutationOptions): Promise; /** * Attaches a policy to an API key. Passing a null policyId clears the binding and leaves the key with no permissions. */ apply(input: v.InferInput, options?: PolyesterMutationOptions): Promise; } //#endregion export { ApiKeyPoliciesService }; //# sourceMappingURL=api-key-policies.d.ts.map