/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: d83dd8b9a5ac
 */
import * as z from "zod/v4";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
/** @internal */
export const GithubRepository$inboundSchema = z.object({
    type: z.literal("github"),
    name: z.string(),
    owner: z.string(),
    ref: z.nullable(z.string()).optional(),
    weight: z.number().default(1),
    commit_id: z.string(),
}).transform((v) => {
    return remap$(v, {
        "commit_id": "commitId",
    });
});
export function githubRepositoryFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GithubRepository$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GithubRepository' from JSON`);
}
//# sourceMappingURL=githubrepository.js.map