import * as z from "zod/v3";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
import { Meta } from "./meta.js";
import { Permission } from "./permission.js";
export type V2KeysSetPermissionsResponseBody = {
    /**
     * Metadata object included in every API response. This provides context about the request and is essential for debugging, audit trails, and support inquiries. The `requestId` is particularly important when troubleshooting issues with the Unkey support team.
     */
    meta: Meta;
    /**
     * Complete list of all permissions now directly assigned to the key after the set operation has completed.
     *
     * @remarks
     *
     * The response includes:
     * - The comprehensive, updated set of direct permissions (reflecting the complete replacement)
     * - Both ID and name for each permission for easy reference
     *
     * Important notes:
     * - This only shows direct permissions, not those granted through roles
     * - An empty array means the key has no direct permissions assigned
     * - For a complete permission picture including roles, use keys.getKey instead
     */
    data: Array<Permission>;
};
/** @internal */
export declare const V2KeysSetPermissionsResponseBody$inboundSchema: z.ZodType<V2KeysSetPermissionsResponseBody, z.ZodTypeDef, unknown>;
export declare function v2KeysSetPermissionsResponseBodyFromJSON(jsonString: string): SafeParseResult<V2KeysSetPermissionsResponseBody, SDKValidationError>;
//# sourceMappingURL=v2keyssetpermissionsresponsebody.d.ts.map