cloudflare
Version:
The official TypeScript library for the Cloudflare API
27 lines • 1.17 kB
JavaScript
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from "../../../../core/resource.mjs";
import { CursorPaginationAfter, } from "../../../../core/pagination.mjs";
import { path } from "../../../../internal/utils/path.mjs";
export var BaseChangelog = /* @__PURE__ */ (() => {
class BaseChangelog extends APIResource {
/**
* Returns the audit history for a flag, newest first. Each entry includes the
* event type and full flag state after the change; `update` entries include a
* field-level diff. Capped at 200 entries per flag.
*/
list(flagKey, params, options) {
const { account_id, app_id, ...query } = params;
return this._client.getAPIList(path `/accounts/${account_id}/flagship/apps/${app_id}/flags/${flagKey}/changelog`, (CursorPaginationAfter), { query, ...options });
}
}
BaseChangelog._key = Object.freeze([
'flagship',
'apps',
'flags',
'changelog',
]);
return BaseChangelog;
})();
export class Changelog extends BaseChangelog {
}
//# sourceMappingURL=changelog.mjs.map