@stndrds/schema 1.0.0-alpha.164 → 1.0.0-alpha.166
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/dist/index.d.mts +11 -0
- package/dist/index.d.ts +11 -0
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -328,6 +328,13 @@ interface SearchOptions extends ListOptions {
|
|
|
328
328
|
attributes?: Attribute[];
|
|
329
329
|
/** Count strategy: "none" | "estimated" | "exact" */
|
|
330
330
|
countMode?: CountMode;
|
|
331
|
+
/**
|
|
332
|
+
* Hybrid (semantic + full-text) search ratio in [0, 1].
|
|
333
|
+
* 0 = keyword-only, 1 = pure semantic, 0.5 = balanced.
|
|
334
|
+
* When undefined, full-text search is used (no embedding cost).
|
|
335
|
+
* Ignored if the search adapter has no embedder configured.
|
|
336
|
+
*/
|
|
337
|
+
semanticRatio?: number;
|
|
331
338
|
}
|
|
332
339
|
/**
|
|
333
340
|
* Global search options (standalone, not extending ListOptions)
|
|
@@ -339,6 +346,8 @@ interface GlobalSearchOptions {
|
|
|
339
346
|
* Limit results to specific object names
|
|
340
347
|
*/
|
|
341
348
|
objectNames?: string[];
|
|
349
|
+
/** See {@link SearchOptions.semanticRatio}. */
|
|
350
|
+
semanticRatio?: number;
|
|
342
351
|
}
|
|
343
352
|
/**
|
|
344
353
|
* Global search grouped options
|
|
@@ -348,6 +357,8 @@ interface GlobalSearchGroupedOptions {
|
|
|
348
357
|
limitPerGroup?: number;
|
|
349
358
|
/** Max total results to fetch for grouping (default: 1000) */
|
|
350
359
|
limit?: number;
|
|
360
|
+
/** See {@link SearchOptions.semanticRatio}. */
|
|
361
|
+
semanticRatio?: number;
|
|
351
362
|
}
|
|
352
363
|
/**
|
|
353
364
|
* Global search result item
|
package/dist/index.d.ts
CHANGED
|
@@ -328,6 +328,13 @@ interface SearchOptions extends ListOptions {
|
|
|
328
328
|
attributes?: Attribute[];
|
|
329
329
|
/** Count strategy: "none" | "estimated" | "exact" */
|
|
330
330
|
countMode?: CountMode;
|
|
331
|
+
/**
|
|
332
|
+
* Hybrid (semantic + full-text) search ratio in [0, 1].
|
|
333
|
+
* 0 = keyword-only, 1 = pure semantic, 0.5 = balanced.
|
|
334
|
+
* When undefined, full-text search is used (no embedding cost).
|
|
335
|
+
* Ignored if the search adapter has no embedder configured.
|
|
336
|
+
*/
|
|
337
|
+
semanticRatio?: number;
|
|
331
338
|
}
|
|
332
339
|
/**
|
|
333
340
|
* Global search options (standalone, not extending ListOptions)
|
|
@@ -339,6 +346,8 @@ interface GlobalSearchOptions {
|
|
|
339
346
|
* Limit results to specific object names
|
|
340
347
|
*/
|
|
341
348
|
objectNames?: string[];
|
|
349
|
+
/** See {@link SearchOptions.semanticRatio}. */
|
|
350
|
+
semanticRatio?: number;
|
|
342
351
|
}
|
|
343
352
|
/**
|
|
344
353
|
* Global search grouped options
|
|
@@ -348,6 +357,8 @@ interface GlobalSearchGroupedOptions {
|
|
|
348
357
|
limitPerGroup?: number;
|
|
349
358
|
/** Max total results to fetch for grouping (default: 1000) */
|
|
350
359
|
limit?: number;
|
|
360
|
+
/** See {@link SearchOptions.semanticRatio}. */
|
|
361
|
+
semanticRatio?: number;
|
|
351
362
|
}
|
|
352
363
|
/**
|
|
353
364
|
* Global search result item
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stndrds/schema",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.166",
|
|
4
4
|
"description": "Standard schema definitions and utilities",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
"expr-eval": "^2.0.2",
|
|
132
132
|
"libphonenumber-js": "^1.12.31",
|
|
133
133
|
"zod": "^4.2.1",
|
|
134
|
-
"@stndrds/constants": "1.0.0-alpha.
|
|
134
|
+
"@stndrds/constants": "1.0.0-alpha.166"
|
|
135
135
|
},
|
|
136
136
|
"devDependencies": {
|
|
137
137
|
"@types/node": "^25.0.3",
|