UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

50 lines • 2 kB
import { APIResource } from "../../../../core/resource.mjs"; import { PagePromise, SinglePage } from "../../../../core/pagination.mjs"; import { RequestOptions } from "../../../../internal/request-options.mjs"; export declare class BaseLogs extends APIResource { static readonly _key: readonly ['r2', 'superSlurper', 'jobs', 'logs']; /** * Gets log entries for an R2 Super Slurper migration job, showing migration status * changes, errors, etc. * * @example * ```ts * // Automatically fetches more pages as needed. * for await (const logListResponse of client.r2.superSlurper.jobs.logs.list( * 'job_id', * { account_id: 'account_id' }, * )) { * // ... * } * ``` */ list(jobID: string, params: LogListParams, options?: RequestOptions): PagePromise<LogListResponsesSinglePage, LogListResponse>; } export declare class Logs extends BaseLogs { } export type LogListResponsesSinglePage = SinglePage<LogListResponse>; export interface LogListResponse { createdAt?: string; job?: string; logType?: 'migrationStart' | 'migrationComplete' | 'migrationAbort' | 'migrationError' | 'migrationPause' | 'migrationResume' | 'migrationErrorFailedContinuation' | 'importErrorRetryExhaustion' | 'importSkippedStorageClass' | 'importSkippedOversized' | 'importSkippedEmptyObject' | 'importSkippedUnsupportedContentType' | 'importSkippedExcludedContentType' | 'importSkippedInvalidMedia' | 'importSkippedRequiresRetrieval'; message?: string | null; objectKey?: string | null; } export interface LogListParams { /** * Path param */ account_id: string; /** * Query param */ limit?: number; /** * Query param */ offset?: number; } export declare namespace Logs { export { type LogListResponse as LogListResponse, type LogListResponsesSinglePage as LogListResponsesSinglePage, type LogListParams as LogListParams, }; } //# sourceMappingURL=logs.d.mts.map