import * as z from "zod/v3";
import { Result as SafeParseResult } from "../../types/fp.js";
import * as components from "../components/index.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
export type ProxyPatchProxyGlobals = {
    /**
     * 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 ProxyPatchProxyRequestBody3 = {};
export type ProxyPatchProxyRequestBody1 = {};
export type ProxyPatchProxyRequest = {
    /**
     * 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;
    /**
     * 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;
    /**
     * Specify which unified API to use for the connection lookup. Required for multi-API connectors (e.g., Workday) to ensure the correct credentials are used.
     */
    unifiedApi?: string | undefined;
    /**
     * Downstream URL
     */
    downstreamUrl: string;
    /**
     * Downstream authorization header. This will skip the Vault token injection.
     */
    downstreamAuthorization?: string | undefined;
    /**
     * Depending on the verb/method of the request this will contain the request body you want to POST/PATCH/PUT.
     */
    requestBody?: ReadableStream<Uint8Array> | Blob | ArrayBuffer | Uint8Array | undefined;
};
export type ProxyPatchProxyResponse = {
    httpMeta: components.HTTPMetadata;
    /**
     * Ok
     */
    responseJson?: {
        [k: string]: any;
    } | undefined;
    /**
     * Ok
     */
    responseBinary?: ReadableStream<Uint8Array> | undefined;
    /**
     * Ok
     */
    responsePdf?: ReadableStream<Uint8Array> | undefined;
    /**
     * Ok
     */
    responseXml?: string | undefined;
    /**
     * Ok
     */
    responseCsv?: string | undefined;
    /**
     * Ok
     */
    responseText?: string | undefined;
    /**
     * Proxy error
     */
    errorJson?: {
        [k: string]: any;
    } | undefined;
    /**
     * Proxy error
     */
    errorXml?: string | undefined;
    /**
     * Proxy error
     */
    errorHtml?: string | undefined;
    /**
     * Proxy error
     */
    errorText?: string | undefined;
};
/** @internal */
export type ProxyPatchProxyRequestBody3$Outbound = {};
/** @internal */
export declare const ProxyPatchProxyRequestBody3$outboundSchema: z.ZodType<ProxyPatchProxyRequestBody3$Outbound, z.ZodTypeDef, ProxyPatchProxyRequestBody3>;
export declare function proxyPatchProxyRequestBody3ToJSON(proxyPatchProxyRequestBody3: ProxyPatchProxyRequestBody3): string;
/** @internal */
export type ProxyPatchProxyRequestBody1$Outbound = {};
/** @internal */
export declare const ProxyPatchProxyRequestBody1$outboundSchema: z.ZodType<ProxyPatchProxyRequestBody1$Outbound, z.ZodTypeDef, ProxyPatchProxyRequestBody1>;
export declare function proxyPatchProxyRequestBody1ToJSON(proxyPatchProxyRequestBody1: ProxyPatchProxyRequestBody1): string;
/** @internal */
export type ProxyPatchProxyRequest$Outbound = {
    consumerId?: string | undefined;
    appId?: string | undefined;
    serviceId: string;
    unifiedApi?: string | undefined;
    downstreamUrl: string;
    downstreamAuthorization?: string | undefined;
    RequestBody?: ReadableStream<Uint8Array> | Blob | ArrayBuffer | Uint8Array | undefined;
};
/** @internal */
export declare const ProxyPatchProxyRequest$outboundSchema: z.ZodType<ProxyPatchProxyRequest$Outbound, z.ZodTypeDef, ProxyPatchProxyRequest>;
export declare function proxyPatchProxyRequestToJSON(proxyPatchProxyRequest: ProxyPatchProxyRequest): string;
/** @internal */
export declare const ProxyPatchProxyResponse$inboundSchema: z.ZodType<ProxyPatchProxyResponse, z.ZodTypeDef, unknown>;
export declare function proxyPatchProxyResponseFromJSON(jsonString: string): SafeParseResult<ProxyPatchProxyResponse, SDKValidationError>;
//# sourceMappingURL=proxypatchproxy.d.ts.map