/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 41f864393f4e */ import * as z from "zod/v4"; import * as models from "../index.js"; export type ListReleaseDeploymentsGlobals = { /** * 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 ListReleaseDeploymentsRequest = { /** * Unique identifier for the release. */ id: string; /** * Filter deployments by rollout state */ state?: Array | undefined; /** * Filter by deployment group ID or name */ deploymentGroup?: string | undefined; /** * Maximum number of items to return per page */ limit?: number | undefined; /** * Cursor for pagination - omit for first page */ cursor?: string | undefined; }; /** @internal */ export type ListReleaseDeploymentsRequest$Outbound = { id: string; state?: Array | undefined; deploymentGroup?: string | undefined; limit: number; cursor?: string | undefined; }; /** @internal */ export const ListReleaseDeploymentsRequest$outboundSchema: z.ZodType< ListReleaseDeploymentsRequest$Outbound, ListReleaseDeploymentsRequest > = z.object({ id: z.string(), state: z.array(models.ReleaseRolloutState$outboundSchema).optional(), deploymentGroup: z.string().optional(), limit: z.int().default(20), cursor: z.string().optional(), }); export function listReleaseDeploymentsRequestToJSON( listReleaseDeploymentsRequest: ListReleaseDeploymentsRequest, ): string { return JSON.stringify( ListReleaseDeploymentsRequest$outboundSchema.parse( listReleaseDeploymentsRequest, ), ); }