/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { alertRoutesCreate } from "../funcs/alertRoutesCreate.js"; import { alertRoutesDelete } from "../funcs/alertRoutesDelete.js"; import { alertRoutesShow } from "../funcs/alertRoutesShow.js"; import { alertRoutesUpdate } from "../funcs/alertRoutesUpdate.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 AlertRoutes extends ClientSDK { /** * Create Alert Routes V2 * * @remarks * Create an alert route. * * We recommend you create alert routes in the incident.io dashboard where we allow * previewing filter and grouping rules. */ async create( request: components.CreateRequestBody, options?: RequestOptions, ): Promise { return unwrapAsync(alertRoutesCreate( this, request, options, )); } /** * Destroy Alert Routes V2 * * @remarks * Archives an alert route. * * We recommend you create alert routes in the incident.io dashboard where we allow * previewing filter and grouping rules. */ async delete( request: operations.AlertRoutesV2NumberDestroyRequest, options?: RequestOptions, ): Promise { return unwrapAsync(alertRoutesDelete( this, request, options, )); } /** * Show Alert Routes V2 * * @remarks * Show an alert route. * * We recommend you create alert routes in the incident.io dashboard where we allow * previewing filter and grouping rules. */ async show( request: operations.AlertRoutesV2NumberShowRequest, options?: RequestOptions, ): Promise { return unwrapAsync(alertRoutesShow( this, request, options, )); } /** * Update Alert Routes V2 * * @remarks * Updates an alert route. * * We recommend you create alert routes in the incident.io dashboard where we allow * previewing filter and grouping rules. */ async update( request: operations.AlertRoutesV2NumberUpdateRequest, options?: RequestOptions, ): Promise { return unwrapAsync(alertRoutesUpdate( this, request, options, )); } }