/** * 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 ActionsCreatePayloadV3 } from '../models/ActionsCreatePayloadV3.js'; import { type ActionsCreateResultV3 } from '../models/ActionsCreateResultV3.js'; import { type ActionsListResultV3 } from '../models/ActionsListResultV3.js'; import { type ActionsShowResultV3 } from '../models/ActionsShowResultV3.js'; import { type ActionsUpdatePayloadV3 } from '../models/ActionsUpdatePayloadV3.js'; import { type ActionsUpdateResultV3 } from '../models/ActionsUpdateResultV3.js'; export interface ActionsV3CreateRequest { /** * */ body: ActionsCreatePayloadV3; } export interface ActionsV3DeleteRequest { /** * Unique identifier for the action */ id: string; } export interface ActionsV3ListRequest { /** * Integer number of records to return */ page_size?: number; /** * An action's ID. This endpoint will return a list of actions after this ID in relation to the API response order. */ after?: string; /** * Find actions related to this incident */ incident_id?: string; /** * Filter to actions from incidents of the given mode. If not set, only actions from `standard` and `retrospective` incidents are returned */ incident_mode?: ActionsV3ListIncidentModeEnum; /** * Filter on action created at timestamp. Accepted operators are 'gte', 'lte' and 'date_range'. */ created_at?: { [key: string]: Array; }; /** * Filter on action updated at timestamp. Accepted operators are 'gte', 'lte' and 'date_range'. */ updated_at?: { [key: string]: Array; }; } export interface ActionsV3ShowRequest { /** * Unique identifier for the action */ id: string; } export interface ActionsV3UpdateRequest { /** * Unique identifier for the action */ id: string; /** * */ body: ActionsUpdatePayloadV3; } /** * */ export declare class ActionsV3Api extends runtime.BaseAPI { /** * Creates request options for actionsV3Create without sending the request */ actionsV3CreateRequestOpts(requestParameters: ActionsV3CreateRequest): Promise; /** * Create a new incident action. * Create Actions V3 */ actionsV3CreateRaw(requestParameters: ActionsV3CreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Create a new incident action. * Create Actions V3 */ actionsV3Create(requestParameters: ActionsV3CreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for actionsV3Delete without sending the request */ actionsV3DeleteRequestOpts(requestParameters: ActionsV3DeleteRequest): Promise; /** * Delete an incident action. * Delete Actions V3 */ actionsV3DeleteRaw(requestParameters: ActionsV3DeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Delete an incident action. * Delete Actions V3 */ actionsV3Delete(requestParameters: ActionsV3DeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for actionsV3List without sending the request */ actionsV3ListRequestOpts(requestParameters: ActionsV3ListRequest): Promise; /** * List actions for an organisation. Results are paginated and ordered by action 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 actions updated after 2025-01-01: curl --get \'https://api.incident.io/v3/actions\' \\ --data \'updated_at[gte]=2025-01-01T00:00:00Z\' To find actions created within a specific date range, use the date_range operator with tilde-separated dates: curl --get \'https://api.incident.io/v3/actions\' \\ --data \'created_at[date_range]=2024-12-02~2024-12-08\' Filtering on updated_at is useful for incrementally syncing actions: 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 action row itself is written, but changes to embedded objects (e.g. an assignee being renamed) can alter the payload without bumping it. And timestamps are stamped before commit, so an action 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 Actions V3 */ actionsV3ListRaw(requestParameters: ActionsV3ListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * List actions for an organisation. Results are paginated and ordered by action 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 actions updated after 2025-01-01: curl --get \'https://api.incident.io/v3/actions\' \\ --data \'updated_at[gte]=2025-01-01T00:00:00Z\' To find actions created within a specific date range, use the date_range operator with tilde-separated dates: curl --get \'https://api.incident.io/v3/actions\' \\ --data \'created_at[date_range]=2024-12-02~2024-12-08\' Filtering on updated_at is useful for incrementally syncing actions: 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 action row itself is written, but changes to embedded objects (e.g. an assignee being renamed) can alter the payload without bumping it. And timestamps are stamped before commit, so an action 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 Actions V3 */ actionsV3List(requestParameters?: ActionsV3ListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for actionsV3Show without sending the request */ actionsV3ShowRequestOpts(requestParameters: ActionsV3ShowRequest): Promise; /** * Get a single incident action. * Show Actions V3 */ actionsV3ShowRaw(requestParameters: ActionsV3ShowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get a single incident action. * Show Actions V3 */ actionsV3Show(requestParameters: ActionsV3ShowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for actionsV3Update without sending the request */ actionsV3UpdateRequestOpts(requestParameters: ActionsV3UpdateRequest): Promise; /** * Update an existing incident action. * Update Actions V3 */ actionsV3UpdateRaw(requestParameters: ActionsV3UpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Update an existing incident action. * Update Actions V3 */ actionsV3Update(requestParameters: ActionsV3UpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; } /** * @export */ export declare const ActionsV3ListIncidentModeEnum: { readonly Standard: "standard"; readonly Retrospective: "retrospective"; readonly Test: "test"; readonly Tutorial: "tutorial"; readonly Stream: "stream"; }; export type ActionsV3ListIncidentModeEnum = typeof ActionsV3ListIncidentModeEnum[keyof typeof ActionsV3ListIncidentModeEnum];