/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 45be769f726b */ import * as z from "zod/v4"; export type ImportedResource = { /** * Resource id from the active stack */ id: string; /** * Resource type identifier that determines the specific kind of resource. This field is used for polymorphic deserialization and resource-specific behavior. */ type: string; /** * Resolved typed import payload */ importData: { [k: string]: any | null }; }; /** @internal */ export type ImportedResource$Outbound = { id: string; type: string; importData: { [k: string]: any | null }; }; /** @internal */ export const ImportedResource$outboundSchema: z.ZodType< ImportedResource$Outbound, ImportedResource > = z.object({ id: z.string(), type: z.string(), importData: z.record(z.string(), z.nullable(z.any())), }); export function importedResourceToJSON( importedResource: ImportedResource, ): string { return JSON.stringify( ImportedResource$outboundSchema.parse(importedResource), ); }