attio-js
Version:
Developer-friendly & type-safe JS/TS SDK based on the official OpenAPI spec of Attio.
58 lines • 3.17 kB
TypeScript
import * as z from "zod";
import { Result as SafeParseResult } from "../../types/fp.js";
import { ObjectT, ObjectT$Outbound } from "../components/object.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
export type GetV2ObjectsObjectRequest = {
object: string;
};
/**
* Success
*/
export type GetV2ObjectsObjectResponse = {
data: ObjectT;
};
/** @internal */
export declare const GetV2ObjectsObjectRequest$inboundSchema: z.ZodType<GetV2ObjectsObjectRequest, z.ZodTypeDef, unknown>;
/** @internal */
export type GetV2ObjectsObjectRequest$Outbound = {
object: string;
};
/** @internal */
export declare const GetV2ObjectsObjectRequest$outboundSchema: z.ZodType<GetV2ObjectsObjectRequest$Outbound, z.ZodTypeDef, GetV2ObjectsObjectRequest>;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export declare namespace GetV2ObjectsObjectRequest$ {
/** @deprecated use `GetV2ObjectsObjectRequest$inboundSchema` instead. */
const inboundSchema: z.ZodType<GetV2ObjectsObjectRequest, z.ZodTypeDef, unknown>;
/** @deprecated use `GetV2ObjectsObjectRequest$outboundSchema` instead. */
const outboundSchema: z.ZodType<GetV2ObjectsObjectRequest$Outbound, z.ZodTypeDef, GetV2ObjectsObjectRequest>;
/** @deprecated use `GetV2ObjectsObjectRequest$Outbound` instead. */
type Outbound = GetV2ObjectsObjectRequest$Outbound;
}
export declare function getV2ObjectsObjectRequestToJSON(getV2ObjectsObjectRequest: GetV2ObjectsObjectRequest): string;
export declare function getV2ObjectsObjectRequestFromJSON(jsonString: string): SafeParseResult<GetV2ObjectsObjectRequest, SDKValidationError>;
/** @internal */
export declare const GetV2ObjectsObjectResponse$inboundSchema: z.ZodType<GetV2ObjectsObjectResponse, z.ZodTypeDef, unknown>;
/** @internal */
export type GetV2ObjectsObjectResponse$Outbound = {
data: ObjectT$Outbound;
};
/** @internal */
export declare const GetV2ObjectsObjectResponse$outboundSchema: z.ZodType<GetV2ObjectsObjectResponse$Outbound, z.ZodTypeDef, GetV2ObjectsObjectResponse>;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export declare namespace GetV2ObjectsObjectResponse$ {
/** @deprecated use `GetV2ObjectsObjectResponse$inboundSchema` instead. */
const inboundSchema: z.ZodType<GetV2ObjectsObjectResponse, z.ZodTypeDef, unknown>;
/** @deprecated use `GetV2ObjectsObjectResponse$outboundSchema` instead. */
const outboundSchema: z.ZodType<GetV2ObjectsObjectResponse$Outbound, z.ZodTypeDef, GetV2ObjectsObjectResponse>;
/** @deprecated use `GetV2ObjectsObjectResponse$Outbound` instead. */
type Outbound = GetV2ObjectsObjectResponse$Outbound;
}
export declare function getV2ObjectsObjectResponseToJSON(getV2ObjectsObjectResponse: GetV2ObjectsObjectResponse): string;
export declare function getV2ObjectsObjectResponseFromJSON(jsonString: string): SafeParseResult<GetV2ObjectsObjectResponse, SDKValidationError>;
//# sourceMappingURL=getv2objectsobject.d.ts.map