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 ReissueOwnerKeyRequestBody = { userId?: string | undefined; teamId?: string | undefined; }; export type ReissueOwnerKeyRequest = { id: string; /** * Optional external end-user identifier forwarded by the API gateway. */ xOnBehalfOf?: string | undefined; requestBody?: ReissueOwnerKeyRequestBody | undefined; }; export declare const ReissueOwnerKeyUserType: { readonly User: "user"; readonly ServiceAccount: "service-account"; }; export type ReissueOwnerKeyUserType = ClosedEnum; export type ApiKey = { id: string; name?: string | null | undefined; key?: string | undefined; prefix?: string | null | undefined; start?: string | null | undefined; userId: string; userType: ReissueOwnerKeyUserType; orgId: string | null; teamId: string | null; scopes: Array; expiresAt?: string | null | undefined; }; /** * Owner key re-issued (plaintext returned once) */ export type ReissueOwnerKeyResponseBody = { message: string; userId: string; apiKey: ApiKey; }; /** @internal */ export declare const ReissueOwnerKeyRequestBody$inboundSchema: z.ZodType; /** @internal */ export type ReissueOwnerKeyRequestBody$Outbound = { userId?: string | undefined; teamId?: string | undefined; }; /** @internal */ export declare const ReissueOwnerKeyRequestBody$outboundSchema: z.ZodType; export declare function reissueOwnerKeyRequestBodyToJSON(reissueOwnerKeyRequestBody: ReissueOwnerKeyRequestBody): string; export declare function reissueOwnerKeyRequestBodyFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ReissueOwnerKeyRequest$inboundSchema: z.ZodType; /** @internal */ export type ReissueOwnerKeyRequest$Outbound = { id: string; "X-On-Behalf-Of"?: string | undefined; RequestBody?: ReissueOwnerKeyRequestBody$Outbound | undefined; }; /** @internal */ export declare const ReissueOwnerKeyRequest$outboundSchema: z.ZodType; export declare function reissueOwnerKeyRequestToJSON(reissueOwnerKeyRequest: ReissueOwnerKeyRequest): string; export declare function reissueOwnerKeyRequestFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ReissueOwnerKeyUserType$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ReissueOwnerKeyUserType$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ApiKey$inboundSchema: z.ZodType; /** @internal */ export type ApiKey$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 ApiKey$outboundSchema: z.ZodType; export declare function apiKeyToJSON(apiKey: ApiKey): string; export declare function apiKeyFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ReissueOwnerKeyResponseBody$inboundSchema: z.ZodType; /** @internal */ export type ReissueOwnerKeyResponseBody$Outbound = { message: string; userId: string; apiKey: ApiKey$Outbound; }; /** @internal */ export declare const ReissueOwnerKeyResponseBody$outboundSchema: z.ZodType; export declare function reissueOwnerKeyResponseBodyToJSON(reissueOwnerKeyResponseBody: ReissueOwnerKeyResponseBody): string; export declare function reissueOwnerKeyResponseBodyFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=reissueownerkey.d.ts.map