import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { DocumentSigned } from "../components/documentsigned.js"; import { HTTPMetadata } from "../components/httpmetadata.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * Determines the date-based API version associated with your API call. If none is provided, your application's [minimum API version](https://docs.gusto.com/embedded-payroll/docs/api-versioning#minimum-api-version) is used. */ export declare const PutV1ContractorDocumentSignHeaderXGustoAPIVersion: { readonly TwoThousandAndTwentyFiveMinus06Minus15: "2025-06-15"; }; /** * Determines the date-based API version associated with your API call. If none is provided, your application's [minimum API version](https://docs.gusto.com/embedded-payroll/docs/api-versioning#minimum-api-version) is used. */ export type PutV1ContractorDocumentSignHeaderXGustoAPIVersion = ClosedEnum; export type Fields = { /** * Unique identifier of the field */ key?: string | undefined; /** * Value for the field */ value?: string | undefined; }; export type PutV1ContractorDocumentSignRequestBody = { /** * List of fields and the values they will be set to. */ fields: Array; /** * Whether you agree to sign electronically */ agree: boolean; /** * The IP address of the signatory who signed the form. You must provide the IP address with either this parameter OR you can leave out this parameter and set the IP address in the request header using the `x-gusto-client-ip` header instead. */ signedByIpAddress?: string | undefined; }; export type PutV1ContractorDocumentSignRequest = { /** * Determines the date-based API version associated with your API call. If none is provided, your application's [minimum API version](https://docs.gusto.com/embedded-payroll/docs/api-versioning#minimum-api-version) is used. */ xGustoAPIVersion?: PutV1ContractorDocumentSignHeaderXGustoAPIVersion | undefined; /** * The UUID of the document */ documentUuid: string; /** * Optional header to supply the IP address. This can be used to supply the IP address for signature endpoints instead of the signed_by_ip_address parameter. */ xGustoClientIp?: string | undefined; requestBody: PutV1ContractorDocumentSignRequestBody; }; export type PutV1ContractorDocumentSignResponse = { httpMeta: HTTPMetadata; /** * Example response */ documentSigned?: DocumentSigned | undefined; }; /** @internal */ export declare const PutV1ContractorDocumentSignHeaderXGustoAPIVersion$outboundSchema: z.ZodNativeEnum; /** @internal */ export type Fields$Outbound = { key?: string | undefined; value?: string | undefined; }; /** @internal */ export declare const Fields$outboundSchema: z.ZodType; export declare function fieldsToJSON(fields: Fields): string; /** @internal */ export type PutV1ContractorDocumentSignRequestBody$Outbound = { fields: Array; agree: boolean; signed_by_ip_address?: string | undefined; }; /** @internal */ export declare const PutV1ContractorDocumentSignRequestBody$outboundSchema: z.ZodType; export declare function putV1ContractorDocumentSignRequestBodyToJSON(putV1ContractorDocumentSignRequestBody: PutV1ContractorDocumentSignRequestBody): string; /** @internal */ export type PutV1ContractorDocumentSignRequest$Outbound = { "X-Gusto-API-Version": string; document_uuid: string; "x-gusto-client-ip"?: string | undefined; RequestBody: PutV1ContractorDocumentSignRequestBody$Outbound; }; /** @internal */ export declare const PutV1ContractorDocumentSignRequest$outboundSchema: z.ZodType; export declare function putV1ContractorDocumentSignRequestToJSON(putV1ContractorDocumentSignRequest: PutV1ContractorDocumentSignRequest): string; /** @internal */ export declare const PutV1ContractorDocumentSignResponse$inboundSchema: z.ZodType; export declare function putV1ContractorDocumentSignResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=putv1contractordocumentsign.d.ts.map