cloudflare
Version:
The official TypeScript library for the Cloudflare API
32 lines • 1.14 kB
TypeScript
import { APIResource } from "../../resource.js";
import * as Core from "../../core.js";
import * as Shared from "../shared.js";
import { RolesV4PagePaginationArray } from "../shared.js";
import { type V4PagePaginationArrayParams } from "../../pagination.js";
export declare class Roles extends APIResource {
/**
* Get all available roles for an account.
*/
list(params: RoleListParams, options?: Core.RequestOptions): Core.PagePromise<RolesV4PagePaginationArray, Shared.Role>;
/**
* Get information about a specific role for an account.
*/
get(roleId: string, params: RoleGetParams, options?: Core.RequestOptions): Core.APIPromise<Shared.Role>;
}
export interface RoleListParams extends V4PagePaginationArrayParams {
/**
* Path param: Account identifier tag.
*/
account_id: string;
}
export interface RoleGetParams {
/**
* Account identifier tag.
*/
account_id: string;
}
export declare namespace Roles {
export { type RoleListParams as RoleListParams, type RoleGetParams as RoleGetParams };
}
export { RolesV4PagePaginationArray };
//# sourceMappingURL=roles.d.ts.map