/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: b00a3a04e787 */ import * as z from "zod/v4"; import { ClosedEnum } from "../../types/enums.js"; import * as models from "../index.js"; export type ListDebugSessionsGlobals = { /** * Workspace name. Platform API keys already select a workspace; other authentication methods can configure it once on the SDK client. */ workspace?: string | undefined; }; /** * Filter by deployment model (push/pull). Joins against the parent deployment. */ export const ListDebugSessionsMode = { Push: "push", Pull: "pull", } as const; /** * Filter by deployment model (push/pull). Joins against the parent deployment. */ export type ListDebugSessionsMode = ClosedEnum; /** * Filter by cloud provider. Joins against the parent deployment. */ export const ListDebugSessionsProvider = { Aws: "aws", Gcp: "gcp", Azure: "azure", Kubernetes: "kubernetes", Machines: "machines", Local: "local", Test: "test", } as const; /** * Filter by cloud provider. Joins against the parent deployment. */ export type ListDebugSessionsProvider = ClosedEnum< typeof ListDebugSessionsProvider >; export type ListDebugSessionsRequest = { /** * Filter by project ID or name. */ project?: string | undefined; /** * Filter by deployment ID */ deploymentId?: string | undefined; /** * Filter by session state */ state?: models.DebugSessionState | undefined; /** * Filter by deployment model (push/pull). Joins against the parent deployment. */ mode?: ListDebugSessionsMode | undefined; /** * Filter by cloud provider. Joins against the parent deployment. */ provider?: ListDebugSessionsProvider | undefined; /** * Maximum number of items to return per page */ limit?: number | undefined; /** * Cursor for pagination - omit for first page */ cursor?: string | undefined; }; /** @internal */ export const ListDebugSessionsMode$outboundSchema: z.ZodEnum< typeof ListDebugSessionsMode > = z.enum(ListDebugSessionsMode); /** @internal */ export const ListDebugSessionsProvider$outboundSchema: z.ZodEnum< typeof ListDebugSessionsProvider > = z.enum(ListDebugSessionsProvider); /** @internal */ export type ListDebugSessionsRequest$Outbound = { project?: string | undefined; deploymentId?: string | undefined; state?: string | undefined; mode?: string | undefined; provider?: string | undefined; limit: number; cursor?: string | undefined; }; /** @internal */ export const ListDebugSessionsRequest$outboundSchema: z.ZodType< ListDebugSessionsRequest$Outbound, ListDebugSessionsRequest > = z.object({ project: z.string().optional(), deploymentId: z.string().optional(), state: models.DebugSessionState$outboundSchema.optional(), mode: ListDebugSessionsMode$outboundSchema.optional(), provider: ListDebugSessionsProvider$outboundSchema.optional(), limit: z.int().default(20), cursor: z.string().optional(), }); export function listDebugSessionsRequestToJSON( listDebugSessionsRequest: ListDebugSessionsRequest, ): string { return JSON.stringify( ListDebugSessionsRequest$outboundSchema.parse(listDebugSessionsRequest), ); }