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 CrmLeadsUpdateGlobals = { /** * 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 CrmLeadsUpdateRequest = { /** * ID of the record you are acting upon. */ id: string; /** * 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; /** * Include raw response. Mostly used for debugging purposes */ raw?: boolean | undefined; lead: components.LeadInput; }; export type CrmLeadsUpdateResponse = { httpMeta: components.HTTPMetadata; /** * Lead updated */ updateLeadResponse?: components.UpdateLeadResponse | undefined; /** * Unexpected error */ unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; /** @internal */ export declare const CrmLeadsUpdateGlobals$inboundSchema: z.ZodType; /** @internal */ export type CrmLeadsUpdateGlobals$Outbound = { consumerId?: string | undefined; appId?: string | undefined; }; /** @internal */ export declare const CrmLeadsUpdateGlobals$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 CrmLeadsUpdateGlobals$ { /** @deprecated use `CrmLeadsUpdateGlobals$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `CrmLeadsUpdateGlobals$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `CrmLeadsUpdateGlobals$Outbound` instead. */ type Outbound = CrmLeadsUpdateGlobals$Outbound; } export declare function crmLeadsUpdateGlobalsToJSON(crmLeadsUpdateGlobals: CrmLeadsUpdateGlobals): string; export declare function crmLeadsUpdateGlobalsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const CrmLeadsUpdateRequest$inboundSchema: z.ZodType; /** @internal */ export type CrmLeadsUpdateRequest$Outbound = { id: string; serviceId?: string | undefined; raw: boolean; Lead: components.LeadInput$Outbound; }; /** @internal */ export declare const CrmLeadsUpdateRequest$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 CrmLeadsUpdateRequest$ { /** @deprecated use `CrmLeadsUpdateRequest$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `CrmLeadsUpdateRequest$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `CrmLeadsUpdateRequest$Outbound` instead. */ type Outbound = CrmLeadsUpdateRequest$Outbound; } export declare function crmLeadsUpdateRequestToJSON(crmLeadsUpdateRequest: CrmLeadsUpdateRequest): string; export declare function crmLeadsUpdateRequestFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const CrmLeadsUpdateResponse$inboundSchema: z.ZodType; /** @internal */ export type CrmLeadsUpdateResponse$Outbound = { HttpMeta: components.HTTPMetadata$Outbound; UpdateLeadResponse?: components.UpdateLeadResponse$Outbound | undefined; UnexpectedErrorResponse?: components.UnexpectedErrorResponse$Outbound | undefined; }; /** @internal */ export declare const CrmLeadsUpdateResponse$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 CrmLeadsUpdateResponse$ { /** @deprecated use `CrmLeadsUpdateResponse$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `CrmLeadsUpdateResponse$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `CrmLeadsUpdateResponse$Outbound` instead. */ type Outbound = CrmLeadsUpdateResponse$Outbound; } export declare function crmLeadsUpdateResponseToJSON(crmLeadsUpdateResponse: CrmLeadsUpdateResponse): string; export declare function crmLeadsUpdateResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=crmleadsupdate.d.ts.map