/** * 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 PostmortemDocumentsAttachPayloadV1 } from '../models/PostmortemDocumentsAttachPayloadV1.js'; import { type PostmortemDocumentsAttachResultV1 } from '../models/PostmortemDocumentsAttachResultV1.js'; import { type PostmortemDocumentsListResultV1 } from '../models/PostmortemDocumentsListResultV1.js'; import { type PostmortemDocumentsShowContentResultV1 } from '../models/PostmortemDocumentsShowContentResultV1.js'; import { type PostmortemDocumentsShowResultV1 } from '../models/PostmortemDocumentsShowResultV1.js'; import { type PostmortemDocumentsUpdateStatusPayloadV1 } from '../models/PostmortemDocumentsUpdateStatusPayloadV1.js'; import { type PostmortemDocumentsUpdateStatusResultV1 } from '../models/PostmortemDocumentsUpdateStatusResultV1.js'; export interface PostmortemDocumentsV1AttachRequest { /** * */ body: PostmortemDocumentsAttachPayloadV1; } export interface PostmortemDocumentsV1ListRequest { /** * Integer number of records to return */ page_size?: number; /** * A post-mortem document's ID. This endpoint will return a list of post-mortem documents after this ID. */ after?: string; /** * Filter to only return post-mortem documents for the given incident */ incident_id?: string; /** * Controls the order that results are returned in */ sort_by?: PostmortemDocumentsV1ListSortByEnum; } export interface PostmortemDocumentsV1ShowRequest { /** * Unique identifier for the post-mortem document */ id: string; } export interface PostmortemDocumentsV1ShowContentRequest { /** * Unique identifier for the post-mortem document */ id: string; } export interface PostmortemDocumentsV1UpdateStatusRequest { /** * Unique identifier for the post-mortem document */ id: string; /** * */ body: PostmortemDocumentsUpdateStatusPayloadV1; } /** * */ export declare class PostmortemDocumentsV1Api extends runtime.BaseAPI { /** * Creates request options for postmortemDocumentsV1Attach without sending the request */ postmortemDocumentsV1AttachRequestOpts(requestParameters: PostmortemDocumentsV1AttachRequest): Promise; /** * Link an externally-hosted post-mortem document to an incident. Use this to attach a retrospective document you\'ve created in your own provider (for example Confluence, Notion, or Google Docs) to an existing incident. This is the API equivalent of pasting a document link into the incident.io dashboard, and is useful for automating your retrospective workflow - for example, creating a document in the right space with the right permissions when an incident is opened, then linking it back to the incident. Only one external post-mortem can be attached to an incident, and you cannot attach an external document to an incident that already has an in-app post-mortem. Re-attaching the same incident with a new permalink updates the existing link. * Attach PostmortemDocuments V1 */ postmortemDocumentsV1AttachRaw(requestParameters: PostmortemDocumentsV1AttachRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Link an externally-hosted post-mortem document to an incident. Use this to attach a retrospective document you\'ve created in your own provider (for example Confluence, Notion, or Google Docs) to an existing incident. This is the API equivalent of pasting a document link into the incident.io dashboard, and is useful for automating your retrospective workflow - for example, creating a document in the right space with the right permissions when an incident is opened, then linking it back to the incident. Only one external post-mortem can be attached to an incident, and you cannot attach an external document to an incident that already has an in-app post-mortem. Re-attaching the same incident with a new permalink updates the existing link. * Attach PostmortemDocuments V1 */ postmortemDocumentsV1Attach(requestParameters: PostmortemDocumentsV1AttachRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for postmortemDocumentsV1List without sending the request */ postmortemDocumentsV1ListRequestOpts(requestParameters: PostmortemDocumentsV1ListRequest): Promise; /** * List post-mortem documents for the organisation. Results can be filtered by incident and sorted by creation date. This endpoint returns document metadata only. If you want to fetch the content of the post-mortem, use the ShowContent endpoint. * List PostmortemDocuments V1 */ postmortemDocumentsV1ListRaw(requestParameters: PostmortemDocumentsV1ListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * List post-mortem documents for the organisation. Results can be filtered by incident and sorted by creation date. This endpoint returns document metadata only. If you want to fetch the content of the post-mortem, use the ShowContent endpoint. * List PostmortemDocuments V1 */ postmortemDocumentsV1List(requestParameters?: PostmortemDocumentsV1ListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for postmortemDocumentsV1Show without sending the request */ postmortemDocumentsV1ShowRequestOpts(requestParameters: PostmortemDocumentsV1ShowRequest): Promise; /** * Get a single post-mortem document by ID. This returns the document\'s metadata. To retrieve the content of the post-mortem, use the ShowContent endpoint. * Show PostmortemDocuments V1 */ postmortemDocumentsV1ShowRaw(requestParameters: PostmortemDocumentsV1ShowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get a single post-mortem document by ID. This returns the document\'s metadata. To retrieve the content of the post-mortem, use the ShowContent endpoint. * Show PostmortemDocuments V1 */ postmortemDocumentsV1Show(requestParameters: PostmortemDocumentsV1ShowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for postmortemDocumentsV1ShowContent without sending the request */ postmortemDocumentsV1ShowContentRequestOpts(requestParameters: PostmortemDocumentsV1ShowContentRequest): Promise; /** * Fetch the content of a post-mortem document, rendered as markdown. The response contains the full document content as a single markdown string. The markdown follows standard formatting and is structured to mirror the post-mortem as it appears in the incident.io dashboard: - **Headings** (`#`, `##`, `###`) for document title and sections - **Bold** and *italic* text formatting - Bullet lists and numbered lists - [Links](url) to external resources, Slack threads, and pull requests - Mentions of users, incidents, and catalog entries resolved to their display names - Custom field values rendered as labelled bullet lists - Timeline entries grouped by date with timestamps - Follow-ups with assignees and descriptions To preview what this markdown will look like for a given post-mortem, open the document in the incident.io dashboard and use the \"Copy to clipboard\" button. The copied content uses the same rendering pipeline as this endpoint. If you only need document metadata, use the Show or List endpoints instead. * ShowContent PostmortemDocuments V1 */ postmortemDocumentsV1ShowContentRaw(requestParameters: PostmortemDocumentsV1ShowContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Fetch the content of a post-mortem document, rendered as markdown. The response contains the full document content as a single markdown string. The markdown follows standard formatting and is structured to mirror the post-mortem as it appears in the incident.io dashboard: - **Headings** (`#`, `##`, `###`) for document title and sections - **Bold** and *italic* text formatting - Bullet lists and numbered lists - [Links](url) to external resources, Slack threads, and pull requests - Mentions of users, incidents, and catalog entries resolved to their display names - Custom field values rendered as labelled bullet lists - Timeline entries grouped by date with timestamps - Follow-ups with assignees and descriptions To preview what this markdown will look like for a given post-mortem, open the document in the incident.io dashboard and use the \"Copy to clipboard\" button. The copied content uses the same rendering pipeline as this endpoint. If you only need document metadata, use the Show or List endpoints instead. * ShowContent PostmortemDocuments V1 */ postmortemDocumentsV1ShowContent(requestParameters: PostmortemDocumentsV1ShowContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for postmortemDocumentsV1UpdateStatus without sending the request */ postmortemDocumentsV1UpdateStatusRequestOpts(requestParameters: PostmortemDocumentsV1UpdateStatusRequest): Promise; /** * Update the status of a post-mortem document. * UpdateStatus PostmortemDocuments V1 */ postmortemDocumentsV1UpdateStatusRaw(requestParameters: PostmortemDocumentsV1UpdateStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Update the status of a post-mortem document. * UpdateStatus PostmortemDocuments V1 */ postmortemDocumentsV1UpdateStatus(requestParameters: PostmortemDocumentsV1UpdateStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; } /** * @export */ export declare const PostmortemDocumentsV1ListSortByEnum: { readonly CreatedAtNewestFirst: "created_at_newest_first"; readonly CreatedAtOldestFirst: "created_at_oldest_first"; }; export type PostmortemDocumentsV1ListSortByEnum = typeof PostmortemDocumentsV1ListSortByEnum[keyof typeof PostmortemDocumentsV1ListSortByEnum];