UNPKG

attio-js

Version:

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

58 lines 3.07 kB
import * as z from "zod"; import { Result as SafeParseResult } from "../../types/fp.js"; import { Note, Note$Outbound } from "../components/note.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type GetV2NotesNoteIdRequest = { noteId: string; }; /** * Success */ export type GetV2NotesNoteIdResponse = { data: Note; }; /** @internal */ export declare const GetV2NotesNoteIdRequest$inboundSchema: z.ZodType<GetV2NotesNoteIdRequest, z.ZodTypeDef, unknown>; /** @internal */ export type GetV2NotesNoteIdRequest$Outbound = { note_id: string; }; /** @internal */ export declare const GetV2NotesNoteIdRequest$outboundSchema: z.ZodType<GetV2NotesNoteIdRequest$Outbound, z.ZodTypeDef, GetV2NotesNoteIdRequest>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace GetV2NotesNoteIdRequest$ { /** @deprecated use `GetV2NotesNoteIdRequest$inboundSchema` instead. */ const inboundSchema: z.ZodType<GetV2NotesNoteIdRequest, z.ZodTypeDef, unknown>; /** @deprecated use `GetV2NotesNoteIdRequest$outboundSchema` instead. */ const outboundSchema: z.ZodType<GetV2NotesNoteIdRequest$Outbound, z.ZodTypeDef, GetV2NotesNoteIdRequest>; /** @deprecated use `GetV2NotesNoteIdRequest$Outbound` instead. */ type Outbound = GetV2NotesNoteIdRequest$Outbound; } export declare function getV2NotesNoteIdRequestToJSON(getV2NotesNoteIdRequest: GetV2NotesNoteIdRequest): string; export declare function getV2NotesNoteIdRequestFromJSON(jsonString: string): SafeParseResult<GetV2NotesNoteIdRequest, SDKValidationError>; /** @internal */ export declare const GetV2NotesNoteIdResponse$inboundSchema: z.ZodType<GetV2NotesNoteIdResponse, z.ZodTypeDef, unknown>; /** @internal */ export type GetV2NotesNoteIdResponse$Outbound = { data: Note$Outbound; }; /** @internal */ export declare const GetV2NotesNoteIdResponse$outboundSchema: z.ZodType<GetV2NotesNoteIdResponse$Outbound, z.ZodTypeDef, GetV2NotesNoteIdResponse>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace GetV2NotesNoteIdResponse$ { /** @deprecated use `GetV2NotesNoteIdResponse$inboundSchema` instead. */ const inboundSchema: z.ZodType<GetV2NotesNoteIdResponse, z.ZodTypeDef, unknown>; /** @deprecated use `GetV2NotesNoteIdResponse$outboundSchema` instead. */ const outboundSchema: z.ZodType<GetV2NotesNoteIdResponse$Outbound, z.ZodTypeDef, GetV2NotesNoteIdResponse>; /** @deprecated use `GetV2NotesNoteIdResponse$Outbound` instead. */ type Outbound = GetV2NotesNoteIdResponse$Outbound; } export declare function getV2NotesNoteIdResponseToJSON(getV2NotesNoteIdResponse: GetV2NotesNoteIdResponse): string; export declare function getV2NotesNoteIdResponseFromJSON(jsonString: string): SafeParseResult<GetV2NotesNoteIdResponse, SDKValidationError>; //# sourceMappingURL=getv2notesnoteid.d.ts.map