UNPKG

attio-js

Version:

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

58 lines 3.25 kB
import * as z from "zod"; import { Result as SafeParseResult } from "../../types/fp.js"; import { Thread, Thread$Outbound } from "../components/thread.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type GetV2ThreadsThreadIdRequest = { threadId: string; }; /** * Success */ export type GetV2ThreadsThreadIdResponse = { data: Thread; }; /** @internal */ export declare const GetV2ThreadsThreadIdRequest$inboundSchema: z.ZodType<GetV2ThreadsThreadIdRequest, z.ZodTypeDef, unknown>; /** @internal */ export type GetV2ThreadsThreadIdRequest$Outbound = { thread_id: string; }; /** @internal */ export declare const GetV2ThreadsThreadIdRequest$outboundSchema: z.ZodType<GetV2ThreadsThreadIdRequest$Outbound, z.ZodTypeDef, GetV2ThreadsThreadIdRequest>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace GetV2ThreadsThreadIdRequest$ { /** @deprecated use `GetV2ThreadsThreadIdRequest$inboundSchema` instead. */ const inboundSchema: z.ZodType<GetV2ThreadsThreadIdRequest, z.ZodTypeDef, unknown>; /** @deprecated use `GetV2ThreadsThreadIdRequest$outboundSchema` instead. */ const outboundSchema: z.ZodType<GetV2ThreadsThreadIdRequest$Outbound, z.ZodTypeDef, GetV2ThreadsThreadIdRequest>; /** @deprecated use `GetV2ThreadsThreadIdRequest$Outbound` instead. */ type Outbound = GetV2ThreadsThreadIdRequest$Outbound; } export declare function getV2ThreadsThreadIdRequestToJSON(getV2ThreadsThreadIdRequest: GetV2ThreadsThreadIdRequest): string; export declare function getV2ThreadsThreadIdRequestFromJSON(jsonString: string): SafeParseResult<GetV2ThreadsThreadIdRequest, SDKValidationError>; /** @internal */ export declare const GetV2ThreadsThreadIdResponse$inboundSchema: z.ZodType<GetV2ThreadsThreadIdResponse, z.ZodTypeDef, unknown>; /** @internal */ export type GetV2ThreadsThreadIdResponse$Outbound = { data: Thread$Outbound; }; /** @internal */ export declare const GetV2ThreadsThreadIdResponse$outboundSchema: z.ZodType<GetV2ThreadsThreadIdResponse$Outbound, z.ZodTypeDef, GetV2ThreadsThreadIdResponse>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace GetV2ThreadsThreadIdResponse$ { /** @deprecated use `GetV2ThreadsThreadIdResponse$inboundSchema` instead. */ const inboundSchema: z.ZodType<GetV2ThreadsThreadIdResponse, z.ZodTypeDef, unknown>; /** @deprecated use `GetV2ThreadsThreadIdResponse$outboundSchema` instead. */ const outboundSchema: z.ZodType<GetV2ThreadsThreadIdResponse$Outbound, z.ZodTypeDef, GetV2ThreadsThreadIdResponse>; /** @deprecated use `GetV2ThreadsThreadIdResponse$Outbound` instead. */ type Outbound = GetV2ThreadsThreadIdResponse$Outbound; } export declare function getV2ThreadsThreadIdResponseToJSON(getV2ThreadsThreadIdResponse: GetV2ThreadsThreadIdResponse): string; export declare function getV2ThreadsThreadIdResponseFromJSON(jsonString: string): SafeParseResult<GetV2ThreadsThreadIdResponse, SDKValidationError>; //# sourceMappingURL=getv2threadsthreadid.d.ts.map