/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: dc3ebb4751d4
 */

import * as z from "zod/v4";

export type ListModelsV1ModelsGetRequest = {
  provider?: string | null | undefined;
  model?: string | null | undefined;
};

/** @internal */
export type ListModelsV1ModelsGetRequest$Outbound = {
  provider?: string | null | undefined;
  model?: string | null | undefined;
};

/** @internal */
export const ListModelsV1ModelsGetRequest$outboundSchema: z.ZodType<
  ListModelsV1ModelsGetRequest$Outbound,
  ListModelsV1ModelsGetRequest
> = z.object({
  provider: z.nullable(z.string()).optional(),
  model: z.nullable(z.string()).optional(),
});

export function listModelsV1ModelsGetRequestToJSON(
  listModelsV1ModelsGetRequest: ListModelsV1ModelsGetRequest,
): string {
  return JSON.stringify(
    ListModelsV1ModelsGetRequest$outboundSchema.parse(
      listModelsV1ModelsGetRequest,
    ),
  );
}
