/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { rolesList } from "../funcs/rolesList.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as operations from "../models/operations/index.js"; import { PageIterator, unwrapResultIterator } from "../types/operations.js"; export class Roles extends ClientSDK { /** * List all roles * * @remarks * List all roles available in the instance. */ async list( cursor?: string | null | undefined, limit?: number | undefined, options?: RequestOptions, ): Promise> { return unwrapResultIterator(rolesList( this, cursor, limit, options, )); } }