/** * 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 IncidentTemplatesCreatePayloadV1 } from '../models/IncidentTemplatesCreatePayloadV1.js'; import { type IncidentTemplatesCreateResultV1 } from '../models/IncidentTemplatesCreateResultV1.js'; import { type IncidentTemplatesListResultV1 } from '../models/IncidentTemplatesListResultV1.js'; import { type IncidentTemplatesShowResultV1 } from '../models/IncidentTemplatesShowResultV1.js'; import { type IncidentTemplatesUpdatePayloadV1 } from '../models/IncidentTemplatesUpdatePayloadV1.js'; import { type IncidentTemplatesUpdateResultV1 } from '../models/IncidentTemplatesUpdateResultV1.js'; import { type IncidentTemplatesValidatePayloadV1 } from '../models/IncidentTemplatesValidatePayloadV1.js'; import { type IncidentTemplatesValidateResultV1 } from '../models/IncidentTemplatesValidateResultV1.js'; export interface IncidentTemplatesV1CreateRequest { /** * */ body: IncidentTemplatesCreatePayloadV1; } export interface IncidentTemplatesV1DestroyRequest { /** * The incident template's ID */ id: string; } export interface IncidentTemplatesV1ListRequest { /** * Integer number of records to return */ page_size?: number; /** * An incident template's ID. This endpoint returns a list of templates after this ID in relation to the API response order. */ after?: string; } export interface IncidentTemplatesV1ShowRequest { /** * The incident template's ID */ id: string; } export interface IncidentTemplatesV1UpdateRequest { /** * The incident template's ID */ id: string; /** * */ body: IncidentTemplatesUpdatePayloadV1; } export interface IncidentTemplatesV1ValidateRequest { /** * */ body: IncidentTemplatesValidatePayloadV1; } /** * */ export declare class IncidentTemplatesV1Api extends runtime.BaseAPI { /** * Creates request options for incidentTemplatesV1Create without sending the request */ incidentTemplatesV1CreateRequestOpts(requestParameters: IncidentTemplatesV1CreateRequest): Promise; /** * Create an incident template. * Create Incident Templates V1 */ incidentTemplatesV1CreateRaw(requestParameters: IncidentTemplatesV1CreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Create an incident template. * Create Incident Templates V1 */ incidentTemplatesV1Create(requestParameters: IncidentTemplatesV1CreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for incidentTemplatesV1Destroy without sending the request */ incidentTemplatesV1DestroyRequestOpts(requestParameters: IncidentTemplatesV1DestroyRequest): Promise; /** * Archive an incident template. Fails if the template is still referenced by an alert route. * Destroy Incident Templates V1 */ incidentTemplatesV1DestroyRaw(requestParameters: IncidentTemplatesV1DestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Archive an incident template. Fails if the template is still referenced by an alert route. * Destroy Incident Templates V1 */ incidentTemplatesV1Destroy(requestParameters: IncidentTemplatesV1DestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for incidentTemplatesV1List without sending the request */ incidentTemplatesV1ListRequestOpts(requestParameters: IncidentTemplatesV1ListRequest): Promise; /** * List all incident templates for this organisation. * List Incident Templates V1 */ incidentTemplatesV1ListRaw(requestParameters: IncidentTemplatesV1ListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * List all incident templates for this organisation. * List Incident Templates V1 */ incidentTemplatesV1List(requestParameters?: IncidentTemplatesV1ListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for incidentTemplatesV1Show without sending the request */ incidentTemplatesV1ShowRequestOpts(requestParameters: IncidentTemplatesV1ShowRequest): Promise; /** * Show a single incident template. * Show Incident Templates V1 */ incidentTemplatesV1ShowRaw(requestParameters: IncidentTemplatesV1ShowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Show a single incident template. * Show Incident Templates V1 */ incidentTemplatesV1Show(requestParameters: IncidentTemplatesV1ShowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for incidentTemplatesV1Update without sending the request */ incidentTemplatesV1UpdateRequestOpts(requestParameters: IncidentTemplatesV1UpdateRequest): Promise; /** * Update an incident template. This is a full replacement: any field not supplied is cleared. * Update Incident Templates V1 */ incidentTemplatesV1UpdateRaw(requestParameters: IncidentTemplatesV1UpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Update an incident template. This is a full replacement: any field not supplied is cleared. * Update Incident Templates V1 */ incidentTemplatesV1Update(requestParameters: IncidentTemplatesV1UpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for incidentTemplatesV1Validate without sending the request */ incidentTemplatesV1ValidateRequestOpts(requestParameters: IncidentTemplatesV1ValidateRequest): Promise; /** * Check whether an incident template\'s config is valid, without creating or updating anything. This validates in the same way a create or update would: expressions are compiled and checked against your catalog. An invalid config is an error. A config that is valid but probably not what you meant — such as a name that\'s already taken — comes back as a warning on a successful response, so a client can show it without blocking. * Validate Incident Templates V1 */ incidentTemplatesV1ValidateRaw(requestParameters: IncidentTemplatesV1ValidateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Check whether an incident template\'s config is valid, without creating or updating anything. This validates in the same way a create or update would: expressions are compiled and checked against your catalog. An invalid config is an error. A config that is valid but probably not what you meant — such as a name that\'s already taken — comes back as a warning on a successful response, so a client can show it without blocking. * Validate Incident Templates V1 */ incidentTemplatesV1Validate(requestParameters: IncidentTemplatesV1ValidateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; }