attio-js
Version:
Developer-friendly & type-safe JS/TS SDK based on the official OpenAPI spec of Attio.
101 lines • 5.46 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 attributes are on an object or a list.
*/
export declare const GetV2TargetIdentifierAttributesTarget: {
readonly Objects: "objects";
readonly Lists: "lists";
};
/**
* Whether the attributes are on an object or a list.
*/
export type GetV2TargetIdentifierAttributesTarget = ClosedEnum<typeof GetV2TargetIdentifierAttributesTarget>;
export type GetV2TargetIdentifierAttributesRequest = {
/**
* Whether the attributes are on an object or a list.
*/
target: GetV2TargetIdentifierAttributesTarget;
identifier: string;
limit?: number | undefined;
offset?: number | undefined;
showArchived?: boolean | undefined;
};
/**
* Success
*/
export type GetV2TargetIdentifierAttributesResponse = {
data: Array<Attribute>;
};
/** @internal */
export declare const GetV2TargetIdentifierAttributesTarget$inboundSchema: z.ZodNativeEnum<typeof GetV2TargetIdentifierAttributesTarget>;
/** @internal */
export declare const GetV2TargetIdentifierAttributesTarget$outboundSchema: z.ZodNativeEnum<typeof GetV2TargetIdentifierAttributesTarget>;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export declare namespace GetV2TargetIdentifierAttributesTarget$ {
/** @deprecated use `GetV2TargetIdentifierAttributesTarget$inboundSchema` instead. */
const inboundSchema: z.ZodNativeEnum<{
readonly Objects: "objects";
readonly Lists: "lists";
}>;
/** @deprecated use `GetV2TargetIdentifierAttributesTarget$outboundSchema` instead. */
const outboundSchema: z.ZodNativeEnum<{
readonly Objects: "objects";
readonly Lists: "lists";
}>;
}
/** @internal */
export declare const GetV2TargetIdentifierAttributesRequest$inboundSchema: z.ZodType<GetV2TargetIdentifierAttributesRequest, z.ZodTypeDef, unknown>;
/** @internal */
export type GetV2TargetIdentifierAttributesRequest$Outbound = {
target: string;
identifier: string;
limit?: number | undefined;
offset?: number | undefined;
show_archived?: boolean | undefined;
};
/** @internal */
export declare const GetV2TargetIdentifierAttributesRequest$outboundSchema: z.ZodType<GetV2TargetIdentifierAttributesRequest$Outbound, z.ZodTypeDef, GetV2TargetIdentifierAttributesRequest>;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export declare namespace GetV2TargetIdentifierAttributesRequest$ {
/** @deprecated use `GetV2TargetIdentifierAttributesRequest$inboundSchema` instead. */
const inboundSchema: z.ZodType<GetV2TargetIdentifierAttributesRequest, z.ZodTypeDef, unknown>;
/** @deprecated use `GetV2TargetIdentifierAttributesRequest$outboundSchema` instead. */
const outboundSchema: z.ZodType<GetV2TargetIdentifierAttributesRequest$Outbound, z.ZodTypeDef, GetV2TargetIdentifierAttributesRequest>;
/** @deprecated use `GetV2TargetIdentifierAttributesRequest$Outbound` instead. */
type Outbound = GetV2TargetIdentifierAttributesRequest$Outbound;
}
export declare function getV2TargetIdentifierAttributesRequestToJSON(getV2TargetIdentifierAttributesRequest: GetV2TargetIdentifierAttributesRequest): string;
export declare function getV2TargetIdentifierAttributesRequestFromJSON(jsonString: string): SafeParseResult<GetV2TargetIdentifierAttributesRequest, SDKValidationError>;
/** @internal */
export declare const GetV2TargetIdentifierAttributesResponse$inboundSchema: z.ZodType<GetV2TargetIdentifierAttributesResponse, z.ZodTypeDef, unknown>;
/** @internal */
export type GetV2TargetIdentifierAttributesResponse$Outbound = {
data: Array<Attribute$Outbound>;
};
/** @internal */
export declare const GetV2TargetIdentifierAttributesResponse$outboundSchema: z.ZodType<GetV2TargetIdentifierAttributesResponse$Outbound, z.ZodTypeDef, GetV2TargetIdentifierAttributesResponse>;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export declare namespace GetV2TargetIdentifierAttributesResponse$ {
/** @deprecated use `GetV2TargetIdentifierAttributesResponse$inboundSchema` instead. */
const inboundSchema: z.ZodType<GetV2TargetIdentifierAttributesResponse, z.ZodTypeDef, unknown>;
/** @deprecated use `GetV2TargetIdentifierAttributesResponse$outboundSchema` instead. */
const outboundSchema: z.ZodType<GetV2TargetIdentifierAttributesResponse$Outbound, z.ZodTypeDef, GetV2TargetIdentifierAttributesResponse>;
/** @deprecated use `GetV2TargetIdentifierAttributesResponse$Outbound` instead. */
type Outbound = GetV2TargetIdentifierAttributesResponse$Outbound;
}
export declare function getV2TargetIdentifierAttributesResponseToJSON(getV2TargetIdentifierAttributesResponse: GetV2TargetIdentifierAttributesResponse): string;
export declare function getV2TargetIdentifierAttributesResponseFromJSON(jsonString: string): SafeParseResult<GetV2TargetIdentifierAttributesResponse, SDKValidationError>;
//# sourceMappingURL=getv2targetidentifierattributes.d.ts.map