@vercel/sdk
Version:
<p align="center"> <a href="https://vercel.com"> <img src="https://assets.vercel.com/image/upload/v1588805858/repositories/vercel/logo.png" height="96"> <h3 align="center">Vercel</h3> </a> <p align="center">Develop. Preview. Ship.</p> </p>
76 lines • 2.86 kB
TypeScript
import * as z from "zod/v3";
import { Result as SafeParseResult } from "../types/fp.js";
import { SDKValidationError } from "./sdkvalidationerror.js";
export type UploadArtifactRequest = {
/**
* The artifact size in bytes
*/
contentLength: number;
/**
* The time taken to generate the uploaded artifact in milliseconds.
*/
xArtifactDuration?: number | undefined;
/**
* The continuous integration or delivery environment where this artifact was generated.
*/
xArtifactClientCi?: string | undefined;
/**
* 1 if the client is an interactive shell. Otherwise 0
*/
xArtifactClientInteractive?: number | undefined;
/**
* The base64 encoded tag for this artifact. The value is sent back to clients when the artifact is downloaded as the header `x-artifact-tag`
*/
xArtifactTag?: string | undefined;
/**
* The SHA of the source control revision that generated this artifact.
*/
xArtifactSha?: string | undefined;
/**
* A hash representing uncommitted changes in the working directory when this artifact was generated.
*/
xArtifactDirtyHash?: string | undefined;
/**
* The artifact hash
*/
hash: string;
/**
* The Team identifier to perform the request on behalf of.
*/
teamId?: string | undefined;
/**
* The Team slug to perform the request on behalf of.
*/
slug?: string | undefined;
requestBody: ReadableStream<Uint8Array> | Blob | ArrayBuffer | Uint8Array;
};
/**
* File successfully uploaded
*/
export type UploadArtifactResponseBody = {
/**
* Array of URLs where the artifact was updated
*/
urls: Array<string>;
};
/** @internal */
export type UploadArtifactRequest$Outbound = {
"Content-Length": number;
"x-artifact-duration"?: number | undefined;
"x-artifact-client-ci"?: string | undefined;
"x-artifact-client-interactive"?: number | undefined;
"x-artifact-tag"?: string | undefined;
"x-artifact-sha"?: string | undefined;
"x-artifact-dirty-hash"?: string | undefined;
hash: string;
teamId?: string | undefined;
slug?: string | undefined;
RequestBody: ReadableStream<Uint8Array> | Blob | ArrayBuffer | Uint8Array;
};
/** @internal */
export declare const UploadArtifactRequest$outboundSchema: z.ZodType<UploadArtifactRequest$Outbound, z.ZodTypeDef, UploadArtifactRequest>;
export declare function uploadArtifactRequestToJSON(uploadArtifactRequest: UploadArtifactRequest): string;
/** @internal */
export declare const UploadArtifactResponseBody$inboundSchema: z.ZodType<UploadArtifactResponseBody, z.ZodTypeDef, unknown>;
export declare function uploadArtifactResponseBodyFromJSON(jsonString: string): SafeParseResult<UploadArtifactResponseBody, SDKValidationError>;
//# sourceMappingURL=uploadartifactop.d.ts.map