import * as z from "zod"; import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type CrmLeadsAddGlobals = { /** * ID of the consumer which you want to get or push data from */ consumerId?: string | undefined; /** * The ID of your Unify application */ appId?: string | undefined; }; export type CrmLeadsAddRequest = { /** * Include raw response. Mostly used for debugging purposes */ raw?: boolean | undefined; /** * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. */ serviceId?: string | undefined; lead: components.LeadInput; }; export type CrmLeadsAddResponse = { httpMeta: components.HTTPMetadata; /** * Lead created */ createLeadResponse?: components.CreateLeadResponse | undefined; /** * Unexpected error */ unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; /** @internal */ export declare const CrmLeadsAddGlobals$inboundSchema: z.ZodType; /** @internal */ export type CrmLeadsAddGlobals$Outbound = { consumerId?: string | undefined; appId?: string | undefined; }; /** @internal */ export declare const CrmLeadsAddGlobals$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace CrmLeadsAddGlobals$ { /** @deprecated use `CrmLeadsAddGlobals$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `CrmLeadsAddGlobals$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `CrmLeadsAddGlobals$Outbound` instead. */ type Outbound = CrmLeadsAddGlobals$Outbound; } export declare function crmLeadsAddGlobalsToJSON(crmLeadsAddGlobals: CrmLeadsAddGlobals): string; export declare function crmLeadsAddGlobalsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const CrmLeadsAddRequest$inboundSchema: z.ZodType; /** @internal */ export type CrmLeadsAddRequest$Outbound = { raw: boolean; serviceId?: string | undefined; Lead: components.LeadInput$Outbound; }; /** @internal */ export declare const CrmLeadsAddRequest$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace CrmLeadsAddRequest$ { /** @deprecated use `CrmLeadsAddRequest$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `CrmLeadsAddRequest$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `CrmLeadsAddRequest$Outbound` instead. */ type Outbound = CrmLeadsAddRequest$Outbound; } export declare function crmLeadsAddRequestToJSON(crmLeadsAddRequest: CrmLeadsAddRequest): string; export declare function crmLeadsAddRequestFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const CrmLeadsAddResponse$inboundSchema: z.ZodType; /** @internal */ export type CrmLeadsAddResponse$Outbound = { HttpMeta: components.HTTPMetadata$Outbound; CreateLeadResponse?: components.CreateLeadResponse$Outbound | undefined; UnexpectedErrorResponse?: components.UnexpectedErrorResponse$Outbound | undefined; }; /** @internal */ export declare const CrmLeadsAddResponse$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace CrmLeadsAddResponse$ { /** @deprecated use `CrmLeadsAddResponse$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `CrmLeadsAddResponse$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `CrmLeadsAddResponse$Outbound` instead. */ type Outbound = CrmLeadsAddResponse$Outbound; } export declare function crmLeadsAddResponseToJSON(crmLeadsAddResponse: CrmLeadsAddResponse): string; export declare function crmLeadsAddResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=crmleadsadd.d.ts.map