/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { incidentRolesCreate } from "../funcs/incidentRolesCreate.js"; import { incidentRolesDelete } from "../funcs/incidentRolesDelete.js"; import { incidentRolesGet } from "../funcs/incidentRolesGet.js"; import { incidentRolesList } from "../funcs/incidentRolesList.js"; import { incidentRolesUpdate } from "../funcs/incidentRolesUpdate.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; import * as operations from "../models/operations/index.js"; import { unwrapAsync } from "../types/fp.js"; export class IncidentRoles extends ClientSDK { /** * List Incident Roles V2 * * @remarks * List all incident roles for an organisation. */ async list( options?: RequestOptions, ): Promise { return unwrapAsync(incidentRolesList( this, options, )); } /** * Create Incident Roles V2 * * @remarks * Create a new incident role */ async create( request: components.CreateRequestBody8, options?: RequestOptions, ): Promise { return unwrapAsync(incidentRolesCreate( this, request, options, )); } /** * Delete Incident Roles V2 * * @remarks * Removes an existing role */ async delete( request: operations.IncidentRolesV2NumberDeleteRequest, options?: RequestOptions, ): Promise { return unwrapAsync(incidentRolesDelete( this, request, options, )); } /** * Show Incident Roles V2 * * @remarks * Get a single incident role. */ async get( request: operations.IncidentRolesV2NumberShowRequest, options?: RequestOptions, ): Promise { return unwrapAsync(incidentRolesGet( this, request, options, )); } /** * Update Incident Roles V2 * * @remarks * Update an existing incident role */ async update( request: operations.IncidentRolesV2NumberUpdateRequest, options?: RequestOptions, ): Promise { return unwrapAsync(incidentRolesUpdate( this, request, options, )); } }