@byline/core 4.17.0 → 4.18.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.
@@ -175,6 +175,13 @@ export declare const MAX_SEARCH_QUERY_LENGTH = 1024;
175
175
  export interface SearchQuery {
176
176
  /** The free-text query string, limited to {@link MAX_SEARCH_QUERY_LENGTH}. */
177
177
  query: string;
178
+ /**
179
+ * Restrict full-text matching to these named `body` fields. Field names are
180
+ * the schema paths carried by {@link SearchField.name}; providers that do
181
+ * not advertise `capabilities.fullText.fieldScope` must reject the option
182
+ * rather than silently searching the complete body.
183
+ */
184
+ fieldScope?: string[];
178
185
  /**
179
186
  * Explicit full-text matching semantics. Defaults to all concepts required
180
187
  * with quoted spans treated as phrases.
@@ -287,6 +294,11 @@ export interface SearchCapabilities {
287
294
  minimumShouldMatch: boolean;
288
295
  /** Supports ordered phrase constraints. */
289
296
  phrase: boolean;
297
+ /**
298
+ * Supports restricting full-text matching to named `body` fields.
299
+ * Omission is treated as `false` for compatibility with existing providers.
300
+ */
301
+ fieldScope?: boolean;
290
302
  };
291
303
  }
292
304
  /**
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@byline/core",
3
3
  "private": false,
4
4
  "license": "MPL-2.0",
5
- "version": "4.17.0",
5
+ "version": "4.18.0",
6
6
  "engines": {
7
7
  "node": ">=20.9.0"
8
8
  },
@@ -87,7 +87,7 @@
87
87
  "sharp": "^0.35.4",
88
88
  "uuid": "^14.0.2",
89
89
  "zod": "^4.4.3",
90
- "@byline/auth": "4.17.0"
90
+ "@byline/auth": "4.18.0"
91
91
  },
92
92
  "devDependencies": {
93
93
  "@biomejs/biome": "2.5.10",