/* * 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"; /** * ID of the issue tracker provider */ export const Provider = { Asana: "asana", ClickUp: "click_up", Linear: "linear", Jira: "jira", JiraServer: "jira_server", Github: "github", Gitlab: "gitlab", Shortcut: "shortcut", } as const; /** * ID of the issue tracker provider */ export type Provider = ClosedEnum; export type ExternalIssueReferenceV1 = { /** * Human readable ID for the issue */ issueName?: string | undefined; /** * URL linking directly to the action in the issue tracker */ issuePermalink?: string | undefined; /** * ID of the issue tracker provider */ provider?: Provider | undefined; }; /** @internal */ export const Provider$inboundSchema: z.ZodNativeEnum = z .nativeEnum(Provider); /** @internal */ export const Provider$outboundSchema: z.ZodNativeEnum = Provider$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace Provider$ { /** @deprecated use `Provider$inboundSchema` instead. */ export const inboundSchema = Provider$inboundSchema; /** @deprecated use `Provider$outboundSchema` instead. */ export const outboundSchema = Provider$outboundSchema; } /** @internal */ export const ExternalIssueReferenceV1$inboundSchema: z.ZodType< ExternalIssueReferenceV1, z.ZodTypeDef, unknown > = z.object({ issue_name: z.string().optional(), issue_permalink: z.string().optional(), provider: Provider$inboundSchema.optional(), }).transform((v) => { return remap$(v, { "issue_name": "issueName", "issue_permalink": "issuePermalink", }); }); /** @internal */ export type ExternalIssueReferenceV1$Outbound = { issue_name?: string | undefined; issue_permalink?: string | undefined; provider?: string | undefined; }; /** @internal */ export const ExternalIssueReferenceV1$outboundSchema: z.ZodType< ExternalIssueReferenceV1$Outbound, z.ZodTypeDef, ExternalIssueReferenceV1 > = z.object({ issueName: z.string().optional(), issuePermalink: z.string().optional(), provider: Provider$outboundSchema.optional(), }).transform((v) => { return remap$(v, { issueName: "issue_name", issuePermalink: "issue_permalink", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace ExternalIssueReferenceV1$ { /** @deprecated use `ExternalIssueReferenceV1$inboundSchema` instead. */ export const inboundSchema = ExternalIssueReferenceV1$inboundSchema; /** @deprecated use `ExternalIssueReferenceV1$outboundSchema` instead. */ export const outboundSchema = ExternalIssueReferenceV1$outboundSchema; /** @deprecated use `ExternalIssueReferenceV1$Outbound` instead. */ export type Outbound = ExternalIssueReferenceV1$Outbound; }