Variable detailsSchemaConst
detailsSchema: ZodDiscriminatedUnion<
"type",
[
ZodObject<
{
id: ZodString;
location: ZodOptional<ZodString>;
name: ZodString;
storage_class: ZodOptional<ZodString>;
type: ZodLiteral<"r2_bucket">;
},
"strip",
ZodTypeAny,
{
id: string;
location?: string;
name: string;
storage_class?: string;
type: "r2_bucket";
},
{
id: string;
location?: string;
name: string;
storage_class?: string;
type: "r2_bucket";
},
>,
ZodObject<
{
id: ZodString;
jurisdiction: ZodOptional<ZodString>;
name: ZodString;
read_replication: ZodOptional<
ZodRecord<ZodString, ZodType<{} | null, ZodTypeDef, {} | null>>,
>;
type: ZodLiteral<"d1_database">;
},
"strip",
ZodTypeAny,
{
id: string;
jurisdiction?: string;
name: string;
read_replication?: Record<string, {} | null>;
type: "d1_database";
},
{
id: string;
jurisdiction?: string;
name: string;
read_replication?: Record<string, {} | null>;
type: "d1_database";
},
>,
],
> = ...
Service-specific external object payload selected by
type.