mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-06 12:37:46 +00:00
41 lines
872 B
TypeScript
41 lines
872 B
TypeScript
/*
|
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
*/
|
|
|
|
import { z } from "zod";
|
|
|
|
export type Security = {
|
|
accessToken: string;
|
|
};
|
|
|
|
/** @internal */
|
|
export namespace Security$ {
|
|
export type Inbound = {
|
|
accessToken: string;
|
|
};
|
|
|
|
export const inboundSchema: z.ZodType<Security, z.ZodTypeDef, Inbound> = z
|
|
.object({
|
|
accessToken: z.string(),
|
|
})
|
|
.transform((v) => {
|
|
return {
|
|
accessToken: v.accessToken,
|
|
};
|
|
});
|
|
|
|
export type Outbound = {
|
|
accessToken: string;
|
|
};
|
|
|
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, Security> = z
|
|
.object({
|
|
accessToken: z.string(),
|
|
})
|
|
.transform((v) => {
|
|
return {
|
|
accessToken: v.accessToken,
|
|
};
|
|
});
|
|
}
|