/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; import { APIKeyV2, APIKeyV2$inboundSchema, APIKeyV2$Outbound, APIKeyV2$outboundSchema, } from "./apikeyv2.js"; import { UserV1, UserV1$inboundSchema, UserV1$Outbound, UserV1$outboundSchema, } from "./userv1.js"; export type ActorV2 = { apiKey?: APIKeyV2 | undefined; user?: UserV1 | undefined; }; /** @internal */ export const ActorV2$inboundSchema: z.ZodType = z.object({ api_key: APIKeyV2$inboundSchema.optional(), user: UserV1$inboundSchema.optional(), }).transform((v) => { return remap$(v, { "api_key": "apiKey", }); }); /** @internal */ export type ActorV2$Outbound = { api_key?: APIKeyV2$Outbound | undefined; user?: UserV1$Outbound | undefined; }; /** @internal */ export const ActorV2$outboundSchema: z.ZodType< ActorV2$Outbound, z.ZodTypeDef, ActorV2 > = z.object({ apiKey: APIKeyV2$outboundSchema.optional(), user: UserV1$outboundSchema.optional(), }).transform((v) => { return remap$(v, { apiKey: "api_key", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace ActorV2$ { /** @deprecated use `ActorV2$inboundSchema` instead. */ export const inboundSchema = ActorV2$inboundSchema; /** @deprecated use `ActorV2$outboundSchema` instead. */ export const outboundSchema = ActorV2$outboundSchema; /** @deprecated use `ActorV2$Outbound` instead. */ export type Outbound = ActorV2$Outbound; }