/** * 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 FollowUpsConnectExternalIssuePayloadV3 } from '../models/FollowUpsConnectExternalIssuePayloadV3.js'; import { type FollowUpsConnectExternalIssueResultV3 } from '../models/FollowUpsConnectExternalIssueResultV3.js'; import { type FollowUpsCreateFromLinkPayloadV3 } from '../models/FollowUpsCreateFromLinkPayloadV3.js'; import { type FollowUpsCreateFromLinkResultV3 } from '../models/FollowUpsCreateFromLinkResultV3.js'; import { type FollowUpsCreatePayloadV3 } from '../models/FollowUpsCreatePayloadV3.js'; import { type FollowUpsCreateResultV3 } from '../models/FollowUpsCreateResultV3.js'; import { type FollowUpsListResultV3 } from '../models/FollowUpsListResultV3.js'; import { type FollowUpsShowResultV3 } from '../models/FollowUpsShowResultV3.js'; import { type FollowUpsUpdatePayloadV3 } from '../models/FollowUpsUpdatePayloadV3.js'; import { type FollowUpsUpdateResultV3 } from '../models/FollowUpsUpdateResultV3.js'; export interface FollowUpsV3ConnectExternalIssueRequest { /** * Unique identifier for the follow-up */ id: string; /** * */ body: FollowUpsConnectExternalIssuePayloadV3; } export interface FollowUpsV3CreateRequest { /** * */ body: FollowUpsCreatePayloadV3; } export interface FollowUpsV3CreateFromLinkRequest { /** * */ body: FollowUpsCreateFromLinkPayloadV3; } export interface FollowUpsV3DeleteRequest { /** * Unique identifier for the follow-up */ id: string; } export interface FollowUpsV3ListRequest { /** * Integer number of records to return */ page_size?: number; /** * A follow-up's ID. This endpoint will return a list of follow-ups after this ID in relation to the API response order. */ after?: string; /** * Find follow-ups related to this incident */ incident_id?: string; /** * Filter to follow-ups from incidents of the given mode. If not set, only follow-ups from `standard` and `retrospective` incidents are returned */ incident_mode?: FollowUpsV3ListIncidentModeEnum; /** * Filter follow-ups that are assigned to the given team */ assignee_team_id?: string; /** * Filter on follow-up created at timestamp. Accepted operators are 'gte', 'lte' and 'date_range'. */ created_at?: { [key: string]: Array; }; /** * Filter on follow-up updated at timestamp. Accepted operators are 'gte', 'lte' and 'date_range'. */ updated_at?: { [key: string]: Array; }; } export interface FollowUpsV3ShowRequest { /** * Unique identifier for the follow-up */ id: string; } export interface FollowUpsV3UpdateRequest { /** * Unique identifier for the follow-up */ id: string; /** * */ body: FollowUpsUpdatePayloadV3; } /** * */ export declare class FollowUpsV3Api extends runtime.BaseAPI { /** * Creates request options for followUpsV3ConnectExternalIssue without sending the request */ followUpsV3ConnectExternalIssueRequestOpts(requestParameters: FollowUpsV3ConnectExternalIssueRequest): Promise; /** * Connect a follow-up to an existing issue in an issue tracker, using the URL of the issue. This will not work if the follow-up is already connected to an external issue. * ConnectExternalIssue Follow-ups V3 */ followUpsV3ConnectExternalIssueRaw(requestParameters: FollowUpsV3ConnectExternalIssueRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Connect a follow-up to an existing issue in an issue tracker, using the URL of the issue. This will not work if the follow-up is already connected to an external issue. * ConnectExternalIssue Follow-ups V3 */ followUpsV3ConnectExternalIssue(requestParameters: FollowUpsV3ConnectExternalIssueRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for followUpsV3Create without sending the request */ followUpsV3CreateRequestOpts(requestParameters: FollowUpsV3CreateRequest): Promise; /** * Create a new incident follow-up. * Create Follow-ups V3 */ followUpsV3CreateRaw(requestParameters: FollowUpsV3CreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Create a new incident follow-up. * Create Follow-ups V3 */ followUpsV3Create(requestParameters: FollowUpsV3CreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for followUpsV3CreateFromLink without sending the request */ followUpsV3CreateFromLinkRequestOpts(requestParameters: FollowUpsV3CreateFromLinkRequest): Promise; /** * Create a follow-up from the URL of an issue that already exists in an issue tracker. The follow-up is created already connected to that issue, so it will not also be exported to a new one. Prefer this over creating a follow-up and then connecting it: that sequence races the automatic export, which can leave you with a duplicate issue or a connect call that fails because the export won. The follow-up\'s title, description and assignee are taken from the issue, and it is backdated to the issue\'s creation time. Its priority is taken from the issue only if your organisation has priority sync enabled, and otherwise falls back to your default priority. Issues that are already closed are accepted: the follow-up records the issue\'s completion time, though it is still created with an outstanding status until the next sync from the issue tracker. If your organisation requires a follow-up owner and the issue is unassigned, the incident lead is used instead. Where there is no incident lead either, this returns a validation error rather than creating an unowned follow-up. * CreateFromLink Follow-ups V3 */ followUpsV3CreateFromLinkRaw(requestParameters: FollowUpsV3CreateFromLinkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Create a follow-up from the URL of an issue that already exists in an issue tracker. The follow-up is created already connected to that issue, so it will not also be exported to a new one. Prefer this over creating a follow-up and then connecting it: that sequence races the automatic export, which can leave you with a duplicate issue or a connect call that fails because the export won. The follow-up\'s title, description and assignee are taken from the issue, and it is backdated to the issue\'s creation time. Its priority is taken from the issue only if your organisation has priority sync enabled, and otherwise falls back to your default priority. Issues that are already closed are accepted: the follow-up records the issue\'s completion time, though it is still created with an outstanding status until the next sync from the issue tracker. If your organisation requires a follow-up owner and the issue is unassigned, the incident lead is used instead. Where there is no incident lead either, this returns a validation error rather than creating an unowned follow-up. * CreateFromLink Follow-ups V3 */ followUpsV3CreateFromLink(requestParameters: FollowUpsV3CreateFromLinkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for followUpsV3Delete without sending the request */ followUpsV3DeleteRequestOpts(requestParameters: FollowUpsV3DeleteRequest): Promise; /** * Delete an incident follow-up. * Delete Follow-ups V3 */ followUpsV3DeleteRaw(requestParameters: FollowUpsV3DeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Delete an incident follow-up. * Delete Follow-ups V3 */ followUpsV3Delete(requestParameters: FollowUpsV3DeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for followUpsV3List without sending the request */ followUpsV3ListRequestOpts(requestParameters: FollowUpsV3ListRequest): Promise; /** * List follow-ups for an organisation. Results are paginated and ordered by follow-up ID, oldest first. Use the after value from pagination_meta to fetch the next page; it is only set when there may be more results. ### By created_at and updated_at Both timestamp filters accept the operators \"gte\" (greater than or equal to), \"lte\" (less than or equal to) and \"date_range\" (between two dates). The following example finds all follow-ups updated after 2025-01-01: curl --get \'https://api.incident.io/v3/follow_ups\' \\ --data \'updated_at[gte]=2025-01-01T00:00:00Z\' To find follow-ups created within a specific date range, use the date_range operator with tilde-separated dates: curl --get \'https://api.incident.io/v3/follow_ups\' \\ --data \'created_at[date_range]=2024-12-02~2024-12-08\' Filtering on updated_at is useful for incrementally syncing follow-ups: poll with updated_at[gte] set to your last sync time instead of re-fetching the full history. Two caveats: updated_at moves whenever the follow-up row itself is written, but changes to embedded objects (e.g. an assignee being renamed, or an external issue\'s status text) can alter the payload without bumping it. And timestamps are stamped before commit, so a follow-up can become visible with an older updated_at than rows you have already seen — overlap your sync window by a few minutes to allow for writes that commit out of timestamp order. * List Follow-ups V3 */ followUpsV3ListRaw(requestParameters: FollowUpsV3ListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * List follow-ups for an organisation. Results are paginated and ordered by follow-up ID, oldest first. Use the after value from pagination_meta to fetch the next page; it is only set when there may be more results. ### By created_at and updated_at Both timestamp filters accept the operators \"gte\" (greater than or equal to), \"lte\" (less than or equal to) and \"date_range\" (between two dates). The following example finds all follow-ups updated after 2025-01-01: curl --get \'https://api.incident.io/v3/follow_ups\' \\ --data \'updated_at[gte]=2025-01-01T00:00:00Z\' To find follow-ups created within a specific date range, use the date_range operator with tilde-separated dates: curl --get \'https://api.incident.io/v3/follow_ups\' \\ --data \'created_at[date_range]=2024-12-02~2024-12-08\' Filtering on updated_at is useful for incrementally syncing follow-ups: poll with updated_at[gte] set to your last sync time instead of re-fetching the full history. Two caveats: updated_at moves whenever the follow-up row itself is written, but changes to embedded objects (e.g. an assignee being renamed, or an external issue\'s status text) can alter the payload without bumping it. And timestamps are stamped before commit, so a follow-up can become visible with an older updated_at than rows you have already seen — overlap your sync window by a few minutes to allow for writes that commit out of timestamp order. * List Follow-ups V3 */ followUpsV3List(requestParameters?: FollowUpsV3ListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for followUpsV3Show without sending the request */ followUpsV3ShowRequestOpts(requestParameters: FollowUpsV3ShowRequest): Promise; /** * Get a single incident follow-up. * Show Follow-ups V3 */ followUpsV3ShowRaw(requestParameters: FollowUpsV3ShowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get a single incident follow-up. * Show Follow-ups V3 */ followUpsV3Show(requestParameters: FollowUpsV3ShowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for followUpsV3Update without sending the request */ followUpsV3UpdateRequestOpts(requestParameters: FollowUpsV3UpdateRequest): Promise; /** * Update an existing incident follow-up. * Update Follow-ups V3 */ followUpsV3UpdateRaw(requestParameters: FollowUpsV3UpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Update an existing incident follow-up. * Update Follow-ups V3 */ followUpsV3Update(requestParameters: FollowUpsV3UpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; } /** * @export */ export declare const FollowUpsV3ListIncidentModeEnum: { readonly Standard: "standard"; readonly Retrospective: "retrospective"; readonly Test: "test"; readonly Tutorial: "tutorial"; readonly Stream: "stream"; }; export type FollowUpsV3ListIncidentModeEnum = typeof FollowUpsV3ListIncidentModeEnum[keyof typeof FollowUpsV3ListIncidentModeEnum];