/** * 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 IncidentTimelineItemsCreatePayloadV2 } from '../models/IncidentTimelineItemsCreatePayloadV2.js'; import { type IncidentTimelineItemsCreateResultV2 } from '../models/IncidentTimelineItemsCreateResultV2.js'; import { type IncidentTimelineItemsListResultV2 } from '../models/IncidentTimelineItemsListResultV2.js'; import { type IncidentTimelineItemsUpdatePayloadV2 } from '../models/IncidentTimelineItemsUpdatePayloadV2.js'; import { type IncidentTimelineItemsUpdateResultV2 } from '../models/IncidentTimelineItemsUpdateResultV2.js'; export interface IncidentTimelineItemsV2CreateRequest { /** * */ body: IncidentTimelineItemsCreatePayloadV2; } export interface IncidentTimelineItemsV2ListRequest { /** * Incident whose timeline you want to list */ incident_id: string; /** * Integer number of records to return */ page_size?: number; /** * A timeline item's ID. This endpoint returns the items that follow it. */ after?: string; } export interface IncidentTimelineItemsV2UpdateRequest { /** * Timeline item to edit */ id: string; /** * */ body: IncidentTimelineItemsUpdatePayloadV2; } /** * */ export declare class IncidentTimelineItemsV2Api extends runtime.BaseAPI { /** * Creates request options for incidentTimelineItemsV2Create without sending the request */ incidentTimelineItemsV2CreateRequestOpts(requestParameters: IncidentTimelineItemsV2CreateRequest): Promise; /** * Add a custom item to an incident\'s timeline. Items created here are custom, so they carry no activity_log_id and their timestamp stays editable. Set it to when the thing actually happened rather than when you\'re telling us about it - a deploy you shipped an hour ago belongs an hour back on the timeline. Every request needs an idempotency_key. Retrying with a key we\'ve already seen returns the item the first request created rather than writing a second one, so an automation that retries on a timeout doesn\'t leave a duplicate behind. * Create Incident Timeline Items V2 */ incidentTimelineItemsV2CreateRaw(requestParameters: IncidentTimelineItemsV2CreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Add a custom item to an incident\'s timeline. Items created here are custom, so they carry no activity_log_id and their timestamp stays editable. Set it to when the thing actually happened rather than when you\'re telling us about it - a deploy you shipped an hour ago belongs an hour back on the timeline. Every request needs an idempotency_key. Retrying with a key we\'ve already seen returns the item the first request created rather than writing a second one, so an automation that retries on a timeout doesn\'t leave a duplicate behind. * Create Incident Timeline Items V2 */ incidentTimelineItemsV2Create(requestParameters: IncidentTimelineItemsV2CreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for incidentTimelineItemsV2List without sending the request */ incidentTimelineItemsV2ListRequestOpts(requestParameters: IncidentTimelineItemsV2ListRequest): Promise; /** * List the timeline items for an incident, oldest first. Items are ordered by timestamp, then by ID to break ties, which is the order the dashboard shows them in. If the incident has streams, this returns the items on its streams too - they\'re part of the same narrative - and incident_id on each item tells you which stream it came from. Items can be edited after they\'re written, and this endpoint always returns their current state, so listing an incident again gives you the timeline as it stands today. * List Incident Timeline Items V2 */ incidentTimelineItemsV2ListRaw(requestParameters: IncidentTimelineItemsV2ListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * List the timeline items for an incident, oldest first. Items are ordered by timestamp, then by ID to break ties, which is the order the dashboard shows them in. If the incident has streams, this returns the items on its streams too - they\'re part of the same narrative - and incident_id on each item tells you which stream it came from. Items can be edited after they\'re written, and this endpoint always returns their current state, so listing an incident again gives you the timeline as it stands today. * List Incident Timeline Items V2 */ incidentTimelineItemsV2List(requestParameters: IncidentTimelineItemsV2ListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for incidentTimelineItemsV2Update without sending the request */ incidentTimelineItemsV2UpdateRequestOpts(requestParameters: IncidentTimelineItemsV2UpdateRequest): Promise; /** * Edit a timeline item. Fields you leave out are unchanged, and an empty description removes it. Timestamp can only be changed on a custom item: a promoted one follows the activity it came from. * Update Incident Timeline Items V2 */ incidentTimelineItemsV2UpdateRaw(requestParameters: IncidentTimelineItemsV2UpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Edit a timeline item. Fields you leave out are unchanged, and an empty description removes it. Timestamp can only be changed on a custom item: a promoted one follows the activity it came from. * Update Incident Timeline Items V2 */ incidentTimelineItemsV2Update(requestParameters: IncidentTimelineItemsV2UpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; }