/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 5c1365d16124 */ import * as z from "zod/v4"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as models from "../index.js"; export type ListManagerEventsGlobals = { /** * 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 ListManagerEventsRequest = { id: string; }; /** * Retrieved events. */ export type ListManagerEventsResponse = { items: Array; }; /** @internal */ export type ListManagerEventsRequest$Outbound = { id: string; }; /** @internal */ export const ListManagerEventsRequest$outboundSchema: z.ZodType< ListManagerEventsRequest$Outbound, ListManagerEventsRequest > = z.object({ id: z.string(), }); export function listManagerEventsRequestToJSON( listManagerEventsRequest: ListManagerEventsRequest, ): string { return JSON.stringify( ListManagerEventsRequest$outboundSchema.parse(listManagerEventsRequest), ); } /** @internal */ export const ListManagerEventsResponse$inboundSchema: z.ZodType< ListManagerEventsResponse, unknown > = z.object({ items: z.array(models.Event$inboundSchema), }); export function listManagerEventsResponseFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => ListManagerEventsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListManagerEventsResponse' from JSON`, ); }