import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type UpdateScopedApiKeyRequestBody = { keyId: string; scopes: Array; name?: string | undefined; rateLimitEnabled?: boolean | undefined; rateLimitTimeWindow?: number | undefined; rateLimitMax?: number | undefined; }; export type UpdateScopedApiKeyRequest = { /** * Optional external end-user identifier forwarded by the API gateway. */ xOnBehalfOf?: string | undefined; requestBody?: UpdateScopedApiKeyRequestBody | undefined; }; export declare const UpdateScopedApiKeyUserType: { readonly User: "user"; readonly ServiceAccount: "service-account"; }; export type UpdateScopedApiKeyUserType = ClosedEnum; /** * Updated */ export type UpdateScopedApiKeyResponseBody = { id: string; name?: string | null | undefined; key?: string | undefined; prefix?: string | null | undefined; start?: string | null | undefined; userId: string; userType: UpdateScopedApiKeyUserType; orgId: string | null; teamId: string | null; scopes: Array; expiresAt?: string | null | undefined; }; /** @internal */ export declare const UpdateScopedApiKeyRequestBody$inboundSchema: z.ZodType; /** @internal */ export type UpdateScopedApiKeyRequestBody$Outbound = { keyId: string; scopes: Array; name?: string | undefined; rateLimitEnabled?: boolean | undefined; rateLimitTimeWindow?: number | undefined; rateLimitMax?: number | undefined; }; /** @internal */ export declare const UpdateScopedApiKeyRequestBody$outboundSchema: z.ZodType; export declare function updateScopedApiKeyRequestBodyToJSON(updateScopedApiKeyRequestBody: UpdateScopedApiKeyRequestBody): string; export declare function updateScopedApiKeyRequestBodyFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const UpdateScopedApiKeyRequest$inboundSchema: z.ZodType; /** @internal */ export type UpdateScopedApiKeyRequest$Outbound = { "X-On-Behalf-Of"?: string | undefined; RequestBody?: UpdateScopedApiKeyRequestBody$Outbound | undefined; }; /** @internal */ export declare const UpdateScopedApiKeyRequest$outboundSchema: z.ZodType; export declare function updateScopedApiKeyRequestToJSON(updateScopedApiKeyRequest: UpdateScopedApiKeyRequest): string; export declare function updateScopedApiKeyRequestFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const UpdateScopedApiKeyUserType$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const UpdateScopedApiKeyUserType$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const UpdateScopedApiKeyResponseBody$inboundSchema: z.ZodType; /** @internal */ export type UpdateScopedApiKeyResponseBody$Outbound = { id: string; name?: string | null | undefined; key?: string | undefined; prefix?: string | null | undefined; start?: string | null | undefined; userId: string; userType: string; orgId: string | null; teamId: string | null; scopes: Array; expiresAt?: string | null | undefined; }; /** @internal */ export declare const UpdateScopedApiKeyResponseBody$outboundSchema: z.ZodType; export declare function updateScopedApiKeyResponseBodyToJSON(updateScopedApiKeyResponseBody: UpdateScopedApiKeyResponseBody): string; export declare function updateScopedApiKeyResponseBodyFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=updatescopedapikey.d.ts.map