UNPKG

attio-js

Version:

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

152 lines 10.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 PostV2TargetIdentifierAttributesAttributeOptionsTarget: { readonly Objects: "objects"; readonly Lists: "lists"; }; /** * Whether the attribute is on an object or a list. */ export type PostV2TargetIdentifierAttributesAttributeOptionsTarget = ClosedEnum<typeof PostV2TargetIdentifierAttributesAttributeOptionsTarget>; export type PostV2TargetIdentifierAttributesAttributeOptionsData = { /** * The Title of the select option */ title: string; }; export type PostV2TargetIdentifierAttributesAttributeOptionsRequestBody = { data: PostV2TargetIdentifierAttributesAttributeOptionsData; }; export type PostV2TargetIdentifierAttributesAttributeOptionsRequest = { /** * Whether the attribute is on an object or a list. */ target: PostV2TargetIdentifierAttributesAttributeOptionsTarget; identifier: string; attribute: string; requestBody: PostV2TargetIdentifierAttributesAttributeOptionsRequestBody; }; /** * Success */ export type PostV2TargetIdentifierAttributesAttributeOptionsResponse = { data: SelectOption; }; /** @internal */ export declare const PostV2TargetIdentifierAttributesAttributeOptionsTarget$inboundSchema: z.ZodNativeEnum<typeof PostV2TargetIdentifierAttributesAttributeOptionsTarget>; /** @internal */ export declare const PostV2TargetIdentifierAttributesAttributeOptionsTarget$outboundSchema: z.ZodNativeEnum<typeof PostV2TargetIdentifierAttributesAttributeOptionsTarget>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace PostV2TargetIdentifierAttributesAttributeOptionsTarget$ { /** @deprecated use `PostV2TargetIdentifierAttributesAttributeOptionsTarget$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Objects: "objects"; readonly Lists: "lists"; }>; /** @deprecated use `PostV2TargetIdentifierAttributesAttributeOptionsTarget$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Objects: "objects"; readonly Lists: "lists"; }>; } /** @internal */ export declare const PostV2TargetIdentifierAttributesAttributeOptionsData$inboundSchema: z.ZodType<PostV2TargetIdentifierAttributesAttributeOptionsData, z.ZodTypeDef, unknown>; /** @internal */ export type PostV2TargetIdentifierAttributesAttributeOptionsData$Outbound = { title: string; }; /** @internal */ export declare const PostV2TargetIdentifierAttributesAttributeOptionsData$outboundSchema: z.ZodType<PostV2TargetIdentifierAttributesAttributeOptionsData$Outbound, z.ZodTypeDef, PostV2TargetIdentifierAttributesAttributeOptionsData>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace PostV2TargetIdentifierAttributesAttributeOptionsData$ { /** @deprecated use `PostV2TargetIdentifierAttributesAttributeOptionsData$inboundSchema` instead. */ const inboundSchema: z.ZodType<PostV2TargetIdentifierAttributesAttributeOptionsData, z.ZodTypeDef, unknown>; /** @deprecated use `PostV2TargetIdentifierAttributesAttributeOptionsData$outboundSchema` instead. */ const outboundSchema: z.ZodType<PostV2TargetIdentifierAttributesAttributeOptionsData$Outbound, z.ZodTypeDef, PostV2TargetIdentifierAttributesAttributeOptionsData>; /** @deprecated use `PostV2TargetIdentifierAttributesAttributeOptionsData$Outbound` instead. */ type Outbound = PostV2TargetIdentifierAttributesAttributeOptionsData$Outbound; } export declare function postV2TargetIdentifierAttributesAttributeOptionsDataToJSON(postV2TargetIdentifierAttributesAttributeOptionsData: PostV2TargetIdentifierAttributesAttributeOptionsData): string; export declare function postV2TargetIdentifierAttributesAttributeOptionsDataFromJSON(jsonString: string): SafeParseResult<PostV2TargetIdentifierAttributesAttributeOptionsData, SDKValidationError>; /** @internal */ export declare const PostV2TargetIdentifierAttributesAttributeOptionsRequestBody$inboundSchema: z.ZodType<PostV2TargetIdentifierAttributesAttributeOptionsRequestBody, z.ZodTypeDef, unknown>; /** @internal */ export type PostV2TargetIdentifierAttributesAttributeOptionsRequestBody$Outbound = { data: PostV2TargetIdentifierAttributesAttributeOptionsData$Outbound; }; /** @internal */ export declare const PostV2TargetIdentifierAttributesAttributeOptionsRequestBody$outboundSchema: z.ZodType<PostV2TargetIdentifierAttributesAttributeOptionsRequestBody$Outbound, z.ZodTypeDef, PostV2TargetIdentifierAttributesAttributeOptionsRequestBody>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace PostV2TargetIdentifierAttributesAttributeOptionsRequestBody$ { /** @deprecated use `PostV2TargetIdentifierAttributesAttributeOptionsRequestBody$inboundSchema` instead. */ const inboundSchema: z.ZodType<PostV2TargetIdentifierAttributesAttributeOptionsRequestBody, z.ZodTypeDef, unknown>; /** @deprecated use `PostV2TargetIdentifierAttributesAttributeOptionsRequestBody$outboundSchema` instead. */ const outboundSchema: z.ZodType<PostV2TargetIdentifierAttributesAttributeOptionsRequestBody$Outbound, z.ZodTypeDef, PostV2TargetIdentifierAttributesAttributeOptionsRequestBody>; /** @deprecated use `PostV2TargetIdentifierAttributesAttributeOptionsRequestBody$Outbound` instead. */ type Outbound = PostV2TargetIdentifierAttributesAttributeOptionsRequestBody$Outbound; } export declare function postV2TargetIdentifierAttributesAttributeOptionsRequestBodyToJSON(postV2TargetIdentifierAttributesAttributeOptionsRequestBody: PostV2TargetIdentifierAttributesAttributeOptionsRequestBody): string; export declare function postV2TargetIdentifierAttributesAttributeOptionsRequestBodyFromJSON(jsonString: string): SafeParseResult<PostV2TargetIdentifierAttributesAttributeOptionsRequestBody, SDKValidationError>; /** @internal */ export declare const PostV2TargetIdentifierAttributesAttributeOptionsRequest$inboundSchema: z.ZodType<PostV2TargetIdentifierAttributesAttributeOptionsRequest, z.ZodTypeDef, unknown>; /** @internal */ export type PostV2TargetIdentifierAttributesAttributeOptionsRequest$Outbound = { target: string; identifier: string; attribute: string; RequestBody: PostV2TargetIdentifierAttributesAttributeOptionsRequestBody$Outbound; }; /** @internal */ export declare const PostV2TargetIdentifierAttributesAttributeOptionsRequest$outboundSchema: z.ZodType<PostV2TargetIdentifierAttributesAttributeOptionsRequest$Outbound, z.ZodTypeDef, PostV2TargetIdentifierAttributesAttributeOptionsRequest>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace PostV2TargetIdentifierAttributesAttributeOptionsRequest$ { /** @deprecated use `PostV2TargetIdentifierAttributesAttributeOptionsRequest$inboundSchema` instead. */ const inboundSchema: z.ZodType<PostV2TargetIdentifierAttributesAttributeOptionsRequest, z.ZodTypeDef, unknown>; /** @deprecated use `PostV2TargetIdentifierAttributesAttributeOptionsRequest$outboundSchema` instead. */ const outboundSchema: z.ZodType<PostV2TargetIdentifierAttributesAttributeOptionsRequest$Outbound, z.ZodTypeDef, PostV2TargetIdentifierAttributesAttributeOptionsRequest>; /** @deprecated use `PostV2TargetIdentifierAttributesAttributeOptionsRequest$Outbound` instead. */ type Outbound = PostV2TargetIdentifierAttributesAttributeOptionsRequest$Outbound; } export declare function postV2TargetIdentifierAttributesAttributeOptionsRequestToJSON(postV2TargetIdentifierAttributesAttributeOptionsRequest: PostV2TargetIdentifierAttributesAttributeOptionsRequest): string; export declare function postV2TargetIdentifierAttributesAttributeOptionsRequestFromJSON(jsonString: string): SafeParseResult<PostV2TargetIdentifierAttributesAttributeOptionsRequest, SDKValidationError>; /** @internal */ export declare const PostV2TargetIdentifierAttributesAttributeOptionsResponse$inboundSchema: z.ZodType<PostV2TargetIdentifierAttributesAttributeOptionsResponse, z.ZodTypeDef, unknown>; /** @internal */ export type PostV2TargetIdentifierAttributesAttributeOptionsResponse$Outbound = { data: SelectOption$Outbound; }; /** @internal */ export declare const PostV2TargetIdentifierAttributesAttributeOptionsResponse$outboundSchema: z.ZodType<PostV2TargetIdentifierAttributesAttributeOptionsResponse$Outbound, z.ZodTypeDef, PostV2TargetIdentifierAttributesAttributeOptionsResponse>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace PostV2TargetIdentifierAttributesAttributeOptionsResponse$ { /** @deprecated use `PostV2TargetIdentifierAttributesAttributeOptionsResponse$inboundSchema` instead. */ const inboundSchema: z.ZodType<PostV2TargetIdentifierAttributesAttributeOptionsResponse, z.ZodTypeDef, unknown>; /** @deprecated use `PostV2TargetIdentifierAttributesAttributeOptionsResponse$outboundSchema` instead. */ const outboundSchema: z.ZodType<PostV2TargetIdentifierAttributesAttributeOptionsResponse$Outbound, z.ZodTypeDef, PostV2TargetIdentifierAttributesAttributeOptionsResponse>; /** @deprecated use `PostV2TargetIdentifierAttributesAttributeOptionsResponse$Outbound` instead. */ type Outbound = PostV2TargetIdentifierAttributesAttributeOptionsResponse$Outbound; } export declare function postV2TargetIdentifierAttributesAttributeOptionsResponseToJSON(postV2TargetIdentifierAttributesAttributeOptionsResponse: PostV2TargetIdentifierAttributesAttributeOptionsResponse): string; export declare function postV2TargetIdentifierAttributesAttributeOptionsResponseFromJSON(jsonString: string): SafeParseResult<PostV2TargetIdentifierAttributesAttributeOptionsResponse, SDKValidationError>; //# sourceMappingURL=postv2targetidentifierattributesattributeoptions.d.ts.map