/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { incidentAttachmentsCreate } from "../funcs/incidentAttachmentsCreate.js"; import { incidentAttachmentsDelete } from "../funcs/incidentAttachmentsDelete.js"; import { incidentAttachmentsList } from "../funcs/incidentAttachmentsList.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 IncidentAttachments extends ClientSDK { /** * List Incident Attachments V1 * * @remarks * List all incident attachements for a given external resource or incident. You must provide either a specific incident ID or a specific external resource type and external ID. */ async list( request: operations.IncidentAttachmentsV1NumberListRequest, options?: RequestOptions, ): Promise { return unwrapAsync(incidentAttachmentsList( this, request, options, )); } /** * Create Incident Attachments V1 * * @remarks * Attaches an external resource to an incident */ async create( request: components.CreateRequestBody5, options?: RequestOptions, ): Promise { return unwrapAsync(incidentAttachmentsCreate( this, request, options, )); } /** * Delete Incident Attachments V1 * * @remarks * Unattaches an external resouce from an incident */ async delete( request: operations.IncidentAttachmentsV1NumberDeleteRequest, options?: RequestOptions, ): Promise { return unwrapAsync(incidentAttachmentsDelete( this, request, options, )); } }