UNPKG

attio-js

Version:

Developer-friendly & type-safe JS/TS SDK based on the official OpenAPI spec of Attio.

159 lines 11.5 kB
import * as z from "zod"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SelectOption, SelectOption$Outbound } from "../components/selectoption.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * Whether the attribute is on an object or a list. */ export declare const PatchV2TargetIdentifierAttributesAttributeOptionsOptionTarget: { readonly Objects: "objects"; readonly Lists: "lists"; }; /** * Whether the attribute is on an object or a list. */ export type PatchV2TargetIdentifierAttributesAttributeOptionsOptionTarget = ClosedEnum<typeof PatchV2TargetIdentifierAttributesAttributeOptionsOptionTarget>; export type PatchV2TargetIdentifierAttributesAttributeOptionsOptionData = { /** * The Title of the select option */ title?: string | undefined; /** * Whether or not to archive the select option. See our [archiving guide](/docs/archiving-vs-deleting) for more information on archiving. */ isArchived?: boolean | undefined; }; export type PatchV2TargetIdentifierAttributesAttributeOptionsOptionRequestBody = { data: PatchV2TargetIdentifierAttributesAttributeOptionsOptionData; }; export type PatchV2TargetIdentifierAttributesAttributeOptionsOptionRequest = { /** * Whether the attribute is on an object or a list. */ target: PatchV2TargetIdentifierAttributesAttributeOptionsOptionTarget; identifier: string; attribute: string; option: string; requestBody: PatchV2TargetIdentifierAttributesAttributeOptionsOptionRequestBody; }; /** * Success */ export type PatchV2TargetIdentifierAttributesAttributeOptionsOptionResponse = { data: SelectOption; }; /** @internal */ export declare const PatchV2TargetIdentifierAttributesAttributeOptionsOptionTarget$inboundSchema: z.ZodNativeEnum<typeof PatchV2TargetIdentifierAttributesAttributeOptionsOptionTarget>; /** @internal */ export declare const PatchV2TargetIdentifierAttributesAttributeOptionsOptionTarget$outboundSchema: z.ZodNativeEnum<typeof PatchV2TargetIdentifierAttributesAttributeOptionsOptionTarget>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace PatchV2TargetIdentifierAttributesAttributeOptionsOptionTarget$ { /** @deprecated use `PatchV2TargetIdentifierAttributesAttributeOptionsOptionTarget$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Objects: "objects"; readonly Lists: "lists"; }>; /** @deprecated use `PatchV2TargetIdentifierAttributesAttributeOptionsOptionTarget$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Objects: "objects"; readonly Lists: "lists"; }>; } /** @internal */ export declare const PatchV2TargetIdentifierAttributesAttributeOptionsOptionData$inboundSchema: z.ZodType<PatchV2TargetIdentifierAttributesAttributeOptionsOptionData, z.ZodTypeDef, unknown>; /** @internal */ export type PatchV2TargetIdentifierAttributesAttributeOptionsOptionData$Outbound = { title?: string | undefined; is_archived?: boolean | undefined; }; /** @internal */ export declare const PatchV2TargetIdentifierAttributesAttributeOptionsOptionData$outboundSchema: z.ZodType<PatchV2TargetIdentifierAttributesAttributeOptionsOptionData$Outbound, z.ZodTypeDef, PatchV2TargetIdentifierAttributesAttributeOptionsOptionData>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace PatchV2TargetIdentifierAttributesAttributeOptionsOptionData$ { /** @deprecated use `PatchV2TargetIdentifierAttributesAttributeOptionsOptionData$inboundSchema` instead. */ const inboundSchema: z.ZodType<PatchV2TargetIdentifierAttributesAttributeOptionsOptionData, z.ZodTypeDef, unknown>; /** @deprecated use `PatchV2TargetIdentifierAttributesAttributeOptionsOptionData$outboundSchema` instead. */ const outboundSchema: z.ZodType<PatchV2TargetIdentifierAttributesAttributeOptionsOptionData$Outbound, z.ZodTypeDef, PatchV2TargetIdentifierAttributesAttributeOptionsOptionData>; /** @deprecated use `PatchV2TargetIdentifierAttributesAttributeOptionsOptionData$Outbound` instead. */ type Outbound = PatchV2TargetIdentifierAttributesAttributeOptionsOptionData$Outbound; } export declare function patchV2TargetIdentifierAttributesAttributeOptionsOptionDataToJSON(patchV2TargetIdentifierAttributesAttributeOptionsOptionData: PatchV2TargetIdentifierAttributesAttributeOptionsOptionData): string; export declare function patchV2TargetIdentifierAttributesAttributeOptionsOptionDataFromJSON(jsonString: string): SafeParseResult<PatchV2TargetIdentifierAttributesAttributeOptionsOptionData, SDKValidationError>; /** @internal */ export declare const PatchV2TargetIdentifierAttributesAttributeOptionsOptionRequestBody$inboundSchema: z.ZodType<PatchV2TargetIdentifierAttributesAttributeOptionsOptionRequestBody, z.ZodTypeDef, unknown>; /** @internal */ export type PatchV2TargetIdentifierAttributesAttributeOptionsOptionRequestBody$Outbound = { data: PatchV2TargetIdentifierAttributesAttributeOptionsOptionData$Outbound; }; /** @internal */ export declare const PatchV2TargetIdentifierAttributesAttributeOptionsOptionRequestBody$outboundSchema: z.ZodType<PatchV2TargetIdentifierAttributesAttributeOptionsOptionRequestBody$Outbound, z.ZodTypeDef, PatchV2TargetIdentifierAttributesAttributeOptionsOptionRequestBody>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace PatchV2TargetIdentifierAttributesAttributeOptionsOptionRequestBody$ { /** @deprecated use `PatchV2TargetIdentifierAttributesAttributeOptionsOptionRequestBody$inboundSchema` instead. */ const inboundSchema: z.ZodType<PatchV2TargetIdentifierAttributesAttributeOptionsOptionRequestBody, z.ZodTypeDef, unknown>; /** @deprecated use `PatchV2TargetIdentifierAttributesAttributeOptionsOptionRequestBody$outboundSchema` instead. */ const outboundSchema: z.ZodType<PatchV2TargetIdentifierAttributesAttributeOptionsOptionRequestBody$Outbound, z.ZodTypeDef, PatchV2TargetIdentifierAttributesAttributeOptionsOptionRequestBody>; /** @deprecated use `PatchV2TargetIdentifierAttributesAttributeOptionsOptionRequestBody$Outbound` instead. */ type Outbound = PatchV2TargetIdentifierAttributesAttributeOptionsOptionRequestBody$Outbound; } export declare function patchV2TargetIdentifierAttributesAttributeOptionsOptionRequestBodyToJSON(patchV2TargetIdentifierAttributesAttributeOptionsOptionRequestBody: PatchV2TargetIdentifierAttributesAttributeOptionsOptionRequestBody): string; export declare function patchV2TargetIdentifierAttributesAttributeOptionsOptionRequestBodyFromJSON(jsonString: string): SafeParseResult<PatchV2TargetIdentifierAttributesAttributeOptionsOptionRequestBody, SDKValidationError>; /** @internal */ export declare const PatchV2TargetIdentifierAttributesAttributeOptionsOptionRequest$inboundSchema: z.ZodType<PatchV2TargetIdentifierAttributesAttributeOptionsOptionRequest, z.ZodTypeDef, unknown>; /** @internal */ export type PatchV2TargetIdentifierAttributesAttributeOptionsOptionRequest$Outbound = { target: string; identifier: string; attribute: string; option: string; RequestBody: PatchV2TargetIdentifierAttributesAttributeOptionsOptionRequestBody$Outbound; }; /** @internal */ export declare const PatchV2TargetIdentifierAttributesAttributeOptionsOptionRequest$outboundSchema: z.ZodType<PatchV2TargetIdentifierAttributesAttributeOptionsOptionRequest$Outbound, z.ZodTypeDef, PatchV2TargetIdentifierAttributesAttributeOptionsOptionRequest>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace PatchV2TargetIdentifierAttributesAttributeOptionsOptionRequest$ { /** @deprecated use `PatchV2TargetIdentifierAttributesAttributeOptionsOptionRequest$inboundSchema` instead. */ const inboundSchema: z.ZodType<PatchV2TargetIdentifierAttributesAttributeOptionsOptionRequest, z.ZodTypeDef, unknown>; /** @deprecated use `PatchV2TargetIdentifierAttributesAttributeOptionsOptionRequest$outboundSchema` instead. */ const outboundSchema: z.ZodType<PatchV2TargetIdentifierAttributesAttributeOptionsOptionRequest$Outbound, z.ZodTypeDef, PatchV2TargetIdentifierAttributesAttributeOptionsOptionRequest>; /** @deprecated use `PatchV2TargetIdentifierAttributesAttributeOptionsOptionRequest$Outbound` instead. */ type Outbound = PatchV2TargetIdentifierAttributesAttributeOptionsOptionRequest$Outbound; } export declare function patchV2TargetIdentifierAttributesAttributeOptionsOptionRequestToJSON(patchV2TargetIdentifierAttributesAttributeOptionsOptionRequest: PatchV2TargetIdentifierAttributesAttributeOptionsOptionRequest): string; export declare function patchV2TargetIdentifierAttributesAttributeOptionsOptionRequestFromJSON(jsonString: string): SafeParseResult<PatchV2TargetIdentifierAttributesAttributeOptionsOptionRequest, SDKValidationError>; /** @internal */ export declare const PatchV2TargetIdentifierAttributesAttributeOptionsOptionResponse$inboundSchema: z.ZodType<PatchV2TargetIdentifierAttributesAttributeOptionsOptionResponse, z.ZodTypeDef, unknown>; /** @internal */ export type PatchV2TargetIdentifierAttributesAttributeOptionsOptionResponse$Outbound = { data: SelectOption$Outbound; }; /** @internal */ export declare const PatchV2TargetIdentifierAttributesAttributeOptionsOptionResponse$outboundSchema: z.ZodType<PatchV2TargetIdentifierAttributesAttributeOptionsOptionResponse$Outbound, z.ZodTypeDef, PatchV2TargetIdentifierAttributesAttributeOptionsOptionResponse>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace PatchV2TargetIdentifierAttributesAttributeOptionsOptionResponse$ { /** @deprecated use `PatchV2TargetIdentifierAttributesAttributeOptionsOptionResponse$inboundSchema` instead. */ const inboundSchema: z.ZodType<PatchV2TargetIdentifierAttributesAttributeOptionsOptionResponse, z.ZodTypeDef, unknown>; /** @deprecated use `PatchV2TargetIdentifierAttributesAttributeOptionsOptionResponse$outboundSchema` instead. */ const outboundSchema: z.ZodType<PatchV2TargetIdentifierAttributesAttributeOptionsOptionResponse$Outbound, z.ZodTypeDef, PatchV2TargetIdentifierAttributesAttributeOptionsOptionResponse>; /** @deprecated use `PatchV2TargetIdentifierAttributesAttributeOptionsOptionResponse$Outbound` instead. */ type Outbound = PatchV2TargetIdentifierAttributesAttributeOptionsOptionResponse$Outbound; } export declare function patchV2TargetIdentifierAttributesAttributeOptionsOptionResponseToJSON(patchV2TargetIdentifierAttributesAttributeOptionsOptionResponse: PatchV2TargetIdentifierAttributesAttributeOptionsOptionResponse): string; export declare function patchV2TargetIdentifierAttributesAttributeOptionsOptionResponseFromJSON(jsonString: string): SafeParseResult<PatchV2TargetIdentifierAttributesAttributeOptionsOptionResponse, SDKValidationError>; //# sourceMappingURL=patchv2targetidentifierattributesattributeoptionsoption.d.ts.map