import * as z from "zod"; import { ClosedEnum } from "../../types/enums.js"; import { ActorV2, ActorV2$Outbound } from "./actorv2.js"; import { CustomFieldEntryV1, CustomFieldEntryV1$Outbound } from "./customfieldentryv1.js"; import { IncidentRoleAssignmentV1, IncidentRoleAssignmentV1$Outbound } from "./incidentroleassignmentv1.js"; import { IncidentTimestampV1, IncidentTimestampV1$Outbound } from "./incidenttimestampv1.js"; import { IncidentTypeV1, IncidentTypeV1$Outbound } from "./incidenttypev1.js"; import { SeverityV2, SeverityV2$Outbound } from "./severityv2.js"; /** * Whether the incident is real, a test, a tutorial, or importing as a retrospective incident */ export declare const Mode: { readonly Real: "real"; readonly Test: "test"; readonly Tutorial: "tutorial"; }; /** * Whether the incident is real, a test, a tutorial, or importing as a retrospective incident */ export type Mode = ClosedEnum; /** * Current status of the incident */ export declare const IncidentV1Status: { readonly Triage: "triage"; readonly Investigating: "investigating"; readonly Fixing: "fixing"; readonly Monitoring: "monitoring"; readonly Closed: "closed"; readonly Declined: "declined"; }; /** * Current status of the incident */ export type IncidentV1Status = ClosedEnum; /** * 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 [help centre](https://help.incident.io/en/articles/5947963-can-we-mark-incidents-as-sensitive-and-restrict-access). */ export declare const Visibility: { readonly Public: "public"; readonly Private: "private"; }; /** * 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 [help centre](https://help.incident.io/en/articles/5947963-can-we-mark-incidents-as-sensitive-and-restrict-access). */ export type Visibility = ClosedEnum; export type IncidentV1 = { /** * The call URL attached to this incident */ callUrl?: string | undefined; /** * When the incident was created */ createdAt: Date; creator: ActorV2; /** * Custom field entries for this incident */ customFieldEntries: Array; /** * Unique identifier for the incident */ id: string; /** * A list of who is assigned to each role for this incident */ incidentRoleAssignments: Array; incidentType?: IncidentTypeV1 | undefined; /** * Whether the incident is real, a test, a tutorial, or importing as a retrospective incident */ mode: Mode; /** * Explanation of the incident */ name: string; /** * A permanent link to the homepage for this incident */ permalink?: string | undefined; /** * Description of the incident */ postmortemDocumentUrl?: string | undefined; /** * Reference to this incident, as displayed across the product */ reference: string; severity?: SeverityV2 | undefined; /** * 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. */ slackChannelId: string; /** * Name of the slack channel */ slackChannelName?: string | undefined; /** * ID of the Slack team / workspace. This is only required if you are using a Slack Enterprise Grid with multiple teams. */ slackTeamId: string; /** * Current status of the incident */ status: IncidentV1Status; /** * Detailed description of the incident */ summary?: string | undefined; /** * Incident lifecycle events and when they last occurred */ timestamps?: Array | undefined; /** * When the incident was last updated */ updatedAt: 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 [help centre](https://help.incident.io/en/articles/5947963-can-we-mark-incidents-as-sensitive-and-restrict-access). */ visibility: Visibility; }; /** @internal */ export declare const Mode$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const Mode$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace Mode$ { /** @deprecated use `Mode$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Real: "real"; readonly Test: "test"; readonly Tutorial: "tutorial"; }>; /** @deprecated use `Mode$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Real: "real"; readonly Test: "test"; readonly Tutorial: "tutorial"; }>; } /** @internal */ export declare const IncidentV1Status$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const IncidentV1Status$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace IncidentV1Status$ { /** @deprecated use `IncidentV1Status$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Triage: "triage"; readonly Investigating: "investigating"; readonly Fixing: "fixing"; readonly Monitoring: "monitoring"; readonly Closed: "closed"; readonly Declined: "declined"; }>; /** @deprecated use `IncidentV1Status$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Triage: "triage"; readonly Investigating: "investigating"; readonly Fixing: "fixing"; readonly Monitoring: "monitoring"; readonly Closed: "closed"; readonly Declined: "declined"; }>; } /** @internal */ export declare const Visibility$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const Visibility$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace Visibility$ { /** @deprecated use `Visibility$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Public: "public"; readonly Private: "private"; }>; /** @deprecated use `Visibility$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Public: "public"; readonly Private: "private"; }>; } /** @internal */ export declare const IncidentV1$inboundSchema: z.ZodType; /** @internal */ export type IncidentV1$Outbound = { call_url?: string | undefined; created_at: string; creator: ActorV2$Outbound; custom_field_entries: Array; id: string; incident_role_assignments: Array; incident_type?: IncidentTypeV1$Outbound | undefined; mode: string; name: string; permalink?: string | undefined; postmortem_document_url?: string | undefined; reference: string; severity?: SeverityV2$Outbound | undefined; slack_channel_id: string; slack_channel_name?: string | undefined; slack_team_id: string; status: string; summary?: string | undefined; timestamps?: Array | undefined; updated_at: string; visibility: string; }; /** @internal */ export declare const IncidentV1$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace IncidentV1$ { /** @deprecated use `IncidentV1$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `IncidentV1$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `IncidentV1$Outbound` instead. */ type Outbound = IncidentV1$Outbound; } //# sourceMappingURL=incidentv1.d.ts.map