UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

32 lines • 1.07 kB
import { APIResource } from "../../../core/resource.mjs"; import * as Shared from "../../shared.mjs"; import { APIPromise } from "../../../core/api-promise.mjs"; import { RequestOptions } from "../../../internal/request-options.mjs"; export declare class BaseValue extends APIResource { static readonly _key: readonly ['accounts', 'tokens', 'value']; /** * Roll the Account Owned API token secret. * * @example * ```ts * const tokenValue = * await client.accounts.tokens.value.update( * 'ed17574386854bf78a67040be0a770b0', * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' }, * ); * ``` */ update(tokenID: string, params: ValueUpdateParams, options?: RequestOptions): APIPromise<Shared.TokenValue>; } export declare class Value extends BaseValue { } export interface ValueUpdateParams { /** * Account identifier tag. */ account_id: string; } export declare namespace Value { export { type ValueUpdateParams as ValueUpdateParams }; } //# sourceMappingURL=value.d.mts.map