cloudflare
Version:
The official TypeScript library for the Cloudflare API
44 lines • 1.33 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 BaseQuota extends APIResource {
static readonly _key: readonly ['secretsStore', 'quota'];
/**
* Lists the number of secrets used in the account.
*
* @example
* ```ts
* const quota = await client.secretsStore.quota.get({
* account_id: '985e105f4ecef8ad9ca31a8372d0c353',
* });
* ```
*/
get(params: QuotaGetParams, options?: RequestOptions): APIPromise<QuotaGetResponse>;
}
export declare class Quota extends BaseQuota {
}
export interface QuotaGetResponse {
secrets: QuotaGetResponse.Secrets;
}
export declare namespace QuotaGetResponse {
interface Secrets {
/**
* The number of secrets the account is entitled to use.
*/
quota: number;
/**
* The number of secrets the account is currently using.
*/
usage: number;
}
}
export interface QuotaGetParams {
/**
* Account identifier.
*/
account_id: string;
}
export declare namespace Quota {
export { type QuotaGetResponse as QuotaGetResponse, type QuotaGetParams as QuotaGetParams };
}
//# sourceMappingURL=quota.d.mts.map