cloudflare
Version:
The official TypeScript library for the Cloudflare API
30 lines • 1.28 kB
text/typescript
import { APIResource } from "../../core/resource.mjs";
import { APIPromise } from "../../core/api-promise.mjs";
import { RequestOptions } from "../../internal/request-options.mjs";
export declare class BaseCredentials extends APIResource {
static readonly _key: readonly ['r2DataCatalog', 'credentials'];
/**
* Store authentication credentials for a catalog. These credentials are used to
* authenticate with R2 storage when performing catalog operations.
*
* @deprecated Use `POST /accounts/{account_id}/basin-catalog/{bucket_name}/credential` instead.
*/
create(bucketName: string, params: CredentialCreateParams, options?: RequestOptions): APIPromise<CredentialCreateResponse | null>;
}
export declare class Credentials extends BaseCredentials {
}
export type CredentialCreateResponse = unknown;
export interface CredentialCreateParams {
/**
* Path param: Identifies the account.
*/
account_id: string;
/**
* Body param: Provides the Cloudflare API token for accessing R2.
*/
token: string;
}
export declare namespace Credentials {
export { type CredentialCreateResponse as CredentialCreateResponse, type CredentialCreateParams as CredentialCreateParams, };
}
//# sourceMappingURL=credentials.d.mts.map