import * as z from "zod"; import { ClosedEnum } from "../../types/enums.js"; import { CustomFieldEntryPayloadV1, CustomFieldEntryPayloadV1$Outbound } from "./customfieldentrypayloadv1.js"; import { IncidentRoleAssignmentPayloadV2, IncidentRoleAssignmentPayloadV2$Outbound } from "./incidentroleassignmentpayloadv2.js"; import { IncidentTimestampValuePayloadV2, IncidentTimestampValuePayloadV2$Outbound } from "./incidenttimestampvaluepayloadv2.js"; import { RetrospectiveIncidentOptionsV2, RetrospectiveIncidentOptionsV2$Outbound } from "./retrospectiveincidentoptionsv2.js"; /** * Whether the incident is real, a test, a tutorial, or importing as a retrospective incident */ export declare const CreateRequestBody11Mode: { 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 CreateRequestBody11Mode = 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 CreateRequestBody11Visibility: { 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 CreateRequestBody11Visibility = ClosedEnum; export type CreateRequestBody11 = { /** * Set the incident's custom fields to these values */ customFieldEntries?: Array | undefined; /** * Unique identifier for the incident */ id?: string | undefined; /** * Unique string used to de-duplicate incident create requests */ idempotencyKey: string; /** * Assign incident roles to these people */ incidentRoleAssignments?: Array | undefined; /** * Incident status to assign to the incident */ incidentStatusId?: string | undefined; /** * Assign the incident's timestamps to these values */ incidentTimestampValues?: Array | undefined; /** * Incident type to create this incident as */ incidentTypeId?: string | undefined; /** * Whether the incident is real, a test, a tutorial, or importing as a retrospective incident */ mode?: CreateRequestBody11Mode | undefined; /** * Explanation of the incident */ name?: string | undefined; retrospectiveIncidentOptions?: RetrospectiveIncidentOptionsV2 | undefined; /** * Severity to create incident as */ severityId?: string | undefined; /** * Name of the Slack channel to create for this incident */ slackChannelNameOverride?: string | undefined; /** * Slack Team to create the incident in */ slackTeamId?: string | undefined; /** * Detailed description of the incident */ summary?: string | undefined; /** * 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: CreateRequestBody11Visibility; }; /** @internal */ export declare const CreateRequestBody11Mode$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const CreateRequestBody11Mode$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 CreateRequestBody11Mode$ { /** @deprecated use `CreateRequestBody11Mode$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Standard: "standard"; readonly Retrospective: "retrospective"; readonly Test: "test"; readonly Tutorial: "tutorial"; }>; /** @deprecated use `CreateRequestBody11Mode$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Standard: "standard"; readonly Retrospective: "retrospective"; readonly Test: "test"; readonly Tutorial: "tutorial"; }>; } /** @internal */ export declare const CreateRequestBody11Visibility$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const CreateRequestBody11Visibility$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 CreateRequestBody11Visibility$ { /** @deprecated use `CreateRequestBody11Visibility$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Public: "public"; readonly Private: "private"; }>; /** @deprecated use `CreateRequestBody11Visibility$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Public: "public"; readonly Private: "private"; }>; } /** @internal */ export declare const CreateRequestBody11$inboundSchema: z.ZodType; /** @internal */ export type CreateRequestBody11$Outbound = { custom_field_entries?: Array | undefined; id?: string | undefined; idempotency_key: string; incident_role_assignments?: Array | undefined; incident_status_id?: string | undefined; incident_timestamp_values?: Array | undefined; incident_type_id?: string | undefined; mode?: string | undefined; name?: string | undefined; retrospective_incident_options?: RetrospectiveIncidentOptionsV2$Outbound | undefined; severity_id?: string | undefined; slack_channel_name_override?: string | undefined; slack_team_id?: string | undefined; summary?: string | undefined; visibility: string; }; /** @internal */ export declare const CreateRequestBody11$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 CreateRequestBody11$ { /** @deprecated use `CreateRequestBody11$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `CreateRequestBody11$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `CreateRequestBody11$Outbound` instead. */ type Outbound = CreateRequestBody11$Outbound; } //# sourceMappingURL=createrequestbody11.d.ts.map