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 { ExternalIssueReferenceV2, ExternalIssueReferenceV2$Outbound } from "./externalissuereferencev2.js"; import { IncidentDurationMetricWithValueV2, IncidentDurationMetricWithValueV2$Outbound } from "./incidentdurationmetricwithvaluev2.js"; import { IncidentRoleAssignmentV1, IncidentRoleAssignmentV1$Outbound } from "./incidentroleassignmentv1.js"; import { IncidentStatusV1, IncidentStatusV1$Outbound } from "./incidentstatusv1.js"; import { IncidentTimestampWithValueV2, IncidentTimestampWithValueV2$Outbound } from "./incidenttimestampwithvaluev2.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 IncidentV2Mode: { readonly Standard: "standard"; readonly Retrospective: "retrospective"; readonly Test: "test"; readonly Tutorial: "tutorial"; }; /** * Whether the incident is real, a test, a tutorial, or importing as a retrospective incident */ export type IncidentV2Mode = 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 IncidentV2Visibility: { 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 IncidentV2Visibility = ClosedEnum; export type IncidentV2 = { /** * 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; /** * Incident duration metrics and their measurements for this incident */ durationMetrics?: Array | undefined; externalIssueReference?: ExternalIssueReferenceV2 | undefined; /** * Unique identifier for the incident */ id: string; /** * A list of who is assigned to each role for this incident */ incidentRoleAssignments: Array; incidentStatus: IncidentStatusV1; /** * Incident lifecycle events and when they occurred */ incidentTimestampValues?: Array | undefined; incidentType?: IncidentTypeV1 | undefined; /** * Whether the incident is real, a test, a tutorial, or importing as a retrospective incident */ mode: IncidentV2Mode; /** * 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; /** * Detailed description of the incident */ summary?: string | 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: IncidentV2Visibility; /** * Amount of time spent on the incident in late hours */ workloadMinutesLate?: number | undefined; /** * Amount of time spent on the incident in sleeping hours */ workloadMinutesSleeping?: number | undefined; /** * Amount of time spent on the incident in total */ workloadMinutesTotal?: number | undefined; /** * Amount of time spent on the incident in working hours */ workloadMinutesWorking?: number | undefined; }; /** @internal */ export declare const IncidentV2Mode$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const IncidentV2Mode$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 IncidentV2Mode$ { /** @deprecated use `IncidentV2Mode$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Standard: "standard"; readonly Retrospective: "retrospective"; readonly Test: "test"; readonly Tutorial: "tutorial"; }>; /** @deprecated use `IncidentV2Mode$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Standard: "standard"; readonly Retrospective: "retrospective"; readonly Test: "test"; readonly Tutorial: "tutorial"; }>; } /** @internal */ export declare const IncidentV2Visibility$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const IncidentV2Visibility$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 IncidentV2Visibility$ { /** @deprecated use `IncidentV2Visibility$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Public: "public"; readonly Private: "private"; }>; /** @deprecated use `IncidentV2Visibility$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Public: "public"; readonly Private: "private"; }>; } /** @internal */ export declare const IncidentV2$inboundSchema: z.ZodType; /** @internal */ export type IncidentV2$Outbound = { call_url?: string | undefined; created_at: string; creator: ActorV2$Outbound; custom_field_entries: Array; duration_metrics?: Array | undefined; external_issue_reference?: ExternalIssueReferenceV2$Outbound | undefined; id: string; incident_role_assignments: Array; incident_status: IncidentStatusV1$Outbound; incident_timestamp_values?: Array | undefined; 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; summary?: string | undefined; updated_at: string; visibility: string; workload_minutes_late?: number | undefined; workload_minutes_sleeping?: number | undefined; workload_minutes_total?: number | undefined; workload_minutes_working?: number | undefined; }; /** @internal */ export declare const IncidentV2$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 IncidentV2$ { /** @deprecated use `IncidentV2$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `IncidentV2$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `IncidentV2$Outbound` instead. */ type Outbound = IncidentV2$Outbound; } //# sourceMappingURL=incidentv2.d.ts.map