/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; import { ClosedEnum } from "../../types/enums.js"; /** * E.g. PagerDuty: the external system that holds the resource */ export const ResourceType = { PagerDutyIncident: "pager_duty_incident", OpsgenieAlert: "opsgenie_alert", DatadogMonitorAlert: "datadog_monitor_alert", GithubPullRequest: "github_pull_request", GitlabMergeRequest: "gitlab_merge_request", SentryIssue: "sentry_issue", JiraIssue: "jira_issue", AtlassianStatuspageIncident: "atlassian_statuspage_incident", ZendeskTicket: "zendesk_ticket", GoogleCalendarEvent: "google_calendar_event", Scrubbed: "scrubbed", StatuspageIncident: "statuspage_incident", } as const; /** * E.g. PagerDuty: the external system that holds the resource */ export type ResourceType = ClosedEnum; export type IncidentAttachmentsV1NumberListRequest = { /** * Incident that this attachment is against */ incidentId?: string | undefined; /** * ID of the resource in the external system */ externalId?: string | undefined; /** * E.g. PagerDuty: the external system that holds the resource */ resourceType?: ResourceType | undefined; }; /** @internal */ export const ResourceType$inboundSchema: z.ZodNativeEnum = z.nativeEnum(ResourceType); /** @internal */ export const ResourceType$outboundSchema: z.ZodNativeEnum = ResourceType$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace ResourceType$ { /** @deprecated use `ResourceType$inboundSchema` instead. */ export const inboundSchema = ResourceType$inboundSchema; /** @deprecated use `ResourceType$outboundSchema` instead. */ export const outboundSchema = ResourceType$outboundSchema; } /** @internal */ export const IncidentAttachmentsV1NumberListRequest$inboundSchema: z.ZodType< IncidentAttachmentsV1NumberListRequest, z.ZodTypeDef, unknown > = z.object({ incident_id: z.string().optional(), external_id: z.string().optional(), resource_type: ResourceType$inboundSchema.optional(), }).transform((v) => { return remap$(v, { "incident_id": "incidentId", "external_id": "externalId", "resource_type": "resourceType", }); }); /** @internal */ export type IncidentAttachmentsV1NumberListRequest$Outbound = { incident_id?: string | undefined; external_id?: string | undefined; resource_type?: string | undefined; }; /** @internal */ export const IncidentAttachmentsV1NumberListRequest$outboundSchema: z.ZodType< IncidentAttachmentsV1NumberListRequest$Outbound, z.ZodTypeDef, IncidentAttachmentsV1NumberListRequest > = z.object({ incidentId: z.string().optional(), externalId: z.string().optional(), resourceType: ResourceType$outboundSchema.optional(), }).transform((v) => { return remap$(v, { incidentId: "incident_id", externalId: "external_id", resourceType: "resource_type", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace IncidentAttachmentsV1NumberListRequest$ { /** @deprecated use `IncidentAttachmentsV1NumberListRequest$inboundSchema` instead. */ export const inboundSchema = IncidentAttachmentsV1NumberListRequest$inboundSchema; /** @deprecated use `IncidentAttachmentsV1NumberListRequest$outboundSchema` instead. */ export const outboundSchema = IncidentAttachmentsV1NumberListRequest$outboundSchema; /** @deprecated use `IncidentAttachmentsV1NumberListRequest$Outbound` instead. */ export type Outbound = IncidentAttachmentsV1NumberListRequest$Outbound; }