interface SearchRequest$1 { /** Text to search for. All searchable fields will be searched. */ query?: string | null; /** Document type of documents to search for. All document types are searched if not provided. */ documentType?: string | null; /** Fields to order by. */ ordering?: OrderingClauses$1; /** Paging parameters. */ paging?: SearchPaging$1; /** Language to search in. */ language?: string | null; /** Filter in platformized query language (for example {'field': {'$eq': 'value'}}) */ filter?: Record | null; /** The facets to retrieve. */ facets?: FacetClauses$1; /** Enable fuzzy search (eg. query 'kalvin clein' will match document with 'calvin klein' in title). */ fuzzy?: boolean | null; /** Highlight texts matching the query. Highlighted text will be wrapped with tag. Defaults to true if not provided. */ highlight?: boolean | null; /** Searchable fields to search in. If not provided, search is executed on all searchable fields in schema */ searchFields?: string[]; /** A list of fields to include in the result set. If not provided, all fields of schema will be included. */ fields?: string[]; /** The properties/overrides/experiments to enable for this request. Currently supported: `scoring_profile`, `result-format`. */ properties?: SearchProperty$1[]; /** Include seo hidden documents. Defaults to false if not provided. */ includeSeoHidden?: boolean | null; } interface OrderingClauses$1 { ordering?: OrderingClause$1[]; } interface OrderingClause$1 { fieldName?: string | null; direction?: Direction$1; } declare enum Direction$1 { UninitializedDirection = "UninitializedDirection", ASC = "ASC", DESC = "DESC" } interface SearchPaging$1 { /** * Number of items to skip in the result set. * @deprecated */ skip?: number; /** Number of items to fetch (effectively page size). */ limit?: number; /** Number of items to skip in the result set. */ offset?: number; } interface FacetClauses$1 { /** Each entry represents a single facet with parameters. */ clauses?: FacetClause$1[]; } interface FacetClause$1 extends FacetClauseClauseOneOf$1 { term?: TermFacet$1; aggregation?: AggregationFacet$1; hierarchical?: HierarchicalFacet$1; } /** @oneof */ interface FacetClauseClauseOneOf$1 { term?: TermFacet$1; aggregation?: AggregationFacet$1; hierarchical?: HierarchicalFacet$1; } declare enum Aggregation$1 { MIN = "MIN", MAX = "MAX", SUM = "SUM" } interface HierarchicalFacet$1 extends HierarchicalFacetClauseOneOf$1 { term?: TermFacet$1; aggregation?: AggregationFacet$1; nestedAggregation?: HierarchicalFacet$1; } /** @oneof */ interface HierarchicalFacetClauseOneOf$1 { term?: TermFacet$1; aggregation?: AggregationFacet$1; } interface TermFacet$1 { /** The name of the faceted attribute. */ name?: string; /** Limit the number of facet values returned. Default is 10. */ limit?: number | null; } interface AggregationFacet$1 { /** The name of the faceted attribute. */ name?: string; /** Aggregation type. */ aggregation?: Aggregation$1; } interface SearchProperty$1 { name?: string; value?: any; } interface SearchResponse$1 { /** Documents matching filter and query. */ documents?: Record[] | null; nextPage?: NextPageResponse$1; /** * Facets provide "counts in categories" view. For example searching for "Nike" would return * (Shoes, 5), (Socks, 2) indicating numbers for matching by each faceted field. */ facets?: FacetsResponse$1[]; } interface NextPageResponse$1 { /** Total number of items across all pages */ total?: number; /** The number of items to skip */ skip?: number; /** The number of items to retrieve in one page */ limit?: number; } interface FacetsResponse$1 extends FacetsResponseResponseOneOf$1 { terms?: TermAggregationResponse$1; minAggregation?: MinAggregationResponse$1; maxAggregation?: MaxAggregationResponse$1; minMaxAggregation?: MinMaxAggregationResponse$1; hierarchicalAggregation?: HierarchicalAggregationResponse$1; sumAggregation?: SumAggregationResponse$1; } /** @oneof */ interface FacetsResponseResponseOneOf$1 { terms?: TermAggregationResponse$1; minAggregation?: MinAggregationResponse$1; maxAggregation?: MaxAggregationResponse$1; minMaxAggregation?: MinMaxAggregationResponse$1; hierarchicalAggregation?: HierarchicalAggregationResponse$1; sumAggregation?: SumAggregationResponse$1; } interface FacetCountResponse$1 { /** Facet field value (for example "Shoes", "Socks") */ facetValue?: string; /** Document count within the group */ count?: number; } interface Value$1 { value?: string; facets?: FacetsResponse$1; count?: number; } interface TermAggregationResponse$1 { /** Facet field (for example productCategory) */ facet?: string; /** Facet values and document counts */ facets?: FacetCountResponse$1[]; } interface MinAggregationResponse$1 { /** Facet field (for example productPrice) */ facet?: string; /** The minimum value across all documents */ minValue?: number | null; } interface MaxAggregationResponse$1 { /** Facet field (for example productPrice) */ facet?: string; /** The maximum value across all documents */ maxValue?: number | null; } interface MinMaxAggregationResponse$1 { /** Facet field (for example productPrice) */ facet?: string; /** The minimum value across all documents */ minValue?: number | null; /** The maximum value across all documents */ maxValue?: number | null; } interface HierarchicalAggregationResponse$1 { facet?: string; values?: Value$1[]; } interface SumAggregationResponse$1 { /** Facet field (for example productPrice) */ facet?: string; /** The sum value across all documents */ value?: number | null; } interface FederatedSearchRequest$1 { /** Query phrase to use. */ query?: string | null; /** Language to search in. */ language?: string | null; /** Limit of documents to return per document type. */ limit?: number | null; /** Enable fuzzy search (for example query 'kalvin clein' will match document with 'calvin klein' in title). */ fuzzy?: boolean | null; /** Highlight texts matching the query. Highlighted text will be wrapped with tag. Defaults to true if not provided. */ highlight?: boolean | null; /** Searchable fields to search in. If not provided, search is executed on all searchable fields in schemas */ searchFields?: string[]; /** Document types to search in. If not provided, search is executed on all document types enabled for the site */ documentTypes?: string[]; /** Include seo hidden documents. Defaults to false if not provided. */ includeSeoHidden?: boolean | null; /** The properties/overrides/experiments to enable for this request. Currently supported: `scoring_profile`, `result-format`. */ properties?: SearchProperty$1[]; } interface FederatedSearchResponse$1 { /** Search results from multiple indexes. */ results?: FederatedSearchDocuments$1[]; } interface FederatedSearchDocuments$1 { /** Document type of documents */ documentType?: string | null; /** Documents of document type */ documents?: Record[] | null; /** Total count of matching documents for document type */ total?: number; } interface SuggestRequest$1 { /** Text to search for. Fields configured in suggester configuration will be searched. */ query?: string | null; /** Document type of documents to search for. All document types are searched if not provided. */ documentType?: string | null; /** Fields to order by. */ ordering?: OrderingClauses$1; /** Number of suggested document to return. */ limit?: number; /** Language to search in. */ language?: string | null; /** Filter in platformized query language (for example {'field': {'$eq': 'value'}}) */ filter?: Record | null; /** Searchable fields to search in. If not provided, search is executed on all suggestable fields in schema */ searchFields?: string[]; /** A list of fields to include in the result set. If not provided, all fields of schema will be included. */ fields?: string[]; /** Include seo hidden documents. Defaults to false if not provided. */ includeSeoHidden?: boolean | null; /** The properties/overrides/experiments to enable for this request. Currently supported: `scoring_profile`, `result-format`. */ properties?: SearchProperty$1[]; } interface SuggestResponse$1 { /** Suggested documents. */ documents?: Record[] | null; } interface FederatedSuggestRequest$1 { /** Text to search for. Fields configured in suggester configuration will be searched. */ query?: string | null; /** Language to search in. */ language?: string | null; /** Number of suggested document to return per document type. */ limit?: number; /** Searchable fields to search in. If not provided, search is executed on all suggestable fields in schemas */ searchFields?: string[]; /** Document types to search in. If not provided, search is executed on all document types enabled for the site */ documentTypes?: string[]; /** Include seo hidden documents. Defaults to false if not provided. */ includeSeoHidden?: boolean | null; /** The properties/overrides/experiments to enable for this request. Currently supported: `scoring_profile`, `result-format`. */ properties?: SearchProperty$1[]; } interface FederatedSuggestResponse$1 { /** Suggest results from multiple indexes. */ results?: FederatedSuggestDocuments$1[]; } interface FederatedSuggestDocuments$1 { /** Document type of documents */ documentType?: string | null; /** Documents of document type */ documents?: Record[] | null; } interface RelatedRequest$1 { /** ID of the document to fetch related documents for. */ documentId?: string | null; /** Document type of the document. */ documentType?: string | null; /** Fields to order by. */ ordering?: OrderingClauses$1; /** Language to search in. */ language?: string | null; /** Filter in platformized query language (for example {'field': {'$eq': 'value'}}). */ filter?: Record | null; /** Searchable fields to compare documents by. If not provided, all searchable fields in schema are used */ searchFields?: string[]; /** A list of fields to include in the result set. If not provided, all fields of schema will be included. */ fields?: string[]; /** Number of related documents to return */ limit?: number; /** The properties/overrides/experiments to enable for this request. Currently supported: `scoring_profile`. */ properties?: SearchProperty$1[]; /** Include seo hidden documents. Defaults to false if not provided. */ includeSeoHidden?: boolean | null; } interface RelatedResponse$1 { /** Documents matching filter and query. */ documents?: Record[] | null; } interface AutocompleteRequest$1 { /** Query phrase to fetch completions for. */ query?: string | null; /** Document type to use to search for phrases. */ documentType?: string | null; /** Limit of phrases to fetch. */ limit?: number; /** Language to search in. */ language?: string | null; /** Filter in platfromized query language (for example {'field': {'$eq': 'value'}}) */ filter?: Record | null; /** Searchable fields to use for query completion. If not provided, all searchable fields in schema are used */ searchFields?: string[]; /** Include seo hidden documents. Defaults to false if not provided. */ includeSeoHidden?: boolean | null; } interface AutocompleteResponse$1 { /** Suggested phrases. */ values?: AutocompleteResponseValue$1[]; } interface AutocompleteResponseValue$1 { /** Suggested phrase. */ query?: string; } interface FederatedAutocompleteRequest$1 { /** Query phrase to fetch completions for. */ query?: string | null; /** Language to search in. */ language?: string | null; /** Number of queries to return per document type. */ limit?: number; /** Searchable fields to search in. If not provided, search is executed on all autocompletable fields in schemas */ searchFields?: string[]; /** Document types to autocomplete in. If not provided, autocomplete is executed on all document types enabled for the site */ documentTypes?: string[]; /** Include seo hidden documents. Defaults to false if not provided. */ includeSeoHidden?: boolean | null; } interface FederatedAutocompleteResponse$1 { /** Suggested phrases from multiple indexes */ results?: FederatedAutocompleteResults$1[]; } interface FederatedAutocompleteResults$1 { /** Document type of queries */ documentType?: string | null; /** Suggested phrases */ values?: AutocompleteResponseValue$1[]; } interface TrendingRequest$1 { documentTypes?: string[]; language?: string | null; /** Include seo hidden documents. Defaults to false if not provided. */ includeSeoHidden?: boolean | null; /** The properties/overrides/experiments to enable for this request. Currently supported: `scoring_profile`, `result-format`. */ properties?: SearchProperty$1[]; } interface TrendingResponse$1 { results?: TrendingItems$1[]; } interface TrendingItems$1 { documentType?: string; documents?: Record[] | null; } interface NextPageResponseNonNullableFields$1 { total: number; skip: number; limit: number; } interface FacetCountResponseNonNullableFields$1 { facetValue: string; count: number; } interface TermAggregationResponseNonNullableFields$1 { facet: string; facets: FacetCountResponseNonNullableFields$1[]; } interface MinAggregationResponseNonNullableFields$1 { facet: string; } interface MaxAggregationResponseNonNullableFields$1 { facet: string; } interface MinMaxAggregationResponseNonNullableFields$1 { facet: string; } interface ValueNonNullableFields$1 { value: string; facets?: FacetsResponseNonNullableFields$1; count: number; } interface HierarchicalAggregationResponseNonNullableFields$1 { facet: string; values: ValueNonNullableFields$1[]; } interface SumAggregationResponseNonNullableFields$1 { facet: string; } interface FacetsResponseNonNullableFields$1 { terms?: TermAggregationResponseNonNullableFields$1; minAggregation?: MinAggregationResponseNonNullableFields$1; maxAggregation?: MaxAggregationResponseNonNullableFields$1; minMaxAggregation?: MinMaxAggregationResponseNonNullableFields$1; hierarchicalAggregation?: HierarchicalAggregationResponseNonNullableFields$1; sumAggregation?: SumAggregationResponseNonNullableFields$1; } interface SearchResponseNonNullableFields$1 { nextPage?: NextPageResponseNonNullableFields$1; facets: FacetsResponseNonNullableFields$1[]; } interface FederatedSearchDocumentsNonNullableFields$1 { total: number; } interface FederatedSearchResponseNonNullableFields$1 { results: FederatedSearchDocumentsNonNullableFields$1[]; } interface AutocompleteResponseValueNonNullableFields$1 { query: string; } interface AutocompleteResponseNonNullableFields$1 { values: AutocompleteResponseValueNonNullableFields$1[]; } interface FederatedAutocompleteResultsNonNullableFields$1 { values: AutocompleteResponseValueNonNullableFields$1[]; } interface FederatedAutocompleteResponseNonNullableFields$1 { results: FederatedAutocompleteResultsNonNullableFields$1[]; } interface TrendingItemsNonNullableFields$1 { documentType: string; } interface TrendingResponseNonNullableFields$1 { results: TrendingItemsNonNullableFields$1[]; } interface SearchRequest { /** Text to search for. All searchable fields will be searched. */ query?: string | null; /** Document type of documents to search for. All document types are searched if not provided. */ documentType?: string | null; /** Fields to order by. */ ordering?: OrderingClauses; /** Paging parameters. */ paging?: SearchPaging; /** Language to search in. */ language?: string | null; /** Filter in platformized query language (for example {'field': {'$eq': 'value'}}) */ filter?: Record | null; /** The facets to retrieve. */ facets?: FacetClauses; /** Enable fuzzy search (eg. query 'kalvin clein' will match document with 'calvin klein' in title). */ fuzzy?: boolean | null; /** Highlight texts matching the query. Highlighted text will be wrapped with tag. Defaults to true if not provided. */ highlight?: boolean | null; /** Searchable fields to search in. If not provided, search is executed on all searchable fields in schema */ searchFields?: string[]; /** A list of fields to include in the result set. If not provided, all fields of schema will be included. */ fields?: string[]; /** The properties/overrides/experiments to enable for this request. Currently supported: `scoring_profile`, `result-format`. */ properties?: SearchProperty[]; /** Include seo hidden documents. Defaults to false if not provided. */ includeSeoHidden?: boolean | null; } interface OrderingClauses { ordering?: OrderingClause[]; } interface OrderingClause { fieldName?: string | null; direction?: Direction; } declare enum Direction { UninitializedDirection = "UninitializedDirection", ASC = "ASC", DESC = "DESC" } interface SearchPaging { /** * Number of items to skip in the result set. * @deprecated */ skip?: number; /** Number of items to fetch (effectively page size). */ limit?: number; /** Number of items to skip in the result set. */ offset?: number; } interface FacetClauses { /** Each entry represents a single facet with parameters. */ clauses?: FacetClause[]; } interface FacetClause extends FacetClauseClauseOneOf { term?: TermFacet; aggregation?: AggregationFacet; hierarchical?: HierarchicalFacet; } /** @oneof */ interface FacetClauseClauseOneOf { term?: TermFacet; aggregation?: AggregationFacet; hierarchical?: HierarchicalFacet; } declare enum Aggregation { MIN = "MIN", MAX = "MAX", SUM = "SUM" } interface HierarchicalFacet extends HierarchicalFacetClauseOneOf { term?: TermFacet; aggregation?: AggregationFacet; nestedAggregation?: HierarchicalFacet; } /** @oneof */ interface HierarchicalFacetClauseOneOf { term?: TermFacet; aggregation?: AggregationFacet; } interface TermFacet { /** The name of the faceted attribute. */ name?: string; /** Limit the number of facet values returned. Default is 10. */ limit?: number | null; } interface AggregationFacet { /** The name of the faceted attribute. */ name?: string; /** Aggregation type. */ aggregation?: Aggregation; } interface SearchProperty { name?: string; value?: any; } interface SearchResponse { /** Documents matching filter and query. */ documents?: Record[] | null; nextPage?: NextPageResponse; /** * Facets provide "counts in categories" view. For example searching for "Nike" would return * (Shoes, 5), (Socks, 2) indicating numbers for matching by each faceted field. */ facets?: FacetsResponse[]; } interface NextPageResponse { /** Total number of items across all pages */ total?: number; /** The number of items to skip */ skip?: number; /** The number of items to retrieve in one page */ limit?: number; } interface FacetsResponse extends FacetsResponseResponseOneOf { terms?: TermAggregationResponse; minAggregation?: MinAggregationResponse; maxAggregation?: MaxAggregationResponse; minMaxAggregation?: MinMaxAggregationResponse; hierarchicalAggregation?: HierarchicalAggregationResponse; sumAggregation?: SumAggregationResponse; } /** @oneof */ interface FacetsResponseResponseOneOf { terms?: TermAggregationResponse; minAggregation?: MinAggregationResponse; maxAggregation?: MaxAggregationResponse; minMaxAggregation?: MinMaxAggregationResponse; hierarchicalAggregation?: HierarchicalAggregationResponse; sumAggregation?: SumAggregationResponse; } interface FacetCountResponse { /** Facet field value (for example "Shoes", "Socks") */ facetValue?: string; /** Document count within the group */ count?: number; } interface Value { value?: string; facets?: FacetsResponse; count?: number; } interface TermAggregationResponse { /** Facet field (for example productCategory) */ facet?: string; /** Facet values and document counts */ facets?: FacetCountResponse[]; } interface MinAggregationResponse { /** Facet field (for example productPrice) */ facet?: string; /** The minimum value across all documents */ minValue?: number | null; } interface MaxAggregationResponse { /** Facet field (for example productPrice) */ facet?: string; /** The maximum value across all documents */ maxValue?: number | null; } interface MinMaxAggregationResponse { /** Facet field (for example productPrice) */ facet?: string; /** The minimum value across all documents */ minValue?: number | null; /** The maximum value across all documents */ maxValue?: number | null; } interface HierarchicalAggregationResponse { facet?: string; values?: Value[]; } interface SumAggregationResponse { /** Facet field (for example productPrice) */ facet?: string; /** The sum value across all documents */ value?: number | null; } interface FederatedSearchRequest { /** Query phrase to use. */ query?: string | null; /** Language to search in. */ language?: string | null; /** Limit of documents to return per document type. */ limit?: number | null; /** Enable fuzzy search (for example query 'kalvin clein' will match document with 'calvin klein' in title). */ fuzzy?: boolean | null; /** Highlight texts matching the query. Highlighted text will be wrapped with tag. Defaults to true if not provided. */ highlight?: boolean | null; /** Searchable fields to search in. If not provided, search is executed on all searchable fields in schemas */ searchFields?: string[]; /** Document types to search in. If not provided, search is executed on all document types enabled for the site */ documentTypes?: string[]; /** Include seo hidden documents. Defaults to false if not provided. */ includeSeoHidden?: boolean | null; /** The properties/overrides/experiments to enable for this request. Currently supported: `scoring_profile`, `result-format`. */ properties?: SearchProperty[]; } interface FederatedSearchResponse { /** Search results from multiple indexes. */ results?: FederatedSearchDocuments[]; } interface FederatedSearchDocuments { /** Document type of documents */ documentType?: string | null; /** Documents of document type */ documents?: Record[] | null; /** Total count of matching documents for document type */ total?: number; } interface SuggestRequest { /** Text to search for. Fields configured in suggester configuration will be searched. */ query?: string | null; /** Document type of documents to search for. All document types are searched if not provided. */ documentType?: string | null; /** Fields to order by. */ ordering?: OrderingClauses; /** Number of suggested document to return. */ limit?: number; /** Language to search in. */ language?: string | null; /** Filter in platformized query language (for example {'field': {'$eq': 'value'}}) */ filter?: Record | null; /** Searchable fields to search in. If not provided, search is executed on all suggestable fields in schema */ searchFields?: string[]; /** A list of fields to include in the result set. If not provided, all fields of schema will be included. */ fields?: string[]; /** Include seo hidden documents. Defaults to false if not provided. */ includeSeoHidden?: boolean | null; /** The properties/overrides/experiments to enable for this request. Currently supported: `scoring_profile`, `result-format`. */ properties?: SearchProperty[]; } interface SuggestResponse { /** Suggested documents. */ documents?: Record[] | null; } interface FederatedSuggestRequest { /** Text to search for. Fields configured in suggester configuration will be searched. */ query?: string | null; /** Language to search in. */ language?: string | null; /** Number of suggested document to return per document type. */ limit?: number; /** Searchable fields to search in. If not provided, search is executed on all suggestable fields in schemas */ searchFields?: string[]; /** Document types to search in. If not provided, search is executed on all document types enabled for the site */ documentTypes?: string[]; /** Include seo hidden documents. Defaults to false if not provided. */ includeSeoHidden?: boolean | null; /** The properties/overrides/experiments to enable for this request. Currently supported: `scoring_profile`, `result-format`. */ properties?: SearchProperty[]; } interface FederatedSuggestResponse { /** Suggest results from multiple indexes. */ results?: FederatedSuggestDocuments[]; } interface FederatedSuggestDocuments { /** Document type of documents */ documentType?: string | null; /** Documents of document type */ documents?: Record[] | null; } interface RelatedRequest { /** ID of the document to fetch related documents for. */ documentId?: string | null; /** Document type of the document. */ documentType?: string | null; /** Fields to order by. */ ordering?: OrderingClauses; /** Language to search in. */ language?: string | null; /** Filter in platformized query language (for example {'field': {'$eq': 'value'}}). */ filter?: Record | null; /** Searchable fields to compare documents by. If not provided, all searchable fields in schema are used */ searchFields?: string[]; /** A list of fields to include in the result set. If not provided, all fields of schema will be included. */ fields?: string[]; /** Number of related documents to return */ limit?: number; /** The properties/overrides/experiments to enable for this request. Currently supported: `scoring_profile`. */ properties?: SearchProperty[]; /** Include seo hidden documents. Defaults to false if not provided. */ includeSeoHidden?: boolean | null; } interface RelatedResponse { /** Documents matching filter and query. */ documents?: Record[] | null; } interface AutocompleteRequest { /** Query phrase to fetch completions for. */ query?: string | null; /** Document type to use to search for phrases. */ documentType?: string | null; /** Limit of phrases to fetch. */ limit?: number; /** Language to search in. */ language?: string | null; /** Filter in platfromized query language (for example {'field': {'$eq': 'value'}}) */ filter?: Record | null; /** Searchable fields to use for query completion. If not provided, all searchable fields in schema are used */ searchFields?: string[]; /** Include seo hidden documents. Defaults to false if not provided. */ includeSeoHidden?: boolean | null; } interface AutocompleteResponse { /** Suggested phrases. */ values?: AutocompleteResponseValue[]; } interface AutocompleteResponseValue { /** Suggested phrase. */ query?: string; } interface FederatedAutocompleteRequest { /** Query phrase to fetch completions for. */ query?: string | null; /** Language to search in. */ language?: string | null; /** Number of queries to return per document type. */ limit?: number; /** Searchable fields to search in. If not provided, search is executed on all autocompletable fields in schemas */ searchFields?: string[]; /** Document types to autocomplete in. If not provided, autocomplete is executed on all document types enabled for the site */ documentTypes?: string[]; /** Include seo hidden documents. Defaults to false if not provided. */ includeSeoHidden?: boolean | null; } interface FederatedAutocompleteResponse { /** Suggested phrases from multiple indexes */ results?: FederatedAutocompleteResults[]; } interface FederatedAutocompleteResults { /** Document type of queries */ documentType?: string | null; /** Suggested phrases */ values?: AutocompleteResponseValue[]; } interface TrendingRequest { documentTypes?: string[]; language?: string | null; /** Include seo hidden documents. Defaults to false if not provided. */ includeSeoHidden?: boolean | null; /** The properties/overrides/experiments to enable for this request. Currently supported: `scoring_profile`, `result-format`. */ properties?: SearchProperty[]; } interface TrendingResponse { results?: TrendingItems[]; } interface TrendingItems { documentType?: string; documents?: Record[] | null; } interface NextPageResponseNonNullableFields { total: number; skip: number; limit: number; } interface FacetCountResponseNonNullableFields { facetValue: string; count: number; } interface TermAggregationResponseNonNullableFields { facet: string; facets: FacetCountResponseNonNullableFields[]; } interface MinAggregationResponseNonNullableFields { facet: string; } interface MaxAggregationResponseNonNullableFields { facet: string; } interface MinMaxAggregationResponseNonNullableFields { facet: string; } interface ValueNonNullableFields { value: string; facets?: FacetsResponseNonNullableFields; count: number; } interface HierarchicalAggregationResponseNonNullableFields { facet: string; values: ValueNonNullableFields[]; } interface SumAggregationResponseNonNullableFields { facet: string; } interface FacetsResponseNonNullableFields { terms?: TermAggregationResponseNonNullableFields; minAggregation?: MinAggregationResponseNonNullableFields; maxAggregation?: MaxAggregationResponseNonNullableFields; minMaxAggregation?: MinMaxAggregationResponseNonNullableFields; hierarchicalAggregation?: HierarchicalAggregationResponseNonNullableFields; sumAggregation?: SumAggregationResponseNonNullableFields; } interface SearchResponseNonNullableFields { nextPage?: NextPageResponseNonNullableFields; facets: FacetsResponseNonNullableFields[]; } interface FederatedSearchDocumentsNonNullableFields { total: number; } interface FederatedSearchResponseNonNullableFields { results: FederatedSearchDocumentsNonNullableFields[]; } interface AutocompleteResponseValueNonNullableFields { query: string; } interface AutocompleteResponseNonNullableFields { values: AutocompleteResponseValueNonNullableFields[]; } interface FederatedAutocompleteResultsNonNullableFields { values: AutocompleteResponseValueNonNullableFields[]; } interface FederatedAutocompleteResponseNonNullableFields { results: FederatedAutocompleteResultsNonNullableFields[]; } interface TrendingItemsNonNullableFields { documentType: string; } interface TrendingResponseNonNullableFields { results: TrendingItemsNonNullableFields[]; } type __PublicMethodMetaInfo = { getUrl: (context: any) => string; httpMethod: K; path: string; pathParams: M; __requestType: T; __originalRequestType: S; __responseType: Q; __originalResponseType: R; }; declare function search(): __PublicMethodMetaInfo<'POST', {}, SearchRequest, SearchRequest$1, SearchResponse & SearchResponseNonNullableFields, SearchResponse$1 & SearchResponseNonNullableFields$1>; declare function federatedSearch(): __PublicMethodMetaInfo<'POST', {}, FederatedSearchRequest, FederatedSearchRequest$1, FederatedSearchResponse & FederatedSearchResponseNonNullableFields, FederatedSearchResponse$1 & FederatedSearchResponseNonNullableFields$1>; declare function suggest(): __PublicMethodMetaInfo<'POST', {}, SuggestRequest, SuggestRequest$1, SuggestResponse, SuggestResponse$1>; declare function federatedSuggest(): __PublicMethodMetaInfo<'POST', {}, FederatedSuggestRequest, FederatedSuggestRequest$1, FederatedSuggestResponse, FederatedSuggestResponse$1>; declare function related(): __PublicMethodMetaInfo<'POST', {}, RelatedRequest, RelatedRequest$1, RelatedResponse, RelatedResponse$1>; declare function autocomplete(): __PublicMethodMetaInfo<'POST', {}, AutocompleteRequest, AutocompleteRequest$1, AutocompleteResponse & AutocompleteResponseNonNullableFields, AutocompleteResponse$1 & AutocompleteResponseNonNullableFields$1>; declare function federatedAutocomplete(): __PublicMethodMetaInfo<'POST', {}, FederatedAutocompleteRequest, FederatedAutocompleteRequest$1, FederatedAutocompleteResponse & FederatedAutocompleteResponseNonNullableFields, FederatedAutocompleteResponse$1 & FederatedAutocompleteResponseNonNullableFields$1>; declare function trending(): __PublicMethodMetaInfo<'POST', {}, TrendingRequest, TrendingRequest$1, TrendingResponse & TrendingResponseNonNullableFields, TrendingResponse$1 & TrendingResponseNonNullableFields$1>; export { type __PublicMethodMetaInfo, autocomplete, federatedAutocomplete, federatedSearch, federatedSuggest, related, search, suggest, trending };