/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 81f3083b1504 */ import * as z from "zod/v3"; import { FacetFilter, FacetFilter$Outbound, FacetFilter$outboundSchema, } from "./facetfilter.js"; export type EditPinRequest = { /** * The query strings for which the pinned result will show. */ queries?: Array | undefined; /** * Filters which restrict who should see the pinned document. Values are taken from the corresponding filters in people search. */ audienceFilters?: Array | undefined; /** * The opaque id of the pin to be edited. */ id?: string | undefined; }; /** @internal */ export type EditPinRequest$Outbound = { queries?: Array | undefined; audienceFilters?: Array | undefined; id?: string | undefined; }; /** @internal */ export const EditPinRequest$outboundSchema: z.ZodType< EditPinRequest$Outbound, z.ZodTypeDef, EditPinRequest > = z.object({ queries: z.array(z.string()).optional(), audienceFilters: z.array(FacetFilter$outboundSchema).optional(), id: z.string().optional(), }); export function editPinRequestToJSON(editPinRequest: EditPinRequest): string { return JSON.stringify(EditPinRequest$outboundSchema.parse(editPinRequest)); }