{"version":3,"sources":["../../../src/search-v1-sitedocument-site-search.http.ts","../../../src/search-v1-sitedocument-site-search.types.ts","../../../src/search-v1-sitedocument-site-search.meta.ts"],"sourcesContent":["import { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixSearchV1SiteSearchServiceUrl(\n  opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n  const domainToMappings = {\n    '*.dev.wix-code.com': [\n      {\n        srcPath: '/_api/search-services-sitesearch',\n        destPath: '/api',\n      },\n    ],\n    'editor._base_domain_': [\n      {\n        srcPath: '/_api/search-services-sitesearch',\n        destPath: '/api',\n      },\n    ],\n    'blocks._base_domain_': [\n      {\n        srcPath: '/_api/search-services-sitesearch',\n        destPath: '/api',\n      },\n    ],\n    'create.editorx': [\n      {\n        srcPath: '/_api/search-services-sitesearch',\n        destPath: '/api',\n      },\n    ],\n    'editor.wixapps.net': [\n      {\n        srcPath: '/_api/search-services-sitesearch',\n        destPath: '/api',\n      },\n    ],\n    'www._base_domain_': [\n      {\n        srcPath: '/_api/search-services-sitesearch',\n        destPath: '/api',\n      },\n    ],\n    'manage._base_domain_': [\n      {\n        srcPath: '/_api/search-services-sitesearch',\n        destPath: '/api',\n      },\n    ],\n    _: [\n      {\n        srcPath: '/_api/search-services-sitesearch',\n        destPath: '/api',\n      },\n    ],\n    'www.wixapis.com': [\n      {\n        srcPath: '/sitesearch',\n        destPath: '/api',\n      },\n    ],\n    'api._api_base_domain_': [\n      {\n        srcPath: '/search-services-sitesearch-server',\n        destPath: '',\n      },\n    ],\n    'apps._base_domain_': [\n      {\n        srcPath: '/_api/search-services-sitesearch-server',\n        destPath: '/api',\n      },\n    ],\n  };\n\n  return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_search_site-search';\n\n/**\n * Executes a regular search query.\n * If you are unsure, this is likely the search method you want to used.\n */\nexport function search(payload: object): RequestOptionsFactory<any> {\n  function __search({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.search.v1.sitedocument',\n      method: 'POST' as any,\n      methodFqn: 'wix.search.v1.SiteSearchService.Search',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixSearchV1SiteSearchServiceUrl({\n        protoPath: '/api/v1/search',\n        data: payload,\n        host,\n      }),\n      data: payload,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              { path: 'facets.minAggregation.minValue' },\n              { path: 'facets.maxAggregation.maxValue' },\n              { path: 'facets.minMaxAggregation.minValue' },\n              { path: 'facets.minMaxAggregation.maxValue' },\n              { path: 'facets.sumAggregation.value' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __search;\n}\n\n/** Searches in multiple document types at once. */\nexport function federatedSearch(payload: object): RequestOptionsFactory<any> {\n  function __federatedSearch({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.search.v1.sitedocument',\n      method: 'POST' as any,\n      methodFqn: 'wix.search.v1.SiteSearchService.FederatedSearch',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixSearchV1SiteSearchServiceUrl({\n        protoPath: '/api/v1/search/federated',\n        data: payload,\n        host,\n      }),\n      data: payload,\n    };\n\n    return metadata;\n  }\n\n  return __federatedSearch;\n}\n\n/**\n * Executes search query to fetch suggested items. Unlike search query suggest will match\n * partial phrases (for example \"blu\" will match documents containing \"blue\", \"blues\" and \"blunt\").\n * Phrase needs to be at least 3 symbols long. Suggestions can also perform optimisations in search\n * results and generally do not guarantee the same level of quality as regular Search endpoint.\n */\nexport function suggest(payload: object): RequestOptionsFactory<any> {\n  function __suggest({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.search.v1.sitedocument',\n      method: 'POST' as any,\n      methodFqn: 'wix.search.v1.SiteSearchService.Suggest',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixSearchV1SiteSearchServiceUrl({\n        protoPath: '/api/v1/suggest',\n        data: payload,\n        host,\n      }),\n      data: payload,\n    };\n\n    return metadata;\n  }\n\n  return __suggest;\n}\n\n/** Searches for suggestions in multiple document types at once. */\nexport function federatedSuggest(payload: object): RequestOptionsFactory<any> {\n  function __federatedSuggest({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.search.v1.sitedocument',\n      method: 'POST' as any,\n      methodFqn: 'wix.search.v1.SiteSearchService.FederatedSuggest',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixSearchV1SiteSearchServiceUrl({\n        protoPath: '/api/v1/suggest/federated',\n        data: payload,\n        host,\n      }),\n      data: payload,\n    };\n\n    return metadata;\n  }\n\n  return __federatedSuggest;\n}\n\n/**\n * Fetches documents similar to one single document.\n * This is typically used to implement \"related to\" scenarios (for example to fetch related store products when\n * consumer is already viewing one).\n */\nexport function related(payload: object): RequestOptionsFactory<any> {\n  function __related({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.search.v1.sitedocument',\n      method: 'POST' as any,\n      methodFqn: 'wix.search.v1.SiteSearchService.Related',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixSearchV1SiteSearchServiceUrl({\n        protoPath: '/api/v1/related',\n        data: payload,\n        host,\n      }),\n      data: payload,\n    };\n\n    return metadata;\n  }\n\n  return __related;\n}\n\n/** Provides phrase completion. For example \"blu\" could return \"blue\", \"blues\" and \"blunt\" as candidate phrases. This operation is resource heavy at index time and is reserved for special use cases. */\nexport function autocomplete(payload: object): RequestOptionsFactory<any> {\n  function __autocomplete({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.search.v1.sitedocument',\n      method: 'POST' as any,\n      methodFqn: 'wix.search.v1.SiteSearchService.Autocomplete',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixSearchV1SiteSearchServiceUrl({\n        protoPath: '/api/v1/autocomplete',\n        data: payload,\n        host,\n      }),\n      data: payload,\n    };\n\n    return metadata;\n  }\n\n  return __autocomplete;\n}\n\n/** Provides phrase completion from multiple document types at once */\nexport function federatedAutocomplete(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __federatedAutocomplete({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.search.v1.sitedocument',\n      method: 'POST' as any,\n      methodFqn: 'wix.search.v1.SiteSearchService.FederatedAutocomplete',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixSearchV1SiteSearchServiceUrl({\n        protoPath: '/api/v1/autocomplete/federated',\n        data: payload,\n        host,\n      }),\n      data: payload,\n    };\n\n    return metadata;\n  }\n\n  return __federatedAutocomplete;\n}\n\n/** Returns trending documents for given document types */\nexport function trending(payload: object): RequestOptionsFactory<any> {\n  function __trending({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.search.v1.sitedocument',\n      method: 'POST' as any,\n      methodFqn: 'wix.search.v1.SiteSearchService.Trending',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixSearchV1SiteSearchServiceUrl({\n        protoPath: '/api/v1/trending',\n        data: payload,\n        host,\n      }),\n      data: payload,\n    };\n\n    return metadata;\n  }\n\n  return __trending;\n}\n","/** API is not yet fully migrated to FQDN entity */\nexport interface SiteDocument {\n  /** the document payload */\n  document?: Record<string, any> | null;\n}\n\nexport interface UpdateInternalDocumentsEvent\n  extends UpdateInternalDocumentsEventOperationOneOf {\n  /** insert/update documents */\n  update?: InternalDocumentUpdateOperation;\n  /** delete by document ids */\n  deleteByIds?: DeleteByIdsOperation;\n  /** delete documents matching filter */\n  deleteByFilter?: DeleteByFilterOperation;\n  /** update internal documents matching filter */\n  updateByFilter?: InternalDocumentUpdateByFilterOperation;\n  /** update only existing documents */\n  updateExisting?: InternalUpdateExistingOperation;\n  /** insert/update documents with versioning */\n  versionedUpdate?: VersionedDocumentUpdateOperation;\n  /** delete by document ids with versioning */\n  versionedDeleteByIds?: VersionedDeleteByIdsOperation;\n  /**\n   * type of the documents\n   * @minLength 2\n   */\n  documentType?: string;\n  /**\n   * language of the documents (mandatory)\n   * @minLength 2\n   */\n  language?: string | null;\n  /**\n   * one or more search documents\n   * @deprecated\n   */\n  addDocuments?: InternalDocument[];\n  /**\n   * one or more ids of indexed documents to be removed. Removal will happen before addition (if both provided)\n   * @deprecated\n   */\n  removeDocumentIds?: string[];\n  /** id to pass to processing notification */\n  correlationId?: string | null;\n  /** when event was created / issued */\n  issuedAt?: Date | null;\n}\n\n/** @oneof */\nexport interface UpdateInternalDocumentsEventOperationOneOf {\n  /** insert/update documents */\n  update?: InternalDocumentUpdateOperation;\n  /** delete by document ids */\n  deleteByIds?: DeleteByIdsOperation;\n  /** delete documents matching filter */\n  deleteByFilter?: DeleteByFilterOperation;\n  /** update internal documents matching filter */\n  updateByFilter?: InternalDocumentUpdateByFilterOperation;\n  /** update only existing documents */\n  updateExisting?: InternalUpdateExistingOperation;\n  /** insert/update documents with versioning */\n  versionedUpdate?: VersionedDocumentUpdateOperation;\n  /** delete by document ids with versioning */\n  versionedDeleteByIds?: VersionedDeleteByIdsOperation;\n}\n\nexport interface InternalDocument {\n  /** document with mandatory fields (id) and with fields specific to the type of the document */\n  document?: Record<string, any> | null;\n}\n\nexport interface InternalDocumentUpdateOperation {\n  /** documents to index or update */\n  documents?: InternalDocument[];\n}\n\nexport interface DeleteByIdsOperation {\n  /** ids of the documents to delete */\n  documentIds?: string[];\n  /**\n   * tenant id for custom tenancy strategy\n   * @minLength 2\n   * @maxLength 300\n   */\n  tenantId?: string | null;\n}\n\nexport interface DeleteByFilterOperation {\n  /** documents matching this filter wil be deleted. only filterable documents defined in document_type can be used for filtering */\n  filter?: Record<string, any> | null;\n  /**\n   * tenant id for custom tenancy strategy\n   * @minLength 2\n   * @maxLength 300\n   */\n  tenantId?: string | null;\n}\n\nexport interface InternalDocumentUpdateByFilterOperation {\n  /** documents matching this filter will be updated */\n  filter?: Record<string, any> | null;\n  /** partial document to apply */\n  document?: InternalDocument;\n  /**\n   * tenant id for custom tenancy strategy\n   * @minLength 2\n   * @maxLength 300\n   */\n  tenantId?: string | null;\n}\n\nexport interface InternalUpdateExistingOperation {\n  /** documents to update */\n  documents?: InternalDocument[];\n}\n\nexport interface VersionedDocumentUpdateOperation {\n  /** documents to create or overwrite */\n  documents?: InternalDocument[];\n  /** versioning mode to use instead of default */\n  versioningMode?: VersioningModeWithLiterals;\n}\n\nexport enum VersioningMode {\n  /** use default versioning mode agreed with search team */\n  DEFAULT = 'DEFAULT',\n  /** execute only if version is greater than existing */\n  GREATER_THAN = 'GREATER_THAN',\n  /** execute only if version is greater or equal to existing */\n  GREATER_OR_EQUAL = 'GREATER_OR_EQUAL',\n}\n\n/** @enumType */\nexport type VersioningModeWithLiterals =\n  | VersioningMode\n  | 'DEFAULT'\n  | 'GREATER_THAN'\n  | 'GREATER_OR_EQUAL';\n\nexport interface VersionedDeleteByIdsOperation {\n  /** ids with version of the documents to delete */\n  documentIds?: VersionedDocumentId[];\n  /**\n   * tenant id for custom tenancy strategy\n   * @minLength 2\n   * @maxLength 300\n   */\n  tenantId?: string | null;\n}\n\nexport interface VersionedDocumentId {\n  /** document id */\n  documentId?: string;\n  /** document version */\n  version?: string;\n  /** versioning mode to use instead of default */\n  versioningMode?: VersioningModeWithLiterals;\n}\n\nexport interface UpdateDocumentsEvent\n  extends UpdateDocumentsEventOperationOneOf {\n  /** insert/update documents */\n  update?: DocumentUpdateOperation;\n  /** delete by document ids */\n  deleteByIds?: V1DeleteByIdsOperation;\n  /** delete documents matching filter */\n  deleteByFilter?: V1DeleteByFilterOperation;\n  /** update documents matching filter */\n  updateByFilter?: UpdateByFilterOperation;\n  /** update only existing documents */\n  updateExisting?: UpdateExistingOperation;\n  /**\n   * application which owns documents\n   * @minLength 2\n   */\n  appDefId?: string | null;\n  /**\n   * type of the documents\n   * @minLength 2\n   */\n  documentType?: string | null;\n  /**\n   * language of the documents\n   * @minLength 2\n   */\n  language?: string | null;\n  /**\n   * site documents belong to\n   * @minLength 2\n   */\n  msId?: string | null;\n}\n\n/** @oneof */\nexport interface UpdateDocumentsEventOperationOneOf {\n  /** insert/update documents */\n  update?: DocumentUpdateOperation;\n  /** delete by document ids */\n  deleteByIds?: V1DeleteByIdsOperation;\n  /** delete documents matching filter */\n  deleteByFilter?: V1DeleteByFilterOperation;\n  /** update documents matching filter */\n  updateByFilter?: UpdateByFilterOperation;\n  /** update only existing documents */\n  updateExisting?: UpdateExistingOperation;\n}\n\nexport interface DocumentUpdateOperation {\n  /** documents to index or update */\n  documents?: IndexDocument[];\n}\n\nexport interface IndexDocument {\n  /** data bag with non-searchable fields (url, image) */\n  payload?: DocumentPayload;\n  /** what type of users should documents be visible to */\n  exposure?: EnumWithLiterals;\n  /** document with mandatory fields (id, title, description) and with fields specific to the type of the document */\n  document?: Record<string, any> | null;\n  /** what member groups is the document exposed to. Used only with GROUP_PROTECTED exposure */\n  permittedMemberGroups?: string[];\n  /** if true SEO is disabled for this document */\n  seoHidden?: boolean | null;\n  /** if true the page is a lightbox popup */\n  isPopup?: boolean | null;\n}\n\nexport interface DocumentPayload {\n  /** url of the page representing the document */\n  url?: string | null;\n  /** image which represents the document */\n  documentImage?: DocumentImage;\n}\n\nexport interface DocumentImage {\n  /** the name of the image */\n  name?: string;\n  /** the width of the image */\n  width?: number;\n  /** the height of the image */\n  height?: number;\n}\n\nexport enum Enum {\n  /** Default value. Means that permission not set */\n  UNKNOWN = 'UNKNOWN',\n  /** Protected exposure. Exposed to members and owners */\n  PROTECTED = 'PROTECTED',\n  /** Private exposure. Exposed to owners */\n  PRIVATE = 'PRIVATE',\n  /** Public exposure. Visible to everyone */\n  PUBLIC = 'PUBLIC',\n  /** Used for partial updates, to state that exposure is not changing */\n  UNCHANGED = 'UNCHANGED',\n  /** Protected to members of permitted groups and owners */\n  GROUP_PROTECTED = 'GROUP_PROTECTED',\n}\n\n/** @enumType */\nexport type EnumWithLiterals =\n  | Enum\n  | 'UNKNOWN'\n  | 'PROTECTED'\n  | 'PRIVATE'\n  | 'PUBLIC'\n  | 'UNCHANGED'\n  | 'GROUP_PROTECTED';\n\nexport interface V1DeleteByIdsOperation {\n  /** ids of the documents to delete */\n  documentIds?: string[];\n}\n\nexport interface V1DeleteByFilterOperation {\n  /** documents matching this filter wil be deleted. only filterable documents defined in document_type can be used for filtering */\n  filter?: Record<string, any> | null;\n}\n\nexport interface UpdateByFilterOperation {\n  /** documents matching this filter will be updated */\n  filter?: Record<string, any> | null;\n  /** partial document to apply */\n  document?: IndexDocument;\n}\n\nexport interface UpdateExistingOperation {\n  /** documents to update */\n  documents?: IndexDocument[];\n}\n\nexport interface Empty {}\n\nexport interface MessageEnvelope {\n  /**\n   * App instance ID.\n   * @format GUID\n   */\n  instanceId?: string | null;\n  /**\n   * Event type.\n   * @maxLength 150\n   */\n  eventType?: string;\n  /** The identification type and identity data. */\n  identity?: IdentificationData;\n  /** Stringify payload. */\n  data?: string;\n  /** Details related to the account */\n  accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n  /**\n   * ID of a site visitor that has not logged in to the site.\n   * @format GUID\n   */\n  anonymousVisitorId?: string;\n  /**\n   * ID of a site visitor that has logged in to the site.\n   * @format GUID\n   */\n  memberId?: string;\n  /**\n   * ID of a Wix user (site owner, contributor, etc.).\n   * @format GUID\n   */\n  wixUserId?: string;\n  /**\n   * ID of an app.\n   * @format GUID\n   */\n  appId?: string;\n  /** @readonly */\n  identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n  /**\n   * ID of a site visitor that has not logged in to the site.\n   * @format GUID\n   */\n  anonymousVisitorId?: string;\n  /**\n   * ID of a site visitor that has logged in to the site.\n   * @format GUID\n   */\n  memberId?: string;\n  /**\n   * ID of a Wix user (site owner, contributor, etc.).\n   * @format GUID\n   */\n  wixUserId?: string;\n  /**\n   * ID of an app.\n   * @format GUID\n   */\n  appId?: string;\n}\n\nexport enum WebhookIdentityType {\n  UNKNOWN = 'UNKNOWN',\n  ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n  MEMBER = 'MEMBER',\n  WIX_USER = 'WIX_USER',\n  APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n  | WebhookIdentityType\n  | 'UNKNOWN'\n  | 'ANONYMOUS_VISITOR'\n  | 'MEMBER'\n  | 'WIX_USER'\n  | 'APP';\n\nexport interface AccountInfo {\n  /**\n   * ID of the Wix account associated with the event.\n   * @format GUID\n   */\n  accountId?: string | null;\n  /**\n   * ID of the parent Wix account. Only included when accountId belongs to a child account.\n   * @format GUID\n   */\n  parentAccountId?: string | null;\n  /**\n   * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n   * @format GUID\n   */\n  siteId?: string | null;\n}\n\nexport interface SearchRequest {\n  /**\n   * Text to search for. All searchable fields will be searched.\n   * @maxLength 100\n   */\n  query?: string | null;\n  /**\n   * Document type of documents to search for. All document types are searched if not provided.\n   * @minLength 2\n   */\n  documentType?: string | null;\n  /** Fields to order by. */\n  ordering?: OrderingClauses;\n  /** Paging parameters. */\n  paging?: SearchPaging;\n  /**\n   * Language to search in.\n   * @minLength 2\n   */\n  language?: string | null;\n  /** Filter in platformized query language (for example {'field': {'$eq': 'value'}}) */\n  filter?: Record<string, any> | null;\n  /** The facets to retrieve. */\n  facets?: FacetClauses;\n  /** Enable fuzzy search (eg. query 'kalvin clein' will match document with 'calvin klein' in title). */\n  fuzzy?: boolean | null;\n  /** Highlight texts matching the query. Highlighted text will be wrapped with <mark/> tag. Defaults to true if not provided. */\n  highlight?: boolean | null;\n  /** Searchable fields to search in. If not provided, search is executed on all searchable fields in schema */\n  searchFields?: string[];\n  /** A list of fields to include in the result set. If not provided, all fields of schema will be included. */\n  fields?: string[];\n  /**\n   * The properties/overrides/experiments to enable for this request. Currently supported: `scoring_profile`, `result-format`.\n   * @maxSize 10\n   */\n  properties?: SearchProperty[];\n  /** Include seo hidden documents. Defaults to false if not provided. */\n  includeSeoHidden?: boolean | null;\n}\n\nexport interface OrderingClauses {\n  ordering?: OrderingClause[];\n}\n\nexport interface OrderingClause {\n  /** @minLength 2 */\n  fieldName?: string | null;\n  direction?: DirectionWithLiterals;\n}\n\nexport enum Direction {\n  UninitializedDirection = 'UninitializedDirection',\n  ASC = 'ASC',\n  DESC = 'DESC',\n}\n\n/** @enumType */\nexport type DirectionWithLiterals =\n  | Direction\n  | 'UninitializedDirection'\n  | 'ASC'\n  | 'DESC';\n\nexport interface SearchPaging {\n  /**\n   * Number of items to skip in the result set.\n   * @max 100000\n   * @deprecated\n   */\n  skip?: number;\n  /**\n   * Number of items to fetch (effectively page size).\n   * @max 1000\n   */\n  limit?: number;\n  /**\n   * Number of items to skip in the result set.\n   * @max 100000\n   */\n  offset?: number;\n}\n\nexport interface FacetClauses {\n  /** Each entry represents a single facet with parameters. */\n  clauses?: FacetClause[];\n}\n\nexport interface FacetClause extends FacetClauseClauseOneOf {\n  term?: TermFacet;\n  aggregation?: AggregationFacet;\n  hierarchical?: HierarchicalFacet;\n}\n\n/** @oneof */\nexport interface FacetClauseClauseOneOf {\n  term?: TermFacet;\n  aggregation?: AggregationFacet;\n  hierarchical?: HierarchicalFacet;\n}\n\nexport enum Aggregation {\n  MIN = 'MIN',\n  MAX = 'MAX',\n  SUM = 'SUM',\n}\n\n/** @enumType */\nexport type AggregationWithLiterals = Aggregation | 'MIN' | 'MAX' | 'SUM';\n\nexport interface HierarchicalFacet extends HierarchicalFacetClauseOneOf {\n  term?: TermFacet;\n  aggregation?: AggregationFacet;\n  nestedAggregation?: HierarchicalFacet;\n}\n\n/** @oneof */\nexport interface HierarchicalFacetClauseOneOf {\n  term?: TermFacet;\n  aggregation?: AggregationFacet;\n}\n\nexport interface TermFacet {\n  /** The name of the faceted attribute. */\n  name?: string;\n  /** Limit the number of facet values returned. Default is 10. */\n  limit?: number | null;\n}\n\nexport interface AggregationFacet {\n  /** The name of the faceted attribute. */\n  name?: string;\n  /** Aggregation type. */\n  aggregation?: AggregationWithLiterals;\n}\n\nexport interface SearchProperty {\n  name?: string;\n  value?: any;\n}\n\nexport interface SearchResponse {\n  /** Documents matching filter and query. */\n  documents?: Record<string, any>[] | null;\n  nextPage?: NextPageResponse;\n  /**\n   * Facets provide \"counts in categories\" view. For example searching for \"Nike\" would return\n   * (Shoes, 5), (Socks, 2) indicating numbers for matching by each faceted field.\n   */\n  facets?: FacetsResponse[];\n}\n\nexport interface NextPageResponse {\n  /** Total number of items across all pages */\n  total?: number;\n  /** The number of items to skip */\n  skip?: number;\n  /** The number of items to retrieve in one page */\n  limit?: number;\n}\n\nexport interface FacetsResponse extends FacetsResponseResponseOneOf {\n  terms?: TermAggregationResponse;\n  minAggregation?: MinAggregationResponse;\n  maxAggregation?: MaxAggregationResponse;\n  minMaxAggregation?: MinMaxAggregationResponse;\n  hierarchicalAggregation?: HierarchicalAggregationResponse;\n  sumAggregation?: SumAggregationResponse;\n}\n\n/** @oneof */\nexport interface FacetsResponseResponseOneOf {\n  terms?: TermAggregationResponse;\n  minAggregation?: MinAggregationResponse;\n  maxAggregation?: MaxAggregationResponse;\n  minMaxAggregation?: MinMaxAggregationResponse;\n  hierarchicalAggregation?: HierarchicalAggregationResponse;\n  sumAggregation?: SumAggregationResponse;\n}\n\nexport interface FacetCountResponse {\n  /** Facet field value (for example \"Shoes\", \"Socks\") */\n  facetValue?: string;\n  /** Document count within the group */\n  count?: number;\n}\n\nexport interface Value {\n  value?: string;\n  facets?: FacetsResponse;\n  count?: number;\n}\n\nexport interface TermAggregationResponse {\n  /** Facet field (for example productCategory) */\n  facet?: string;\n  /** Facet values and document counts */\n  facets?: FacetCountResponse[];\n}\n\nexport interface MinAggregationResponse {\n  /** Facet field (for example productPrice) */\n  facet?: string;\n  /** The minimum value across all documents */\n  minValue?: number | null;\n}\n\nexport interface MaxAggregationResponse {\n  /** Facet field (for example productPrice) */\n  facet?: string;\n  /** The maximum value across all documents */\n  maxValue?: number | null;\n}\n\nexport interface MinMaxAggregationResponse {\n  /** Facet field (for example productPrice) */\n  facet?: string;\n  /** The minimum value across all documents */\n  minValue?: number | null;\n  /** The maximum value across all documents */\n  maxValue?: number | null;\n}\n\nexport interface HierarchicalAggregationResponse {\n  facet?: string;\n  values?: Value[];\n}\n\nexport interface SumAggregationResponse {\n  /** Facet field (for example productPrice) */\n  facet?: string;\n  /** The sum value across all documents */\n  value?: number | null;\n}\n\nexport interface FederatedSearchRequest {\n  /**\n   * Query phrase to use.\n   * @maxLength 100\n   */\n  query?: string | null;\n  /**\n   * Language to search in.\n   * @minLength 2\n   */\n  language?: string | null;\n  /**\n   * Limit of documents to return per document type.\n   * @min 1\n   * @max 100\n   */\n  limit?: number | null;\n  /** Enable fuzzy search (for example query 'kalvin clein' will match document with 'calvin klein' in title). */\n  fuzzy?: boolean | null;\n  /** Highlight texts matching the query. Highlighted text will be wrapped with <mark/> tag. Defaults to true if not provided. */\n  highlight?: boolean | null;\n  /** Searchable fields to search in. If not provided, search is executed on all searchable fields in schemas */\n  searchFields?: string[];\n  /** Document types to search in. If not provided, search is executed on all document types enabled for the site */\n  documentTypes?: string[];\n  /** Include seo hidden documents. Defaults to false if not provided. */\n  includeSeoHidden?: boolean | null;\n  /**\n   * The properties/overrides/experiments to enable for this request. Currently supported: `scoring_profile`, `result-format`.\n   * @maxSize 10\n   */\n  properties?: SearchProperty[];\n}\n\nexport interface FederatedSearchResponse {\n  /** Search results from multiple indexes. */\n  results?: FederatedSearchDocuments[];\n}\n\nexport interface FederatedSearchDocuments {\n  /** Document type of documents */\n  documentType?: string | null;\n  /** Documents of document type */\n  documents?: Record<string, any>[] | null;\n  /** Total count of matching documents for document type */\n  total?: number;\n}\n\nexport interface SuggestRequest {\n  /**\n   * Text to search for. Fields configured in suggester configuration will be searched.\n   * @maxLength 50\n   */\n  query?: string | null;\n  /**\n   * Document type of documents to search for. All document types are searched if not provided.\n   * @minLength 2\n   */\n  documentType?: string | null;\n  /** Fields to order by. */\n  ordering?: OrderingClauses;\n  /**\n   * Number of suggested document to return.\n   * @min 1\n   * @max 100\n   */\n  limit?: number;\n  /**\n   * Language to search in.\n   * @minLength 2\n   */\n  language?: string | null;\n  /** Filter in platformized query language (for example {'field': {'$eq': 'value'}}) */\n  filter?: Record<string, any> | null;\n  /** Searchable fields to search in. If not provided, search is executed on all suggestable fields in schema */\n  searchFields?: string[];\n  /** A list of fields to include in the result set. If not provided, all fields of schema will be included. */\n  fields?: string[];\n  /** Include seo hidden documents. Defaults to false if not provided. */\n  includeSeoHidden?: boolean | null;\n  /**\n   * The properties/overrides/experiments to enable for this request. Currently supported: `scoring_profile`, `result-format`.\n   * @maxSize 10\n   */\n  properties?: SearchProperty[];\n}\n\nexport interface SuggestResponse {\n  /** Suggested documents. */\n  documents?: Record<string, any>[] | null;\n}\n\nexport interface FederatedSuggestRequest {\n  /**\n   * Text to search for. Fields configured in suggester configuration will be searched.\n   * @maxLength 50\n   */\n  query?: string | null;\n  /**\n   * Language to search in.\n   * @minLength 2\n   */\n  language?: string | null;\n  /**\n   * Number of suggested document to return per document type.\n   * @min 1\n   * @max 100\n   */\n  limit?: number;\n  /** Searchable fields to search in. If not provided, search is executed on all suggestable fields in schemas */\n  searchFields?: string[];\n  /** Document types to search in. If not provided, search is executed on all document types enabled for the site */\n  documentTypes?: string[];\n  /** Include seo hidden documents. Defaults to false if not provided. */\n  includeSeoHidden?: boolean | null;\n  /**\n   * The properties/overrides/experiments to enable for this request. Currently supported: `scoring_profile`, `result-format`.\n   * @maxSize 10\n   */\n  properties?: SearchProperty[];\n}\n\nexport interface FederatedSuggestResponse {\n  /** Suggest results from multiple indexes. */\n  results?: FederatedSuggestDocuments[];\n}\n\nexport interface FederatedSuggestDocuments {\n  /** Document type of documents */\n  documentType?: string | null;\n  /** Documents of document type */\n  documents?: Record<string, any>[] | null;\n}\n\nexport interface RelatedRequest {\n  /**\n   * ID of the document to fetch related documents for.\n   * @minLength 1\n   */\n  documentId?: string | null;\n  /**\n   * Document type of the document.\n   * @minLength 2\n   */\n  documentType?: string | null;\n  /** Fields to order by. */\n  ordering?: OrderingClauses;\n  /**\n   * Language to search in.\n   * @minLength 2\n   */\n  language?: string | null;\n  /** Filter in platformized query language (for example {'field': {'$eq': 'value'}}). */\n  filter?: Record<string, any> | null;\n  /** Searchable fields to compare documents by. If not provided, all searchable fields in schema are used */\n  searchFields?: string[];\n  /** A list of fields to include in the result set. If not provided, all fields of schema will be included. */\n  fields?: string[];\n  /** Number of related documents to return */\n  limit?: number;\n  /**\n   * The properties/overrides/experiments to enable for this request. Currently supported: `scoring_profile`.\n   * @maxSize 10\n   */\n  properties?: SearchProperty[];\n  /** Include seo hidden documents. Defaults to false if not provided. */\n  includeSeoHidden?: boolean | null;\n}\n\nexport interface RelatedResponse {\n  /** Documents matching filter and query. */\n  documents?: Record<string, any>[] | null;\n}\n\nexport interface AutocompleteRequest {\n  /**\n   * Query phrase to fetch completions for.\n   * @maxLength 50\n   */\n  query?: string | null;\n  /**\n   * Document type to use to search for phrases.\n   * @minLength 2\n   */\n  documentType?: string | null;\n  /**\n   * Limit of phrases to fetch.\n   * @min 1\n   * @max 100\n   */\n  limit?: number;\n  /**\n   * Language to search in.\n   * @minLength 2\n   */\n  language?: string | null;\n  /** Filter in platfromized query language (for example {'field': {'$eq': 'value'}}) */\n  filter?: Record<string, any> | null;\n  /** Searchable fields to use for query completion. If not provided, all searchable fields in schema are used */\n  searchFields?: string[];\n  /** Include seo hidden documents. Defaults to false if not provided. */\n  includeSeoHidden?: boolean | null;\n}\n\nexport interface AutocompleteResponse {\n  /** Suggested phrases. */\n  values?: AutocompleteResponseValue[];\n}\n\nexport interface AutocompleteResponseValue {\n  /** Suggested phrase. */\n  query?: string;\n}\n\nexport interface FederatedAutocompleteRequest {\n  /**\n   * Query phrase to fetch completions for.\n   * @maxLength 50\n   */\n  query?: string | null;\n  /**\n   * Language to search in.\n   * @minLength 2\n   */\n  language?: string | null;\n  /**\n   * Number of queries to return per document type.\n   * @min 1\n   * @max 100\n   */\n  limit?: number;\n  /** Searchable fields to search in. If not provided, search is executed on all autocompletable fields in schemas */\n  searchFields?: string[];\n  /** Document types to autocomplete in. If not provided, autocomplete is executed on all document types enabled for the site */\n  documentTypes?: string[];\n  /** Include seo hidden documents. Defaults to false if not provided. */\n  includeSeoHidden?: boolean | null;\n}\n\nexport interface FederatedAutocompleteResponse {\n  /** Suggested phrases from multiple indexes */\n  results?: FederatedAutocompleteResults[];\n}\n\nexport interface FederatedAutocompleteResults {\n  /** Document type of queries */\n  documentType?: string | null;\n  /** Suggested phrases */\n  values?: AutocompleteResponseValue[];\n}\n\nexport interface TrendingRequest {\n  documentTypes?: string[];\n  /** @minLength 2 */\n  language?: string | null;\n  /** Include seo hidden documents. Defaults to false if not provided. */\n  includeSeoHidden?: boolean | null;\n  /**\n   * The properties/overrides/experiments to enable for this request. Currently supported: `scoring_profile`, `result-format`.\n   * @maxSize 10\n   */\n  properties?: SearchProperty[];\n}\n\nexport interface TrendingResponse {\n  results?: TrendingItems[];\n}\n\nexport interface TrendingItems {\n  documentType?: string;\n  documents?: Record<string, any>[] | null;\n}\n","import * as ambassadorWixSearchV1Sitedocument from './search-v1-sitedocument-site-search.http.js';\nimport * as ambassadorWixSearchV1SitedocumentTypes from './search-v1-sitedocument-site-search.types.js';\nimport * as ambassadorWixSearchV1SitedocumentUniversalTypes from './search-v1-sitedocument-site-search.universal.js';\n\nexport type __PublicMethodMetaInfo<\n  K = string,\n  M = unknown,\n  T = unknown,\n  S = unknown,\n  Q = unknown,\n  R = unknown\n> = {\n  getUrl: (context: any) => string;\n  httpMethod: K;\n  path: string;\n  pathParams: M;\n  __requestType: T;\n  __originalRequestType: S;\n  __responseType: Q;\n  __originalResponseType: R;\n};\n\nexport function search(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixSearchV1SitedocumentUniversalTypes.SearchRequest,\n  ambassadorWixSearchV1SitedocumentTypes.SearchRequest,\n  ambassadorWixSearchV1SitedocumentUniversalTypes.SearchResponse,\n  ambassadorWixSearchV1SitedocumentTypes.SearchResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions = ambassadorWixSearchV1Sitedocument.search(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'POST',\n    path: '/api/v1/search',\n    pathParams: {},\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function federatedSearch(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixSearchV1SitedocumentUniversalTypes.FederatedSearchRequest,\n  ambassadorWixSearchV1SitedocumentTypes.FederatedSearchRequest,\n  ambassadorWixSearchV1SitedocumentUniversalTypes.FederatedSearchResponse,\n  ambassadorWixSearchV1SitedocumentTypes.FederatedSearchResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixSearchV1Sitedocument.federatedSearch(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'POST',\n    path: '/api/v1/search/federated',\n    pathParams: {},\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function suggest(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixSearchV1SitedocumentUniversalTypes.SuggestRequest,\n  ambassadorWixSearchV1SitedocumentTypes.SuggestRequest,\n  ambassadorWixSearchV1SitedocumentUniversalTypes.SuggestResponse,\n  ambassadorWixSearchV1SitedocumentTypes.SuggestResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions = ambassadorWixSearchV1Sitedocument.suggest(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'POST',\n    path: '/api/v1/suggest',\n    pathParams: {},\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function federatedSuggest(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixSearchV1SitedocumentUniversalTypes.FederatedSuggestRequest,\n  ambassadorWixSearchV1SitedocumentTypes.FederatedSuggestRequest,\n  ambassadorWixSearchV1SitedocumentUniversalTypes.FederatedSuggestResponse,\n  ambassadorWixSearchV1SitedocumentTypes.FederatedSuggestResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixSearchV1Sitedocument.federatedSuggest(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'POST',\n    path: '/api/v1/suggest/federated',\n    pathParams: {},\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function related(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixSearchV1SitedocumentUniversalTypes.RelatedRequest,\n  ambassadorWixSearchV1SitedocumentTypes.RelatedRequest,\n  ambassadorWixSearchV1SitedocumentUniversalTypes.RelatedResponse,\n  ambassadorWixSearchV1SitedocumentTypes.RelatedResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions = ambassadorWixSearchV1Sitedocument.related(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'POST',\n    path: '/api/v1/related',\n    pathParams: {},\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function autocomplete(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixSearchV1SitedocumentUniversalTypes.AutocompleteRequest,\n  ambassadorWixSearchV1SitedocumentTypes.AutocompleteRequest,\n  ambassadorWixSearchV1SitedocumentUniversalTypes.AutocompleteResponse,\n  ambassadorWixSearchV1SitedocumentTypes.AutocompleteResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixSearchV1Sitedocument.autocomplete(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'POST',\n    path: '/api/v1/autocomplete',\n    pathParams: {},\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function federatedAutocomplete(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixSearchV1SitedocumentUniversalTypes.FederatedAutocompleteRequest,\n  ambassadorWixSearchV1SitedocumentTypes.FederatedAutocompleteRequest,\n  ambassadorWixSearchV1SitedocumentUniversalTypes.FederatedAutocompleteResponse,\n  ambassadorWixSearchV1SitedocumentTypes.FederatedAutocompleteResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixSearchV1Sitedocument.federatedAutocomplete(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'POST',\n    path: '/api/v1/autocomplete/federated',\n    pathParams: {},\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function trending(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixSearchV1SitedocumentUniversalTypes.TrendingRequest,\n  ambassadorWixSearchV1SitedocumentTypes.TrendingRequest,\n  ambassadorWixSearchV1SitedocumentUniversalTypes.TrendingResponse,\n  ambassadorWixSearchV1SitedocumentTypes.TrendingResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions = ambassadorWixSearchV1Sitedocument.trending(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'POST',\n    path: '/api/v1/trending',\n    pathParams: {},\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport {\n  SiteDocument as SiteDocumentOriginal,\n  UpdateInternalDocumentsEvent as UpdateInternalDocumentsEventOriginal,\n  UpdateInternalDocumentsEventOperationOneOf as UpdateInternalDocumentsEventOperationOneOfOriginal,\n  InternalDocument as InternalDocumentOriginal,\n  InternalDocumentUpdateOperation as InternalDocumentUpdateOperationOriginal,\n  DeleteByIdsOperation as DeleteByIdsOperationOriginal,\n  DeleteByFilterOperation as DeleteByFilterOperationOriginal,\n  InternalDocumentUpdateByFilterOperation as InternalDocumentUpdateByFilterOperationOriginal,\n  InternalUpdateExistingOperation as InternalUpdateExistingOperationOriginal,\n  VersionedDocumentUpdateOperation as VersionedDocumentUpdateOperationOriginal,\n  VersioningMode as VersioningModeOriginal,\n  VersioningModeWithLiterals as VersioningModeWithLiteralsOriginal,\n  VersionedDeleteByIdsOperation as VersionedDeleteByIdsOperationOriginal,\n  VersionedDocumentId as VersionedDocumentIdOriginal,\n  UpdateDocumentsEvent as UpdateDocumentsEventOriginal,\n  UpdateDocumentsEventOperationOneOf as UpdateDocumentsEventOperationOneOfOriginal,\n  DocumentUpdateOperation as DocumentUpdateOperationOriginal,\n  IndexDocument as IndexDocumentOriginal,\n  DocumentPayload as DocumentPayloadOriginal,\n  DocumentImage as DocumentImageOriginal,\n  Enum as EnumOriginal,\n  EnumWithLiterals as EnumWithLiteralsOriginal,\n  V1DeleteByIdsOperation as V1DeleteByIdsOperationOriginal,\n  V1DeleteByFilterOperation as V1DeleteByFilterOperationOriginal,\n  UpdateByFilterOperation as UpdateByFilterOperationOriginal,\n  UpdateExistingOperation as UpdateExistingOperationOriginal,\n  Empty as EmptyOriginal,\n  MessageEnvelope as MessageEnvelopeOriginal,\n  IdentificationData as IdentificationDataOriginal,\n  IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n  WebhookIdentityType as WebhookIdentityTypeOriginal,\n  WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n  AccountInfo as AccountInfoOriginal,\n  SearchRequest as SearchRequestOriginal,\n  OrderingClauses as OrderingClausesOriginal,\n  OrderingClause as OrderingClauseOriginal,\n  Direction as DirectionOriginal,\n  DirectionWithLiterals as DirectionWithLiteralsOriginal,\n  SearchPaging as SearchPagingOriginal,\n  FacetClauses as FacetClausesOriginal,\n  FacetClause as FacetClauseOriginal,\n  FacetClauseClauseOneOf as FacetClauseClauseOneOfOriginal,\n  Aggregation as AggregationOriginal,\n  AggregationWithLiterals as AggregationWithLiteralsOriginal,\n  HierarchicalFacet as HierarchicalFacetOriginal,\n  HierarchicalFacetClauseOneOf as HierarchicalFacetClauseOneOfOriginal,\n  TermFacet as TermFacetOriginal,\n  AggregationFacet as AggregationFacetOriginal,\n  SearchProperty as SearchPropertyOriginal,\n  SearchResponse as SearchResponseOriginal,\n  NextPageResponse as NextPageResponseOriginal,\n  FacetsResponse as FacetsResponseOriginal,\n  FacetsResponseResponseOneOf as FacetsResponseResponseOneOfOriginal,\n  FacetCountResponse as FacetCountResponseOriginal,\n  Value as ValueOriginal,\n  TermAggregationResponse as TermAggregationResponseOriginal,\n  MinAggregationResponse as MinAggregationResponseOriginal,\n  MaxAggregationResponse as MaxAggregationResponseOriginal,\n  MinMaxAggregationResponse as MinMaxAggregationResponseOriginal,\n  HierarchicalAggregationResponse as HierarchicalAggregationResponseOriginal,\n  SumAggregationResponse as SumAggregationResponseOriginal,\n  FederatedSearchRequest as FederatedSearchRequestOriginal,\n  FederatedSearchResponse as FederatedSearchResponseOriginal,\n  FederatedSearchDocuments as FederatedSearchDocumentsOriginal,\n  SuggestRequest as SuggestRequestOriginal,\n  SuggestResponse as SuggestResponseOriginal,\n  FederatedSuggestRequest as FederatedSuggestRequestOriginal,\n  FederatedSuggestResponse as FederatedSuggestResponseOriginal,\n  FederatedSuggestDocuments as FederatedSuggestDocumentsOriginal,\n  RelatedRequest as RelatedRequestOriginal,\n  RelatedResponse as RelatedResponseOriginal,\n  AutocompleteRequest as AutocompleteRequestOriginal,\n  AutocompleteResponse as AutocompleteResponseOriginal,\n  AutocompleteResponseValue as AutocompleteResponseValueOriginal,\n  FederatedAutocompleteRequest as FederatedAutocompleteRequestOriginal,\n  FederatedAutocompleteResponse as FederatedAutocompleteResponseOriginal,\n  FederatedAutocompleteResults as FederatedAutocompleteResultsOriginal,\n  TrendingRequest as TrendingRequestOriginal,\n  TrendingResponse as TrendingResponseOriginal,\n  TrendingItems as TrendingItemsOriginal,\n} from './search-v1-sitedocument-site-search.types.js';\n"],"mappings":";AAAA,SAAS,oCAAoC;AAC7C,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,uCACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,kBAAkB;AAAA,MAChB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,I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B,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","VersioningMode","Enum","WebhookIdentityType","Direction","Aggregation","search","federatedSearch","suggest","federatedSuggest","related","autocomplete","federatedAutocomplete","trending"]}