/** * What a caller passes alongside a request, rather than over the wire. * * These carry `AbortSignal`s and raw bytes, which are runtime objects and not * JSON, so they are declared as ordinary interfaces: there is no wire value * here for a schema to validate. */ /** Options every request accepts. */ export interface RequestOptions { /** Cancels the request; the rejection is the signal's abort reason. */ signal?: AbortSignal | undefined; } /** Options for a mutation the daemon guards with `If-Match`. */ export interface VersionedRequestOptions extends RequestOptions { /** The `version` the client last saw, sent as the `If-Match` header. */ ifMatch: string; } /** Options for a mutation that honors `If-Match` without requiring it. */ export interface OptionallyVersionedRequestOptions extends RequestOptions { /** The `version` the client last saw, sent as the `If-Match` header. */ ifMatch?: string | undefined; } /** Options for a read that may answer `304 Not Modified`. */ export interface ConditionalRequestOptions extends RequestOptions { /** The `ETag` the client already holds, sent as `If-None-Match`. */ ifNoneMatch?: string | undefined; } /** An image the daemon accepts as a picture. */ export type ImageMimeType = "image/png" | "image/jpeg" | "image/webp"; /** Bytes to upload, in whichever form the caller already holds them. */ export type BinaryData = ArrayBuffer | ArrayBufferView; /** An image being uploaded. */ export interface ImageUpload { contentType: ImageMimeType; data: BinaryData; } /** Binary file or image bytes served by the daemon. */ export interface BinaryContent { contentType: string; data: ArrayBuffer; /** The entity tag, when the endpoint serves conditional requests. */ etag: string | null; } //# sourceMappingURL=requestOptions.d.ts.map