@unkey/api
Version:
Developer-friendly & type-safe Typescript SDK specifically catered to leverage *@unkey/api* API.
28 lines (22 loc) • 552 B
text/typescript
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
import * as z from "zod/v3";
export type Security = {
rootKey?: string | undefined;
};
/** @internal */
export type Security$Outbound = {
rootKey?: string | undefined;
};
/** @internal */
export const Security$outboundSchema: z.ZodType<
Security$Outbound,
z.ZodTypeDef,
Security
> = z.object({
rootKey: z.string().optional(),
});
export function securityToJSON(security: Security): string {
return JSON.stringify(Security$outboundSchema.parse(security));
}