attio-js
Version:
Developer-friendly & type-safe JS/TS SDK based on the official OpenAPI spec of Attio.
97 lines • 5.74 kB
TypeScript
import * as z from "zod";
import { ClosedEnum } from "../../types/enums.js";
import { Result as SafeParseResult } from "../../types/fp.js";
import { Attribute, Attribute$Outbound } from "../components/attribute.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
/**
* Whether the attribute is on an object or a list.
*/
export declare const GetV2TargetIdentifierAttributesAttributeTarget: {
readonly Objects: "objects";
readonly Lists: "lists";
};
/**
* Whether the attribute is on an object or a list.
*/
export type GetV2TargetIdentifierAttributesAttributeTarget = ClosedEnum<typeof GetV2TargetIdentifierAttributesAttributeTarget>;
export type GetV2TargetIdentifierAttributesAttributeRequest = {
/**
* Whether the attribute is on an object or a list.
*/
target: GetV2TargetIdentifierAttributesAttributeTarget;
identifier: string;
attribute: string;
};
/**
* Success
*/
export type GetV2TargetIdentifierAttributesAttributeResponse = {
data: Attribute;
};
/** @internal */
export declare const GetV2TargetIdentifierAttributesAttributeTarget$inboundSchema: z.ZodNativeEnum<typeof GetV2TargetIdentifierAttributesAttributeTarget>;
/** @internal */
export declare const GetV2TargetIdentifierAttributesAttributeTarget$outboundSchema: z.ZodNativeEnum<typeof GetV2TargetIdentifierAttributesAttributeTarget>;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export declare namespace GetV2TargetIdentifierAttributesAttributeTarget$ {
/** @deprecated use `GetV2TargetIdentifierAttributesAttributeTarget$inboundSchema` instead. */
const inboundSchema: z.ZodNativeEnum<{
readonly Objects: "objects";
readonly Lists: "lists";
}>;
/** @deprecated use `GetV2TargetIdentifierAttributesAttributeTarget$outboundSchema` instead. */
const outboundSchema: z.ZodNativeEnum<{
readonly Objects: "objects";
readonly Lists: "lists";
}>;
}
/** @internal */
export declare const GetV2TargetIdentifierAttributesAttributeRequest$inboundSchema: z.ZodType<GetV2TargetIdentifierAttributesAttributeRequest, z.ZodTypeDef, unknown>;
/** @internal */
export type GetV2TargetIdentifierAttributesAttributeRequest$Outbound = {
target: string;
identifier: string;
attribute: string;
};
/** @internal */
export declare const GetV2TargetIdentifierAttributesAttributeRequest$outboundSchema: z.ZodType<GetV2TargetIdentifierAttributesAttributeRequest$Outbound, z.ZodTypeDef, GetV2TargetIdentifierAttributesAttributeRequest>;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export declare namespace GetV2TargetIdentifierAttributesAttributeRequest$ {
/** @deprecated use `GetV2TargetIdentifierAttributesAttributeRequest$inboundSchema` instead. */
const inboundSchema: z.ZodType<GetV2TargetIdentifierAttributesAttributeRequest, z.ZodTypeDef, unknown>;
/** @deprecated use `GetV2TargetIdentifierAttributesAttributeRequest$outboundSchema` instead. */
const outboundSchema: z.ZodType<GetV2TargetIdentifierAttributesAttributeRequest$Outbound, z.ZodTypeDef, GetV2TargetIdentifierAttributesAttributeRequest>;
/** @deprecated use `GetV2TargetIdentifierAttributesAttributeRequest$Outbound` instead. */
type Outbound = GetV2TargetIdentifierAttributesAttributeRequest$Outbound;
}
export declare function getV2TargetIdentifierAttributesAttributeRequestToJSON(getV2TargetIdentifierAttributesAttributeRequest: GetV2TargetIdentifierAttributesAttributeRequest): string;
export declare function getV2TargetIdentifierAttributesAttributeRequestFromJSON(jsonString: string): SafeParseResult<GetV2TargetIdentifierAttributesAttributeRequest, SDKValidationError>;
/** @internal */
export declare const GetV2TargetIdentifierAttributesAttributeResponse$inboundSchema: z.ZodType<GetV2TargetIdentifierAttributesAttributeResponse, z.ZodTypeDef, unknown>;
/** @internal */
export type GetV2TargetIdentifierAttributesAttributeResponse$Outbound = {
data: Attribute$Outbound;
};
/** @internal */
export declare const GetV2TargetIdentifierAttributesAttributeResponse$outboundSchema: z.ZodType<GetV2TargetIdentifierAttributesAttributeResponse$Outbound, z.ZodTypeDef, GetV2TargetIdentifierAttributesAttributeResponse>;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export declare namespace GetV2TargetIdentifierAttributesAttributeResponse$ {
/** @deprecated use `GetV2TargetIdentifierAttributesAttributeResponse$inboundSchema` instead. */
const inboundSchema: z.ZodType<GetV2TargetIdentifierAttributesAttributeResponse, z.ZodTypeDef, unknown>;
/** @deprecated use `GetV2TargetIdentifierAttributesAttributeResponse$outboundSchema` instead. */
const outboundSchema: z.ZodType<GetV2TargetIdentifierAttributesAttributeResponse$Outbound, z.ZodTypeDef, GetV2TargetIdentifierAttributesAttributeResponse>;
/** @deprecated use `GetV2TargetIdentifierAttributesAttributeResponse$Outbound` instead. */
type Outbound = GetV2TargetIdentifierAttributesAttributeResponse$Outbound;
}
export declare function getV2TargetIdentifierAttributesAttributeResponseToJSON(getV2TargetIdentifierAttributesAttributeResponse: GetV2TargetIdentifierAttributesAttributeResponse): string;
export declare function getV2TargetIdentifierAttributesAttributeResponseFromJSON(jsonString: string): SafeParseResult<GetV2TargetIdentifierAttributesAttributeResponse, SDKValidationError>;
//# sourceMappingURL=getv2targetidentifierattributesattribute.d.ts.map