/** * 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 type { IncidentTimestampValueV1 } from './IncidentTimestampValueV1.js'; import type { IncidentTypeV1 } from './IncidentTypeV1.js'; import type { CustomFieldEntryV1 } from './CustomFieldEntryV1.js'; import type { ActorV1 } from './ActorV1.js'; import type { IncidentRoleAssignmentV1 } from './IncidentRoleAssignmentV1.js'; import type { SeverityV1 } from './SeverityV1.js'; /** * * @export * @interface IncidentV1 */ export interface IncidentV1 { /** * The call URL attached to this incident */ call_url?: string; /** * When the incident was created */ created_at: Date; /** * */ creator: ActorV1; /** * Custom field entries for this incident */ custom_field_entries: Array; /** * Unique identifier for the incident */ id: string; /** * A list of who is assigned to each role for this incident */ incident_role_assignments: Array; /** * */ incident_type?: IncidentTypeV1; /** * Whether the incident is real, a test, a tutorial, or importing as a retrospective incident */ mode: IncidentV1ModeEnum; /** * Explanation of the incident */ name: string; /** * A permanent link to the homepage for this incident */ permalink?: string; /** * The URL of the incident post-mortem document */ postmortem_document_url?: string; /** * Reference to this incident, as displayed across the product */ reference: string; /** * */ severity?: SeverityV1; /** * ID of the Slack channel in the organisation Slack workspace. Note that the channel is sometimes created asynchronously, so may not be present when the incident is just created. */ slack_channel_id: string; /** * Name of the slack channel */ slack_channel_name?: string; /** * ID of the Slack team / workspace. This is only required if you are using a Slack Enterprise Grid with multiple teams. */ slack_team_id: string; /** * Current status of the incident */ status: IncidentV1StatusEnum; /** * Detailed description of the incident */ summary?: string; /** * Incident lifecycle events and when they last occurred */ timestamps?: Array; /** * When the incident was last updated */ updated_at: Date; /** * Whether the incident should be open to anyone in your Slack workspace (public), or invite-only (private). For more information on Private Incidents see our [docs](https://docs.incident.io/incidents/sensitive-incidents). */ visibility: IncidentV1VisibilityEnum; } /** * @export */ export declare const IncidentV1ModeEnum: { readonly Real: "real"; readonly Test: "test"; readonly Tutorial: "tutorial"; }; export type IncidentV1ModeEnum = typeof IncidentV1ModeEnum[keyof typeof IncidentV1ModeEnum]; /** * @export */ export declare const IncidentV1StatusEnum: { readonly Triage: "triage"; readonly Investigating: "investigating"; readonly Fixing: "fixing"; readonly Monitoring: "monitoring"; readonly Closed: "closed"; readonly Declined: "declined"; }; export type IncidentV1StatusEnum = typeof IncidentV1StatusEnum[keyof typeof IncidentV1StatusEnum]; /** * @export */ export declare const IncidentV1VisibilityEnum: { readonly Public: "public"; readonly Private: "private"; }; export type IncidentV1VisibilityEnum = typeof IncidentV1VisibilityEnum[keyof typeof IncidentV1VisibilityEnum]; /** * Check if a given object implements the IncidentV1 interface. */ export declare function instanceOfIncidentV1(value: object): value is IncidentV1; export declare function IncidentV1FromJSON(json: any): IncidentV1; export declare function IncidentV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentV1; export declare function IncidentV1ToJSON(json: any): IncidentV1; export declare function IncidentV1ToJSONTyped(value?: IncidentV1 | null, ignoreDiscriminator?: boolean): any;