@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>
4,931 lines • 168 kB
text/typescript
/*
* 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 { ClosedEnum } from "../types/enums.js";
import { Result as SafeParseResult } from "../types/fp.js";
import * as types from "../types/primitives.js";
import { smartUnion } from "../types/smartUnion.js";
import {
CreateIntegrationStoreDirectCapabilities,
CreateIntegrationStoreDirectCapabilities$inboundSchema,
CreateIntegrationStoreDirectIntegrationsType,
CreateIntegrationStoreDirectIntegrationsType$inboundSchema,
CreateIntegrationStoreDirectProperties10,
CreateIntegrationStoreDirectProperties10$inboundSchema,
CreateIntegrationStoreDirectProperties11,
CreateIntegrationStoreDirectProperties11$inboundSchema,
CreateIntegrationStoreDirectProperties12,
CreateIntegrationStoreDirectProperties12$inboundSchema,
CreateIntegrationStoreDirectProperties8,
CreateIntegrationStoreDirectProperties8$inboundSchema,
CreateIntegrationStoreDirectProperties9,
CreateIntegrationStoreDirectProperties9$inboundSchema,
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema7Type,
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema7Type$inboundSchema,
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreType,
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreType$inboundSchema,
} from "./createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreproductmetadataschema7type.js";
import { SDKValidationError } from "./sdkvalidationerror.js";
export type CreateIntegrationStoreDirectPropertiesIntegrationsItems = {
type:
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema7Type;
description?: string | undefined;
minLength?: number | undefined;
maxLength?: number | undefined;
pattern?: string | undefined;
default?: string | undefined;
enum?: Array<string> | undefined;
};
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiControl =
{
MultiSelect: "multi-select",
} as const;
export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiControl =
ClosedEnum<
typeof CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiControl
>;
export const CreateIntegrationStoreDirectDisabledIntegrationsResponse3 = {
Create: "create",
Update: "update",
} as const;
export type CreateIntegrationStoreDirectDisabledIntegrationsResponse3 =
ClosedEnum<typeof CreateIntegrationStoreDirectDisabledIntegrationsResponse3>;
export type CreateIntegrationStoreDirectDisabledIntegrationsResponse1 = {
expr: string;
};
export type CreateIntegrationStoreDirectPropertiesIntegrationsResponseDisabled =
| CreateIntegrationStoreDirectDisabledIntegrationsResponse1
| boolean
| CreateIntegrationStoreDirectDisabledIntegrationsResponse3;
export const CreateIntegrationStoreDirectHiddenIntegrationsResponse3 = {
Create: "create",
Update: "update",
} as const;
export type CreateIntegrationStoreDirectHiddenIntegrationsResponse3 =
ClosedEnum<typeof CreateIntegrationStoreDirectHiddenIntegrationsResponse3>;
export type CreateIntegrationStoreDirectHiddenIntegrationsResponse1 = {
expr: string;
};
export type CreateIntegrationStoreDirectPropertiesIntegrationsResponseHidden =
| CreateIntegrationStoreDirectHiddenIntegrationsResponse1
| boolean
| CreateIntegrationStoreDirectHiddenIntegrationsResponse3;
export type CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiOptions =
{
value: string;
label: string;
description?: string | undefined;
disabled?:
| CreateIntegrationStoreDirectDisabledIntegrationsResponse1
| boolean
| CreateIntegrationStoreDirectDisabledIntegrationsResponse3
| undefined;
hidden?:
| CreateIntegrationStoreDirectHiddenIntegrationsResponse1
| boolean
| CreateIntegrationStoreDirectHiddenIntegrationsResponse3
| undefined;
};
export const CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore3 =
{
Create: "create",
Update: "update",
} as const;
export type CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore3 =
ClosedEnum<
typeof CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore3
>;
export type CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore1 =
{
expr: string;
};
export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiReadOnly =
| CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore1
| boolean
| CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore3;
export const CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore3 =
{
Create: "create",
Update: "update",
} as const;
export type CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore3 =
ClosedEnum<
typeof CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore3
>;
export type CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore1 =
{
expr: string;
};
export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiHidden =
| CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore1
| boolean
| CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore3;
export const CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore3 =
{
Create: "create",
Update: "update",
} as const;
export type CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore3 =
ClosedEnum<
typeof CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore3
>;
export type CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore1 =
{
expr: string;
};
export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDisabled =
| CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore1
| boolean
| CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore3;
export type CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStore2 =
{
expr: string;
};
export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDescription =
| CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStore2
| string;
export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiFormattedValue =
{
expr: string;
};
export type CreateIntegrationStoreDirectProperties7 = {
type:
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreType;
items: CreateIntegrationStoreDirectPropertiesIntegrationsItems;
uiControl:
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiControl;
uiOptions: Array<
CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiOptions
>;
maxItems?: number | undefined;
minItems?: number | undefined;
description?: string | undefined;
uiLabel?: string | undefined;
uiReadOnly?:
| CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore1
| boolean
| CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore3
| undefined;
uiHidden?:
| CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore1
| boolean
| CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore3
| undefined;
uiDisabled?:
| CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore1
| boolean
| CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore3
| undefined;
uiDescription?:
| CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStore2
| string
| undefined;
uiFormattedValue?:
| CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiFormattedValue
| undefined;
uiPaidOnly?: boolean | undefined;
uiPlaceholder?: string | undefined;
default?: Array<string> | undefined;
example?: Array<string> | undefined;
};
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyType =
{
String: "string",
} as const;
export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyType =
ClosedEnum<
typeof CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyType
>;
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiControl =
{
RadioButton: "radio-button",
} as const;
export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiControl =
ClosedEnum<
typeof CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiControl
>;
export const CreateIntegrationStoreDirectDisabledIntegrations3 = {
Create: "create",
Update: "update",
} as const;
export type CreateIntegrationStoreDirectDisabledIntegrations3 = ClosedEnum<
typeof CreateIntegrationStoreDirectDisabledIntegrations3
>;
export type CreateIntegrationStoreDirectDisabledIntegrations1 = {
expr: string;
};
export type CreateIntegrationStoreDirectPropertiesIntegrationsDisabled =
| CreateIntegrationStoreDirectDisabledIntegrations1
| boolean
| CreateIntegrationStoreDirectDisabledIntegrations3;
export const CreateIntegrationStoreDirectHiddenIntegrations3 = {
Create: "create",
Update: "update",
} as const;
export type CreateIntegrationStoreDirectHiddenIntegrations3 = ClosedEnum<
typeof CreateIntegrationStoreDirectHiddenIntegrations3
>;
export type CreateIntegrationStoreDirectHiddenIntegrations1 = {
expr: string;
};
export type CreateIntegrationStoreDirectPropertiesIntegrationsHidden =
| CreateIntegrationStoreDirectHiddenIntegrations1
| boolean
| CreateIntegrationStoreDirectHiddenIntegrations3;
export type CreateIntegrationStoreDirectPropertiesIntegrationsUiOptions = {
value: string;
label: string;
description?: string | undefined;
disabled?:
| CreateIntegrationStoreDirectDisabledIntegrations1
| boolean
| CreateIntegrationStoreDirectDisabledIntegrations3
| undefined;
hidden?:
| CreateIntegrationStoreDirectHiddenIntegrations1
| boolean
| CreateIntegrationStoreDirectHiddenIntegrations3
| undefined;
};
export const CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody3 =
{
Create: "create",
Update: "update",
} as const;
export type CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody3 =
ClosedEnum<
typeof CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody3
>;
export type CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody1 =
{
expr: string;
};
export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiReadOnly =
| CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody1
| boolean
| CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody3;
export const CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody3 =
{
Create: "create",
Update: "update",
} as const;
export type CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody3 =
ClosedEnum<
typeof CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody3
>;
export type CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody1 =
{
expr: string;
};
export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiHidden =
| CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody1
| boolean
| CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody3;
export const CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody3 =
{
Create: "create",
Update: "update",
} as const;
export type CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody3 =
ClosedEnum<
typeof CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody3
>;
export type CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody1 =
{
expr: string;
};
export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDisabled =
| CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody1
| boolean
| CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody3;
export type CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBody2 =
{
expr: string;
};
export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDescription =
| CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBody2
| string;
export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiFormattedValue =
{
expr: string;
};
export type CreateIntegrationStoreDirectProperties6 = {
type:
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyType;
uiControl:
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiControl;
uiOptions: Array<CreateIntegrationStoreDirectPropertiesIntegrationsUiOptions>;
enum?: Array<string> | undefined;
maxLength?: number | undefined;
minLength?: number | undefined;
pattern?: string | undefined;
description?: string | undefined;
default?: string | undefined;
uiLabel?: string | undefined;
uiReadOnly?:
| CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody1
| boolean
| CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody3
| undefined;
uiHidden?:
| CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody1
| boolean
| CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody3
| undefined;
uiDisabled?:
| CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody1
| boolean
| CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody3
| undefined;
uiDescription?:
| CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBody2
| string
| undefined;
uiFormattedValue?:
| CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiFormattedValue
| undefined;
uiPaidOnly?: boolean | undefined;
uiPlaceholder?: string | undefined;
};
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONType =
{
String: "string",
} as const;
export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONType =
ClosedEnum<
typeof CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONType
>;
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiControl =
{
Select: "select",
} as const;
export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiControl =
ClosedEnum<
typeof CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiControl
>;
export const CreateIntegrationStoreDirectDisabled3 = {
Create: "create",
Update: "update",
} as const;
export type CreateIntegrationStoreDirectDisabled3 = ClosedEnum<
typeof CreateIntegrationStoreDirectDisabled3
>;
export type CreateIntegrationStoreDirectDisabled1 = {
expr: string;
};
export type CreateIntegrationStoreDirectPropertiesDisabled =
| CreateIntegrationStoreDirectDisabled1
| boolean
| CreateIntegrationStoreDirectDisabled3;
export const CreateIntegrationStoreDirectHidden3 = {
Create: "create",
Update: "update",
} as const;
export type CreateIntegrationStoreDirectHidden3 = ClosedEnum<
typeof CreateIntegrationStoreDirectHidden3
>;
export type CreateIntegrationStoreDirectHidden1 = {
expr: string;
};
export type CreateIntegrationStoreDirectPropertiesHidden =
| CreateIntegrationStoreDirectHidden1
| boolean
| CreateIntegrationStoreDirectHidden3;
export type CreateIntegrationStoreDirectPropertiesUiOptions = {
value: string;
label: string;
description?: string | undefined;
disabled?:
| CreateIntegrationStoreDirectDisabled1
| boolean
| CreateIntegrationStoreDirectDisabled3
| undefined;
hidden?:
| CreateIntegrationStoreDirectHidden1
| boolean
| CreateIntegrationStoreDirectHidden3
| undefined;
};
export const CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson3 =
{
Create: "create",
Update: "update",
} as const;
export type CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson3 =
ClosedEnum<
typeof CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson3
>;
export type CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson1 =
{
expr: string;
};
export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiReadOnly =
| CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson1
| boolean
| CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson3;
export const CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson3 =
{
Create: "create",
Update: "update",
} as const;
export type CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson3 =
ClosedEnum<
typeof CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson3
>;
export type CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson1 =
{
expr: string;
};
export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiHidden =
| CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson1
| boolean
| CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson3;
export const CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson3 =
{
Create: "create",
Update: "update",
} as const;
export type CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson3 =
ClosedEnum<
typeof CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson3
>;
export type CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson1 =
{
expr: string;
};
export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDisabled =
| CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson1
| boolean
| CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson3;
export type CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJson2 =
{
expr: string;
};
export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDescription =
| CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJson2
| string;
export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiFormattedValue =
{
expr: string;
};
export type CreateIntegrationStoreDirectProperties5 = {
type:
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONType;
uiControl:
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiControl;
uiOptions: Array<CreateIntegrationStoreDirectPropertiesUiOptions>;
enum?: Array<string> | undefined;
maxLength?: number | undefined;
minLength?: number | undefined;
pattern?: string | undefined;
description?: string | undefined;
default?: string | undefined;
uiLabel?: string | undefined;
uiReadOnly?:
| CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson1
| boolean
| CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson3
| undefined;
uiHidden?:
| CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson1
| boolean
| CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson3
| undefined;
uiDisabled?:
| CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson1
| boolean
| CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson3
| undefined;
uiDescription?:
| CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJson2
| string
| undefined;
uiFormattedValue?:
| CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiFormattedValue
| undefined;
uiPaidOnly?: boolean | undefined;
uiPlaceholder?: string | undefined;
};
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200Type =
{
Array: "array",
} as const;
export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200Type =
ClosedEnum<
typeof CreateIntegrationStoreDirectPropertiesIntegrationsResponse200Type
>;
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema4Type =
{
Number: "number",
} as const;
export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema4Type =
ClosedEnum<
typeof CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema4Type
>;
export type CreateIntegrationStoreDirectPropertiesItems = {
type:
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema4Type;
description?: string | undefined;
minimum?: number | undefined;
exclusiveMinimum?: number | undefined;
maximum?: number | undefined;
exclusiveMaximum?: number | undefined;
default?: number | undefined;
};
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiControl =
{
Slider: "slider",
} as const;
export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiControl =
ClosedEnum<
typeof CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiControl
>;
export const CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2003 = {
Create: "create",
Update: "update",
} as const;
export type CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2003 =
ClosedEnum<
typeof CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2003
>;
export type CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2001 = {
expr: string;
};
export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiReadOnly =
| CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2001
| boolean
| CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2003;
export const CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2003 = {
Create: "create",
Update: "update",
} as const;
export type CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2003 =
ClosedEnum<
typeof CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2003
>;
export type CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2001 = {
expr: string;
};
export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiHidden =
| CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2001
| boolean
| CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2003;
export const CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2003 = {
Create: "create",
Update: "update",
} as const;
export type CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2003 =
ClosedEnum<
typeof CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2003
>;
export type CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2001 = {
expr: string;
};
export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiDisabled =
| CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2001
| boolean
| CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2003;
export type CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2002 =
{
expr: string;
};
export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiDescription =
| CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2002
| string;
export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiFormattedValue =
{
expr: string;
};
export type CreateIntegrationStoreDirectProperties4 = {
type: CreateIntegrationStoreDirectPropertiesIntegrationsResponse200Type;
items: CreateIntegrationStoreDirectPropertiesItems;
uiControl:
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiControl;
uiSteps: Array<number>;
maxItems?: number | undefined;
minItems?: number | undefined;
description?: string | undefined;
uiLabel?: string | undefined;
uiReadOnly?:
| CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2001
| boolean
| CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2003
| undefined;
uiHidden?:
| CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2001
| boolean
| CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2003
| undefined;
uiDisabled?:
| CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2001
| boolean
| CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2003
| undefined;
uiDescription?:
| CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2002
| string
| undefined;
uiFormattedValue?:
| CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiFormattedValue
| undefined;
uiPaidOnly?: boolean | undefined;
default?: Array<number> | undefined;
};
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponseType = {
Boolean: "boolean",
} as const;
export type CreateIntegrationStoreDirectPropertiesIntegrationsResponseType =
ClosedEnum<
typeof CreateIntegrationStoreDirectPropertiesIntegrationsResponseType
>;
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiControl =
{
Toggle: "toggle",
} as const;
export type CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiControl =
ClosedEnum<
typeof CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiControl
>;
export const CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse3 = {
Create: "create",
Update: "update",
} as const;
export type CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse3 =
ClosedEnum<
typeof CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse3
>;
export type CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse1 = {
expr: string;
};
export type CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiReadOnly =
| CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse1
| boolean
| CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse3;
export const CreateIntegrationStoreDirectUiHiddenIntegrationsResponse3 = {
Create: "create",
Update: "update",
} as const;
export type CreateIntegrationStoreDirectUiHiddenIntegrationsResponse3 =
ClosedEnum<typeof CreateIntegrationStoreDirectUiHiddenIntegrationsResponse3>;
export type CreateIntegrationStoreDirectUiHiddenIntegrationsResponse1 = {
expr: string;
};
export type CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiHidden =
| CreateIntegrationStoreDirectUiHiddenIntegrationsResponse1
| boolean
| CreateIntegrationStoreDirectUiHiddenIntegrationsResponse3;
export const CreateIntegrationStoreDirectUiDisabledIntegrationsResponse3 = {
Create: "create",
Update: "update",
} as const;
export type CreateIntegrationStoreDirectUiDisabledIntegrationsResponse3 =
ClosedEnum<
typeof CreateIntegrationStoreDirectUiDisabledIntegrationsResponse3
>;
export type CreateIntegrationStoreDirectUiDisabledIntegrationsResponse1 = {
expr: string;
};
export type CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiDisabled =
| CreateIntegrationStoreDirectUiDisabledIntegrationsResponse1
| boolean
| CreateIntegrationStoreDirectUiDisabledIntegrationsResponse3;
export type CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2 = {
expr: string;
};
export type CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiDescription =
| CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2
| string;
export type CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiFormattedValue =
{
expr: string;
};
export type CreateIntegrationStoreDirectProperties3 = {
type: CreateIntegrationStoreDirectPropertiesIntegrationsResponseType;
uiControl:
CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiControl;
description?: string | undefined;
default?: boolean | undefined;
uiLabel?: string | undefined;
uiReadOnly?:
| CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse1
| boolean
| CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse3
| undefined;
uiHidden?:
| CreateIntegrationStoreDirectUiHiddenIntegrationsResponse1
| boolean
| CreateIntegrationStoreDirectUiHiddenIntegrationsResponse3
| undefined;
uiDisabled?:
| CreateIntegrationStoreDirectUiDisabledIntegrationsResponse1
| boolean
| CreateIntegrationStoreDirectUiDisabledIntegrationsResponse3
| undefined;
uiDescription?:
| CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2
| string
| undefined;
uiFormattedValue?:
| CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiFormattedValue
| undefined;
uiPaidOnly?: boolean | undefined;
};
export const CreateIntegrationStoreDirectPropertiesIntegrationsType = {
Number: "number",
} as const;
export type CreateIntegrationStoreDirectPropertiesIntegrationsType = ClosedEnum<
typeof CreateIntegrationStoreDirectPropertiesIntegrationsType
>;
export const CreateIntegrationStoreDirectPropertiesIntegrationsUiControl = {
Input: "input",
} as const;
export type CreateIntegrationStoreDirectPropertiesIntegrationsUiControl =
ClosedEnum<
typeof CreateIntegrationStoreDirectPropertiesIntegrationsUiControl
>;
export const CreateIntegrationStoreDirectUiReadOnlyIntegrations3 = {
Create: "create",
Update: "update",
} as const;
export type CreateIntegrationStoreDirectUiReadOnlyIntegrations3 = ClosedEnum<
typeof CreateIntegrationStoreDirectUiReadOnlyIntegrations3
>;
export type CreateIntegrationStoreDirectUiReadOnlyIntegrations1 = {
expr: string;
};
export type CreateIntegrationStoreDirectPropertiesIntegrationsUiReadOnly =
| CreateIntegrationStoreDirectUiReadOnlyIntegrations1
| boolean
| CreateIntegrationStoreDirectUiReadOnlyIntegrations3;
export const CreateIntegrationStoreDirectUiHiddenIntegrations3 = {
Create: "create",
Update: "update",
} as const;
export type CreateIntegrationStoreDirectUiHiddenIntegrations3 = ClosedEnum<
typeof CreateIntegrationStoreDirectUiHiddenIntegrations3
>;
export type CreateIntegrationStoreDirectUiHiddenIntegrations1 = {
expr: string;
};
export type CreateIntegrationStoreDirectPropertiesIntegrationsUiHidden =
| CreateIntegrationStoreDirectUiHiddenIntegrations1
| boolean
| CreateIntegrationStoreDirectUiHiddenIntegrations3;
export const CreateIntegrationStoreDirectUiDisabledIntegrations3 = {
Create: "create",
Update: "update",
} as const;
export type CreateIntegrationStoreDirectUiDisabledIntegrations3 = ClosedEnum<
typeof CreateIntegrationStoreDirectUiDisabledIntegrations3
>;
export type CreateIntegrationStoreDirectUiDisabledIntegrations1 = {
expr: string;
};
export type CreateIntegrationStoreDirectPropertiesIntegrationsUiDisabled =
| CreateIntegrationStoreDirectUiDisabledIntegrations1
| boolean
| CreateIntegrationStoreDirectUiDisabledIntegrations3;
export type CreateIntegrationStoreDirectUiDescriptionIntegrations2 = {
expr: string;
};
export type CreateIntegrationStoreDirectPropertiesIntegrationsUiDescription =
| CreateIntegrationStoreDirectUiDescriptionIntegrations2
| string;
export type CreateIntegrationStoreDirectPropertiesIntegrationsUiFormattedValue =
{
expr: string;
};
export type CreateIntegrationStoreDirectProperties2 = {
type: CreateIntegrationStoreDirectPropertiesIntegrationsType;
uiControl: CreateIntegrationStoreDirectPropertiesIntegrationsUiControl;
maximum?: number | undefined;
exclusiveMaximum?: number | undefined;
minimum?: number | undefined;
exclusiveMinimum?: number | undefined;
description?: string | undefined;
default?: number | undefined;
uiLabel?: string | undefined;
uiReadOnly?:
| CreateIntegrationStoreDirectUiReadOnlyIntegrations1
| boolean
| CreateIntegrationStoreDirectUiReadOnlyIntegrations3
| undefined;
uiHidden?:
| CreateIntegrationStoreDirectUiHiddenIntegrations1
| boolean
| CreateIntegrationStoreDirectUiHiddenIntegrations3
| undefined;
uiDisabled?:
| CreateIntegrationStoreDirectUiDisabledIntegrations1
| boolean
| CreateIntegrationStoreDirectUiDisabledIntegrations3
| undefined;
uiDescription?:
| CreateIntegrationStoreDirectUiDescriptionIntegrations2
| string
| undefined;
uiFormattedValue?:
| CreateIntegrationStoreDirectPropertiesIntegrationsUiFormattedValue
| undefined;
uiPaidOnly?: boolean | undefined;
uiPlaceholder?: string | undefined;
};
export const CreateIntegrationStoreDirectPropertiesType = {
String: "string",
} as const;
export type CreateIntegrationStoreDirectPropertiesType = ClosedEnum<
typeof CreateIntegrationStoreDirectPropertiesType
>;
export const CreateIntegrationStoreDirectPropertiesUiControl = {
Input: "input",
} as const;
export type CreateIntegrationStoreDirectPropertiesUiControl = ClosedEnum<
typeof CreateIntegrationStoreDirectPropertiesUiControl
>;
export const CreateIntegrationStoreDirectUiReadOnly3 = {
Create: "create",
Update: "update",
} as const;
export type CreateIntegrationStoreDirectUiReadOnly3 = ClosedEnum<
typeof CreateIntegrationStoreDirectUiReadOnly3
>;
export type CreateIntegrationStoreDirectUiReadOnly1 = {
expr: string;
};
export type CreateIntegrationStoreDirectPropertiesUiReadOnly =
| CreateIntegrationStoreDirectUiReadOnly1
| boolean
| CreateIntegrationStoreDirectUiReadOnly3;
export const CreateIntegrationStoreDirectUiHidden3 = {
Create: "create",
Update: "update",
} as const;
export type CreateIntegrationStoreDirectUiHidden3 = ClosedEnum<
typeof CreateIntegrationStoreDirectUiHidden3
>;
export type CreateIntegrationStoreDirectUiHidden1 = {
expr: string;
};
export type CreateIntegrationStoreDirectPropertiesUiHidden =
| CreateIntegrationStoreDirectUiHidden1
| boolean
| CreateIntegrationStoreDirectUiHidden3;
export const CreateIntegrationStoreDirectUiDisabled3 = {
Create: "create",
Update: "update",
} as const;
export type CreateIntegrationStoreDirectUiDisabled3 = ClosedEnum<
typeof CreateIntegrationStoreDirectUiDisabled3
>;
export type CreateIntegrationStoreDirectUiDisabled1 = {
expr: string;
};
export type CreateIntegrationStoreDirectPropertiesUiDisabled =
| CreateIntegrationStoreDirectUiDisabled1
| boolean
| CreateIntegrationStoreDirectUiDisabled3;
export type CreateIntegrationStoreDirectUiDescription2 = {
expr: string;
};
export type CreateIntegrationStoreDirectPropertiesUiDescription =
| CreateIntegrationStoreDirectUiDescription2
| string;
export type CreateIntegrationStoreDirectPropertiesUiFormattedValue = {
expr: string;
};
export type CreateIntegrationStoreDirectProperties1 = {
type: CreateIntegrationStoreDirectPropertiesType;
uiControl: CreateIntegrationStoreDirectPropertiesUiControl;
enum?: Array<string> | undefined;
maxLength?: number | undefined;
minLength?: number | undefined;
pattern?: string | undefined;
description?: string | undefined;
default?: string | undefined;
uiLabel?: string | undefined;
uiReadOnly?:
| CreateIntegrationStoreDirectUiReadOnly1
| boolean
| CreateIntegrationStoreDirectUiReadOnly3
| undefined;
uiHidden?:
| CreateIntegrationStoreDirectUiHidden1
| boolean
| CreateIntegrationStoreDirectUiHidden3
| undefined;
uiDisabled?:
| CreateIntegrationStoreDirectUiDisabled1
| boolean
| CreateIntegrationStoreDirectUiDisabled3
| undefined;
uiDescription?:
| CreateIntegrationStoreDirectUiDescription2
| string
| undefined;
uiFormattedValue?:
| CreateIntegrationStoreDirectPropertiesUiFormattedValue
| undefined;
uiPaidOnly?: boolean | undefined;
uiPlaceholder?: string | undefined;
};
export type CreateIntegrationStoreDirectProperties =
| CreateIntegrationStoreDirectProperties4
| CreateIntegrationStoreDirectProperties7
| CreateIntegrationStoreDirectProperties9
| CreateIntegrationStoreDirectProperties5
| CreateIntegrationStoreDirectProperties6
| CreateIntegrationStoreDirectProperties8
| CreateIntegrationStoreDirectProperties10
| CreateIntegrationStoreDirectProperties1
| CreateIntegrationStoreDirectProperties2
| CreateIntegrationStoreDirectProperties3
| CreateIntegrationStoreDirectProperties11
| CreateIntegrationStoreDirectProperties12;
export type CreateIntegrationStoreDirectMetadataSchema = {
type: CreateIntegrationStoreDirectIntegrationsType;
properties: {
[k: string]:
| CreateIntegrationStoreDirectProperties4
| CreateIntegrationStoreDirectProperties7
| CreateIntegrationStoreDirectProperties9
| CreateIntegrationStoreDirectProperties5
| CreateIntegrationStoreDirectProperties6
| CreateIntegrationStoreDirectProperties8
| CreateIntegrationStoreDirectProperties10
| CreateIntegrationStoreDirectProperties1
| CreateIntegrationStoreDirectProperties2
| CreateIntegrationStoreDirectProperties3
| CreateIntegrationStoreDirectProperties11
| CreateIntegrationStoreDirectProperties12;
};
required?: Array<string> | undefined;
uiOrder?: Array<string> | undefined;
};
export type ResourceLinks = {
href: string;
title: string;
};
export const CreateIntegrationStoreDirectTags = {
Ai: "ai",
Authentication: "authentication",
Blob: "blob",
Checks: "checks",
Drains: "drains",
EdgeConfig: "edge-config",
Experimentation: "experimentation",
Kv: "kv",
Libsql: "libsql",
LogDrain: "logDrain",
Mcp: "mcp",
Messaging: "messaging",
Mysql: "mysql",
Observability: "observability",
Other: "other",
Postgres: "postgres",
Rds: "rds",
Redis: "redis",
Sqlite: "sqlite",
Storage: "storage",
TagAgents: "tag_agents",
TagAi: "tag_ai",
TagAnalytics: "tag_analytics",
TagAuthentication: "tag_authentication",
TagChecks: "tag_checks",
TagCms: "tag_cms",
TagCodeRepository: "tag_code_repository",
TagCodeReview: "tag_code_review",
TagCodeSecurity: "tag_code_security",
TagCodeTesting: "tag_code_testing",
TagCommerce: "tag_commerce",
TagDatabases: "tag_databases",
TagDevTools: "tag_dev_tools",
TagExperimentation: "tag_experimentation",
TagFlags: "tag_flags",
TagLogDrain: "tag_logDrain",
TagLogging: "tag_logging",
TagMessaging: "tag_messaging",
TagMonitoring: "tag_monitoring",
TagObservability: "tag_observability",
TagOther: "tag_other",
TagPayments: "tag_payments",
TagPerformance: "tag_performance",
TagProductivity: "tag_productivity",
TagSearching: "tag_searching",
TagSecurity: "tag_security",
TagStorage: "tag_storage",
TagSupportAgent: "tag_support_agent",
TagTesting: "tag_testing",
TagTraceDrain: "tag_traceDrain",
TagVideo: "tag_video",
TagWebAutomation: "tag_web_automation",
TagWorkflow: "tag_workflow",
TraceDrain: "traceDrain",
Vector: "vector",
Video: "video",
Workflow: "workflow",
} as const;
export type CreateIntegrationStoreDirectTags = ClosedEnum<
typeof CreateIntegrationStoreDirectTags
>;
export const ProjectConnectionScopes = {
ReadWriteDeployment: "read-write:deployment",
ReadWriteDeploymentCheck: "read-write:deployment-check",
ReadWriteDomain: "read-write:domain",
ReadWriteDrains: "read-write:drains",
ReadWriteGlobalProjectEnvVars: "read-write:global-project-env-vars",
ReadWriteIntegrationDeploymentAction:
"read-write:integration-deployment-action",
ReadWriteLogDrain: "read-write:log-drain",
ReadWriteProjectEnvVars: "read-write:project-env-vars",
ReadWriteProjectProtectionBypass: "read-write:project-protection-bypass",
ReadDeployment: "read:deployment",
ReadDomain: "read:domain",
ReadProject: "read:project",
} as const;
export type ProjectConnectionScopes = ClosedEnum<
typeof ProjectConnectionScopes
>;
export type Repl = {
enabled: boolean;
supportsReadOnlyMode: boolean;
welcomeMessage?: string | undefined;
};
export const CreateIntegrationStoreDirectIntegrationsResponseType = {
AddDrain: "add_drain",
ConfigureProjectConnections: "configure_project_connections",
ConnectToProject: "connect_to_project",
} as const;
export type CreateIntegrationStoreDirectIntegrationsResponseType = ClosedEnum<
typeof CreateIntegrationStoreDirectIntegrationsResponseType
>;
export type CreateIntegrationStoreDirectIntegrationsActions = {
type: CreateIntegrationStoreDirectIntegrationsResponseType;
};
export type Steps = {
title: string;
content: string;
actions?: Array<CreateIntegrationStoreDirectIntegrationsActions> | undefined;
};
export type Guides = {
framework: string;
title: string;
steps: Array<Steps>;
};
export type CreateIntegrationStoreDirectSecretRotationIntegrations1 = {
maxDelayHours: number;
};
export type CreateIntegrationStoreDirectIntegrationsSecretRotation =
| CreateIntegrationStoreDirectSecretRotationIntegrations1
| boolean;
export type CreateIntegrationStoreDirectIntegrationsCapabilities = {
provisioning?: boolean | undefined;
mcp?: boolean | undefined;
mcpReadonly?: boolean | undefined;
sso?: boolean | undefined;
billable?: boolean | undefined;
transferable?: boolean | undefined;
templateCloneOnly?: boolean | undefined;
checks?: boolean | undefined;
connectedProvisioning?: boolean | undefined;
secretRotation?:
| CreateIntegrationStoreDirectSecretRotationIntegrations1
| boolean
| undefined;
importResource?: boolean | undefined;
connectedImportResource?: boolean | undefined;
nativeImportResource?: boolean | undefined;
requiresBrowserInstall?: boolean | undefined;
v0Flavors?: boolean | undefined;
flexCommitEligible?: boolean | undefined;
updateConfiguration?: boolean | undefined;
maxAllowedTeams?: number | undefined;
};
export type CreateIntegrationStoreDirectIntegration = {
id: string;
name: string;
slug: string;
supportsInstallationBillingPlans?: boolean | undefined;
icon: string;
capabilities?:
| CreateIntegrationStoreDirectIntegrationsCapabilities
| undefined;
flags?: Array<string> | undefined;
};
export const SupportedProtocols = {
Ai: "ai",
Authentication: "authentication",
Checks: "checks",
Experimentation: "experimentation",
LogDrain: "logDrain",
Messaging: "messaging",
Observability: "observability",
Other: "other",
Storage: "storage",
TraceDrain: "traceDrain",
Video: "video",
Workflow: "workflow",
} as const;
export type SupportedProtocols = ClosedEnum<typeof SupportedProtocols>;
export const CreateIntegrationStoreDirectPrimaryProtocol = {
Ai: "ai",
Authentication: "authentication",
Checks: "checks",
Experimentation: "experimentation",
LogDrain: "logDrain",
Messaging: "messaging",
Observability: "observability",
Other: "other",
Storage: "storage",
TraceDrain: "traceDrain",
Video: "video",
Workflow: "workflow",
} as const;
export type CreateIntegrationStoreDirectPrimaryProtocol = ClosedEnum<
typeof CreateIntegrationStoreDirectPrimaryProtocol
>;
export const LogDrainStatus = {
Disabled: "disabled",
Enabled: "enabled",
} as const;
export type LogDrainStatus = ClosedEnum<typeof LogDrainStatus>;
export type Product = {
id?: string | undefined;
name?: string | undefined;
slug?: string | undefined;
iconUrl?: string | undefined;
capabilities?: CreateIntegrationStoreDirectCapabilities | undefined;
shortDescription?: string | undefined;
metadataSchema?: CreateIntegrationStoreDirectMetadataSchema | undefined;
resourceLinks?: Array<ResourceLinks> | undefined;
tags?: Array<CreateIntegrationStoreDirectTags> | undefined;
projectConnectionScopes?: Array<ProjectConnectionScopes> | undefined;
showSSOLinkOnProjectConnection?: boolean | undefined;
disableResourceRenaming?: boolean | undefined;
/**
* Custom resource title to display during installation and configuration. If not provided, defaults to protocol-based defaults.
*/
resourceTitle?: string | undefined;
/**
* URL to a skill/guide for how AI agents should use this product. Providers can specify this to help agents understand how to interact with their integration.
*/
agentSkillUrl?: string | undefined;
repl?: Repl | undefined;
guides?: Array<Guides> | undefined;
integration: CreateIntegrationStoreDirectIntegration;
integrationConfigurationId: string;
supportedProtocols: Array<SupportedProtocols>;
primaryProtocol?: CreateIntegrationStoreDirectPrimaryProtocol | undefined;
logDrainStatus?: LogDrainStatus | undefined;
};
export type CreateIntegrationStoreDirectExperimentation = {
edgeConfigSyncingEnabled?: boolean | undefined;
edgeConfigId?: string | undefined;
edgeConfigTokenId?: string | undefined;
};
export type CreateIntegrationStoreDirectProtocolSettings = {
experimentation?: CreateIntegrationStoreDirectExperimentation | undefined;
};
export const CreateIntegrationStoreDirectLevel = {
Error: "error",
Info: "info",
Warn: "warn",
} as const;
export type CreateIntegrationStoreDirectLevel = ClosedEnum<
typeof CreateIntegrationStoreDirectLevel
>;
export type CreateIntegrationStoreDirectNotification = {
title: string;
level: CreateIntegrationStoreDirectLevel;
message?: string | undefined;
href?: string | undefined;
};
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsItems$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectPropertiesIntegrationsItems,
z.ZodTypeDef,
unknown
> = z.object({
type:
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema7Type$inboundSchema,
description: types.optional(types.string()),
minLength: types.optional(types.number()),
maxLength: types.optional(types.number()),
pattern: types.optional(types.string()),
default: types.optional(types.string()),
enum: types.optional(z.array(types.string())),
});
export function createIntegrationStoreDirectPropertiesIntegrationsItemsFromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectPropertiesIntegrationsItems,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectPropertiesIntegrationsItems$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsItems' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiControl$inboundSchema:
z.ZodNativeEnum<
typeof CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiControl
> = z.nativeEnum(
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiControl,
);
/** @internal */
export const CreateIntegrationStoreDirectDisabledIntegrationsResponse3$inboundSchema:
z.ZodNativeEnum<
typeof CreateIntegrationStoreDirectDisabledIntegrationsResponse3
> = z.nativeEnum(CreateIntegrationStoreDirectDisabledIntegrationsResponse3);
/** @internal */
export const CreateIntegrationStoreDirectDisabledIntegrationsResponse1$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectDisabledIntegrationsResponse1,
z.ZodTypeDef,
unknown
> = z.object({
expr: types.string(),
});
export function createIntegrationStoreDirectDisabledIntegrationsResponse1FromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectDisabledIntegrationsResponse1,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectDisabledIntegrationsResponse1$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectDisabledIntegrationsResponse1' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponseDisabled$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectPropertiesIntegrationsResponseDisabled,
z.ZodTypeDef,
unknown
> = smartUnion([
z.lazy(() =>
CreateIntegrationStoreDirectDisabledIntegrationsResponse1$inboundSchema
),
types.boolean(),
CreateIntegrationStoreDirectDisabledIntegrationsResponse3$inboundSchema,
]);
export function createIntegrationStoreDirectPropertiesIntegrationsResponseDisabledFromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectPropertiesIntegrationsResponseDisabled,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectPropertiesIntegrationsResponseDisabled$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponseDisabled' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectHiddenIntegrationsResponse3$inboundSchema:
z.ZodNativeEnum<
typeof CreateIntegrationStoreDirectHiddenIntegrationsResponse3
> = z.nativeEnum(CreateIntegrationStoreDirectHiddenIntegrationsResponse3);
/** @internal */
export const CreateIntegrationStoreDirectHiddenIntegrationsResponse1$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectHiddenIntegrationsResponse1,
z.ZodTypeDef,
unknown
> = z.object({
expr: types.string(),
});
export function createIntegrationStoreDirectHiddenIntegrationsResponse1FromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectHiddenIntegrationsResponse1,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectHiddenIntegrationsResponse1$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectHiddenIntegrationsResponse1' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponseHidden$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectPropertiesIntegrationsResponseHidden,
z.ZodTypeDef,
unknown
> = smartUnion([
z.lazy(() =>
CreateIntegrationStoreDirectHiddenIntegrationsResponse1$inboundSchema
),
types.boolean(),
CreateIntegrationStoreDirectHiddenIntegrationsResponse3$inboundSchema,
]);
export function createIntegrationStoreDirectPropertiesIntegrationsResponseHiddenFromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectPropertiesIntegrationsResponseHidden,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectPropertiesIntegrationsResponseHidden$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponseHidden' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiOptions$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiOptions,
z.ZodTypeDef,
unknown
> = z.object({
value: types.string(),
label: types.string(),
description: types.optional(types.string()),
disabled: types.optional(
smartUnion([
z.lazy(() =>
CreateIntegrationStoreDirectDisabledIntegrationsResponse1$inboundSchema
),
types.boolean(),
CreateIntegrationStoreDirectDisabledIntegrationsResponse3$inboundSchema,
]),
),
hidden: types.optional(
smartUnion([
z.lazy(() =>
CreateIntegrationStoreDirectHiddenIntegrationsResponse1$inboundSchema
),
types.boolean(),
CreateIntegrationStoreDirectHiddenIntegrationsResponse3$inboundSchema,
]),
),
});
export function createIntegrationStoreDirectPropertiesIntegrationsResponseUiOptionsFromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiOptions,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiOptions$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiOptions' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore3$inboundSchema:
z.ZodNativeEnum<
typeof CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore3
> = z.nativeEnum(
CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore3,
);
/** @internal */
export const CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore1$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore1,
z.ZodTypeDef,
unknown
> = z.object({
expr: types.string(),
});
export function createIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore1FromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore1,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore1$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore1' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiReadOnly$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiReadOnly,
z.ZodTypeDef,
unknown
> = smartUnion([
z.lazy(() =>
CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore1$inboundSchema
),
types.boolean(),
CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore3$inboundSchema,
]);
export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiReadOnlyFromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiReadOnly,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiReadOnly$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiReadOnly' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore3$inboundSchema:
z.ZodNativeEnum<
typeof CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore3
> = z.nativeEnum(
CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore3,
);
/** @internal */
export const CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore1$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore1,
z.ZodTypeDef,
unknown
> = z.object({
expr: types.string(),
});
export function createIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore1FromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore1,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore1$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore1' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiHidden$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiHidden,
z.ZodTypeDef,
unknown
> = smartUnion([
z.lazy(() =>
CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore1$inboundSchema
),
types.boolean(),
CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore3$inboundSchema,
]);
export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiHiddenFromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiHidden,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiHidden$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiHidden' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore3$inboundSchema:
z.ZodNativeEnum<
typeof CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore3
> = z.nativeEnum(
CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore3,
);
/** @internal */
export const CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore1$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore1,
z.ZodTypeDef,
unknown
> = z.object({
expr: types.string(),
});
export function createIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore1FromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore1,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore1$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore1' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDisabled$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDisabled,
z.ZodTypeDef,
unknown
> = smartUnion([
z.lazy(() =>
CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore1$inboundSchema
),
types.boolean(),
CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore3$inboundSchema,
]);
export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDisabledFromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDisabled,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDisabled$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDisabled' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStore2$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStore2,
z.ZodTypeDef,
unknown
> = z.object({
expr: types.string(),
});
export function createIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStore2FromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStore2,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStore2$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStore2' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDescription$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDescription,
z.ZodTypeDef,
unknown
> = smartUnion([
z.lazy(() =>
CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStore2$inboundSchema
),
types.string(),
]);
export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDescriptionFromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDescription,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDescription$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDescription' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiFormattedValue$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiFormattedValue,
z.ZodTypeDef,
unknown
> = z.object({
expr: types.string(),
});
export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiFormattedValueFromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiFormattedValue,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiFormattedValue$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiFormattedValue' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectProperties7$inboundSchema: z.ZodType<
CreateIntegrationStoreDirectProperties7,
z.ZodTypeDef,
unknown
> = z.object({
type:
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreType$inboundSchema,
items: z.lazy(() =>
CreateIntegrationStoreDirectPropertiesIntegrationsItems$inboundSchema
),
"ui:control":
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiControl$inboundSchema,
"ui:options": z.array(
z.lazy(() =>
CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiOptions$inboundSchema
),
),
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(() =>
CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore1$inboundSchema
),
types.boolean(),
CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore3$inboundSchema,
]),
),
"ui:hidden": types.optional(
smartUnion([
z.lazy(() =>
CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore1$inboundSchema
),
types.boolean(),
CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore3$inboundSchema,
]),
),
"ui:disabled": types.optional(
smartUnion([
z.lazy(() =>
CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore1$inboundSchema
),
types.boolean(),
CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore3$inboundSchema,
]),
),
"ui:description": types.optional(
smartUnion([
z.lazy(() =>
CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStore2$inboundSchema
),
types.string(),
]),
),
"ui:formatted-value": types.optional(
z.lazy(() =>
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiFormattedValue$inboundSchema
),
),
"ui:paid-only": types.optional(types.boolean()),
"ui:placeholder": types.optional(types.string()),
default: types.optional(z.array(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 createIntegrationStoreDirectProperties7FromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectProperties7,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectProperties7$inboundSchema.parse(
JSON.parse(x),
),
`Failed to parse 'CreateIntegrationStoreDirectProperties7' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyType$inboundSchema:
z.ZodNativeEnum<
typeof CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyType
> = z.nativeEnum(
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyType,
);
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiControl$inboundSchema:
z.ZodNativeEnum<
typeof CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiControl
> = z.nativeEnum(
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiControl,
);
/** @internal */
export const CreateIntegrationStoreDirectDisabledIntegrations3$inboundSchema:
z.ZodNativeEnum<typeof CreateIntegrationStoreDirectDisabledIntegrations3> = z
.nativeEnum(CreateIntegrationStoreDirectDisabledIntegrations3);
/** @internal */
export const CreateIntegrationStoreDirectDisabledIntegrations1$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectDisabledIntegrations1,
z.ZodTypeDef,
unknown
> = z.object({
expr: types.string(),
});
export function createIntegrationStoreDirectDisabledIntegrations1FromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectDisabledIntegrations1,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectDisabledIntegrations1$inboundSchema.parse(
JSON.parse(x),
),
`Failed to parse 'CreateIntegrationStoreDirectDisabledIntegrations1' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsDisabled$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectPropertiesIntegrationsDisabled,
z.ZodTypeDef,
unknown
> = smartUnion([
z.lazy(() =>
CreateIntegrationStoreDirectDisabledIntegrations1$inboundSchema
),
types.boolean(),
CreateIntegrationStoreDirectDisabledIntegrations3$inboundSchema,
]);
export function createIntegrationStoreDirectPropertiesIntegrationsDisabledFromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectPropertiesIntegrationsDisabled,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectPropertiesIntegrationsDisabled$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsDisabled' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectHiddenIntegrations3$inboundSchema:
z.ZodNativeEnum<typeof CreateIntegrationStoreDirectHiddenIntegrations3> = z
.nativeEnum(CreateIntegrationStoreDirectHiddenIntegrations3);
/** @internal */
export const CreateIntegrationStoreDirectHiddenIntegrations1$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectHiddenIntegrations1,
z.ZodTypeDef,
unknown
> = z.object({
expr: types.string(),
});
export function createIntegrationStoreDirectHiddenIntegrations1FromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectHiddenIntegrations1,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectHiddenIntegrations1$inboundSchema.parse(
JSON.parse(x),
),
`Failed to parse 'CreateIntegrationStoreDirectHiddenIntegrations1' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsHidden$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectPropertiesIntegrationsHidden,
z.ZodTypeDef,
unknown
> = smartUnion([
z.lazy(() => CreateIntegrationStoreDirectHiddenIntegrations1$inboundSchema),
types.boolean(),
CreateIntegrationStoreDirectHiddenIntegrations3$inboundSchema,
]);
export function createIntegrationStoreDirectPropertiesIntegrationsHiddenFromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectPropertiesIntegrationsHidden,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectPropertiesIntegrationsHidden$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsHidden' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsUiOptions$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectPropertiesIntegrationsUiOptions,
z.ZodTypeDef,
unknown
> = z.object({
value: types.string(),
label: types.string(),
description: types.optional(types.string()),
disabled: types.optional(
smartUnion([
z.lazy(() =>
CreateIntegrationStoreDirectDisabledIntegrations1$inboundSchema
),
types.boolean(),
CreateIntegrationStoreDirectDisabledIntegrations3$inboundSchema,
]),
),
hidden: types.optional(
smartUnion([
z.lazy(() =>
CreateIntegrationStoreDirectHiddenIntegrations1$inboundSchema
),
types.boolean(),
CreateIntegrationStoreDirectHiddenIntegrations3$inboundSchema,
]),
),
});
export function createIntegrationStoreDirectPropertiesIntegrationsUiOptionsFromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectPropertiesIntegrationsUiOptions,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectPropertiesIntegrationsUiOptions$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsUiOptions' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody3$inboundSchema:
z.ZodNativeEnum<
typeof CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody3
> = z.nativeEnum(
CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody3,
);
/** @internal */
export const CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody1$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody1,
z.ZodTypeDef,
unknown
> = z.object({
expr: types.string(),
});
export function createIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody1FromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody1,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody1$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody1' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiReadOnly$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiReadOnly,
z.ZodTypeDef,
unknown
> = smartUnion([
z.lazy(() =>
CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody1$inboundSchema
),
types.boolean(),
CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody3$inboundSchema,
]);
export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiReadOnlyFromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiReadOnly,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiReadOnly$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiReadOnly' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody3$inboundSchema:
z.ZodNativeEnum<
typeof CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody3
> = z.nativeEnum(
CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody3,
);
/** @internal */
export const CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody1$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody1,
z.ZodTypeDef,
unknown
> = z.object({
expr: types.string(),
});
export function createIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody1FromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody1,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody1$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody1' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiHidden$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiHidden,
z.ZodTypeDef,
unknown
> = smartUnion([
z.lazy(() =>
CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody1$inboundSchema
),
types.boolean(),
CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody3$inboundSchema,
]);
export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiHiddenFromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiHidden,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiHidden$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiHidden' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody3$inboundSchema:
z.ZodNativeEnum<
typeof CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody3
> = z.nativeEnum(
CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody3,
);
/** @internal */
export const CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody1$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody1,
z.ZodTypeDef,
unknown
> = z.object({
expr: types.string(),
});
export function createIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody1FromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody1,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody1$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody1' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDisabled$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDisabled,
z.ZodTypeDef,
unknown
> = smartUnion([
z.lazy(() =>
CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody1$inboundSchema
),
types.boolean(),
CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody3$inboundSchema,
]);
export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDisabledFromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDisabled,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDisabled$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDisabled' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBody2$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBody2,
z.ZodTypeDef,
unknown
> = z.object({
expr: types.string(),
});
export function createIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBody2FromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBody2,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBody2$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBody2' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDescription$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDescription,
z.ZodTypeDef,
unknown
> = smartUnion([
z.lazy(() =>
CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBody2$inboundSchema
),
types.string(),
]);
export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDescriptionFromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDescription,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDescription$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDescription' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiFormattedValue$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiFormattedValue,
z.ZodTypeDef,
unknown
> = z.object({
expr: types.string(),
});
export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiFormattedValueFromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiFormattedValue,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiFormattedValue$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiFormattedValue' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectProperties6$inboundSchema: z.ZodType<
CreateIntegrationStoreDirectProperties6,
z.ZodTypeDef,
unknown
> = z.object({
type:
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyType$inboundSchema,
"ui:control":
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiControl$inboundSchema,
"ui:options": z.array(
z.lazy(() =>
CreateIntegrationStoreDirectPropertiesIntegrationsUiOptions$inboundSchema
),
),
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()),
default: types.optional(types.string()),
"ui:label": types.optional(types.string()),
"ui:read-only": types.optional(
smartUnion([
z.lazy(() =>
CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody1$inboundSchema
),
types.boolean(),
CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody3$inboundSchema,
]),
),
"ui:hidden": types.optional(
smartUnion([
z.lazy(() =>
CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody1$inboundSchema
),
types.boolean(),
CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody3$inboundSchema,
]),
),
"ui:disabled": types.optional(
smartUnion([
z.lazy(() =>
CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody1$inboundSchema
),
types.boolean(),
CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody3$inboundSchema,
]),
),
"ui:description": types.optional(
smartUnion([
z.lazy(() =>
CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBody2$inboundSchema
),
types.string(),
]),
),
"ui:formatted-value": types.optional(
z.lazy(() =>
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiFormattedValue$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 createIntegrationStoreDirectProperties6FromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectProperties6,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectProperties6$inboundSchema.parse(
JSON.parse(x),
),
`Failed to parse 'CreateIntegrationStoreDirectProperties6' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONType$inboundSchema:
z.ZodNativeEnum<
typeof CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONType
> = z.nativeEnum(
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONType,
);
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiControl$inboundSchema:
z.ZodNativeEnum<
typeof CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiControl
> = z.nativeEnum(
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiControl,
);
/** @internal */
export const CreateIntegrationStoreDirectDisabled3$inboundSchema:
z.ZodNativeEnum<typeof CreateIntegrationStoreDirectDisabled3> = z.nativeEnum(
CreateIntegrationStoreDirectDisabled3,
);
/** @internal */
export const CreateIntegrationStoreDirectDisabled1$inboundSchema: z.ZodType<
CreateIntegrationStoreDirectDisabled1,
z.ZodTypeDef,
unknown
> = z.object({
expr: types.string(),
});
export function createIntegrationStoreDirectDisabled1FromJSON(
jsonString: string,
): SafeParseResult<CreateIntegrationStoreDirectDisabled1, SDKValidationError> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectDisabled1$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectDisabled1' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesDisabled$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectPropertiesDisabled,
z.ZodTypeDef,
unknown
> = smartUnion([
z.lazy(() => CreateIntegrationStoreDirectDisabled1$inboundSchema),
types.boolean(),
CreateIntegrationStoreDirectDisabled3$inboundSchema,
]);
export function createIntegrationStoreDirectPropertiesDisabledFromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectPropertiesDisabled,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectPropertiesDisabled$inboundSchema.parse(
JSON.parse(x),
),
`Failed to parse 'CreateIntegrationStoreDirectPropertiesDisabled' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectHidden3$inboundSchema: z.ZodNativeEnum<
typeof CreateIntegrationStoreDirectHidden3
> = z.nativeEnum(CreateIntegrationStoreDirectHidden3);
/** @internal */
export const CreateIntegrationStoreDirectHidden1$inboundSchema: z.ZodType<
CreateIntegrationStoreDirectHidden1,
z.ZodTypeDef,
unknown
> = z.object({
expr: types.string(),
});
export function createIntegrationStoreDirectHidden1FromJSON(
jsonString: string,
): SafeParseResult<CreateIntegrationStoreDirectHidden1, SDKValidationError> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectHidden1$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectHidden1' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesHidden$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectPropertiesHidden,
z.ZodTypeDef,
unknown
> = smartUnion([
z.lazy(() => CreateIntegrationStoreDirectHidden1$inboundSchema),
types.boolean(),
CreateIntegrationStoreDirectHidden3$inboundSchema,
]);
export function createIntegrationStoreDirectPropertiesHiddenFromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectPropertiesHidden,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectPropertiesHidden$inboundSchema.parse(
JSON.parse(x),
),
`Failed to parse 'CreateIntegrationStoreDirectPropertiesHidden' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesUiOptions$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectPropertiesUiOptions,
z.ZodTypeDef,
unknown
> = z.object({
value: types.string(),
label: types.string(),
description: types.optional(types.string()),
disabled: types.optional(
smartUnion([
z.lazy(() => CreateIntegrationStoreDirectDisabled1$inboundSchema),
types.boolean(),
CreateIntegrationStoreDirectDisabled3$inboundSchema,
]),
),
hidden: types.optional(
smartUnion([
z.lazy(() => CreateIntegrationStoreDirectHidden1$inboundSchema),
types.boolean(),
CreateIntegrationStoreDirectHidden3$inboundSchema,
]),
),
});
export function createIntegrationStoreDirectPropertiesUiOptionsFromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectPropertiesUiOptions,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectPropertiesUiOptions$inboundSchema.parse(
JSON.parse(x),
),
`Failed to parse 'CreateIntegrationStoreDirectPropertiesUiOptions' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson3$inboundSchema:
z.ZodNativeEnum<
typeof CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson3
> = z.nativeEnum(
CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson3,
);
/** @internal */
export const CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson1$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson1,
z.ZodTypeDef,
unknown
> = z.object({
expr: types.string(),
});
export function createIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSON1FromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson1,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson1$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson1' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiReadOnly$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiReadOnly,
z.ZodTypeDef,
unknown
> = smartUnion([
z.lazy(() =>
CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson1$inboundSchema
),
types.boolean(),
CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson3$inboundSchema,
]);
export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiReadOnlyFromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiReadOnly,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiReadOnly$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiReadOnly' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson3$inboundSchema:
z.ZodNativeEnum<
typeof CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson3
> = z.nativeEnum(
CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson3,
);
/** @internal */
export const CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson1$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson1,
z.ZodTypeDef,
unknown
> = z.object({
expr: types.string(),
});
export function createIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSON1FromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson1,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson1$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson1' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiHidden$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiHidden,
z.ZodTypeDef,
unknown
> = smartUnion([
z.lazy(() =>
CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson1$inboundSchema
),
types.boolean(),
CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson3$inboundSchema,
]);
export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiHiddenFromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiHidden,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiHidden$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiHidden' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson3$inboundSchema:
z.ZodNativeEnum<
typeof CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson3
> = z.nativeEnum(
CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson3,
);
/** @internal */
export const CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson1$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson1,
z.ZodTypeDef,
unknown
> = z.object({
expr: types.string(),
});
export function createIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSON1FromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson1,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson1$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson1' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDisabled$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDisabled,
z.ZodTypeDef,
unknown
> = smartUnion([
z.lazy(() =>
CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson1$inboundSchema
),
types.boolean(),
CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson3$inboundSchema,
]);
export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDisabledFromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDisabled,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDisabled$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDisabled' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJson2$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJson2,
z.ZodTypeDef,
unknown
> = z.object({
expr: types.string(),
});
export function createIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSON2FromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJson2,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJson2$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJson2' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDescription$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDescription,
z.ZodTypeDef,
unknown
> = smartUnion([
z.lazy(() =>
CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJson2$inboundSchema
),
types.string(),
]);
export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDescriptionFromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDescription,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDescription$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDescription' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiFormattedValue$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiFormattedValue,
z.ZodTypeDef,
unknown
> = z.object({
expr: types.string(),
});
export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiFormattedValueFromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiFormattedValue,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiFormattedValue$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiFormattedValue' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectProperties5$inboundSchema: z.ZodType<
CreateIntegrationStoreDirectProperties5,
z.ZodTypeDef,
unknown
> = z.object({
type:
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONType$inboundSchema,
"ui:control":
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiControl$inboundSchema,
"ui:options": z.array(
z.lazy(() => CreateIntegrationStoreDirectPropertiesUiOptions$inboundSchema),
),
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()),
default: types.optional(types.string()),
"ui:label": types.optional(types.string()),
"ui:read-only": types.optional(
smartUnion([
z.lazy(() =>
CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson1$inboundSchema
),
types.boolean(),
CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson3$inboundSchema,
]),
),
"ui:hidden": types.optional(
smartUnion([
z.lazy(() =>
CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson1$inboundSchema
),
types.boolean(),
CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson3$inboundSchema,
]),
),
"ui:disabled": types.optional(
smartUnion([
z.lazy(() =>
CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson1$inboundSchema
),
types.boolean(),
CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson3$inboundSchema,
]),
),
"ui:description": types.optional(
smartUnion([
z.lazy(() =>
CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJson2$inboundSchema
),
types.string(),
]),
),
"ui:formatted-value": types.optional(
z.lazy(() =>
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiFormattedValue$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 createIntegrationStoreDirectProperties5FromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectProperties5,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectProperties5$inboundSchema.parse(
JSON.parse(x),
),
`Failed to parse 'CreateIntegrationStoreDirectProperties5' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200Type$inboundSchema:
z.ZodNativeEnum<
typeof CreateIntegrationStoreDirectPropertiesIntegrationsResponse200Type
> = z.nativeEnum(
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200Type,
);
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema4Type$inboundSchema:
z.ZodNativeEnum<
typeof CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema4Type
> = z.nativeEnum(
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema4Type,
);
/** @internal */
export const CreateIntegrationStoreDirectPropertiesItems$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectPropertiesItems,
z.ZodTypeDef,
unknown
> = z.object({
type:
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema4Type$inboundSchema,
description: types.optional(types.string()),
minimum: types.optional(types.number()),
exclusiveMinimum: types.optional(types.number()),
maximum: types.optional(types.number()),
exclusiveMaximum: types.optional(types.number()),
default: types.optional(types.number()),
});
export function createIntegrationStoreDirectPropertiesItemsFromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectPropertiesItems,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectPropertiesItems$inboundSchema.parse(
JSON.parse(x),
),
`Failed to parse 'CreateIntegrationStoreDirectPropertiesItems' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiControl$inboundSchema:
z.ZodNativeEnum<
typeof CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiControl
> = z.nativeEnum(
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiControl,
);
/** @internal */
export const CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2003$inboundSchema:
z.ZodNativeEnum<
typeof CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2003
> = z.nativeEnum(
CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2003,
);
/** @internal */
export const CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2001$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2001,
z.ZodTypeDef,
unknown
> = z.object({
expr: types.string(),
});
export function createIntegrationStoreDirectUiReadOnlyIntegrationsResponse2001FromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2001,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2001$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2001' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiReadOnly$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiReadOnly,
z.ZodTypeDef,
unknown
> = smartUnion([
z.lazy(() =>
CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2001$inboundSchema
),
types.boolean(),
CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2003$inboundSchema,
]);
export function createIntegrationStoreDirectPropertiesIntegrationsResponse200UiReadOnlyFromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiReadOnly,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiReadOnly$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiReadOnly' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2003$inboundSchema:
z.ZodNativeEnum<
typeof CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2003
> = z.nativeEnum(
CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2003,
);
/** @internal */
export const CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2001$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2001,
z.ZodTypeDef,
unknown
> = z.object({
expr: types.string(),
});
export function createIntegrationStoreDirectUiHiddenIntegrationsResponse2001FromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2001,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2001$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2001' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiHidden$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiHidden,
z.ZodTypeDef,
unknown
> = smartUnion([
z.lazy(() =>
CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2001$inboundSchema
),
types.boolean(),
CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2003$inboundSchema,
]);
export function createIntegrationStoreDirectPropertiesIntegrationsResponse200UiHiddenFromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiHidden,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiHidden$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiHidden' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2003$inboundSchema:
z.ZodNativeEnum<
typeof CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2003
> = z.nativeEnum(
CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2003,
);
/** @internal */
export const CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2001$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2001,
z.ZodTypeDef,
unknown
> = z.object({
expr: types.string(),
});
export function createIntegrationStoreDirectUiDisabledIntegrationsResponse2001FromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2001,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2001$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2001' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiDisabled$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiDisabled,
z.ZodTypeDef,
unknown
> = smartUnion([
z.lazy(() =>
CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2001$inboundSchema
),
types.boolean(),
CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2003$inboundSchema,
]);
export function createIntegrationStoreDirectPropertiesIntegrationsResponse200UiDisabledFromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiDisabled,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiDisabled$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiDisabled' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2002$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2002,
z.ZodTypeDef,
unknown
> = z.object({
expr: types.string(),
});
export function createIntegrationStoreDirectUiDescriptionIntegrationsResponse2002FromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2002,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2002$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2002' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiDescription$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiDescription,
z.ZodTypeDef,
unknown
> = smartUnion([
z.lazy(() =>
CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2002$inboundSchema
),
types.string(),
]);
export function createIntegrationStoreDirectPropertiesIntegrationsResponse200UiDescriptionFromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiDescription,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiDescription$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiDescription' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiFormattedValue$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiFormattedValue,
z.ZodTypeDef,
unknown
> = z.object({
expr: types.string(),
});
export function createIntegrationStoreDirectPropertiesIntegrationsResponse200UiFormattedValueFromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiFormattedValue,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiFormattedValue$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiFormattedValue' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectProperties4$inboundSchema: z.ZodType<
CreateIntegrationStoreDirectProperties4,
z.ZodTypeDef,
unknown
> = z.object({
type:
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200Type$inboundSchema,
items: z.lazy(() =>
CreateIntegrationStoreDirectPropertiesItems$inboundSchema
),
"ui:control":
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiControl$inboundSchema,
"ui:steps": z.array(types.number()),
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(() =>
CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2001$inboundSchema
),
types.boolean(),
CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2003$inboundSchema,
]),
),
"ui:hidden": types.optional(
smartUnion([
z.lazy(() =>
CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2001$inboundSchema
),
types.boolean(),
CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2003$inboundSchema,
]),
),
"ui:disabled": types.optional(
smartUnion([
z.lazy(() =>
CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2001$inboundSchema
),
types.boolean(),
CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2003$inboundSchema,
]),
),
"ui:description": types.optional(
smartUnion([
z.lazy(() =>
CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2002$inboundSchema
),
types.string(),
]),
),
"ui:formatted-value": types.optional(
z.lazy(() =>
CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiFormattedValue$inboundSchema
),
),
"ui:paid-only": types.optional(types.boolean()),
default: types.optional(z.array(types.number())),
}).transform((v) => {
return remap$(v, {
"ui:control": "uiControl",
"ui:steps": "uiSteps",
"ui:label": "uiLabel",
"ui:read-only": "uiReadOnly",
"ui:hidden": "uiHidden",
"ui:disabled": "uiDisabled",
"ui:description": "uiDescription",
"ui:formatted-value": "uiFormattedValue",
"ui:paid-only": "uiPaidOnly",
});
});
export function createIntegrationStoreDirectProperties4FromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectProperties4,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectProperties4$inboundSchema.parse(
JSON.parse(x),
),
`Failed to parse 'CreateIntegrationStoreDirectProperties4' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponseType$inboundSchema:
z.ZodNativeEnum<
typeof CreateIntegrationStoreDirectPropertiesIntegrationsResponseType
> = z.nativeEnum(
CreateIntegrationStoreDirectPropertiesIntegrationsResponseType,
);
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiControl$inboundSchema:
z.ZodNativeEnum<
typeof CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiControl
> = z.nativeEnum(
CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiControl,
);
/** @internal */
export const CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse3$inboundSchema:
z.ZodNativeEnum<
typeof CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse3
> = z.nativeEnum(CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse3);
/** @internal */
export const CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse1$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse1,
z.ZodTypeDef,
unknown
> = z.object({
expr: types.string(),
});
export function createIntegrationStoreDirectUiReadOnlyIntegrationsResponse1FromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse1,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse1$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse1' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiReadOnly$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiReadOnly,
z.ZodTypeDef,
unknown
> = smartUnion([
z.lazy(() =>
CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse1$inboundSchema
),
types.boolean(),
CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse3$inboundSchema,
]);
export function createIntegrationStoreDirectPropertiesIntegrationsResponseUiReadOnlyFromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiReadOnly,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiReadOnly$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiReadOnly' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectUiHiddenIntegrationsResponse3$inboundSchema:
z.ZodNativeEnum<
typeof CreateIntegrationStoreDirectUiHiddenIntegrationsResponse3
> = z.nativeEnum(CreateIntegrationStoreDirectUiHiddenIntegrationsResponse3);
/** @internal */
export const CreateIntegrationStoreDirectUiHiddenIntegrationsResponse1$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectUiHiddenIntegrationsResponse1,
z.ZodTypeDef,
unknown
> = z.object({
expr: types.string(),
});
export function createIntegrationStoreDirectUiHiddenIntegrationsResponse1FromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectUiHiddenIntegrationsResponse1,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectUiHiddenIntegrationsResponse1$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectUiHiddenIntegrationsResponse1' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiHidden$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiHidden,
z.ZodTypeDef,
unknown
> = smartUnion([
z.lazy(() =>
CreateIntegrationStoreDirectUiHiddenIntegrationsResponse1$inboundSchema
),
types.boolean(),
CreateIntegrationStoreDirectUiHiddenIntegrationsResponse3$inboundSchema,
]);
export function createIntegrationStoreDirectPropertiesIntegrationsResponseUiHiddenFromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiHidden,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiHidden$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiHidden' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectUiDisabledIntegrationsResponse3$inboundSchema:
z.ZodNativeEnum<
typeof CreateIntegrationStoreDirectUiDisabledIntegrationsResponse3
> = z.nativeEnum(CreateIntegrationStoreDirectUiDisabledIntegrationsResponse3);
/** @internal */
export const CreateIntegrationStoreDirectUiDisabledIntegrationsResponse1$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectUiDisabledIntegrationsResponse1,
z.ZodTypeDef,
unknown
> = z.object({
expr: types.string(),
});
export function createIntegrationStoreDirectUiDisabledIntegrationsResponse1FromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectUiDisabledIntegrationsResponse1,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectUiDisabledIntegrationsResponse1$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectUiDisabledIntegrationsResponse1' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiDisabled$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiDisabled,
z.ZodTypeDef,
unknown
> = smartUnion([
z.lazy(() =>
CreateIntegrationStoreDirectUiDisabledIntegrationsResponse1$inboundSchema
),
types.boolean(),
CreateIntegrationStoreDirectUiDisabledIntegrationsResponse3$inboundSchema,
]);
export function createIntegrationStoreDirectPropertiesIntegrationsResponseUiDisabledFromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiDisabled,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiDisabled$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiDisabled' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2,
z.ZodTypeDef,
unknown
> = z.object({
expr: types.string(),
});
export function createIntegrationStoreDirectUiDescriptionIntegrationsResponse2FromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiDescription$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiDescription,
z.ZodTypeDef,
unknown
> = smartUnion([
z.lazy(() =>
CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2$inboundSchema
),
types.string(),
]);
export function createIntegrationStoreDirectPropertiesIntegrationsResponseUiDescriptionFromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiDescription,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiDescription$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiDescription' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiFormattedValue$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiFormattedValue,
z.ZodTypeDef,
unknown
> = z.object({
expr: types.string(),
});
export function createIntegrationStoreDirectPropertiesIntegrationsResponseUiFormattedValueFromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiFormattedValue,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiFormattedValue$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiFormattedValue' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectProperties3$inboundSchema: z.ZodType<
CreateIntegrationStoreDirectProperties3,
z.ZodTypeDef,
unknown
> = z.object({
type:
CreateIntegrationStoreDirectPropertiesIntegrationsResponseType$inboundSchema,
"ui:control":
CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiControl$inboundSchema,
description: types.optional(types.string()),
default: types.optional(types.boolean()),
"ui:label": types.optional(types.string()),
"ui:read-only": types.optional(
smartUnion([
z.lazy(() =>
CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse1$inboundSchema
),
types.boolean(),
CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse3$inboundSchema,
]),
),
"ui:hidden": types.optional(
smartUnion([
z.lazy(() =>
CreateIntegrationStoreDirectUiHiddenIntegrationsResponse1$inboundSchema
),
types.boolean(),
CreateIntegrationStoreDirectUiHiddenIntegrationsResponse3$inboundSchema,
]),
),
"ui:disabled": types.optional(
smartUnion([
z.lazy(() =>
CreateIntegrationStoreDirectUiDisabledIntegrationsResponse1$inboundSchema
),
types.boolean(),
CreateIntegrationStoreDirectUiDisabledIntegrationsResponse3$inboundSchema,
]),
),
"ui:description": types.optional(
smartUnion([
z.lazy(() =>
CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2$inboundSchema
),
types.string(),
]),
),
"ui:formatted-value": types.optional(
z.lazy(() =>
CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiFormattedValue$inboundSchema
),
),
"ui:paid-only": types.optional(types.boolean()),
}).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",
});
});
export function createIntegrationStoreDirectProperties3FromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectProperties3,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectProperties3$inboundSchema.parse(
JSON.parse(x),
),
`Failed to parse 'CreateIntegrationStoreDirectProperties3' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsType$inboundSchema:
z.ZodNativeEnum<
typeof CreateIntegrationStoreDirectPropertiesIntegrationsType
> = z.nativeEnum(CreateIntegrationStoreDirectPropertiesIntegrationsType);
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsUiControl$inboundSchema:
z.ZodNativeEnum<
typeof CreateIntegrationStoreDirectPropertiesIntegrationsUiControl
> = z.nativeEnum(CreateIntegrationStoreDirectPropertiesIntegrationsUiControl);
/** @internal */
export const CreateIntegrationStoreDirectUiReadOnlyIntegrations3$inboundSchema:
z.ZodNativeEnum<typeof CreateIntegrationStoreDirectUiReadOnlyIntegrations3> =
z.nativeEnum(CreateIntegrationStoreDirectUiReadOnlyIntegrations3);
/** @internal */
export const CreateIntegrationStoreDirectUiReadOnlyIntegrations1$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectUiReadOnlyIntegrations1,
z.ZodTypeDef,
unknown
> = z.object({
expr: types.string(),
});
export function createIntegrationStoreDirectUiReadOnlyIntegrations1FromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectUiReadOnlyIntegrations1,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectUiReadOnlyIntegrations1$inboundSchema.parse(
JSON.parse(x),
),
`Failed to parse 'CreateIntegrationStoreDirectUiReadOnlyIntegrations1' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsUiReadOnly$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectPropertiesIntegrationsUiReadOnly,
z.ZodTypeDef,
unknown
> = smartUnion([
z.lazy(() =>
CreateIntegrationStoreDirectUiReadOnlyIntegrations1$inboundSchema
),
types.boolean(),
CreateIntegrationStoreDirectUiReadOnlyIntegrations3$inboundSchema,
]);
export function createIntegrationStoreDirectPropertiesIntegrationsUiReadOnlyFromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectPropertiesIntegrationsUiReadOnly,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectPropertiesIntegrationsUiReadOnly$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsUiReadOnly' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectUiHiddenIntegrations3$inboundSchema:
z.ZodNativeEnum<typeof CreateIntegrationStoreDirectUiHiddenIntegrations3> = z
.nativeEnum(CreateIntegrationStoreDirectUiHiddenIntegrations3);
/** @internal */
export const CreateIntegrationStoreDirectUiHiddenIntegrations1$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectUiHiddenIntegrations1,
z.ZodTypeDef,
unknown
> = z.object({
expr: types.string(),
});
export function createIntegrationStoreDirectUiHiddenIntegrations1FromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectUiHiddenIntegrations1,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectUiHiddenIntegrations1$inboundSchema.parse(
JSON.parse(x),
),
`Failed to parse 'CreateIntegrationStoreDirectUiHiddenIntegrations1' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsUiHidden$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectPropertiesIntegrationsUiHidden,
z.ZodTypeDef,
unknown
> = smartUnion([
z.lazy(() =>
CreateIntegrationStoreDirectUiHiddenIntegrations1$inboundSchema
),
types.boolean(),
CreateIntegrationStoreDirectUiHiddenIntegrations3$inboundSchema,
]);
export function createIntegrationStoreDirectPropertiesIntegrationsUiHiddenFromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectPropertiesIntegrationsUiHidden,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectPropertiesIntegrationsUiHidden$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsUiHidden' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectUiDisabledIntegrations3$inboundSchema:
z.ZodNativeEnum<typeof CreateIntegrationStoreDirectUiDisabledIntegrations3> =
z.nativeEnum(CreateIntegrationStoreDirectUiDisabledIntegrations3);
/** @internal */
export const CreateIntegrationStoreDirectUiDisabledIntegrations1$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectUiDisabledIntegrations1,
z.ZodTypeDef,
unknown
> = z.object({
expr: types.string(),
});
export function createIntegrationStoreDirectUiDisabledIntegrations1FromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectUiDisabledIntegrations1,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectUiDisabledIntegrations1$inboundSchema.parse(
JSON.parse(x),
),
`Failed to parse 'CreateIntegrationStoreDirectUiDisabledIntegrations1' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsUiDisabled$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectPropertiesIntegrationsUiDisabled,
z.ZodTypeDef,
unknown
> = smartUnion([
z.lazy(() =>
CreateIntegrationStoreDirectUiDisabledIntegrations1$inboundSchema
),
types.boolean(),
CreateIntegrationStoreDirectUiDisabledIntegrations3$inboundSchema,
]);
export function createIntegrationStoreDirectPropertiesIntegrationsUiDisabledFromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectPropertiesIntegrationsUiDisabled,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectPropertiesIntegrationsUiDisabled$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsUiDisabled' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectUiDescriptionIntegrations2$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectUiDescriptionIntegrations2,
z.ZodTypeDef,
unknown
> = z.object({
expr: types.string(),
});
export function createIntegrationStoreDirectUiDescriptionIntegrations2FromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectUiDescriptionIntegrations2,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectUiDescriptionIntegrations2$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectUiDescriptionIntegrations2' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsUiDescription$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectPropertiesIntegrationsUiDescription,
z.ZodTypeDef,
unknown
> = smartUnion([
z.lazy(() =>
CreateIntegrationStoreDirectUiDescriptionIntegrations2$inboundSchema
),
types.string(),
]);
export function createIntegrationStoreDirectPropertiesIntegrationsUiDescriptionFromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectPropertiesIntegrationsUiDescription,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectPropertiesIntegrationsUiDescription$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsUiDescription' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesIntegrationsUiFormattedValue$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectPropertiesIntegrationsUiFormattedValue,
z.ZodTypeDef,
unknown
> = z.object({
expr: types.string(),
});
export function createIntegrationStoreDirectPropertiesIntegrationsUiFormattedValueFromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectPropertiesIntegrationsUiFormattedValue,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectPropertiesIntegrationsUiFormattedValue$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsUiFormattedValue' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectProperties2$inboundSchema: z.ZodType<
CreateIntegrationStoreDirectProperties2,
z.ZodTypeDef,
unknown
> = z.object({
type: CreateIntegrationStoreDirectPropertiesIntegrationsType$inboundSchema,
"ui:control":
CreateIntegrationStoreDirectPropertiesIntegrationsUiControl$inboundSchema,
maximum: types.optional(types.number()),
exclusiveMaximum: types.optional(types.number()),
minimum: types.optional(types.number()),
exclusiveMinimum: types.optional(types.number()),
description: types.optional(types.string()),
default: types.optional(types.number()),
"ui:label": types.optional(types.string()),
"ui:read-only": types.optional(
smartUnion([
z.lazy(() =>
CreateIntegrationStoreDirectUiReadOnlyIntegrations1$inboundSchema
),
types.boolean(),
CreateIntegrationStoreDirectUiReadOnlyIntegrations3$inboundSchema,
]),
),
"ui:hidden": types.optional(
smartUnion([
z.lazy(() =>
CreateIntegrationStoreDirectUiHiddenIntegrations1$inboundSchema
),
types.boolean(),
CreateIntegrationStoreDirectUiHiddenIntegrations3$inboundSchema,
]),
),
"ui:disabled": types.optional(
smartUnion([
z.lazy(() =>
CreateIntegrationStoreDirectUiDisabledIntegrations1$inboundSchema
),
types.boolean(),
CreateIntegrationStoreDirectUiDisabledIntegrations3$inboundSchema,
]),
),
"ui:description": types.optional(
smartUnion([
z.lazy(() =>
CreateIntegrationStoreDirectUiDescriptionIntegrations2$inboundSchema
),
types.string(),
]),
),
"ui:formatted-value": types.optional(
z.lazy(() =>
CreateIntegrationStoreDirectPropertiesIntegrationsUiFormattedValue$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 createIntegrationStoreDirectProperties2FromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectProperties2,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectProperties2$inboundSchema.parse(
JSON.parse(x),
),
`Failed to parse 'CreateIntegrationStoreDirectProperties2' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesType$inboundSchema:
z.ZodNativeEnum<typeof CreateIntegrationStoreDirectPropertiesType> = z
.nativeEnum(CreateIntegrationStoreDirectPropertiesType);
/** @internal */
export const CreateIntegrationStoreDirectPropertiesUiControl$inboundSchema:
z.ZodNativeEnum<typeof CreateIntegrationStoreDirectPropertiesUiControl> = z
.nativeEnum(CreateIntegrationStoreDirectPropertiesUiControl);
/** @internal */
export const CreateIntegrationStoreDirectUiReadOnly3$inboundSchema:
z.ZodNativeEnum<typeof CreateIntegrationStoreDirectUiReadOnly3> = z
.nativeEnum(CreateIntegrationStoreDirectUiReadOnly3);
/** @internal */
export const CreateIntegrationStoreDirectUiReadOnly1$inboundSchema: z.ZodType<
CreateIntegrationStoreDirectUiReadOnly1,
z.ZodTypeDef,
unknown
> = z.object({
expr: types.string(),
});
export function createIntegrationStoreDirectUiReadOnly1FromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectUiReadOnly1,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectUiReadOnly1$inboundSchema.parse(
JSON.parse(x),
),
`Failed to parse 'CreateIntegrationStoreDirectUiReadOnly1' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesUiReadOnly$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectPropertiesUiReadOnly,
z.ZodTypeDef,
unknown
> = smartUnion([
z.lazy(() => CreateIntegrationStoreDirectUiReadOnly1$inboundSchema),
types.boolean(),
CreateIntegrationStoreDirectUiReadOnly3$inboundSchema,
]);
export function createIntegrationStoreDirectPropertiesUiReadOnlyFromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectPropertiesUiReadOnly,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectPropertiesUiReadOnly$inboundSchema.parse(
JSON.parse(x),
),
`Failed to parse 'CreateIntegrationStoreDirectPropertiesUiReadOnly' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectUiHidden3$inboundSchema:
z.ZodNativeEnum<typeof CreateIntegrationStoreDirectUiHidden3> = z.nativeEnum(
CreateIntegrationStoreDirectUiHidden3,
);
/** @internal */
export const CreateIntegrationStoreDirectUiHidden1$inboundSchema: z.ZodType<
CreateIntegrationStoreDirectUiHidden1,
z.ZodTypeDef,
unknown
> = z.object({
expr: types.string(),
});
export function createIntegrationStoreDirectUiHidden1FromJSON(
jsonString: string,
): SafeParseResult<CreateIntegrationStoreDirectUiHidden1, SDKValidationError> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectUiHidden1$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectUiHidden1' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesUiHidden$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectPropertiesUiHidden,
z.ZodTypeDef,
unknown
> = smartUnion([
z.lazy(() => CreateIntegrationStoreDirectUiHidden1$inboundSchema),
types.boolean(),
CreateIntegrationStoreDirectUiHidden3$inboundSchema,
]);
export function createIntegrationStoreDirectPropertiesUiHiddenFromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectPropertiesUiHidden,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectPropertiesUiHidden$inboundSchema.parse(
JSON.parse(x),
),
`Failed to parse 'CreateIntegrationStoreDirectPropertiesUiHidden' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectUiDisabled3$inboundSchema:
z.ZodNativeEnum<typeof CreateIntegrationStoreDirectUiDisabled3> = z
.nativeEnum(CreateIntegrationStoreDirectUiDisabled3);
/** @internal */
export const CreateIntegrationStoreDirectUiDisabled1$inboundSchema: z.ZodType<
CreateIntegrationStoreDirectUiDisabled1,
z.ZodTypeDef,
unknown
> = z.object({
expr: types.string(),
});
export function createIntegrationStoreDirectUiDisabled1FromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectUiDisabled1,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectUiDisabled1$inboundSchema.parse(
JSON.parse(x),
),
`Failed to parse 'CreateIntegrationStoreDirectUiDisabled1' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesUiDisabled$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectPropertiesUiDisabled,
z.ZodTypeDef,
unknown
> = smartUnion([
z.lazy(() => CreateIntegrationStoreDirectUiDisabled1$inboundSchema),
types.boolean(),
CreateIntegrationStoreDirectUiDisabled3$inboundSchema,
]);
export function createIntegrationStoreDirectPropertiesUiDisabledFromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectPropertiesUiDisabled,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectPropertiesUiDisabled$inboundSchema.parse(
JSON.parse(x),
),
`Failed to parse 'CreateIntegrationStoreDirectPropertiesUiDisabled' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectUiDescription2$inboundSchema:
z.ZodType<CreateIntegrationStoreDirectUiDescription2, z.ZodTypeDef, unknown> =
z.object({
expr: types.string(),
});
export function createIntegrationStoreDirectUiDescription2FromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectUiDescription2,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectUiDescription2$inboundSchema.parse(
JSON.parse(x),
),
`Failed to parse 'CreateIntegrationStoreDirectUiDescription2' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesUiDescription$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectPropertiesUiDescription,
z.ZodTypeDef,
unknown
> = smartUnion([
z.lazy(() => CreateIntegrationStoreDirectUiDescription2$inboundSchema),
types.string(),
]);
export function createIntegrationStoreDirectPropertiesUiDescriptionFromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectPropertiesUiDescription,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectPropertiesUiDescription$inboundSchema.parse(
JSON.parse(x),
),
`Failed to parse 'CreateIntegrationStoreDirectPropertiesUiDescription' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectPropertiesUiFormattedValue$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectPropertiesUiFormattedValue,
z.ZodTypeDef,
unknown
> = z.object({
expr: types.string(),
});
export function createIntegrationStoreDirectPropertiesUiFormattedValueFromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectPropertiesUiFormattedValue,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectPropertiesUiFormattedValue$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectPropertiesUiFormattedValue' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectProperties1$inboundSchema: z.ZodType<
CreateIntegrationStoreDirectProperties1,
z.ZodTypeDef,
unknown
> = z.object({
type: CreateIntegrationStoreDirectPropertiesType$inboundSchema,
"ui:control": CreateIntegrationStoreDirectPropertiesUiControl$inboundSchema,
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()),
default: types.optional(types.string()),
"ui:label": types.optional(types.string()),
"ui:read-only": types.optional(
smartUnion([
z.lazy(() => CreateIntegrationStoreDirectUiReadOnly1$inboundSchema),
types.boolean(),
CreateIntegrationStoreDirectUiReadOnly3$inboundSchema,
]),
),
"ui:hidden": types.optional(
smartUnion([
z.lazy(() => CreateIntegrationStoreDirectUiHidden1$inboundSchema),
types.boolean(),
CreateIntegrationStoreDirectUiHidden3$inboundSchema,
]),
),
"ui:disabled": types.optional(
smartUnion([
z.lazy(() => CreateIntegrationStoreDirectUiDisabled1$inboundSchema),
types.boolean(),
CreateIntegrationStoreDirectUiDisabled3$inboundSchema,
]),
),
"ui:description": types.optional(
smartUnion([
z.lazy(() => CreateIntegrationStoreDirectUiDescription2$inboundSchema),
types.string(),
]),
),
"ui:formatted-value": types.optional(
z.lazy(() =>
CreateIntegrationStoreDirectPropertiesUiFormattedValue$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 createIntegrationStoreDirectProperties1FromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectProperties1,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectProperties1$inboundSchema.parse(
JSON.parse(x),
),
`Failed to parse 'CreateIntegrationStoreDirectProperties1' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectProperties$inboundSchema: z.ZodType<
CreateIntegrationStoreDirectProperties,
z.ZodTypeDef,
unknown
> = smartUnion([
z.lazy(() => CreateIntegrationStoreDirectProperties4$inboundSchema),
z.lazy(() => CreateIntegrationStoreDirectProperties7$inboundSchema),
CreateIntegrationStoreDirectProperties9$inboundSchema,
z.lazy(() => CreateIntegrationStoreDirectProperties5$inboundSchema),
z.lazy(() => CreateIntegrationStoreDirectProperties6$inboundSchema),
CreateIntegrationStoreDirectProperties8$inboundSchema,
CreateIntegrationStoreDirectProperties10$inboundSchema,
z.lazy(() => CreateIntegrationStoreDirectProperties1$inboundSchema),
z.lazy(() => CreateIntegrationStoreDirectProperties2$inboundSchema),
z.lazy(() => CreateIntegrationStoreDirectProperties3$inboundSchema),
CreateIntegrationStoreDirectProperties11$inboundSchema,
CreateIntegrationStoreDirectProperties12$inboundSchema,
]);
export function createIntegrationStoreDirectPropertiesFromJSON(
jsonString: string,
): SafeParseResult<CreateIntegrationStoreDirectProperties, SDKValidationError> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectProperties$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectProperties' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectMetadataSchema$inboundSchema:
z.ZodType<CreateIntegrationStoreDirectMetadataSchema, z.ZodTypeDef, unknown> =
z.object({
type: CreateIntegrationStoreDirectIntegrationsType$inboundSchema,
properties: z.record(
smartUnion([
z.lazy(() => CreateIntegrationStoreDirectProperties4$inboundSchema),
z.lazy(() => CreateIntegrationStoreDirectProperties7$inboundSchema),
CreateIntegrationStoreDirectProperties9$inboundSchema,
z.lazy(() => CreateIntegrationStoreDirectProperties5$inboundSchema),
z.lazy(() =>
CreateIntegrationStoreDirectProperties6$inboundSchema
),
CreateIntegrationStoreDirectProperties8$inboundSchema,
CreateIntegrationStoreDirectProperties10$inboundSchema,
z.lazy(() => CreateIntegrationStoreDirectProperties1$inboundSchema),
z.lazy(() => CreateIntegrationStoreDirectProperties2$inboundSchema),
z.lazy(() => CreateIntegrationStoreDirectProperties3$inboundSchema),
CreateIntegrationStoreDirectProperties11$inboundSchema,
CreateIntegrationStoreDirectProperties12$inboundSchema,
]),
),
required: types.optional(z.array(types.string())),
"ui:order": types.optional(z.array(types.string())),
}).transform((v) => {
return remap$(v, {
"ui:order": "uiOrder",
});
});
export function createIntegrationStoreDirectMetadataSchemaFromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectMetadataSchema,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectMetadataSchema$inboundSchema.parse(
JSON.parse(x),
),
`Failed to parse 'CreateIntegrationStoreDirectMetadataSchema' from JSON`,
);
}
/** @internal */
export const ResourceLinks$inboundSchema: z.ZodType<
ResourceLinks,
z.ZodTypeDef,
unknown
> = z.object({
href: types.string(),
title: types.string(),
});
export function resourceLinksFromJSON(
jsonString: string,
): SafeParseResult<ResourceLinks, SDKValidationError> {
return safeParse(
jsonString,
(x) => ResourceLinks$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'ResourceLinks' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectTags$inboundSchema: z.ZodNativeEnum<
typeof CreateIntegrationStoreDirectTags
> = z.nativeEnum(CreateIntegrationStoreDirectTags);
/** @internal */
export const ProjectConnectionScopes$inboundSchema: z.ZodNativeEnum<
typeof ProjectConnectionScopes
> = z.nativeEnum(ProjectConnectionScopes);
/** @internal */
export const Repl$inboundSchema: z.ZodType<Repl, z.ZodTypeDef, unknown> = z
.object({
enabled: types.boolean(),
supportsReadOnlyMode: types.boolean(),
welcomeMessage: types.optional(types.string()),
});
export function replFromJSON(
jsonString: string,
): SafeParseResult<Repl, SDKValidationError> {
return safeParse(
jsonString,
(x) => Repl$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'Repl' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectIntegrationsResponseType$inboundSchema:
z.ZodNativeEnum<typeof CreateIntegrationStoreDirectIntegrationsResponseType> =
z.nativeEnum(CreateIntegrationStoreDirectIntegrationsResponseType);
/** @internal */
export const CreateIntegrationStoreDirectIntegrationsActions$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectIntegrationsActions,
z.ZodTypeDef,
unknown
> = z.object({
type: CreateIntegrationStoreDirectIntegrationsResponseType$inboundSchema,
});
export function createIntegrationStoreDirectIntegrationsActionsFromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectIntegrationsActions,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectIntegrationsActions$inboundSchema.parse(
JSON.parse(x),
),
`Failed to parse 'CreateIntegrationStoreDirectIntegrationsActions' from JSON`,
);
}
/** @internal */
export const Steps$inboundSchema: z.ZodType<Steps, z.ZodTypeDef, unknown> = z
.object({
title: types.string(),
content: types.string(),
actions: types.optional(
z.array(z.lazy(() =>
CreateIntegrationStoreDirectIntegrationsActions$inboundSchema
)),
),
});
export function stepsFromJSON(
jsonString: string,
): SafeParseResult<Steps, SDKValidationError> {
return safeParse(
jsonString,
(x) => Steps$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'Steps' from JSON`,
);
}
/** @internal */
export const Guides$inboundSchema: z.ZodType<Guides, z.ZodTypeDef, unknown> = z
.object({
framework: types.string(),
title: types.string(),
steps: z.array(z.lazy(() => Steps$inboundSchema)),
});
export function guidesFromJSON(
jsonString: string,
): SafeParseResult<Guides, SDKValidationError> {
return safeParse(
jsonString,
(x) => Guides$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'Guides' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectSecretRotationIntegrations1$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectSecretRotationIntegrations1,
z.ZodTypeDef,
unknown
> = z.object({
maxDelayHours: types.number(),
});
export function createIntegrationStoreDirectSecretRotationIntegrations1FromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectSecretRotationIntegrations1,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectSecretRotationIntegrations1$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectSecretRotationIntegrations1' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectIntegrationsSecretRotation$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectIntegrationsSecretRotation,
z.ZodTypeDef,
unknown
> = smartUnion([
z.lazy(() =>
CreateIntegrationStoreDirectSecretRotationIntegrations1$inboundSchema
),
types.boolean(),
]);
export function createIntegrationStoreDirectIntegrationsSecretRotationFromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectIntegrationsSecretRotation,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectIntegrationsSecretRotation$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'CreateIntegrationStoreDirectIntegrationsSecretRotation' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectIntegrationsCapabilities$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectIntegrationsCapabilities,
z.ZodTypeDef,
unknown
> = z.object({
provisioning: types.optional(types.boolean()),
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()),
templateCloneOnly: types.optional(types.boolean()),
checks: types.optional(types.boolean()),
connectedProvisioning: types.optional(types.boolean()),
secretRotation: types.optional(
smartUnion([
z.lazy(() =>
CreateIntegrationStoreDirectSecretRotationIntegrations1$inboundSchema
),
types.boolean(),
]),
),
importResource: types.optional(types.boolean()),
connectedImportResource: types.optional(types.boolean()),
nativeImportResource: types.optional(types.boolean()),
requiresBrowserInstall: types.optional(types.boolean()),
v0Flavors: types.optional(types.boolean()),
flexCommitEligible: types.optional(types.boolean()),
updateConfiguration: types.optional(types.boolean()),
maxAllowedTeams: types.optional(types.number()),
});
export function createIntegrationStoreDirectIntegrationsCapabilitiesFromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectIntegrationsCapabilities,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectIntegrationsCapabilities$inboundSchema.parse(
JSON.parse(x),
),
`Failed to parse 'CreateIntegrationStoreDirectIntegrationsCapabilities' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectIntegration$inboundSchema: z.ZodType<
CreateIntegrationStoreDirectIntegration,
z.ZodTypeDef,
unknown
> = z.object({
id: types.string(),
name: types.string(),
slug: types.string(),
supportsInstallationBillingPlans: types.optional(types.boolean()),
icon: types.string(),
capabilities: types.optional(
z.lazy(() =>
CreateIntegrationStoreDirectIntegrationsCapabilities$inboundSchema
),
),
flags: types.optional(z.array(types.string())),
});
export function createIntegrationStoreDirectIntegrationFromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectIntegration,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectIntegration$inboundSchema.parse(
JSON.parse(x),
),
`Failed to parse 'CreateIntegrationStoreDirectIntegration' from JSON`,
);
}
/** @internal */
export const SupportedProtocols$inboundSchema: z.ZodNativeEnum<
typeof SupportedProtocols
> = z.nativeEnum(SupportedProtocols);
/** @internal */
export const CreateIntegrationStoreDirectPrimaryProtocol$inboundSchema:
z.ZodNativeEnum<typeof CreateIntegrationStoreDirectPrimaryProtocol> = z
.nativeEnum(CreateIntegrationStoreDirectPrimaryProtocol);
/** @internal */
export const LogDrainStatus$inboundSchema: z.ZodNativeEnum<
typeof LogDrainStatus
> = z.nativeEnum(LogDrainStatus);
/** @internal */
export const Product$inboundSchema: z.ZodType<Product, z.ZodTypeDef, unknown> =
z.object({
id: types.optional(types.string()),
name: types.optional(types.string()),
slug: types.optional(types.string()),
iconUrl: types.optional(types.string()),
capabilities: types.optional(
CreateIntegrationStoreDirectCapabilities$inboundSchema,
),
shortDescription: types.optional(types.string()),
metadataSchema: types.optional(
z.lazy(() => CreateIntegrationStoreDirectMetadataSchema$inboundSchema),
),
resourceLinks: types.optional(
z.array(z.lazy(() => ResourceLinks$inboundSchema)),
),
tags: types.optional(
z.array(CreateIntegrationStoreDirectTags$inboundSchema),
),
projectConnectionScopes: types.optional(
z.array(ProjectConnectionScopes$inboundSchema),
),
showSSOLinkOnProjectConnection: types.optional(types.boolean()),
disableResourceRenaming: types.optional(types.boolean()),
resourceTitle: types.optional(types.string()),
agentSkillUrl: types.optional(types.string()),
repl: types.optional(z.lazy(() => Repl$inboundSchema)),
guides: types.optional(z.array(z.lazy(() => Guides$inboundSchema))),
integration: z.lazy(() =>
CreateIntegrationStoreDirectIntegration$inboundSchema
),
integrationConfigurationId: types.string(),
supportedProtocols: z.array(SupportedProtocols$inboundSchema),
primaryProtocol: types.optional(
CreateIntegrationStoreDirectPrimaryProtocol$inboundSchema,
),
logDrainStatus: types.optional(LogDrainStatus$inboundSchema),
});
export function productFromJSON(
jsonString: string,
): SafeParseResult<Product, SDKValidationError> {
return safeParse(
jsonString,
(x) => Product$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'Product' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectExperimentation$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectExperimentation,
z.ZodTypeDef,
unknown
> = z.object({
edgeConfigSyncingEnabled: types.optional(types.boolean()),
edgeConfigId: types.optional(types.string()),
edgeConfigTokenId: types.optional(types.string()),
});
export function createIntegrationStoreDirectExperimentationFromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectExperimentation,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectExperimentation$inboundSchema.parse(
JSON.parse(x),
),
`Failed to parse 'CreateIntegrationStoreDirectExperimentation' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectProtocolSettings$inboundSchema:
z.ZodType<
CreateIntegrationStoreDirectProtocolSettings,
z.ZodTypeDef,
unknown
> = z.object({
experimentation: types.optional(
z.lazy(() => CreateIntegrationStoreDirectExperimentation$inboundSchema),
),
});
export function createIntegrationStoreDirectProtocolSettingsFromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectProtocolSettings,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectProtocolSettings$inboundSchema.parse(
JSON.parse(x),
),
`Failed to parse 'CreateIntegrationStoreDirectProtocolSettings' from JSON`,
);
}
/** @internal */
export const CreateIntegrationStoreDirectLevel$inboundSchema: z.ZodNativeEnum<
typeof CreateIntegrationStoreDirectLevel
> = z.nativeEnum(CreateIntegrationStoreDirectLevel);
/** @internal */
export const CreateIntegrationStoreDirectNotification$inboundSchema: z.ZodType<
CreateIntegrationStoreDirectNotification,
z.ZodTypeDef,
unknown
> = z.object({
title: types.string(),
level: CreateIntegrationStoreDirectLevel$inboundSchema,
message: types.optional(types.string()),
href: types.optional(types.string()),
});
export function createIntegrationStoreDirectNotificationFromJSON(
jsonString: string,
): SafeParseResult<
CreateIntegrationStoreDirectNotification,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
CreateIntegrationStoreDirectNotification$inboundSchema.parse(
JSON.parse(x),
),
`Failed to parse 'CreateIntegrationStoreDirectNotification' from JSON`,
);
}