import * as z from "zod"; import { ClosedEnum } from "../../types/enums.js"; import { CustomFieldEntryPayloadV1, CustomFieldEntryPayloadV1$Outbound } from "./customfieldentrypayloadv1.js"; import { IncidentRoleAssignmentPayloadV1, IncidentRoleAssignmentPayloadV1$Outbound } from "./incidentroleassignmentpayloadv1.js"; /** * Whether the incident is real or test */ export declare const CreateRequestBody10Mode: { readonly Real: "real"; readonly Test: "test"; }; /** * Whether the incident is real or test */ export type CreateRequestBody10Mode = ClosedEnum; /** * Current status of the incident */ export declare const CreateRequestBody10Status: { 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 CreateRequestBody10Status = 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 CreateRequestBody10Visibility: { 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 CreateRequestBody10Visibility = ClosedEnum; export type CreateRequestBody10 = { /** * Set the incident's custom fields to these values */ customFieldEntries?: Array | undefined; /** * Unique string used to de-duplicate incident create requests */ idempotencyKey: string; /** * Assign incident roles to these people */ incidentRoleAssignments?: Array | undefined; /** * Incident type to create this incident as */ incidentTypeId?: string | undefined; /** * Whether the incident is real or test */ mode?: CreateRequestBody10Mode | undefined; /** * Explanation of the incident */ name?: string | undefined; /** * Severity to create incident as */ severityId?: 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 | undefined; /** * Channel ID of the source message, if this incident was created from one */ sourceMessageChannelId?: string | undefined; /** * Timestamp of the source message, if this incident was created from one */ sourceMessageTimestamp?: string | undefined; /** * Current status of the incident */ status?: CreateRequestBody10Status | 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: CreateRequestBody10Visibility; }; /** @internal */ export declare const CreateRequestBody10Mode$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const CreateRequestBody10Mode$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 CreateRequestBody10Mode$ { /** @deprecated use `CreateRequestBody10Mode$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Real: "real"; readonly Test: "test"; }>; /** @deprecated use `CreateRequestBody10Mode$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Real: "real"; readonly Test: "test"; }>; } /** @internal */ export declare const CreateRequestBody10Status$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const CreateRequestBody10Status$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 CreateRequestBody10Status$ { /** @deprecated use `CreateRequestBody10Status$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 `CreateRequestBody10Status$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 CreateRequestBody10Visibility$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const CreateRequestBody10Visibility$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 CreateRequestBody10Visibility$ { /** @deprecated use `CreateRequestBody10Visibility$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Public: "public"; readonly Private: "private"; }>; /** @deprecated use `CreateRequestBody10Visibility$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Public: "public"; readonly Private: "private"; }>; } /** @internal */ export declare const CreateRequestBody10$inboundSchema: z.ZodType; /** @internal */ export type CreateRequestBody10$Outbound = { custom_field_entries?: Array | undefined; idempotency_key: string; incident_role_assignments?: Array | undefined; incident_type_id?: string | undefined; mode?: string | undefined; name?: string | undefined; severity_id?: string | undefined; slack_team_id?: string | undefined; source_message_channel_id?: string | undefined; source_message_timestamp?: string | undefined; status?: string | undefined; summary?: string | undefined; visibility: string; }; /** @internal */ export declare const CreateRequestBody10$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 CreateRequestBody10$ { /** @deprecated use `CreateRequestBody10$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `CreateRequestBody10$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `CreateRequestBody10$Outbound` instead. */ type Outbound = CreateRequestBody10$Outbound; } //# sourceMappingURL=createrequestbody10.d.ts.map