/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 9fa02c40eb9c */ import * as z from "zod/v4"; export type CreateGithubRepositoryRequest = { type: "github"; name: string; owner: string; ref?: string | null | undefined; weight?: number | undefined; token: string; }; /** @internal */ export type CreateGithubRepositoryRequest$Outbound = { type: "github"; name: string; owner: string; ref?: string | null | undefined; weight: number; token: string; }; /** @internal */ export const CreateGithubRepositoryRequest$outboundSchema: z.ZodType< CreateGithubRepositoryRequest$Outbound, CreateGithubRepositoryRequest > = z.object({ type: z.literal("github"), name: z.string(), owner: z.string(), ref: z.nullable(z.string()).optional(), weight: z.number().default(1), token: z.string(), }); export function createGithubRepositoryRequestToJSON( createGithubRepositoryRequest: CreateGithubRepositoryRequest, ): string { return JSON.stringify( CreateGithubRepositoryRequest$outboundSchema.parse( createGithubRepositoryRequest, ), ); }