/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; import { ClosedEnum } from "../../types/enums.js"; /** * How is this resource managed */ export const ManagedBy = { Dashboard: "dashboard", Terraform: "terraform", External: "external", } as const; /** * How is this resource managed */ export type ManagedBy = ClosedEnum; export type ManagementMetaV2 = { /** * Annotations that track metadata about this resource */ annotations: { [k: string]: string }; /** * How is this resource managed */ managedBy: ManagedBy; /** * The url of the external repository where this resource is managed (if there is one) */ sourceUrl?: string | undefined; }; /** @internal */ export const ManagedBy$inboundSchema: z.ZodNativeEnum = z .nativeEnum(ManagedBy); /** @internal */ export const ManagedBy$outboundSchema: z.ZodNativeEnum = ManagedBy$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace ManagedBy$ { /** @deprecated use `ManagedBy$inboundSchema` instead. */ export const inboundSchema = ManagedBy$inboundSchema; /** @deprecated use `ManagedBy$outboundSchema` instead. */ export const outboundSchema = ManagedBy$outboundSchema; } /** @internal */ export const ManagementMetaV2$inboundSchema: z.ZodType< ManagementMetaV2, z.ZodTypeDef, unknown > = z.object({ annotations: z.record(z.string()), managed_by: ManagedBy$inboundSchema, source_url: z.string().optional(), }).transform((v) => { return remap$(v, { "managed_by": "managedBy", "source_url": "sourceUrl", }); }); /** @internal */ export type ManagementMetaV2$Outbound = { annotations: { [k: string]: string }; managed_by: string; source_url?: string | undefined; }; /** @internal */ export const ManagementMetaV2$outboundSchema: z.ZodType< ManagementMetaV2$Outbound, z.ZodTypeDef, ManagementMetaV2 > = z.object({ annotations: z.record(z.string()), managedBy: ManagedBy$outboundSchema, sourceUrl: z.string().optional(), }).transform((v) => { return remap$(v, { managedBy: "managed_by", sourceUrl: "source_url", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace ManagementMetaV2$ { /** @deprecated use `ManagementMetaV2$inboundSchema` instead. */ export const inboundSchema = ManagementMetaV2$inboundSchema; /** @deprecated use `ManagementMetaV2$outboundSchema` instead. */ export const outboundSchema = ManagementMetaV2$outboundSchema; /** @deprecated use `ManagementMetaV2$Outbound` instead. */ export type Outbound = ManagementMetaV2$Outbound; }