/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod";
import { ApiError$zodSchema } from "./apierror.js";
import { DatasourceSearchInFieldRequest$zodSchema, } from "./datasourcesearchinfieldrequest.js";
import { MetadataFieldDatasourceValuesArray$zodSchema, } from "./metadatafielddatasourcevaluesarray.js";
export const SearchDatasourceInMDFieldGlobals$zodSchema = z.object({
    cloud_name: z.string().describe("The cloud name of your product environment.")
        .optional(),
});
export const SearchDatasourceInMDFieldRequest$zodSchema = z.object({
    datasource_search_in_field_request: DatasourceSearchInFieldRequest$zodSchema
        .describe("The datasource search query for this field."),
    exact_match: z.boolean().default(false).describe("Whether to search for an exact match."),
    external_id: z.string().describe("The external ID of the metadata field to search the datasource for."),
    max_results: z.int().default(255).describe("The maximum number of results to return."),
    term: z.string().describe("The term to search for. can be any substring of the value.").optional(),
});
export const SearchDatasourceInMDFieldResponse$zodSchema = z.union([
    ApiError$zodSchema,
    MetadataFieldDatasourceValuesArray$zodSchema,
]);
//# sourceMappingURL=searchdatasourceinmdfieldop.js.map