/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v4-mini"; import * as models from "../index.js"; export type UpdateProviderRequest = { id: string; /** * Fields to update on an existing provider config (all optional) */ body: models.NameApiKeyCredentialFields; }; /** @internal */ export type UpdateProviderRequest$Outbound = { id: string; body: models.NameApiKeyCredentialFields$Outbound; }; /** @internal */ export const UpdateProviderRequest$outboundSchema: z.ZodMiniType< UpdateProviderRequest$Outbound, UpdateProviderRequest > = z.object({ id: z.string(), body: models.NameApiKeyCredentialFields$outboundSchema, }); export function updateProviderRequestToJSON( updateProviderRequest: UpdateProviderRequest, ): string { return JSON.stringify( UpdateProviderRequest$outboundSchema.parse(updateProviderRequest), ); }