UNPKG

@vercel/sdk

Version:

<p align="center"> <a href="https://vercel.com"> <img src="https://assets.vercel.com/image/upload/v1588805858/repositories/vercel/logo.png" height="96"> <h3 align="center">Vercel</h3> </a> <p align="center">Develop. Preview. Ship.</p> </p>

1,616 lines 114 kB
/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod/v3";
import { remap as remap$ } from "../lib/primitives.js";
import { safeParse } from "../lib/schemas.js";
import * as types from "../types/primitives.js";
import { smartUnion } from "../types/smartUnion.js";
/**
 * Source of the store creation request
 */
export const CreateIntegrationStoreDirectSource = {
    Marketplace: "marketplace",
    DeployButton: "deploy-button",
    External: "external",
    V0: "v0",
    ResourceClaims: "resource-claims",
    Cli: "cli",
    Oauth: "oauth",
    Backoffice: "backoffice",
    ImportRecommendedIntegrations: "import-recommended-integrations",
    Organization: "organization",
};
export const CreateIntegrationStoreDirectFramework = {
    ActixWeb: "actix-web",
    Angular: "angular",
    Ash: "ash",
    Astro: "astro",
    Axum: "axum",
    Blitzjs: "blitzjs",
    Brunch: "brunch",
    Bun: "bun",
    Container: "container",
    CreateReactApp: "create-react-app",
    Django: "django",
    Docusaurus: "docusaurus",
    Docusaurus2: "docusaurus-2",
    Dojo: "dojo",
    Eleventy: "eleventy",
    Elysia: "elysia",
    Ember: "ember",
    Eve: "eve",
    Express: "express",
    FactoryEve: "factory-eve",
    Fastapi: "fastapi",
    Fasthtml: "fasthtml",
    Fastify: "fastify",
    Flask: "flask",
    Gatsby: "gatsby",
    Go: "go",
    Gridsome: "gridsome",
    H3: "h3",
    Hexo: "hexo",
    Hono: "hono",
    Hugo: "hugo",
    Hydrogen: "hydrogen",
    IonicAngular: "ionic-angular",
    IonicReact: "ionic-react",
    Jekyll: "jekyll",
    Koa: "koa",
    Mastra: "mastra",
    Middleman: "middleman",
    Nestjs: "nestjs",
    Nextjs: "nextjs",
    Nitro: "nitro",
    Node: "node",
    Nuxtjs: "nuxtjs",
    Parcel: "parcel",
    Polymer: "polymer",
    Preact: "preact",
    Python: "python",
    ReactRouter: "react-router",
    Redwoodjs: "redwoodjs",
    Remix: "remix",
    Ruby: "ruby",
    Rust: "rust",
    Saber: "saber",
    Sanity: "sanity",
    SanityV2: "sanity-v2",
    Sapper: "sapper",
    Scully: "scully",
    Services: "services",
    Solidstart: "solidstart",
    Solidstart1: "solidstart-1",
    Stencil: "stencil",
    Storybook: "storybook",
    Svelte: "svelte",
    Sveltekit: "sveltekit",
    Sveltekit1: "sveltekit-1",
    TanstackStart: "tanstack-start",
    TanstackStartLovable: "tanstack-start-lovable",
    Umijs: "umijs",
    Vite: "vite",
    Vitepress: "vitepress",
    Vue: "vue",
    Vuepress: "vuepress",
    Xmcp: "xmcp",
    Zola: "zola",
};
export const CreateIntegrationStoreDirectProviders2 = {
    Wildcard: "*",
};
export const CreateIntegrationStoreDirectProviders1 = {
    Bitbucket: "bitbucket",
    Github: "github",
    Gitlab: "gitlab",
};
export const CreateIntegrationStoreDirectStatus = {
    Available: "available",
    Error: "error",
    Initializing: "initializing",
    LimitsExceededSuspended: "limits-exceeded-suspended",
    LimitsExceededSuspendedStoreCount: "limits-exceeded-suspended-store-count",
    Onboarding: "onboarding",
    Suspended: "suspended",
    Uninstalled: "uninstalled",
};
export const CreateIntegrationStoreDirectOwnership = {
    Linked: "linked",
    Owned: "owned",
    Sandbox: "sandbox",
};
export const ExternalResourceStatus = {
    Error: "error",
    Onboarding: "onboarding",
    Pending: "pending",
    Ready: "ready",
    Resumed: "resumed",
    Suspended: "suspended",
    Uninstalled: "uninstalled",
};
export const CreateIntegrationStoreDirectIntegrationsType = {
    Object: "object",
};
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema12Type = {
    String: "string",
};
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema12UiControl = {
    GitNamespace: "git-namespace",
};
export const CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties123 = {
    Create: "create",
    Update: "update",
};
export const CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties123 = {
    Create: "create",
    Update: "update",
};
export const CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties123 = {
    Create: "create",
    Update: "update",
};
export const PropertiesGitProviders = {
    Bitbucket: "bitbucket",
    Github: "github",
    Gitlab: "gitlab",
};
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema11Type = {
    String: "string",
};
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema11UiControl = {
    Domain: "domain",
};
export const CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties113 = {
    Create: "create",
    Update: "update",
};
export const CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties113 = {
    Create: "create",
    Update: "update",
};
export const CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties113 = {
    Create: "create",
    Update: "update",
};
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema10Type = {
    String: "string",
};
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema10UiControl = {
    VercelCountry: "vercel-country",
};
export const CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema3 = {
    Create: "create",
    Update: "update",
};
export const CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema3 = {
    Create: "create",
    Update: "update",
};
export const CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct3 = {
    Create: "create",
    Update: "update",
};
export const CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct3 = {
    Create: "create",
    Update: "update",
};
export const CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties3 = {
    Create: "create",
    Update: "update",
};
export const CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties3 = {
    Create: "create",
    Update: "update",
};
export const CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties3 = {
    Create: "create",
    Update: "update",
};
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaType = {
    Array: "array",
};
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema9Type = {
    String: "string",
};
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaUiControl = {
    MultiVercelRegion: "multi-vercel-region",
};
export const CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore3 = {
    Create: "create",
    Update: "update",
};
export const CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore3 = {
    Create: "create",
    Update: "update",
};
export const CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJSONResponseBody3 = {
    Create: "create",
    Update: "update",
};
export const CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJSONResponseBody3 = {
    Create: "create",
    Update: "update",
};
export const CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema3 = {
    Create: "create",
    Update: "update",
};
export const CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema3 = {
    Create: "create",
    Update: "update",
};
export const CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema3 = {
    Create: "create",
    Update: "update",
};
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductType = {
    String: "string",
};
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductUiControl = {
    VercelRegion: "vercel-region",
};
export const CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson3 = {
    Create: "create",
    Update: "update",
};
export const CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson3 = {
    Create: "create",
    Update: "update",
};
export const CreateIntegrationStoreDirectDisabledIntegrationsResponse2003 = {
    Create: "create",
    Update: "update",
};
export const CreateIntegrationStoreDirectHiddenIntegrationsResponse2003 = {
    Create: "create",
    Update: "update",
};
export const CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct3 = {
    Create: "create",
    Update: "update",
};
export const CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct3 = {
    Create: "create",
    Update: "update",
};
export const CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct3 = {
    Create: "create",
    Update: "update",
};
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreType = {
    Array: "array",
};
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema7Type = {
    String: "string",
};
/** @internal */
export const CreateIntegrationStoreDirectMetadata$outboundSchema = smartUnion([
    z.string(),
    z.number(),
    z.boolean(),
    z.array(z.string()),
    z.array(z.number()),
]);
export function createIntegrationStoreDirectMetadataToJSON(createIntegrationStoreDirectMetadata) {
    return JSON.stringify(CreateIntegrationStoreDirectMetadata$outboundSchema.parse(createIntegrationStoreDirectMetadata));
}
/** @internal */
export const CreateIntegrationStoreDirectSource$outboundSchema = z.nativeEnum(CreateIntegrationStoreDirectSource);
/** @internal */
export const CreateIntegrationStoreDirectRequestBody$outboundSchema = z.object({
    name: z.string(),
    integrationConfigurationId: z.string(),
    integrationProductIdOrSlug: z.any().optional(),
    metadata: z.record(smartUnion([
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.string()),
        z.array(z.number()),
    ])).optional(),
    externalId: z.string().optional(),
    protocolSettings: z.record(z.any()).optional(),
    source: CreateIntegrationStoreDirectSource$outboundSchema.default("marketplace"),
    billingPlanId: z.string().optional(),
    paymentMethodId: z.string().optional(),
    prepaymentAmountCents: z.number().optional(),
});
export function createIntegrationStoreDirectRequestBodyToJSON(createIntegrationStoreDirectRequestBody) {
    return JSON.stringify(CreateIntegrationStoreDirectRequestBody$outboundSchema.parse(createIntegrationStoreDirectRequestBody));
}
/** @internal */
export const CreateIntegrationStoreDirectRequest$outboundSchema = z.object({
    teamId: z.string().optional(),
    slug: z.string().optional(),
    requestBody: z.lazy(() => CreateIntegrationStoreDirectRequestBody$outboundSchema).optional(),
}).transform((v) => {
    return remap$(v, {
        requestBody: "RequestBody",
    });
});
export function createIntegrationStoreDirectRequestToJSON(createIntegrationStoreDirectRequest) {
    return JSON.stringify(CreateIntegrationStoreDirectRequest$outboundSchema.parse(createIntegrationStoreDirectRequest));
}
/** @internal */
export const CreateIntegrationStoreDirectFramework$inboundSchema = z.nativeEnum(CreateIntegrationStoreDirectFramework);
/** @internal */
export const CreateIntegrationStoreDirectActions$inboundSchema = z.object({
    slug: types.string(),
    environments: z.array(types.string()),
});
export function createIntegrationStoreDirectActionsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectActions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectActions' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectDeployments$inboundSchema = z.object({
    required: types.boolean(),
    actions: z.array(z.lazy(() => CreateIntegrationStoreDirectActions$inboundSchema)),
});
export function createIntegrationStoreDirectDeploymentsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectDeployments$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectDeployments' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectProjectsMetadata$inboundSchema = z.object({
    id: types.string(),
    projectId: types.string(),
    name: types.string(),
    framework: z.nullable(CreateIntegrationStoreDirectFramework$inboundSchema)
        .optional(),
    latestDeployment: types.optional(types.string()),
    environments: z.array(types.string()),
    envVarPrefix: types.nullable(types.string()),
    environmentVariables: z.array(types.string()),
    deployments: types.optional(z.lazy(() => CreateIntegrationStoreDirectDeployments$inboundSchema)),
    makeEnvVarsSensitive: types.optional(types.boolean()),
});
export function createIntegrationStoreDirectProjectsMetadataFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectProjectsMetadata$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectProjectsMetadata' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectProviders2$inboundSchema = z.nativeEnum(CreateIntegrationStoreDirectProviders2);
/** @internal */
export const CreateIntegrationStoreDirectProviders1$inboundSchema = z.nativeEnum(CreateIntegrationStoreDirectProviders1);
/** @internal */
export const CreateIntegrationStoreDirectProviders$inboundSchema = smartUnion([
    z.array(CreateIntegrationStoreDirectProviders1$inboundSchema),
    CreateIntegrationStoreDirectProviders2$inboundSchema,
]);
export function createIntegrationStoreDirectProvidersFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectProviders$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectProviders' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectGit$inboundSchema = z.object({
    providers: smartUnion([
        z.array(CreateIntegrationStoreDirectProviders1$inboundSchema),
        CreateIntegrationStoreDirectProviders2$inboundSchema,
    ]),
    owners: types.optional(z.array(types.string())),
    repos: types.optional(z.array(types.string())),
});
export function createIntegrationStoreDirectGitFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectGit$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectGit' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectProjectFilter$inboundSchema = z.object({
    git: types.optional(z.lazy(() => CreateIntegrationStoreDirectGit$inboundSchema)),
});
export function createIntegrationStoreDirectProjectFilterFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectProjectFilter$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectProjectFilter' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectStatus$inboundSchema = z.nativeEnum(CreateIntegrationStoreDirectStatus);
/** @internal */
export const CreateIntegrationStoreDirectOwnership$inboundSchema = z.nativeEnum(CreateIntegrationStoreDirectOwnership);
/** @internal */
export const SecretRotation1$inboundSchema = z.object({
    maxDelayHours: types.number(),
    customRotationWarning: types.optional(types.string()),
});
export function secretRotation1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => SecretRotation1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SecretRotation1' from JSON`);
}
/** @internal */
export const SecretRotation$inboundSchema = smartUnion([z.lazy(() => SecretRotation1$inboundSchema), types.boolean()]);
export function secretRotationFromJSON(jsonString) {
    return safeParse(jsonString, (x) => SecretRotation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SecretRotation' from JSON`);
}
/** @internal */
export const Capabilities$inboundSchema = z.object({
    mcp: types.optional(types.boolean()),
    mcpReadonly: types.optional(types.boolean()),
    sso: types.optional(types.boolean()),
    billable: types.optional(types.boolean()),
    transferable: types.optional(types.boolean()),
    secretsSync: types.optional(types.boolean()),
    secretRotation: types.optional(smartUnion([z.lazy(() => SecretRotation1$inboundSchema), types.boolean()])),
    projects: types.optional(types.boolean()),
    v0: types.optional(types.boolean()),
    autoSensitive: types.optional(types.boolean()),
    agentTools: types.optional(types.boolean()),
});
export function capabilitiesFromJSON(jsonString) {
    return safeParse(jsonString, (x) => Capabilities$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Capabilities' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectIntegrationsMetadata$inboundSchema = smartUnion([
    types.string(),
    types.number(),
    z.array(types.string()),
    z.array(types.number()),
    types.boolean(),
]);
export function createIntegrationStoreDirectIntegrationsMetadataFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectIntegrationsMetadata$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectIntegrationsMetadata' from JSON`);
}
/** @internal */
export const ExternalResourceStatus$inboundSchema = z.nativeEnum(ExternalResourceStatus);
/** @internal */
export const CreateIntegrationStoreDirectSecretRotation1$inboundSchema = z.object({
    maxDelayHours: types.number(),
    customRotationWarning: types.optional(types.string()),
});
export function createIntegrationStoreDirectSecretRotation1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectSecretRotation1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectSecretRotation1' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectSecretRotation$inboundSchema = smartUnion([
    z.lazy(() => CreateIntegrationStoreDirectSecretRotation1$inboundSchema),
    types.boolean(),
]);
export function createIntegrationStoreDirectSecretRotationFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectSecretRotation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectSecretRotation' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectCapabilities$inboundSchema = z.object({
    mcp: types.optional(types.boolean()),
    mcpReadonly: types.optional(types.boolean()),
    sso: types.optional(types.boolean()),
    billable: types.optional(types.boolean()),
    transferable: types.optional(types.boolean()),
    secretsSync: types.optional(types.boolean()),
    secretRotation: types.optional(smartUnion([
        z.lazy(() => CreateIntegrationStoreDirectSecretRotation1$inboundSchema),
        types.boolean(),
    ])),
    sandbox: types.optional(types.boolean()),
    linking: types.optional(types.boolean()),
    projects: types.optional(types.boolean()),
    v0: types.optional(types.boolean()),
    importResource: types.optional(types.boolean()),
    connectedImportResource: types.optional(types.boolean()),
    nativeImportResource: types.optional(types.boolean()),
    databaseUI: types.optional(types.boolean()),
    v0Flavors: types.optional(types.boolean()),
    autoSensitive: types.optional(types.boolean()),
    agentTools: types.optional(types.boolean()),
});
export function createIntegrationStoreDirectCapabilitiesFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectCapabilities$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectCapabilities' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectIntegrationsType$inboundSchema = z
    .nativeEnum(CreateIntegrationStoreDirectIntegrationsType);
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema12Type$inboundSchema = z.nativeEnum(CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema12Type);
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema12UiControl$inboundSchema = z.nativeEnum(CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema12UiControl);
/** @internal */
export const CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties123$inboundSchema = z.nativeEnum(CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties123);
/** @internal */
export const CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties121$inboundSchema = z.object({
    expr: types.string(),
});
export function createIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties121FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties121$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties121' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema12UiReadOnly$inboundSchema = smartUnion([
    z.lazy(() => CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties121$inboundSchema),
    types.boolean(),
    CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties123$inboundSchema,
]);
export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema12UiReadOnlyFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema12UiReadOnly$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema12UiReadOnly' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties123$inboundSchema = z.nativeEnum(CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties123);
/** @internal */
export const CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties121$inboundSchema = z.object({
    expr: types.string(),
});
export function createIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties121FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties121$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties121' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema12UiHidden$inboundSchema = smartUnion([
    z.lazy(() => CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties121$inboundSchema),
    types.boolean(),
    CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties123$inboundSchema,
]);
export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema12UiHiddenFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema12UiHidden$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema12UiHidden' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties123$inboundSchema = z.nativeEnum(CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties123);
/** @internal */
export const CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties121$inboundSchema = z.object({
    expr: types.string(),
});
export function createIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties121FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties121$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties121' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema12UiDisabled$inboundSchema = smartUnion([
    z.lazy(() => CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties121$inboundSchema),
    types.boolean(),
    CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties123$inboundSchema,
]);
export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema12UiDisabledFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema12UiDisabled$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema12UiDisabled' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties122$inboundSchema = z.object({
    expr: types.string(),
});
export function createIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties122FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties122$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties122' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema12UiDescription$inboundSchema = smartUnion([
    z.lazy(() => CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties122$inboundSchema),
    types.string(),
]);
export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema12UiDescriptionFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema12UiDescription$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema12UiDescription' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema12UiFormattedValue$inboundSchema = z.object({
    expr: types.string(),
});
export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema12UiFormattedValueFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema12UiFormattedValue$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema12UiFormattedValue' from JSON`);
}
/** @internal */
export const PropertiesGitProviders$inboundSchema = z.nativeEnum(PropertiesGitProviders);
/** @internal */
export const CreateIntegrationStoreDirectProperties12$inboundSchema = z.object({
    type: CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema12Type$inboundSchema,
    "ui:control": CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema12UiControl$inboundSchema,
    description: types.optional(types.string()),
    "ui:label": types.optional(types.string()),
    "ui:read-only": types.optional(smartUnion([
        z.lazy(() => CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties121$inboundSchema),
        types.boolean(),
        CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties123$inboundSchema,
    ])),
    "ui:hidden": types.optional(smartUnion([
        z.lazy(() => CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties121$inboundSchema),
        types.boolean(),
        CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties123$inboundSchema,
    ])),
    "ui:disabled": types.optional(smartUnion([
        z.lazy(() => CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties121$inboundSchema),
        types.boolean(),
        CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties123$inboundSchema,
    ])),
    "ui:description": types.optional(smartUnion([
        z.lazy(() => CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties122$inboundSchema),
        types.string(),
    ])),
    "ui:formatted-value": types.optional(z.lazy(() => CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema12UiFormattedValue$inboundSchema)),
    "ui:paid-only": types.optional(types.boolean()),
    "ui:placeholder": types.optional(types.string()),
    "git:providers": types.optional(z.array(PropertiesGitProviders$inboundSchema)),
}).transform((v) => {
    return remap$(v, {
        "ui:control": "uiControl",
        "ui:label": "uiLabel",
        "ui:read-only": "uiReadOnly",
        "ui:hidden": "uiHidden",
        "ui:disabled": "uiDisabled",
        "ui:description": "uiDescription",
        "ui:formatted-value": "uiFormattedValue",
        "ui:paid-only": "uiPaidOnly",
        "ui:placeholder": "uiPlaceholder",
        "git:providers": "gitProviders",
    });
});
export function createIntegrationStoreDirectProperties12FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectProperties12$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectProperties12' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema11Type$inboundSchema = z.nativeEnum(CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema11Type);
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema11UiControl$inboundSchema = z.nativeEnum(CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema11UiControl);
/** @internal */
export const CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties113$inboundSchema = z.nativeEnum(CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties113);
/** @internal */
export const CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties111$inboundSchema = z.object({
    expr: types.string(),
});
export function createIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties111FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties111$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties111' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema11UiReadOnly$inboundSchema = smartUnion([
    z.lazy(() => CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties111$inboundSchema),
    types.boolean(),
    CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties113$inboundSchema,
]);
export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema11UiReadOnlyFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema11UiReadOnly$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema11UiReadOnly' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties113$inboundSchema = z.nativeEnum(CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties113);
/** @internal */
export const CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties111$inboundSchema = z.object({
    expr: types.string(),
});
export function createIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties111FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties111$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties111' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema11UiHidden$inboundSchema = smartUnion([
    z.lazy(() => CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties111$inboundSchema),
    types.boolean(),
    CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties113$inboundSchema,
]);
export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema11UiHiddenFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema11UiHidden$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema11UiHidden' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties113$inboundSchema = z.nativeEnum(CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties113);
/** @internal */
export const CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties111$inboundSchema = z.object({
    expr: types.string(),
});
export function createIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties111FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties111$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties111' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema11UiDisabled$inboundSchema = smartUnion([
    z.lazy(() => CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties111$inboundSchema),
    types.boolean(),
    CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties113$inboundSchema,
]);
export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema11UiDisabledFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema11UiDisabled$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema11UiDisabled' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties112$inboundSchema = z.object({
    expr: types.string(),
});
export function createIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties112FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties112$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties112' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema11UiDescription$inboundSchema = smartUnion([
    z.lazy(() => CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties112$inboundSchema),
    types.string(),
]);
export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema11UiDescriptionFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema11UiDescription$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema11UiDescription' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema11UiFormattedValue$inboundSchema = z.object({
    expr: types.string(),
});
export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema11UiFormattedValueFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema11UiFormattedValue$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema11UiFormattedValue' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectProperties11$inboundSchema = z.object({
    type: CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema11Type$inboundSchema,
    "ui:control": CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema11UiControl$inboundSchema,
    default: types.optional(types.string()),
    enum: types.optional(z.array(types.string())),
    maxLength: types.optional(types.number()),
    minLength: types.optional(types.number()),
    pattern: types.optional(types.string()),
    description: types.optional(types.string()),
    "ui:label": types.optional(types.string()),
    "ui:read-only": types.optional(smartUnion([
        z.lazy(() => CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties111$inboundSchema),
        types.boolean(),
        CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties113$inboundSchema,
    ])),
    "ui:hidden": types.optional(smartUnion([
        z.lazy(() => CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties111$inboundSchema),
        types.boolean(),
        CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties113$inboundSchema,
    ])),
    "ui:disabled": types.optional(smartUnion([
        z.lazy(() => CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties111$inboundSchema),
        types.boolean(),
        CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties113$inboundSchema,
    ])),
    "ui:description": types.optional(smartUnion([
        z.lazy(() => CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties112$inboundSchema),
        types.string(),
    ])),
    "ui:formatted-value": types.optional(z.lazy(() => CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema11UiFormattedValue$inboundSchema)),
    "ui:paid-only": types.optional(types.boolean()),
    "ui:placeholder": types.optional(types.string()),
}).transform((v) => {
    return remap$(v, {
        "ui:control": "uiControl",
        "ui:label": "uiLabel",
        "ui:read-only": "uiReadOnly",
        "ui:hidden": "uiHidden",
        "ui:disabled": "uiDisabled",
        "ui:description": "uiDescription",
        "ui:formatted-value": "uiFormattedValue",
        "ui:paid-only": "uiPaidOnly",
        "ui:placeholder": "uiPlaceholder",
    });
});
export function createIntegrationStoreDirectProperties11FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectProperties11$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectProperties11' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema10Type$inboundSchema = z.nativeEnum(CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema10Type);
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema10UiControl$inboundSchema = z.nativeEnum(CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema10UiControl);
/** @internal */
export const CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema3$inboundSchema = z.nativeEnum(CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema3);
/** @internal */
export const CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema1$inboundSchema = z.object({
    expr: types.string(),
});
export function createIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema1$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema1' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectUiOptionsIntegrationsResponse200ApplicationJSONResponseBodyDisabled$inboundSchema = smartUnion([
    z.lazy(() => CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema1$inboundSchema),
    types.boolean(),
    CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema3$inboundSchema,
]);
export function createIntegrationStoreDirectUiOptionsIntegrationsResponse200ApplicationJSONResponseBodyDisabledFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectUiOptionsIntegrationsResponse200ApplicationJSONResponseBodyDisabled$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectUiOptionsIntegrationsResponse200ApplicationJSONResponseBodyDisabled' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema3$inboundSchema = z.nativeEnum(CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema3);
/** @internal */
export const CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema1$inboundSchema = z.object({
    expr: types.string(),
});
export function createIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema1$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema1' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectUiOptionsIntegrationsResponse200ApplicationJSONResponseBodyHidden$inboundSchema = smartUnion([
    z.lazy(() => CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema1$inboundSchema),
    types.boolean(),
    CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema3$inboundSchema,
]);
export function createIntegrationStoreDirectUiOptionsIntegrationsResponse200ApplicationJSONResponseBodyHiddenFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectUiOptionsIntegrationsResponse200ApplicationJSONResponseBodyHidden$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectUiOptionsIntegrationsResponse200ApplicationJSONResponseBodyHidden' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectUiOptionsIntegrationsResponse3$inboundSchema = z.object({
    value: types.string(),
    description: types.optional(types.string()),
    disabled: types.optional(smartUnion([
        z.lazy(() => CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema1$inboundSchema),
        types.boolean(),
        CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema3$inboundSchema,
    ])),
    hidden: types.optional(smartUnion([
        z.lazy(() => CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema1$inboundSchema),
        types.boolean(),
        CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema3$inboundSchema,
    ])),
});
export function createIntegrationStoreDirectUiOptionsIntegrationsResponse3FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectUiOptionsIntegrationsResponse3$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectUiOptionsIntegrationsResponse3' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct3$inboundSchema = z.nativeEnum(CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct3);
/** @internal */
export const CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct1$inboundSchema = z.object({
    expr: types.string(),
});
export function createIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct1$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct1' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectUiOptionsIntegrationsResponse200ApplicationJSONDisabled$inboundSchema = smartUnion([
    z.lazy(() => CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct1$inboundSchema),
    types.boolean(),
    CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct3$inboundSchema,
]);
export function createIntegrationStoreDirectUiOptionsIntegrationsResponse200ApplicationJSONDisabledFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectUiOptionsIntegrationsResponse200ApplicationJSONDisabled$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectUiOptionsIntegrationsResponse200ApplicationJSONDisabled' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct3$inboundSchema = z.nativeEnum(CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct3);
/** @internal */
export const CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct1$inboundSchema = z.object({
    expr: types.string(),
});
export function createIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct1$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct1' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectUiOptionsIntegrationsResponse200ApplicationJSONHidden$inboundSchema = smartUnion([
    z.lazy(() => CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct1$inboundSchema),
    types.boolean(),
    CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct3$inboundSchema,
]);
export function createIntegrationStoreDirectUiOptionsIntegrationsResponse200ApplicationJSONHiddenFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectUiOptionsIntegrationsResponse200ApplicationJSONHidden$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectUiOptionsIntegrationsResponse200ApplicationJSONHidden' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectUiOptionsIntegrationsResponse1$inboundSchema = z.object({
    value: types.string(),
    label: types.string(),
    description: types.optional(types.string()),
    disabled: types.optional(smartUnion([
        z.lazy(() => CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct1$inboundSchema),
        types.boolean(),
        CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct3$inboundSchema,
    ])),
    hidden: types.optional(smartUnion([
        z.lazy(() => CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct1$inboundSchema),
        types.boolean(),
        CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct3$inboundSchema,
    ])),
});
export function createIntegrationStoreDirectUiOptionsIntegrationsResponse1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectUiOptionsIntegrationsResponse1$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectUiOptionsIntegrationsResponse1' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiOptions$inboundSchema = smartUnion([
    z.lazy(() => CreateIntegrationStoreDirectUiOptionsIntegrationsResponse1$inboundSchema),
    z.lazy(() => CreateIntegrationStoreDirectUiOptionsIntegrationsResponse3$inboundSchema),
    types.string(),
]);
export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiOptionsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiOptions$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiOptions' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties3$inboundSchema = z.nativeEnum(CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties3);
/** @internal */
export const CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties1$inboundSchema = z.object({
    expr: types.string(),
});
export function createIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties1$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties1' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema10UiReadOnly$inboundSchema = smartUnion([
    z.lazy(() => CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties1$inboundSchema),
    types.boolean(),
    CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties3$inboundSchema,
]);
export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema10UiReadOnlyFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema10UiReadOnly$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema10UiReadOnly' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties3$inboundSchema = z.nativeEnum(CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties3);
/** @internal */
export const CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties1$inboundSchema = z.object({
    expr: types.string(),
});
export function createIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties1$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties1' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema10UiHidden$inboundSchema = smartUnion([
    z.lazy(() => CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties1$inboundSchema),
    types.boolean(),
    CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties3$inboundSchema,
]);
export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema10UiHiddenFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema10UiHidden$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema10UiHidden' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties3$inboundSchema = z.nativeEnum(CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties3);
/** @internal */
export const CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties1$inboundSchema = z.object({
    expr: types.string(),
});
export function createIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties1$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties1' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema10UiDisabled$inboundSchema = smartUnion([
    z.lazy(() => CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties1$inboundSchema),
    types.boolean(),
    CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties3$inboundSchema,
]);
export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema10UiDisabledFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema10UiDisabled$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema10UiDisabled' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties2$inboundSchema = z.object({
    expr: types.string(),
});
export function createIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties2FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties2$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties2' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema10UiDescription$inboundSchema = smartUnion([
    z.lazy(() => CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties2$inboundSchema),
    types.string(),
]);
export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema10UiDescriptionFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema10UiDescription$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema10UiDescription' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema10UiFormattedValue$inboundSchema = z.object({
    expr: types.string(),
});
export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema10UiFormattedValueFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema10UiFormattedValue$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema10UiFormattedValue' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectProperties10$inboundSchema = z.object({
    type: CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema10Type$inboundSchema,
    "ui:control": CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema10UiControl$inboundSchema,
    "ui:options": z.array(smartUnion([
        z.lazy(() => CreateIntegrationStoreDirectUiOptionsIntegrationsResponse1$inboundSchema),
        z.lazy(() => CreateIntegrationStoreDirectUiOptionsIntegrationsResponse3$inboundSchema),
        types.string(),
    ])),
    default: types.optional(types.string()),
    enum: types.optional(z.array(types.string())),
    maxLength: types.optional(types.number()),
    minLength: types.optional(types.number()),
    pattern: types.optional(types.string()),
    description: types.optional(types.string()),
    "ui:label": types.optional(types.string()),
    "ui:read-only": types.optional(smartUnion([
        z.lazy(() => CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties1$inboundSchema),
        types.boolean(),
        CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties3$inboundSchema,
    ])),
    "ui:hidden": types.optional(smartUnion([
        z.lazy(() => CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties1$inboundSchema),
        types.boolean(),
        CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties3$inboundSchema,
    ])),
    "ui:disabled": types.optional(smartUnion([
        z.lazy(() => CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties1$inboundSchema),
        types.boolean(),
        CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties3$inboundSchema,
    ])),
    "ui:description": types.optional(smartUnion([
        z.lazy(() => CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties2$inboundSchema),
        types.string(),
    ])),
    "ui:formatted-value": types.optional(z.lazy(() => CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema10UiFormattedValue$inboundSchema)),
    "ui:paid-only": types.optional(types.boolean()),
    "ui:placeholder": types.optional(types.string()),
}).transform((v) => {
    return remap$(v, {
        "ui:control": "uiControl",
        "ui:options": "uiOptions",
        "ui:label": "uiLabel",
        "ui:read-only": "uiReadOnly",
        "ui:hidden": "uiHidden",
        "ui:disabled": "uiDisabled",
        "ui:description": "uiDescription",
        "ui:formatted-value": "uiFormattedValue",
        "ui:paid-only": "uiPaidOnly",
        "ui:placeholder": "uiPlaceholder",
    });
});
export function createIntegrationStoreDirectProperties10FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectProperties10$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectProperties10' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaType$inboundSchema = z.nativeEnum(CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaType);
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema9Type$inboundSchema = z.nativeEnum(CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema9Type);
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponseItems$inboundSchema = z.object({
    type: CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema9Type$inboundSchema,
    default: types.optional(types.string()),
    enum: types.optional(z.array(types.string())),
    maxLength: types.optional(types.number()),
    minLength: types.optional(types.number()),
    pattern: types.optional(types.string()),
    description: types.optional(types.string()),
});
export function createIntegrationStoreDirectPropertiesIntegrationsResponseItemsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectPropertiesIntegrationsResponseItems$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponseItems' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaUiControl$inboundSchema = z.nativeEnum(CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaUiControl);
/** @internal */
export const CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore3$inboundSchema = z.nativeEnum(CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore3);
/** @internal */
export const CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore1$inboundSchema = z.object({
    expr: types.string(),
});
export function createIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore1$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore1' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectUiOptionsIntegrationsResponse200Disabled$inboundSchema = smartUnion([
    z.lazy(() => CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore1$inboundSchema),
    types.boolean(),
    CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore3$inboundSchema,
]);
export function createIntegrationStoreDirectUiOptionsIntegrationsResponse200DisabledFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectUiOptionsIntegrationsResponse200Disabled$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectUiOptionsIntegrationsResponse200Disabled' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore3$inboundSchema = z.nativeEnum(CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore3);
/** @internal */
export const CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore1$inboundSchema = z.object({
    expr: types.string(),
});
export function createIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore1$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore1' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectUiOptionsIntegrationsResponse200Hidden$inboundSchema = smartUnion([
    z.lazy(() => CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore1$inboundSchema),
    types.boolean(),
    CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore3$inboundSchema,
]);
export function createIntegrationStoreDirectUiOptionsIntegrationsResponse200HiddenFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectUiOptionsIntegrationsResponse200Hidden$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectUiOptionsIntegrationsResponse200Hidden' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectUiOptionsIntegrations3$inboundSchema = z.object({
    value: types.string(),
    description: types.optional(types.string()),
    disabled: types.optional(smartUnion([
        z.lazy(() => CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore1$inboundSchema),
        types.boolean(),
        CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore3$inboundSchema,
    ])),
    hidden: types.optional(smartUnion([
        z.lazy(() => CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore1$inboundSchema),
        types.boolean(),
        CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore3$inboundSchema,
    ])),
});
export function createIntegrationStoreDirectUiOptionsIntegrations3FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectUiOptionsIntegrations3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectUiOptionsIntegrations3' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJSONResponseBody3$inboundSchema = z.nativeEnum(CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJSONResponseBody3);
/** @internal */
export const CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJSONResponseBody1$inboundSchema = z.object({
    expr: types.string(),
});
export function createIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJSONResponseBody1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJSONResponseBody1$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJSONResponseBody1' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectUiOptionsIntegrationsResponseDisabled$inboundSchema = smartUnion([
    z.lazy(() => CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJSONResponseBody1$inboundSchema),
    types.boolean(),
    CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJSONResponseBody3$inboundSchema,
]);
export function createIntegrationStoreDirectUiOptionsIntegrationsResponseDisabledFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectUiOptionsIntegrationsResponseDisabled$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectUiOptionsIntegrationsResponseDisabled' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJSONResponseBody3$inboundSchema = z.nativeEnum(CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJSONResponseBody3);
/** @internal */
export const CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJSONResponseBody1$inboundSchema = z.object({
    expr: types.string(),
});
export function createIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJSONResponseBody1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJSONResponseBody1$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJSONResponseBody1' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectUiOptionsIntegrationsResponseHidden$inboundSchema = smartUnion([
    z.lazy(() => CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJSONResponseBody1$inboundSchema),
    types.boolean(),
    CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJSONResponseBody3$inboundSchema,
]);
export function createIntegrationStoreDirectUiOptionsIntegrationsResponseHiddenFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectUiOptionsIntegrationsResponseHidden$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectUiOptionsIntegrationsResponseHidden' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectUiOptionsIntegrations1$inboundSchema = z.object({
    value: types.string(),
    label: types.string(),
    description: types.optional(types.string()),
    disabled: types.optional(smartUnion([
        z.lazy(() => CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJSONResponseBody1$inboundSchema),
        types.boolean(),
        CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJSONResponseBody3$inboundSchema,
    ])),
    hidden: types.optional(smartUnion([
        z.lazy(() => CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJSONResponseBody1$inboundSchema),
        types.boolean(),
        CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJSONResponseBody3$inboundSchema,
    ])),
});
export function createIntegrationStoreDirectUiOptionsIntegrations1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectUiOptionsIntegrations1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectUiOptionsIntegrations1' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiOptions$inboundSchema = smartUnion([
    z.lazy(() => CreateIntegrationStoreDirectUiOptionsIntegrations1$inboundSchema),
    z.lazy(() => CreateIntegrationStoreDirectUiOptionsIntegrations3$inboundSchema),
    types.string(),
]);
export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiOptionsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiOptions$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiOptions' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema3$inboundSchema = z.nativeEnum(CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema3);
/** @internal */
export const CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema1$inboundSchema = z.object({
    expr: types.string(),
});
export function createIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema1$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema1' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaUiReadOnly$inboundSchema = smartUnion([
    z.lazy(() => CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema1$inboundSchema),
    types.boolean(),
    CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema3$inboundSchema,
]);
export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaUiReadOnlyFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaUiReadOnly$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaUiReadOnly' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema3$inboundSchema = z.nativeEnum(CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema3);
/** @internal */
export const CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema1$inboundSchema = z.object({
    expr: types.string(),
});
export function createIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema1$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema1' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaUiHidden$inboundSchema = smartUnion([
    z.lazy(() => CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema1$inboundSchema),
    types.boolean(),
    CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema3$inboundSchema,
]);
export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaUiHiddenFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaUiHidden$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaUiHidden' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema3$inboundSchema = z.nativeEnum(CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema3);
/** @internal */
export const CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema1$inboundSchema = z.object({
    expr: types.string(),
});
export function createIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema1$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema1' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaUiDisabled$inboundSchema = smartUnion([
    z.lazy(() => CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema1$inboundSchema),
    types.boolean(),
    CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema3$inboundSchema,
]);
export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaUiDisabledFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaUiDisabled$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaUiDisabled' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema2$inboundSchema = z.object({
    expr: types.string(),
});
export function createIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema2FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema2$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema2' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaUiDescription$inboundSchema = smartUnion([
    z.lazy(() => CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema2$inboundSchema),
    types.string(),
]);
export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaUiDescriptionFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaUiDescription$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaUiDescription' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaUiFormattedValue$inboundSchema = z.object({
    expr: types.string(),
});
export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaUiFormattedValueFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaUiFormattedValue$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaUiFormattedValue' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectProperties9$inboundSchema = z.object({
    type: CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaType$inboundSchema,
    items: z.lazy(() => CreateIntegrationStoreDirectPropertiesIntegrationsResponseItems$inboundSchema),
    "ui:control": CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaUiControl$inboundSchema,
    "ui:options": z.array(smartUnion([
        z.lazy(() => CreateIntegrationStoreDirectUiOptionsIntegrations1$inboundSchema),
        z.lazy(() => CreateIntegrationStoreDirectUiOptionsIntegrations3$inboundSchema),
        types.string(),
    ])),
    default: types.optional(z.array(types.string())),
    maxItems: types.optional(types.number()),
    minItems: types.optional(types.number()),
    description: types.optional(types.string()),
    "ui:label": types.optional(types.string()),
    "ui:read-only": types.optional(smartUnion([
        z.lazy(() => CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema1$inboundSchema),
        types.boolean(),
        CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema3$inboundSchema,
    ])),
    "ui:hidden": types.optional(smartUnion([
        z.lazy(() => CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema1$inboundSchema),
        types.boolean(),
        CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema3$inboundSchema,
    ])),
    "ui:disabled": types.optional(smartUnion([
        z.lazy(() => CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema1$inboundSchema),
        types.boolean(),
        CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema3$inboundSchema,
    ])),
    "ui:description": types.optional(smartUnion([
        z.lazy(() => CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema2$inboundSchema),
        types.string(),
    ])),
    "ui:formatted-value": types.optional(z.lazy(() => CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaUiFormattedValue$inboundSchema)),
    "ui:paid-only": types.optional(types.boolean()),
    "ui:placeholder": types.optional(types.string()),
    example: types.optional(z.array(types.string())),
}).transform((v) => {
    return remap$(v, {
        "ui:control": "uiControl",
        "ui:options": "uiOptions",
        "ui:label": "uiLabel",
        "ui:read-only": "uiReadOnly",
        "ui:hidden": "uiHidden",
        "ui:disabled": "uiDisabled",
        "ui:description": "uiDescription",
        "ui:formatted-value": "uiFormattedValue",
        "ui:paid-only": "uiPaidOnly",
        "ui:placeholder": "uiPlaceholder",
    });
});
export function createIntegrationStoreDirectProperties9FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectProperties9$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectProperties9' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductType$inboundSchema = z.nativeEnum(CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductType);
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductUiControl$inboundSchema = z.nativeEnum(CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductUiControl);
/** @internal */
export const CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson3$inboundSchema = z.nativeEnum(CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson3);
/** @internal */
export const CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson1$inboundSchema = z.object({
    expr: types.string(),
});
export function createIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJSON1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson1$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson1' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectUiOptionsIntegrationsDisabled$inboundSchema = smartUnion([
    z.lazy(() => CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson1$inboundSchema),
    types.boolean(),
    CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson3$inboundSchema,
]);
export function createIntegrationStoreDirectUiOptionsIntegrationsDisabledFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectUiOptionsIntegrationsDisabled$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectUiOptionsIntegrationsDisabled' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson3$inboundSchema = z.nativeEnum(CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson3);
/** @internal */
export const CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson1$inboundSchema = z.object({
    expr: types.string(),
});
export function createIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJSON1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson1$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson1' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectUiOptionsIntegrationsHidden$inboundSchema = smartUnion([
    z.lazy(() => CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson1$inboundSchema),
    types.boolean(),
    CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson3$inboundSchema,
]);
export function createIntegrationStoreDirectUiOptionsIntegrationsHiddenFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectUiOptionsIntegrationsHidden$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectUiOptionsIntegrationsHidden' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectUiOptions3$inboundSchema = z.object({
    value: types.string(),
    description: types.optional(types.string()),
    disabled: types.optional(smartUnion([
        z.lazy(() => CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson1$inboundSchema),
        types.boolean(),
        CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson3$inboundSchema,
    ])),
    hidden: types.optional(smartUnion([
        z.lazy(() => CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson1$inboundSchema),
        types.boolean(),
        CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson3$inboundSchema,
    ])),
});
export function createIntegrationStoreDirectUiOptions3FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectUiOptions3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectUiOptions3' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectDisabledIntegrationsResponse2003$inboundSchema = z.nativeEnum(CreateIntegrationStoreDirectDisabledIntegrationsResponse2003);
/** @internal */
export const CreateIntegrationStoreDirectDisabledIntegrationsResponse2001$inboundSchema = z.object({
    expr: types.string(),
});
export function createIntegrationStoreDirectDisabledIntegrationsResponse2001FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectDisabledIntegrationsResponse2001$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectDisabledIntegrationsResponse2001' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectUiOptionsDisabled$inboundSchema = smartUnion([
    z.lazy(() => CreateIntegrationStoreDirectDisabledIntegrationsResponse2001$inboundSchema),
    types.boolean(),
    CreateIntegrationStoreDirectDisabledIntegrationsResponse2003$inboundSchema,
]);
export function createIntegrationStoreDirectUiOptionsDisabledFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectUiOptionsDisabled$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectUiOptionsDisabled' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectHiddenIntegrationsResponse2003$inboundSchema = z.nativeEnum(CreateIntegrationStoreDirectHiddenIntegrationsResponse2003);
/** @internal */
export const CreateIntegrationStoreDirectHiddenIntegrationsResponse2001$inboundSchema = z.object({
    expr: types.string(),
});
export function createIntegrationStoreDirectHiddenIntegrationsResponse2001FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectHiddenIntegrationsResponse2001$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectHiddenIntegrationsResponse2001' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectUiOptionsHidden$inboundSchema = smartUnion([
    z.lazy(() => CreateIntegrationStoreDirectHiddenIntegrationsResponse2001$inboundSchema),
    types.boolean(),
    CreateIntegrationStoreDirectHiddenIntegrationsResponse2003$inboundSchema,
]);
export function createIntegrationStoreDirectUiOptionsHiddenFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectUiOptionsHidden$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectUiOptionsHidden' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectUiOptions1$inboundSchema = z.object({
    value: types.string(),
    label: types.string(),
    description: types.optional(types.string()),
    disabled: types.optional(smartUnion([
        z.lazy(() => CreateIntegrationStoreDirectDisabledIntegrationsResponse2001$inboundSchema),
        types.boolean(),
        CreateIntegrationStoreDirectDisabledIntegrationsResponse2003$inboundSchema,
    ])),
    hidden: types.optional(smartUnion([
        z.lazy(() => CreateIntegrationStoreDirectHiddenIntegrationsResponse2001$inboundSchema),
        types.boolean(),
        CreateIntegrationStoreDirectHiddenIntegrationsResponse2003$inboundSchema,
    ])),
});
export function createIntegrationStoreDirectUiOptions1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectUiOptions1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectUiOptions1' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiOptions$inboundSchema = smartUnion([
    z.lazy(() => CreateIntegrationStoreDirectUiOptions1$inboundSchema),
    z.lazy(() => CreateIntegrationStoreDirectUiOptions3$inboundSchema),
    types.string(),
]);
export function createIntegrationStoreDirectPropertiesIntegrationsResponse200UiOptionsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiOptions$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiOptions' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct3$inboundSchema = z.nativeEnum(CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct3);
/** @internal */
export const CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct1$inboundSchema = z.object({
    expr: types.string(),
});
export function createIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct1$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct1' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductUiReadOnly$inboundSchema = smartUnion([
    z.lazy(() => CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct1$inboundSchema),
    types.boolean(),
    CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct3$inboundSchema,
]);
export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductUiReadOnlyFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductUiReadOnly$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductUiReadOnly' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct3$inboundSchema = z.nativeEnum(CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct3);
/** @internal */
export const CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct1$inboundSchema = z.object({
    expr: types.string(),
});
export function createIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct1$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct1' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductUiHidden$inboundSchema = smartUnion([
    z.lazy(() => CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct1$inboundSchema),
    types.boolean(),
    CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct3$inboundSchema,
]);
export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductUiHiddenFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductUiHidden$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductUiHidden' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct3$inboundSchema = z.nativeEnum(CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct3);
/** @internal */
export const CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct1$inboundSchema = z.object({
    expr: types.string(),
});
export function createIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct1$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct1' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductUiDisabled$inboundSchema = smartUnion([
    z.lazy(() => CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct1$inboundSchema),
    types.boolean(),
    CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct3$inboundSchema,
]);
export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductUiDisabledFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductUiDisabled$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductUiDisabled' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct2$inboundSchema = z.object({
    expr: types.string(),
});
export function createIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct2FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct2$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct2' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductUiDescription$inboundSchema = smartUnion([
    z.lazy(() => CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct2$inboundSchema),
    types.string(),
]);
export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductUiDescriptionFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductUiDescription$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductUiDescription' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductUiFormattedValue$inboundSchema = z.object({
    expr: types.string(),
});
export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductUiFormattedValueFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductUiFormattedValue$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductUiFormattedValue' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectProperties8$inboundSchema = z.object({
    type: CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductType$inboundSchema,
    "ui:control": CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductUiControl$inboundSchema,
    "ui:options": z.array(smartUnion([
        z.lazy(() => CreateIntegrationStoreDirectUiOptions1$inboundSchema),
        z.lazy(() => CreateIntegrationStoreDirectUiOptions3$inboundSchema),
        types.string(),
    ])),
    default: types.optional(types.string()),
    enum: types.optional(z.array(types.string())),
    maxLength: types.optional(types.number()),
    minLength: types.optional(types.number()),
    pattern: types.optional(types.string()),
    description: types.optional(types.string()),
    "ui:label": types.optional(types.string()),
    "ui:read-only": types.optional(smartUnion([
        z.lazy(() => CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct1$inboundSchema),
        types.boolean(),
        CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct3$inboundSchema,
    ])),
    "ui:hidden": types.optional(smartUnion([
        z.lazy(() => CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct1$inboundSchema),
        types.boolean(),
        CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct3$inboundSchema,
    ])),
    "ui:disabled": types.optional(smartUnion([
        z.lazy(() => CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct1$inboundSchema),
        types.boolean(),
        CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct3$inboundSchema,
    ])),
    "ui:description": types.optional(smartUnion([
        z.lazy(() => CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStoreProduct2$inboundSchema),
        types.string(),
    ])),
    "ui:formatted-value": types.optional(z.lazy(() => CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductUiFormattedValue$inboundSchema)),
    "ui:paid-only": types.optional(types.boolean()),
    "ui:placeholder": types.optional(types.string()),
}).transform((v) => {
    return remap$(v, {
        "ui:control": "uiControl",
        "ui:options": "uiOptions",
        "ui:label": "uiLabel",
        "ui:read-only": "uiReadOnly",
        "ui:hidden": "uiHidden",
        "ui:disabled": "uiDisabled",
        "ui:description": "uiDescription",
        "ui:formatted-value": "uiFormattedValue",
        "ui:paid-only": "uiPaidOnly",
        "ui:placeholder": "uiPlaceholder",
    });
});
export function createIntegrationStoreDirectProperties8FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectProperties8$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectProperties8' from JSON`);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreType$inboundSchema = z.nativeEnum(CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreType);
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema7Type$inboundSchema = z.nativeEnum(CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema7Type);
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsItems$inboundSchema = z.object({
    type: CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema7Type$inboundSchema,
    default: types.optional(types.string()),
    enum: types.optional(z.array(types.string())),
    maxLength: types.optional(types.number()),
    minLength: types.optional(types.number()),
    pattern: types.optional(types.string()),
    description: types.optional(types.string()),
});
export function createIntegrationStoreDirectPropertiesIntegrationsItemsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateIntegrationStoreDirectPropertiesIntegrationsItems$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsItems' from JSON`);
}
//# sourceMappingURL=createintegrationstoredirectpropertiesintegrationsitems.js.map