/** * 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 IncidentAttachmentsCreatePayloadV1 } from '../models/IncidentAttachmentsCreatePayloadV1.js'; import { type IncidentAttachmentsCreateResultV1 } from '../models/IncidentAttachmentsCreateResultV1.js'; import { type IncidentAttachmentsListResultV1 } from '../models/IncidentAttachmentsListResultV1.js'; export interface IncidentAttachmentsV1CreateRequest { /** * */ body: IncidentAttachmentsCreatePayloadV1; } export interface IncidentAttachmentsV1DeleteRequest { /** * Unique identifier of this incident membership */ id: string; } export interface IncidentAttachmentsV1ListRequest { /** * Incident that this attachment is against */ incident_id?: string; /** * ID of the resource in the external system */ external_id?: string; /** * E.g. PagerDuty: the external system that holds the resource */ resource_type?: IncidentAttachmentsV1ListResourceTypeEnum; } /** * */ export declare class IncidentAttachmentsV1Api extends runtime.BaseAPI { /** * Creates request options for incidentAttachmentsV1Create without sending the request */ incidentAttachmentsV1CreateRequestOpts(requestParameters: IncidentAttachmentsV1CreateRequest): Promise; /** * Attaches an external resource to an incident. You must provide a resource with resource_type and either external_id or url, but not both. When providing a url, the server will create the attachment from that link for the given resource type if the integration is installed and the link is valid. To attach an arbitrary link that isn\'t backed by an integration, use the arbitrary_url resource type with a url, and optionally a title and emoji. * Create Incident Attachments V1 */ incidentAttachmentsV1CreateRaw(requestParameters: IncidentAttachmentsV1CreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Attaches an external resource to an incident. You must provide a resource with resource_type and either external_id or url, but not both. When providing a url, the server will create the attachment from that link for the given resource type if the integration is installed and the link is valid. To attach an arbitrary link that isn\'t backed by an integration, use the arbitrary_url resource type with a url, and optionally a title and emoji. * Create Incident Attachments V1 */ incidentAttachmentsV1Create(requestParameters: IncidentAttachmentsV1CreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for incidentAttachmentsV1Delete without sending the request */ incidentAttachmentsV1DeleteRequestOpts(requestParameters: IncidentAttachmentsV1DeleteRequest): Promise; /** * Unattaches an external resource from an incident * Delete Incident Attachments V1 */ incidentAttachmentsV1DeleteRaw(requestParameters: IncidentAttachmentsV1DeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Unattaches an external resource from an incident * Delete Incident Attachments V1 */ incidentAttachmentsV1Delete(requestParameters: IncidentAttachmentsV1DeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for incidentAttachmentsV1List without sending the request */ incidentAttachmentsV1ListRequestOpts(requestParameters: IncidentAttachmentsV1ListRequest): Promise; /** * List all incident attachments for a given external resource or incident. You must provide either a specific incident ID or a specific external resource type and external ID. * List Incident Attachments V1 */ incidentAttachmentsV1ListRaw(requestParameters: IncidentAttachmentsV1ListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * List all incident attachments for a given external resource or incident. You must provide either a specific incident ID or a specific external resource type and external ID. * List Incident Attachments V1 */ incidentAttachmentsV1List(requestParameters?: IncidentAttachmentsV1ListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; } /** * @export */ export declare const IncidentAttachmentsV1ListResourceTypeEnum: { readonly PagerDutyIncident: "pager_duty_incident"; readonly OpsgenieAlert: "opsgenie_alert"; readonly DatadogMonitorAlert: "datadog_monitor_alert"; readonly GithubPullRequest: "github_pull_request"; readonly GitlabMergeRequest: "gitlab_merge_request"; readonly SentryIssue: "sentry_issue"; readonly JiraIssue: "jira_issue"; readonly JsmAlert: "jsm_alert"; readonly AtlassianStatuspageIncident: "atlassian_statuspage_incident"; readonly ZendeskTicket: "zendesk_ticket"; readonly GoogleCalendarEvent: "google_calendar_event"; readonly OutlookCalendarEvent: "outlook_calendar_event"; readonly SlackFile: "slack_file"; readonly SalesforceCase: "salesforce_case"; readonly PylonIssue: "pylon_issue"; readonly ArbitraryUrl: "arbitrary_url"; readonly Scrubbed: "scrubbed"; readonly StatuspageIncident: "statuspage_incident"; }; export type IncidentAttachmentsV1ListResourceTypeEnum = typeof IncidentAttachmentsV1ListResourceTypeEnum[keyof typeof IncidentAttachmentsV1ListResourceTypeEnum];