UNPKG

attio-js

Version:

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

99 lines 6.51 kB
import * as z from "zod"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { Status, Status$Outbound } from "../components/status.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * Whether the attribute is on an object or a list. Please note that the company and people objects do not support status attributes at this time. */ export declare const GetV2TargetIdentifierAttributesAttributeStatusesTarget: { readonly Lists: "lists"; readonly Objects: "objects"; }; /** * Whether the attribute is on an object or a list. Please note that the company and people objects do not support status attributes at this time. */ export type GetV2TargetIdentifierAttributesAttributeStatusesTarget = ClosedEnum<typeof GetV2TargetIdentifierAttributesAttributeStatusesTarget>; export type GetV2TargetIdentifierAttributesAttributeStatusesRequest = { /** * Whether the attribute is on an object or a list. Please note that the company and people objects do not support status attributes at this time. */ target: GetV2TargetIdentifierAttributesAttributeStatusesTarget; identifier: string; attribute: string; showArchived?: boolean | undefined; }; /** * Success */ export type GetV2TargetIdentifierAttributesAttributeStatusesResponse = { data: Array<Status>; }; /** @internal */ export declare const GetV2TargetIdentifierAttributesAttributeStatusesTarget$inboundSchema: z.ZodNativeEnum<typeof GetV2TargetIdentifierAttributesAttributeStatusesTarget>; /** @internal */ export declare const GetV2TargetIdentifierAttributesAttributeStatusesTarget$outboundSchema: z.ZodNativeEnum<typeof GetV2TargetIdentifierAttributesAttributeStatusesTarget>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace GetV2TargetIdentifierAttributesAttributeStatusesTarget$ { /** @deprecated use `GetV2TargetIdentifierAttributesAttributeStatusesTarget$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Lists: "lists"; readonly Objects: "objects"; }>; /** @deprecated use `GetV2TargetIdentifierAttributesAttributeStatusesTarget$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Lists: "lists"; readonly Objects: "objects"; }>; } /** @internal */ export declare const GetV2TargetIdentifierAttributesAttributeStatusesRequest$inboundSchema: z.ZodType<GetV2TargetIdentifierAttributesAttributeStatusesRequest, z.ZodTypeDef, unknown>; /** @internal */ export type GetV2TargetIdentifierAttributesAttributeStatusesRequest$Outbound = { target: string; identifier: string; attribute: string; show_archived: boolean; }; /** @internal */ export declare const GetV2TargetIdentifierAttributesAttributeStatusesRequest$outboundSchema: z.ZodType<GetV2TargetIdentifierAttributesAttributeStatusesRequest$Outbound, z.ZodTypeDef, GetV2TargetIdentifierAttributesAttributeStatusesRequest>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace GetV2TargetIdentifierAttributesAttributeStatusesRequest$ { /** @deprecated use `GetV2TargetIdentifierAttributesAttributeStatusesRequest$inboundSchema` instead. */ const inboundSchema: z.ZodType<GetV2TargetIdentifierAttributesAttributeStatusesRequest, z.ZodTypeDef, unknown>; /** @deprecated use `GetV2TargetIdentifierAttributesAttributeStatusesRequest$outboundSchema` instead. */ const outboundSchema: z.ZodType<GetV2TargetIdentifierAttributesAttributeStatusesRequest$Outbound, z.ZodTypeDef, GetV2TargetIdentifierAttributesAttributeStatusesRequest>; /** @deprecated use `GetV2TargetIdentifierAttributesAttributeStatusesRequest$Outbound` instead. */ type Outbound = GetV2TargetIdentifierAttributesAttributeStatusesRequest$Outbound; } export declare function getV2TargetIdentifierAttributesAttributeStatusesRequestToJSON(getV2TargetIdentifierAttributesAttributeStatusesRequest: GetV2TargetIdentifierAttributesAttributeStatusesRequest): string; export declare function getV2TargetIdentifierAttributesAttributeStatusesRequestFromJSON(jsonString: string): SafeParseResult<GetV2TargetIdentifierAttributesAttributeStatusesRequest, SDKValidationError>; /** @internal */ export declare const GetV2TargetIdentifierAttributesAttributeStatusesResponse$inboundSchema: z.ZodType<GetV2TargetIdentifierAttributesAttributeStatusesResponse, z.ZodTypeDef, unknown>; /** @internal */ export type GetV2TargetIdentifierAttributesAttributeStatusesResponse$Outbound = { data: Array<Status$Outbound>; }; /** @internal */ export declare const GetV2TargetIdentifierAttributesAttributeStatusesResponse$outboundSchema: z.ZodType<GetV2TargetIdentifierAttributesAttributeStatusesResponse$Outbound, z.ZodTypeDef, GetV2TargetIdentifierAttributesAttributeStatusesResponse>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace GetV2TargetIdentifierAttributesAttributeStatusesResponse$ { /** @deprecated use `GetV2TargetIdentifierAttributesAttributeStatusesResponse$inboundSchema` instead. */ const inboundSchema: z.ZodType<GetV2TargetIdentifierAttributesAttributeStatusesResponse, z.ZodTypeDef, unknown>; /** @deprecated use `GetV2TargetIdentifierAttributesAttributeStatusesResponse$outboundSchema` instead. */ const outboundSchema: z.ZodType<GetV2TargetIdentifierAttributesAttributeStatusesResponse$Outbound, z.ZodTypeDef, GetV2TargetIdentifierAttributesAttributeStatusesResponse>; /** @deprecated use `GetV2TargetIdentifierAttributesAttributeStatusesResponse$Outbound` instead. */ type Outbound = GetV2TargetIdentifierAttributesAttributeStatusesResponse$Outbound; } export declare function getV2TargetIdentifierAttributesAttributeStatusesResponseToJSON(getV2TargetIdentifierAttributesAttributeStatusesResponse: GetV2TargetIdentifierAttributesAttributeStatusesResponse): string; export declare function getV2TargetIdentifierAttributesAttributeStatusesResponseFromJSON(jsonString: string): SafeParseResult<GetV2TargetIdentifierAttributesAttributeStatusesResponse, SDKValidationError>; //# sourceMappingURL=getv2targetidentifierattributesattributestatuses.d.ts.map