@vercel/sdk
Version:
<p align="center"> <a href="https://vercel.com"> <img src="https://assets.vercel.com/image/upload/v1588805858/repositories/vercel/logo.png" height="96"> <h3 align="center">Vercel</h3> </a> <p align="center">Develop. Preview. Ship.</p> </p>
31 lines • 1.26 kB
JavaScript
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
import * as z from "zod/v3";
import { safeParse } from "../lib/schemas.js";
import { UserEvent$inboundSchema } from "./userevent.js";
/** @internal */
export const ListUserEventsRequest$outboundSchema = z.object({
limit: z.number().optional(),
since: z.string().optional(),
until: z.string().optional(),
types: z.string().optional(),
userId: z.string().optional(),
principalId: z.string().optional(),
projectIds: z.string().optional(),
entityId: z.string().optional(),
withPayload: z.string().optional(),
teamId: z.string().optional(),
slug: z.string().optional(),
});
export function listUserEventsRequestToJSON(listUserEventsRequest) {
return JSON.stringify(ListUserEventsRequest$outboundSchema.parse(listUserEventsRequest));
}
/** @internal */
export const ListUserEventsResponseBody$inboundSchema = z.object({
events: z.array(UserEvent$inboundSchema),
});
export function listUserEventsResponseBodyFromJSON(jsonString) {
return safeParse(jsonString, (x) => ListUserEventsResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListUserEventsResponseBody' from JSON`);
}
//# sourceMappingURL=listusereventsop.js.map