@xemahq/search-api-client 0.1.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +36 -1
- package/README.md +62 -0
- package/dist/custom-fetch.d.ts +1 -1
- package/dist/custom-fetch.js +1 -1
- package/dist/endpoints/search/search.d.ts +3 -3
- package/dist/endpoints/search/search.js +6 -6
- package/dist/endpoints/search-types/search-types.d.ts +18 -0
- package/dist/endpoints/search-types/search-types.js +51 -0
- package/dist/index.d.ts +1 -3
- package/dist/index.js +2 -4
- package/dist/models/errorDetailsDto.d.ts +2 -2
- package/dist/models/errorDetailsDtoDetails.d.ts +1 -1
- package/dist/models/errorDetailsDtoDetails.js +1 -1
- package/dist/models/errorPayloadDto.d.ts +2 -2
- package/dist/models/errorResponseDto.d.ts +2 -2
- package/dist/models/facetBucket.d.ts +2 -2
- package/dist/models/facetBucketSubFacets.d.ts +1 -1
- package/dist/models/facetBucketSubFacets.js +1 -1
- package/dist/models/facetResponse.d.ts +2 -2
- package/dist/models/facetResponseDataEnvelope.d.ts +2 -2
- package/dist/models/index.d.ts +9 -20
- package/dist/models/index.js +9 -20
- package/dist/models/resolvedRouteDto.d.ts +21 -0
- package/dist/models/{reindexJobResponseDtoCompletedAt.js → resolvedRouteDto.js} +1 -1
- package/dist/models/resolvedRouteDtoDataEnvelope.d.ts +11 -0
- package/dist/models/resourceVisibilityPattern.d.ts +18 -0
- package/dist/models/resourceVisibilityPattern.js +17 -0
- package/dist/models/searchControllerFacetsParams.d.ts +1 -1
- package/dist/models/searchControllerFacetsParams.js +1 -1
- package/dist/models/searchControllerSearchParams.d.ts +2 -2
- package/dist/models/searchControllerSearchSearchMode.d.ts +1 -1
- package/dist/models/searchControllerSearchSearchMode.js +1 -1
- package/dist/models/searchHitDto.d.ts +8 -4
- package/dist/models/searchHitDtoDocType.d.ts +2 -2
- package/dist/models/searchHitDtoDocType.js +1 -1
- package/dist/models/searchHitDtoHighlights.d.ts +1 -1
- package/dist/models/searchHitDtoHighlights.js +1 -1
- package/dist/models/searchResultDto.d.ts +2 -2
- package/dist/models/searchResultDtoDataEnvelope.d.ts +2 -2
- package/dist/models/searchTypeAuthzDto.d.ts +14 -0
- package/dist/models/searchTypeDto.d.ts +29 -0
- package/dist/models/{reindexJobResponseDtoCompletedAt.d.ts → searchTypeListDto.d.ts} +5 -7
- package/dist/models/searchTypeListDtoDataEnvelope.d.ts +11 -0
- package/dist/models/searchTypeRenderHintsDto.d.ts +15 -0
- package/dist/models/{adminControllerGetTraceStatsParams.js → searchTypeRenderHintsDto.js} +1 -1
- package/dist/models/searchTypesControllerResolveRouteParams.d.ts +13 -0
- package/dist/models/{reindexJobResponseDtoError.js → searchTypesControllerResolveRouteParams.js} +1 -1
- package/package.json +12 -2
- package/dist/endpoints/admin/admin.d.ts +0 -28
- package/dist/endpoints/admin/admin.js +0 -98
- package/dist/endpoints/health/health.d.ts +0 -20
- package/dist/endpoints/health/health.js +0 -67
- package/dist/endpoints/mcp/mcp.d.ts +0 -6
- package/dist/endpoints/mcp/mcp.js +0 -44
- package/dist/models/adminControllerGetTraceStatsParams.d.ts +0 -13
- package/dist/models/adminControllerGetTracesParams.d.ts +0 -21
- package/dist/models/adminControllerGetTracesParams.js +0 -9
- package/dist/models/modeStatsDto.d.ts +0 -16
- package/dist/models/modeStatsDtoMode.d.ts +0 -16
- package/dist/models/modeStatsDtoMode.js +0 -15
- package/dist/models/reindexJobResponseDto.d.ts +0 -28
- package/dist/models/reindexJobResponseDtoDataEnvelope.d.ts +0 -11
- package/dist/models/reindexJobResponseDtoError.d.ts +0 -13
- package/dist/models/reindexJobResponseDtoStatus.d.ts +0 -17
- package/dist/models/reindexJobResponseDtoStatus.js +0 -16
- package/dist/models/reindexTriggerResponseDto.d.ts +0 -15
- package/dist/models/reindexTriggerResponseDto.js +0 -9
- package/dist/models/reindexTriggerResponseDtoDataEnvelope.d.ts +0 -11
- package/dist/models/searchStatsResponseDto.d.ts +0 -22
- package/dist/models/searchStatsResponseDtoDataEnvelope.d.ts +0 -11
- package/dist/models/searchStatsResponseDtoDataEnvelope.js +0 -2
- package/dist/models/searchTraceResponseDto.d.ts +0 -37
- package/dist/models/searchTraceResponseDto.js +0 -2
- package/dist/models/searchTraceResponseDtoCallerService.d.ts +0 -13
- package/dist/models/searchTraceResponseDtoCallerService.js +0 -9
- package/dist/models/searchTraceResponseDtoEmbeddingMs.d.ts +0 -13
- package/dist/models/searchTraceResponseDtoEmbeddingMs.js +0 -9
- package/dist/models/searchTraceResponseDtoSearchMode.d.ts +0 -16
- package/dist/models/searchTraceResponseDtoSearchMode.js +0 -15
- package/dist/models/searchTraceResponseDtoTopScore.d.ts +0 -13
- package/dist/models/searchTraceResponseDtoTopScore.js +0 -9
- package/dist/models/tracesListResponseDto.d.ts +0 -14
- package/dist/models/tracesListResponseDto.js +0 -2
- package/dist/models/tracesListResponseDtoDataEnvelope.d.ts +0 -11
- package/dist/models/tracesListResponseDtoDataEnvelope.js +0 -2
- /package/dist/models/{modeStatsDto.js → resolvedRouteDtoDataEnvelope.js} +0 -0
- /package/dist/models/{reindexJobResponseDto.js → searchTypeAuthzDto.js} +0 -0
- /package/dist/models/{reindexJobResponseDtoDataEnvelope.js → searchTypeDto.js} +0 -0
- /package/dist/models/{reindexTriggerResponseDtoDataEnvelope.js → searchTypeListDto.js} +0 -0
- /package/dist/models/{searchStatsResponseDto.js → searchTypeListDtoDataEnvelope.js} +0 -0
package/LICENSE
CHANGED
|
@@ -1 +1,36 @@
|
|
|
1
|
-
|
|
1
|
+
Xema Proprietary License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Neuralchowder Inc.. All Rights Reserved.
|
|
4
|
+
|
|
5
|
+
This software and its source code, object code, documentation, and all
|
|
6
|
+
associated materials (the "Software") are the confidential and proprietary
|
|
7
|
+
property of Neuralchowder Inc. ("Licensor") and are protected by copyright, trade secret,
|
|
8
|
+
and other intellectual property laws.
|
|
9
|
+
|
|
10
|
+
NO LICENSE IS GRANTED BY THIS FILE. No right or license to use, copy, modify,
|
|
11
|
+
merge, publish, distribute, sublicense, sell, host, embed, or create
|
|
12
|
+
derivative works of the Software is granted, whether by implication, estoppel,
|
|
13
|
+
or otherwise, except under a separate written agreement signed by an
|
|
14
|
+
authorized representative of Neuralchowder Inc..
|
|
15
|
+
|
|
16
|
+
Unauthorized copying, use, distribution, or disclosure of the Software, in
|
|
17
|
+
whole or in part, by any means, is strictly prohibited and may violate
|
|
18
|
+
applicable law.
|
|
19
|
+
|
|
20
|
+
Access to the Software, where provided, is granted solely under and subject to
|
|
21
|
+
the terms of a separate written commercial, evaluation, or subscription
|
|
22
|
+
agreement between you and Neuralchowder Inc.. In the event of any conflict between
|
|
23
|
+
this file and such signed agreement, the signed agreement controls.
|
|
24
|
+
|
|
25
|
+
Third-party software, libraries, packages, and assets included with or used by
|
|
26
|
+
the Software remain subject to their own respective license terms.
|
|
27
|
+
|
|
28
|
+
TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, THE SOFTWARE IS PROVIDED ON
|
|
29
|
+
AN "AS IS" AND "AS AVAILABLE" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
30
|
+
KIND, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF
|
|
31
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE, AND NON-INFRINGEMENT.
|
|
32
|
+
TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT SHALL
|
|
33
|
+
Neuralchowder Inc. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
34
|
+
CONSEQUENTIAL, OR EXEMPLARY DAMAGES ARISING OUT OF OR RELATED TO THE SOFTWARE.
|
|
35
|
+
|
|
36
|
+
For licensing inquiries, contact: licensing@neuralchowder.com
|
package/README.md
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
<!-- Generated by @xemahq/api-client-generator. Do not edit by hand. -->
|
|
2
|
+
<p align="center">
|
|
3
|
+
<svg width="680" height="120" viewBox="0 0 680 120" fill="none" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="@xemahq/search-api-client">
|
|
4
|
+
<rect width="680" height="120" rx="14" fill="#0B1020"/>
|
|
5
|
+
<g transform="translate(28,34)">
|
|
6
|
+
<path d="M26 0 L52 15 L52 45 L26 60 L0 45 L0 15 Z" fill="#14B8A6" opacity="0.18"/>
|
|
7
|
+
<path d="M26 12 L41 21 L41 39 L26 48 L11 39 L11 21 Z" fill="#14B8A6"/>
|
|
8
|
+
</g>
|
|
9
|
+
<text x="92" y="52" font-family="ui-monospace,SFMono-Regular,Menlo,monospace" font-size="22" fill="#F8FAFC" font-weight="700">@xemahq/search-api-client</text>
|
|
10
|
+
<text x="92" y="80" font-family="ui-sans-serif,system-ui,sans-serif" font-size="15" fill="#94A3B8">Typed, generated HTTP client for the Search API.</text>
|
|
11
|
+
<text x="652" y="105" text-anchor="end" font-family="ui-sans-serif,system-ui,sans-serif" font-size="12" fill="#475569">xema.dev</text>
|
|
12
|
+
</svg>
|
|
13
|
+
</p>
|
|
14
|
+
|
|
15
|
+
<p align="center">
|
|
16
|
+
<a href="https://xema.dev">Website</a> ·
|
|
17
|
+
<a href="https://www.npmjs.com/package/@xemahq/search-api-client">npm</a>
|
|
18
|
+
</p>
|
|
19
|
+
|
|
20
|
+
<p align="center">
|
|
21
|
+
<img alt="npm" src="https://img.shields.io/npm/v/%40xemahq%2Fsearch-api-client?color=2563eb&label=npm">
|
|
22
|
+
<img alt="license" src="https://img.shields.io/npm/l/%40xemahq%2Fsearch-api-client?color=10b981">
|
|
23
|
+
<img alt="types" src="https://img.shields.io/npm/types/%40xemahq%2Fsearch-api-client?color=3178c6">
|
|
24
|
+
</p>
|
|
25
|
+
|
|
26
|
+
# @xemahq/search-api-client
|
|
27
|
+
|
|
28
|
+
> Typed, generated HTTP client for the Search API.
|
|
29
|
+
|
|
30
|
+
## Overview
|
|
31
|
+
|
|
32
|
+
Auto-generated TypeScript client for the **Search API**. It exports typed
|
|
33
|
+
request functions and response models that mirror the service's OpenAPI surface,
|
|
34
|
+
so callers get end-to-end type safety without hand-writing HTTP calls. This
|
|
35
|
+
package is produced by `@xemahq/api-client-generator` and regenerated whenever
|
|
36
|
+
the service's API changes — do not edit it by hand.
|
|
37
|
+
|
|
38
|
+
## When to use it
|
|
39
|
+
|
|
40
|
+
- Use it from any TypeScript service or app that calls the Search API over HTTP.
|
|
41
|
+
- You get compile-time types for every endpoint and payload; regenerate to pick
|
|
42
|
+
up API changes rather than editing the client.
|
|
43
|
+
|
|
44
|
+
## Installation
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
pnpm add @xemahq/search-api-client
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Usage
|
|
51
|
+
|
|
52
|
+
```ts
|
|
53
|
+
// Every endpoint function and response model is exported from the package root.
|
|
54
|
+
import * as client from '@xemahq/search-api-client';
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Call the typed endpoint functions; request and response shapes are fully typed
|
|
58
|
+
from the service's OpenAPI spec.
|
|
59
|
+
|
|
60
|
+
## License
|
|
61
|
+
|
|
62
|
+
Proprietary — © Xema. All rights reserved. — [xema.dev](https://xema.dev)
|
package/dist/custom-fetch.d.ts
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* configureClient({
|
|
17
17
|
* baseUrl: 'http://governance-api:3400',
|
|
18
18
|
* getAuthToken: () => identityBootstrapService.getAccessToken(),
|
|
19
|
-
* getHeaders: () => ({ 'X-Org-Id': orgId, 'X-Correlation-Id': crypto.randomUUID() }),
|
|
19
|
+
* getHeaders: () => ({ 'X-Xema-Org-Id': orgId, 'X-Correlation-Id': crypto.randomUUID() }),
|
|
20
20
|
* });
|
|
21
21
|
*/
|
|
22
22
|
export interface ClientConfig {
|
package/dist/custom-fetch.js
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* configureClient({
|
|
18
18
|
* baseUrl: 'http://governance-api:3400',
|
|
19
19
|
* getAuthToken: () => identityBootstrapService.getAccessToken(),
|
|
20
|
-
* getHeaders: () => ({ 'X-Org-Id': orgId, 'X-Correlation-Id': crypto.randomUUID() }),
|
|
20
|
+
* getHeaders: () => ({ 'X-Xema-Org-Id': orgId, 'X-Correlation-Id': crypto.randomUUID() }),
|
|
21
21
|
* });
|
|
22
22
|
*/
|
|
23
23
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v8.
|
|
2
|
+
* Generated by orval v8.15.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Search API
|
|
5
5
|
* Full-text search service — indexes content via event-hub, provides search and MCP tools
|
|
6
6
|
* OpenAPI spec version: 0.1.0
|
|
7
7
|
*/
|
|
8
8
|
import type { FacetResponseDataEnvelope, SearchControllerFacetsParams, SearchControllerSearchParams, SearchResultDtoDataEnvelope } from '../../models';
|
|
9
|
+
export declare const getSearchControllerSearchUrl: (params: SearchControllerSearchParams) => string;
|
|
9
10
|
/**
|
|
10
11
|
* @summary Search documents across the project
|
|
11
12
|
*/
|
|
12
|
-
export declare const getSearchControllerSearchUrl: (params: SearchControllerSearchParams) => string;
|
|
13
13
|
export declare const searchControllerSearch: (params: SearchControllerSearchParams, options?: RequestInit) => Promise<SearchResultDtoDataEnvelope>;
|
|
14
|
+
export declare const getSearchControllerFacetsUrl: (params?: SearchControllerFacetsParams) => string;
|
|
14
15
|
/**
|
|
15
16
|
* @summary Get faceted aggregations without document results
|
|
16
17
|
*/
|
|
17
|
-
export declare const getSearchControllerFacetsUrl: (params?: SearchControllerFacetsParams) => string;
|
|
18
18
|
export declare const searchControllerFacets: (params?: SearchControllerFacetsParams, options?: RequestInit) => Promise<FacetResponseDataEnvelope>;
|
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.searchControllerFacets = exports.getSearchControllerFacetsUrl = exports.searchControllerSearch = exports.getSearchControllerSearchUrl = void 0;
|
|
4
4
|
const custom_fetch_1 = require("../../custom-fetch");
|
|
5
|
-
/**
|
|
6
|
-
* @summary Search documents across the project
|
|
7
|
-
*/
|
|
8
5
|
const getSearchControllerSearchUrl = (params) => {
|
|
9
6
|
const normalizedParams = new URLSearchParams();
|
|
10
7
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -28,6 +25,9 @@ const getSearchControllerSearchUrl = (params) => {
|
|
|
28
25
|
return stringifiedParams.length > 0 ? `/search?${stringifiedParams}` : `/search`;
|
|
29
26
|
};
|
|
30
27
|
exports.getSearchControllerSearchUrl = getSearchControllerSearchUrl;
|
|
28
|
+
/**
|
|
29
|
+
* @summary Search documents across the project
|
|
30
|
+
*/
|
|
31
31
|
const searchControllerSearch = async (params, options) => {
|
|
32
32
|
return (0, custom_fetch_1.customFetch)((0, exports.getSearchControllerSearchUrl)(params), {
|
|
33
33
|
...options,
|
|
@@ -35,9 +35,6 @@ const searchControllerSearch = async (params, options) => {
|
|
|
35
35
|
});
|
|
36
36
|
};
|
|
37
37
|
exports.searchControllerSearch = searchControllerSearch;
|
|
38
|
-
/**
|
|
39
|
-
* @summary Get faceted aggregations without document results
|
|
40
|
-
*/
|
|
41
38
|
const getSearchControllerFacetsUrl = (params) => {
|
|
42
39
|
const normalizedParams = new URLSearchParams();
|
|
43
40
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -61,6 +58,9 @@ const getSearchControllerFacetsUrl = (params) => {
|
|
|
61
58
|
return stringifiedParams.length > 0 ? `/search/facets?${stringifiedParams}` : `/search/facets`;
|
|
62
59
|
};
|
|
63
60
|
exports.getSearchControllerFacetsUrl = getSearchControllerFacetsUrl;
|
|
61
|
+
/**
|
|
62
|
+
* @summary Get faceted aggregations without document results
|
|
63
|
+
*/
|
|
64
64
|
const searchControllerFacets = async (params, options) => {
|
|
65
65
|
return (0, custom_fetch_1.customFetch)((0, exports.getSearchControllerFacetsUrl)(params), {
|
|
66
66
|
...options,
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.15.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Search API
|
|
5
|
+
* Full-text search service — indexes content via event-hub, provides search and MCP tools
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { ResolvedRouteDtoDataEnvelope, SearchTypeListDtoDataEnvelope, SearchTypesControllerResolveRouteParams } from '../../models';
|
|
9
|
+
export declare const getSearchTypesControllerListUrl: () => string;
|
|
10
|
+
/**
|
|
11
|
+
* @summary List the registered, biome-contributed search result-types
|
|
12
|
+
*/
|
|
13
|
+
export declare const searchTypesControllerList: (options?: RequestInit) => Promise<SearchTypeListDtoDataEnvelope>;
|
|
14
|
+
export declare const getSearchTypesControllerResolveRouteUrl: (params: SearchTypesControllerResolveRouteParams) => string;
|
|
15
|
+
/**
|
|
16
|
+
* @summary Resolve a xema:// ref to the frontend URL its result-type declares
|
|
17
|
+
*/
|
|
18
|
+
export declare const searchTypesControllerResolveRoute: (params: SearchTypesControllerResolveRouteParams, options?: RequestInit) => Promise<ResolvedRouteDtoDataEnvelope>;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.searchTypesControllerResolveRoute = exports.getSearchTypesControllerResolveRouteUrl = exports.searchTypesControllerList = exports.getSearchTypesControllerListUrl = void 0;
|
|
4
|
+
const custom_fetch_1 = require("../../custom-fetch");
|
|
5
|
+
const getSearchTypesControllerListUrl = () => {
|
|
6
|
+
return `/search-types`;
|
|
7
|
+
};
|
|
8
|
+
exports.getSearchTypesControllerListUrl = getSearchTypesControllerListUrl;
|
|
9
|
+
/**
|
|
10
|
+
* @summary List the registered, biome-contributed search result-types
|
|
11
|
+
*/
|
|
12
|
+
const searchTypesControllerList = async (options) => {
|
|
13
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getSearchTypesControllerListUrl)(), {
|
|
14
|
+
...options,
|
|
15
|
+
method: 'GET'
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
exports.searchTypesControllerList = searchTypesControllerList;
|
|
19
|
+
const getSearchTypesControllerResolveRouteUrl = (params) => {
|
|
20
|
+
const normalizedParams = new URLSearchParams();
|
|
21
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
22
|
+
if (value === undefined)
|
|
23
|
+
return;
|
|
24
|
+
if (value === null) {
|
|
25
|
+
normalizedParams.append(key, 'null');
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
if (Array.isArray(value)) {
|
|
29
|
+
for (const item of value) {
|
|
30
|
+
if (item === undefined || item === null)
|
|
31
|
+
continue;
|
|
32
|
+
normalizedParams.append(key, item.toString());
|
|
33
|
+
}
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
normalizedParams.append(key, value.toString());
|
|
37
|
+
});
|
|
38
|
+
const stringifiedParams = normalizedParams.toString();
|
|
39
|
+
return stringifiedParams.length > 0 ? `/search-types/resolve-route?${stringifiedParams}` : `/search-types/resolve-route`;
|
|
40
|
+
};
|
|
41
|
+
exports.getSearchTypesControllerResolveRouteUrl = getSearchTypesControllerResolveRouteUrl;
|
|
42
|
+
/**
|
|
43
|
+
* @summary Resolve a xema:// ref to the frontend URL its result-type declares
|
|
44
|
+
*/
|
|
45
|
+
const searchTypesControllerResolveRoute = async (params, options) => {
|
|
46
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getSearchTypesControllerResolveRouteUrl)(params), {
|
|
47
|
+
...options,
|
|
48
|
+
method: 'GET'
|
|
49
|
+
});
|
|
50
|
+
};
|
|
51
|
+
exports.searchTypesControllerResolveRoute = searchTypesControllerResolveRoute;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
export { configureClient, getClientConfig, ClientError, customFetch, type ClientConfig } from './custom-fetch';
|
|
2
2
|
export * from './models';
|
|
3
|
-
export * from './endpoints/admin/admin';
|
|
4
|
-
export * from './endpoints/health/health';
|
|
5
|
-
export * from './endpoints/mcp/mcp';
|
|
6
3
|
export * from './endpoints/search/search';
|
|
4
|
+
export * from './endpoints/search-types/search-types';
|
package/dist/index.js
CHANGED
|
@@ -15,14 +15,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.customFetch = exports.ClientError = exports.getClientConfig = exports.configureClient = void 0;
|
|
18
|
-
// Auto-generated by
|
|
18
|
+
// Auto-generated by @xemahq/api-client-generator — do not edit manually.
|
|
19
19
|
var custom_fetch_1 = require("./custom-fetch");
|
|
20
20
|
Object.defineProperty(exports, "configureClient", { enumerable: true, get: function () { return custom_fetch_1.configureClient; } });
|
|
21
21
|
Object.defineProperty(exports, "getClientConfig", { enumerable: true, get: function () { return custom_fetch_1.getClientConfig; } });
|
|
22
22
|
Object.defineProperty(exports, "ClientError", { enumerable: true, get: function () { return custom_fetch_1.ClientError; } });
|
|
23
23
|
Object.defineProperty(exports, "customFetch", { enumerable: true, get: function () { return custom_fetch_1.customFetch; } });
|
|
24
24
|
__exportStar(require("./models"), exports);
|
|
25
|
-
__exportStar(require("./endpoints/admin/admin"), exports);
|
|
26
|
-
__exportStar(require("./endpoints/health/health"), exports);
|
|
27
|
-
__exportStar(require("./endpoints/mcp/mcp"), exports);
|
|
28
25
|
__exportStar(require("./endpoints/search/search"), exports);
|
|
26
|
+
__exportStar(require("./endpoints/search-types/search-types"), exports);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v8.
|
|
2
|
+
* Generated by orval v8.15.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Search API
|
|
5
5
|
* Full-text search service — indexes content via event-hub, provides search and MCP tools
|
|
6
6
|
* OpenAPI spec version: 0.1.0
|
|
7
7
|
*/
|
|
8
|
-
import type { ErrorDetailsDtoDetails } from './errorDetailsDtoDetails';
|
|
8
|
+
import type { ErrorDetailsDtoDetails } from './errorDetailsDtoDetails.js';
|
|
9
9
|
export interface ErrorDetailsDto {
|
|
10
10
|
/** @nullable */
|
|
11
11
|
details: ErrorDetailsDtoDetails;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v8.
|
|
2
|
+
* Generated by orval v8.15.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Search API
|
|
5
5
|
* Full-text search service — indexes content via event-hub, provides search and MCP tools
|
|
6
6
|
* OpenAPI spec version: 0.1.0
|
|
7
7
|
*/
|
|
8
|
-
import type { ErrorDetailsDto } from './errorDetailsDto';
|
|
8
|
+
import type { ErrorDetailsDto } from './errorDetailsDto.js';
|
|
9
9
|
export interface ErrorPayloadDto {
|
|
10
10
|
code: string;
|
|
11
11
|
message: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v8.
|
|
2
|
+
* Generated by orval v8.15.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Search API
|
|
5
5
|
* Full-text search service — indexes content via event-hub, provides search and MCP tools
|
|
6
6
|
* OpenAPI spec version: 0.1.0
|
|
7
7
|
*/
|
|
8
|
-
import type { ErrorPayloadDto } from './errorPayloadDto';
|
|
8
|
+
import type { ErrorPayloadDto } from './errorPayloadDto.js';
|
|
9
9
|
export interface ErrorResponseDto {
|
|
10
10
|
error: ErrorPayloadDto;
|
|
11
11
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v8.
|
|
2
|
+
* Generated by orval v8.15.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Search API
|
|
5
5
|
* Full-text search service — indexes content via event-hub, provides search and MCP tools
|
|
6
6
|
* OpenAPI spec version: 0.1.0
|
|
7
7
|
*/
|
|
8
|
-
import type { FacetBucketSubFacets } from './facetBucketSubFacets';
|
|
8
|
+
import type { FacetBucketSubFacets } from './facetBucketSubFacets.js';
|
|
9
9
|
export interface FacetBucket {
|
|
10
10
|
key: string;
|
|
11
11
|
count: number;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v8.
|
|
2
|
+
* Generated by orval v8.15.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Search API
|
|
5
5
|
* Full-text search service — indexes content via event-hub, provides search and MCP tools
|
|
6
6
|
* OpenAPI spec version: 0.1.0
|
|
7
7
|
*/
|
|
8
|
-
import type { FacetBucket } from './facetBucket';
|
|
8
|
+
import type { FacetBucket } from './facetBucket.js';
|
|
9
9
|
export interface FacetResponse {
|
|
10
10
|
docTypes: FacetBucket[];
|
|
11
11
|
tags: FacetBucket[];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v8.
|
|
2
|
+
* Generated by orval v8.15.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Search API
|
|
5
5
|
* Full-text search service — indexes content via event-hub, provides search and MCP tools
|
|
6
6
|
* OpenAPI spec version: 0.1.0
|
|
7
7
|
*/
|
|
8
|
-
import type { FacetResponse } from './facetResponse';
|
|
8
|
+
import type { FacetResponse } from './facetResponse.js';
|
|
9
9
|
export interface FacetResponseDataEnvelope {
|
|
10
10
|
data: FacetResponse;
|
|
11
11
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
export * from './adminControllerGetTraceStatsParams';
|
|
2
|
-
export * from './adminControllerGetTracesParams';
|
|
3
1
|
export * from './errorDetailsDto';
|
|
4
2
|
export * from './errorDetailsDtoDetails';
|
|
5
3
|
export * from './errorPayloadDto';
|
|
@@ -8,15 +6,9 @@ export * from './facetBucket';
|
|
|
8
6
|
export * from './facetBucketSubFacets';
|
|
9
7
|
export * from './facetResponse';
|
|
10
8
|
export * from './facetResponseDataEnvelope';
|
|
11
|
-
export * from './
|
|
12
|
-
export * from './
|
|
13
|
-
export * from './
|
|
14
|
-
export * from './reindexJobResponseDtoCompletedAt';
|
|
15
|
-
export * from './reindexJobResponseDtoDataEnvelope';
|
|
16
|
-
export * from './reindexJobResponseDtoError';
|
|
17
|
-
export * from './reindexJobResponseDtoStatus';
|
|
18
|
-
export * from './reindexTriggerResponseDto';
|
|
19
|
-
export * from './reindexTriggerResponseDtoDataEnvelope';
|
|
9
|
+
export * from './resolvedRouteDto';
|
|
10
|
+
export * from './resolvedRouteDtoDataEnvelope';
|
|
11
|
+
export * from './resourceVisibilityPattern';
|
|
20
12
|
export * from './searchControllerFacetsParams';
|
|
21
13
|
export * from './searchControllerSearchParams';
|
|
22
14
|
export * from './searchControllerSearchSearchMode';
|
|
@@ -25,12 +17,9 @@ export * from './searchHitDtoDocType';
|
|
|
25
17
|
export * from './searchHitDtoHighlights';
|
|
26
18
|
export * from './searchResultDto';
|
|
27
19
|
export * from './searchResultDtoDataEnvelope';
|
|
28
|
-
export * from './
|
|
29
|
-
export * from './
|
|
30
|
-
export * from './
|
|
31
|
-
export * from './
|
|
32
|
-
export * from './
|
|
33
|
-
export * from './
|
|
34
|
-
export * from './searchTraceResponseDtoTopScore';
|
|
35
|
-
export * from './tracesListResponseDto';
|
|
36
|
-
export * from './tracesListResponseDtoDataEnvelope';
|
|
20
|
+
export * from './searchTypeAuthzDto';
|
|
21
|
+
export * from './searchTypeDto';
|
|
22
|
+
export * from './searchTypeListDto';
|
|
23
|
+
export * from './searchTypeListDtoDataEnvelope';
|
|
24
|
+
export * from './searchTypeRenderHintsDto';
|
|
25
|
+
export * from './searchTypesControllerResolveRouteParams';
|
package/dist/models/index.js
CHANGED
|
@@ -15,8 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
// Auto-generated by tooling/codegen/regenerate-models-barrel.js — do not edit manually.
|
|
18
|
-
__exportStar(require("./adminControllerGetTraceStatsParams"), exports);
|
|
19
|
-
__exportStar(require("./adminControllerGetTracesParams"), exports);
|
|
20
18
|
__exportStar(require("./errorDetailsDto"), exports);
|
|
21
19
|
__exportStar(require("./errorDetailsDtoDetails"), exports);
|
|
22
20
|
__exportStar(require("./errorPayloadDto"), exports);
|
|
@@ -25,15 +23,9 @@ __exportStar(require("./facetBucket"), exports);
|
|
|
25
23
|
__exportStar(require("./facetBucketSubFacets"), exports);
|
|
26
24
|
__exportStar(require("./facetResponse"), exports);
|
|
27
25
|
__exportStar(require("./facetResponseDataEnvelope"), exports);
|
|
28
|
-
__exportStar(require("./
|
|
29
|
-
__exportStar(require("./
|
|
30
|
-
__exportStar(require("./
|
|
31
|
-
__exportStar(require("./reindexJobResponseDtoCompletedAt"), exports);
|
|
32
|
-
__exportStar(require("./reindexJobResponseDtoDataEnvelope"), exports);
|
|
33
|
-
__exportStar(require("./reindexJobResponseDtoError"), exports);
|
|
34
|
-
__exportStar(require("./reindexJobResponseDtoStatus"), exports);
|
|
35
|
-
__exportStar(require("./reindexTriggerResponseDto"), exports);
|
|
36
|
-
__exportStar(require("./reindexTriggerResponseDtoDataEnvelope"), exports);
|
|
26
|
+
__exportStar(require("./resolvedRouteDto"), exports);
|
|
27
|
+
__exportStar(require("./resolvedRouteDtoDataEnvelope"), exports);
|
|
28
|
+
__exportStar(require("./resourceVisibilityPattern"), exports);
|
|
37
29
|
__exportStar(require("./searchControllerFacetsParams"), exports);
|
|
38
30
|
__exportStar(require("./searchControllerSearchParams"), exports);
|
|
39
31
|
__exportStar(require("./searchControllerSearchSearchMode"), exports);
|
|
@@ -42,12 +34,9 @@ __exportStar(require("./searchHitDtoDocType"), exports);
|
|
|
42
34
|
__exportStar(require("./searchHitDtoHighlights"), exports);
|
|
43
35
|
__exportStar(require("./searchResultDto"), exports);
|
|
44
36
|
__exportStar(require("./searchResultDtoDataEnvelope"), exports);
|
|
45
|
-
__exportStar(require("./
|
|
46
|
-
__exportStar(require("./
|
|
47
|
-
__exportStar(require("./
|
|
48
|
-
__exportStar(require("./
|
|
49
|
-
__exportStar(require("./
|
|
50
|
-
__exportStar(require("./
|
|
51
|
-
__exportStar(require("./searchTraceResponseDtoTopScore"), exports);
|
|
52
|
-
__exportStar(require("./tracesListResponseDto"), exports);
|
|
53
|
-
__exportStar(require("./tracesListResponseDtoDataEnvelope"), exports);
|
|
37
|
+
__exportStar(require("./searchTypeAuthzDto"), exports);
|
|
38
|
+
__exportStar(require("./searchTypeDto"), exports);
|
|
39
|
+
__exportStar(require("./searchTypeListDto"), exports);
|
|
40
|
+
__exportStar(require("./searchTypeListDtoDataEnvelope"), exports);
|
|
41
|
+
__exportStar(require("./searchTypeRenderHintsDto"), exports);
|
|
42
|
+
__exportStar(require("./searchTypesControllerResolveRouteParams"), exports);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.15.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Search API
|
|
5
|
+
* Full-text search service — indexes content via event-hub, provides search and MCP tools
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
export interface ResolvedRouteDto {
|
|
9
|
+
/** The ref that was resolved (echoed verbatim). */
|
|
10
|
+
ref: string;
|
|
11
|
+
/** The XemaObjectKind of the matched result-type. */
|
|
12
|
+
objectKind: string;
|
|
13
|
+
/** The matched result-type's docType facet, when it has one. */
|
|
14
|
+
docType?: string;
|
|
15
|
+
/** Natural key of the matched result-type: objectKind or objectKind/docType. */
|
|
16
|
+
naturalKey: string;
|
|
17
|
+
/** The declared route template, before expansion. */
|
|
18
|
+
routeTemplate: string;
|
|
19
|
+
/** The expanded, site-relative frontend URL for this ref. */
|
|
20
|
+
url: string;
|
|
21
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.15.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Search API
|
|
5
|
+
* Full-text search service — indexes content via event-hub, provides search and MCP tools
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { ResolvedRouteDto } from './resolvedRouteDto.js';
|
|
9
|
+
export interface ResolvedRouteDtoDataEnvelope {
|
|
10
|
+
data: ResolvedRouteDto;
|
|
11
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.15.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Search API
|
|
5
|
+
* Full-text search service — indexes content via event-hub, provides search and MCP tools
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Fallback visibility for instances without an explicit pattern.
|
|
10
|
+
*/
|
|
11
|
+
export type ResourceVisibilityPattern = typeof ResourceVisibilityPattern[keyof typeof ResourceVisibilityPattern];
|
|
12
|
+
export declare const ResourceVisibilityPattern: {
|
|
13
|
+
readonly 'owner-only': "owner-only";
|
|
14
|
+
readonly 'org-shared': "org-shared";
|
|
15
|
+
readonly 'project-shared': "project-shared";
|
|
16
|
+
readonly 'space-shared': "space-shared";
|
|
17
|
+
readonly 'explicit-share': "explicit-share";
|
|
18
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval v8.15.0 🍺
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* Search API
|
|
6
|
+
* Full-text search service — indexes content via event-hub, provides search and MCP tools
|
|
7
|
+
* OpenAPI spec version: 0.1.0
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.ResourceVisibilityPattern = void 0;
|
|
11
|
+
exports.ResourceVisibilityPattern = {
|
|
12
|
+
'owner-only': 'owner-only',
|
|
13
|
+
'org-shared': 'org-shared',
|
|
14
|
+
'project-shared': 'project-shared',
|
|
15
|
+
'space-shared': 'space-shared',
|
|
16
|
+
'explicit-share': 'explicit-share',
|
|
17
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v8.
|
|
2
|
+
* Generated by orval v8.15.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Search API
|
|
5
5
|
* Full-text search service — indexes content via event-hub, provides search and MCP tools
|
|
6
6
|
* OpenAPI spec version: 0.1.0
|
|
7
7
|
*/
|
|
8
|
-
import type { SearchControllerSearchSearchMode } from './searchControllerSearchSearchMode';
|
|
8
|
+
import type { SearchControllerSearchSearchMode } from './searchControllerSearchSearchMode.js';
|
|
9
9
|
export type SearchControllerSearchParams = {
|
|
10
10
|
/**
|
|
11
11
|
* Search query string
|