/** * incident.io * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import * as runtime from '../runtime.js'; import { type AlertAttachmentsCreatePayloadV2 } from '../models/AlertAttachmentsCreatePayloadV2.js'; import { type AlertAttachmentsCreateResultV2 } from '../models/AlertAttachmentsCreateResultV2.js'; import { type AlertAttachmentsListResultV2 } from '../models/AlertAttachmentsListResultV2.js'; export interface AlertAttachmentsV2CreateRequest { /** * */ body: AlertAttachmentsCreatePayloadV2; } export interface AlertAttachmentsV2DeleteRequest { /** * ID of the alert attachment */ id: string; } export interface AlertAttachmentsV2ListRequest { /** * ID of the alert to list attachments for. Provide exactly one of alert_id or alert_group_id. */ alert_id?: string; /** * ID of the alert group to list attachments for. Provide exactly one of alert_id or alert_group_id. */ alert_group_id?: string; /** * Integer number of records to return */ page_size?: number; /** * An alert attachment's ID. This endpoint will return the attachments after this one in the response order. */ after?: string; } /** * */ export declare class AlertAttachmentsV2Api extends runtime.BaseAPI { /** * Creates request options for alertAttachmentsV2Create without sending the request */ alertAttachmentsV2CreateRequestOpts(requestParameters: AlertAttachmentsV2CreateRequest): Promise; /** * Attach a URL to an alert or alert group. Provide exactly one of alert_id or alert_group_id. A URL for a ticket or pull request from a connected integration is attached as that ticket or pull request. Any other URL is attached as a link. A URL that is already attached returns a 422. * Create Alert Attachments V2 */ alertAttachmentsV2CreateRaw(requestParameters: AlertAttachmentsV2CreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Attach a URL to an alert or alert group. Provide exactly one of alert_id or alert_group_id. A URL for a ticket or pull request from a connected integration is attached as that ticket or pull request. Any other URL is attached as a link. A URL that is already attached returns a 422. * Create Alert Attachments V2 */ alertAttachmentsV2Create(requestParameters: AlertAttachmentsV2CreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for alertAttachmentsV2Delete without sending the request */ alertAttachmentsV2DeleteRequestOpts(requestParameters: AlertAttachmentsV2DeleteRequest): Promise; /** * Remove an attachment from its alert or alert group. * Delete Alert Attachments V2 */ alertAttachmentsV2DeleteRaw(requestParameters: AlertAttachmentsV2DeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Remove an attachment from its alert or alert group. * Delete Alert Attachments V2 */ alertAttachmentsV2Delete(requestParameters: AlertAttachmentsV2DeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for alertAttachmentsV2List without sending the request */ alertAttachmentsV2ListRequestOpts(requestParameters: AlertAttachmentsV2ListRequest): Promise; /** * List the attachments on an alert or alert group, newest first. Provide exactly one of alert_id or alert_group_id. Listing by alert_id returns only what is attached to that alert, not what is attached to its alert group. * List Alert Attachments V2 */ alertAttachmentsV2ListRaw(requestParameters: AlertAttachmentsV2ListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * List the attachments on an alert or alert group, newest first. Provide exactly one of alert_id or alert_group_id. Listing by alert_id returns only what is attached to that alert, not what is attached to its alert group. * List Alert Attachments V2 */ alertAttachmentsV2List(requestParameters?: AlertAttachmentsV2ListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; }