UNPKG

attio-js

Version:

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

99 lines 6.21 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 GetV2TargetIdentifierAttributesAttributeOptionsTarget: { readonly Objects: "objects"; readonly Lists: "lists"; }; /** * Whether the attribute is on an object or a list. */ export type GetV2TargetIdentifierAttributesAttributeOptionsTarget = ClosedEnum<typeof GetV2TargetIdentifierAttributesAttributeOptionsTarget>; export type GetV2TargetIdentifierAttributesAttributeOptionsRequest = { /** * Whether the attribute is on an object or a list. */ target: GetV2TargetIdentifierAttributesAttributeOptionsTarget; identifier: string; attribute: string; showArchived?: boolean | undefined; }; /** * Success */ export type GetV2TargetIdentifierAttributesAttributeOptionsResponse = { data: Array<SelectOption>; }; /** @internal */ export declare const GetV2TargetIdentifierAttributesAttributeOptionsTarget$inboundSchema: z.ZodNativeEnum<typeof GetV2TargetIdentifierAttributesAttributeOptionsTarget>; /** @internal */ export declare const GetV2TargetIdentifierAttributesAttributeOptionsTarget$outboundSchema: z.ZodNativeEnum<typeof GetV2TargetIdentifierAttributesAttributeOptionsTarget>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace GetV2TargetIdentifierAttributesAttributeOptionsTarget$ { /** @deprecated use `GetV2TargetIdentifierAttributesAttributeOptionsTarget$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Objects: "objects"; readonly Lists: "lists"; }>; /** @deprecated use `GetV2TargetIdentifierAttributesAttributeOptionsTarget$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Objects: "objects"; readonly Lists: "lists"; }>; } /** @internal */ export declare const GetV2TargetIdentifierAttributesAttributeOptionsRequest$inboundSchema: z.ZodType<GetV2TargetIdentifierAttributesAttributeOptionsRequest, z.ZodTypeDef, unknown>; /** @internal */ export type GetV2TargetIdentifierAttributesAttributeOptionsRequest$Outbound = { target: string; identifier: string; attribute: string; show_archived?: boolean | undefined; }; /** @internal */ export declare const GetV2TargetIdentifierAttributesAttributeOptionsRequest$outboundSchema: z.ZodType<GetV2TargetIdentifierAttributesAttributeOptionsRequest$Outbound, z.ZodTypeDef, GetV2TargetIdentifierAttributesAttributeOptionsRequest>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace GetV2TargetIdentifierAttributesAttributeOptionsRequest$ { /** @deprecated use `GetV2TargetIdentifierAttributesAttributeOptionsRequest$inboundSchema` instead. */ const inboundSchema: z.ZodType<GetV2TargetIdentifierAttributesAttributeOptionsRequest, z.ZodTypeDef, unknown>; /** @deprecated use `GetV2TargetIdentifierAttributesAttributeOptionsRequest$outboundSchema` instead. */ const outboundSchema: z.ZodType<GetV2TargetIdentifierAttributesAttributeOptionsRequest$Outbound, z.ZodTypeDef, GetV2TargetIdentifierAttributesAttributeOptionsRequest>; /** @deprecated use `GetV2TargetIdentifierAttributesAttributeOptionsRequest$Outbound` instead. */ type Outbound = GetV2TargetIdentifierAttributesAttributeOptionsRequest$Outbound; } export declare function getV2TargetIdentifierAttributesAttributeOptionsRequestToJSON(getV2TargetIdentifierAttributesAttributeOptionsRequest: GetV2TargetIdentifierAttributesAttributeOptionsRequest): string; export declare function getV2TargetIdentifierAttributesAttributeOptionsRequestFromJSON(jsonString: string): SafeParseResult<GetV2TargetIdentifierAttributesAttributeOptionsRequest, SDKValidationError>; /** @internal */ export declare const GetV2TargetIdentifierAttributesAttributeOptionsResponse$inboundSchema: z.ZodType<GetV2TargetIdentifierAttributesAttributeOptionsResponse, z.ZodTypeDef, unknown>; /** @internal */ export type GetV2TargetIdentifierAttributesAttributeOptionsResponse$Outbound = { data: Array<SelectOption$Outbound>; }; /** @internal */ export declare const GetV2TargetIdentifierAttributesAttributeOptionsResponse$outboundSchema: z.ZodType<GetV2TargetIdentifierAttributesAttributeOptionsResponse$Outbound, z.ZodTypeDef, GetV2TargetIdentifierAttributesAttributeOptionsResponse>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace GetV2TargetIdentifierAttributesAttributeOptionsResponse$ { /** @deprecated use `GetV2TargetIdentifierAttributesAttributeOptionsResponse$inboundSchema` instead. */ const inboundSchema: z.ZodType<GetV2TargetIdentifierAttributesAttributeOptionsResponse, z.ZodTypeDef, unknown>; /** @deprecated use `GetV2TargetIdentifierAttributesAttributeOptionsResponse$outboundSchema` instead. */ const outboundSchema: z.ZodType<GetV2TargetIdentifierAttributesAttributeOptionsResponse$Outbound, z.ZodTypeDef, GetV2TargetIdentifierAttributesAttributeOptionsResponse>; /** @deprecated use `GetV2TargetIdentifierAttributesAttributeOptionsResponse$Outbound` instead. */ type Outbound = GetV2TargetIdentifierAttributesAttributeOptionsResponse$Outbound; } export declare function getV2TargetIdentifierAttributesAttributeOptionsResponseToJSON(getV2TargetIdentifierAttributesAttributeOptionsResponse: GetV2TargetIdentifierAttributesAttributeOptionsResponse): string; export declare function getV2TargetIdentifierAttributesAttributeOptionsResponseFromJSON(jsonString: string): SafeParseResult<GetV2TargetIdentifierAttributesAttributeOptionsResponse, SDKValidationError>; //# sourceMappingURL=getv2targetidentifierattributesattributeoptions.d.ts.map