UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

29 lines • 912 B
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from "../../../core/resource.mjs"; import { path } from "../../../internal/utils/path.mjs"; export var BaseValue = /* @__PURE__ */ (() => { class BaseValue extends APIResource { /** * Roll the token secret. * * @example * ```ts * const tokenValue = await client.user.tokens.value.update( * 'ed17574386854bf78a67040be0a770b0', * ); * ``` */ update(tokenID, options) { return this._client.put(path `/user/tokens/${tokenID}/value`, options)._thenUnwrap((obj) => obj.result); } } BaseValue._key = Object.freeze([ 'user', 'tokens', 'value', ]); return BaseValue; })(); export class Value extends BaseValue { } //# sourceMappingURL=value.mjs.map