/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: d980511dfdb4 */ import * as z from "zod/v4"; import { remap as remap$ } from "../../lib/primitives.js"; export type GetDeploymentCredentialRotationValuesGlobals = { /** * Workspace name. Platform API keys already select a workspace; other authentication methods can configure it once on the SDK client. */ workspace?: string | undefined; }; export type GetDeploymentCredentialRotationValuesRequestBody = { rotationId: string; }; export type GetDeploymentCredentialRotationValuesRequest = { /** * Unique identifier for the deployment. */ id: string; requestBody: GetDeploymentCredentialRotationValuesRequestBody; }; /** @internal */ export type GetDeploymentCredentialRotationValuesRequestBody$Outbound = { rotationId: string; }; /** @internal */ export const GetDeploymentCredentialRotationValuesRequestBody$outboundSchema: z.ZodType< GetDeploymentCredentialRotationValuesRequestBody$Outbound, GetDeploymentCredentialRotationValuesRequestBody > = z.object({ rotationId: z.string(), }); export function getDeploymentCredentialRotationValuesRequestBodyToJSON( getDeploymentCredentialRotationValuesRequestBody: GetDeploymentCredentialRotationValuesRequestBody, ): string { return JSON.stringify( GetDeploymentCredentialRotationValuesRequestBody$outboundSchema.parse( getDeploymentCredentialRotationValuesRequestBody, ), ); } /** @internal */ export type GetDeploymentCredentialRotationValuesRequest$Outbound = { id: string; RequestBody: GetDeploymentCredentialRotationValuesRequestBody$Outbound; }; /** @internal */ export const GetDeploymentCredentialRotationValuesRequest$outboundSchema: z.ZodType< GetDeploymentCredentialRotationValuesRequest$Outbound, GetDeploymentCredentialRotationValuesRequest > = z.object({ id: z.string(), requestBody: z.lazy(() => GetDeploymentCredentialRotationValuesRequestBody$outboundSchema ), }).transform((v) => { return remap$(v, { requestBody: "RequestBody", }); }); export function getDeploymentCredentialRotationValuesRequestToJSON( getDeploymentCredentialRotationValuesRequest: GetDeploymentCredentialRotationValuesRequest, ): string { return JSON.stringify( GetDeploymentCredentialRotationValuesRequest$outboundSchema.parse( getDeploymentCredentialRotationValuesRequest, ), ); }