@aventurevc/api-schemas 0.8.63 → 0.8.65
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/agent/help-question.d.ts +1 -0
- package/dist/agent/help-question.js +2 -0
- package/dist/agent/help.d.ts +21 -0
- package/dist/agent/help.js +3 -0
- package/dist/entity/list.d.ts +1 -0
- package/dist/entity/list.js +1 -0
- package/dist/federated/search.d.ts +1474 -514
- package/dist/help/citation.d.ts +1 -0
- package/dist/help/citation.js +1 -0
- package/dist/help/resolution-outcome.d.ts +19 -0
- package/dist/help/resolution-outcome.js +19 -0
- package/dist/help/resolution.d.ts +34 -0
- package/dist/help/resolution.js +25 -0
- package/dist/link/search.d.ts +1474 -514
- package/dist/natural/search-result.d.ts +958 -0
- package/dist/natural/search-result.js +5 -0
- package/dist/natural/search.js +1 -1
- package/dist/openapi-component-manifest.js +6 -0
- package/dist/search/judgment.d.ts +971 -0
- package/dist/search/judgment.js +25 -0
- package/dist/search/layer.d.ts +3 -1
- package/dist/search/layer.js +2 -2
- package/dist/search/mode.d.ts +1 -1
- package/dist/search/mode.js +1 -1
- package/package.json +1 -1
|
@@ -5,16 +5,21 @@ import { EntitySimilarityResultSchema } from "../entity/similarity-result.js";
|
|
|
5
5
|
import { PageResultEntityListSchema } from "../pagination/schemas.js";
|
|
6
6
|
import { SearchAnswerSchema } from "../search/answer.js";
|
|
7
7
|
import { SearchInterpretationSchema } from "../search/interpretation.js";
|
|
8
|
+
import { SearchJudgmentSchema } from "../search/judgment.js";
|
|
8
9
|
import { SearchPassageSchema } from "../search/passage.js";
|
|
9
10
|
const NaturalSearchResultSchemaDefinition = z.object({
|
|
10
11
|
/** Written answer grounded in the subject, peer, and result records and the passages; null unless the request asks for the `synthesis` layer. */
|
|
11
12
|
answer: SearchAnswerSchema.nullish(),
|
|
12
13
|
/** Structured interpretation used to run the entity list query. */
|
|
13
14
|
interpretation: SearchInterpretationSchema,
|
|
15
|
+
/** Judged answer to a competitor, market, or provider question, most probable first; empty unless the request asks for the `judgment` or `web` layer and the question has one of those shapes. */
|
|
16
|
+
judgment: z.array(SearchJudgmentSchema),
|
|
14
17
|
/** Passages that best answer the question, ranked by score; empty unless the request asks for the `passage` layer. */
|
|
15
18
|
passage: z.array(SearchPassageSchema),
|
|
16
19
|
/** Curated competitors of the single subject entity for `peer` questions; semantic look-alikes are the result page. Empty otherwise. */
|
|
17
20
|
peer: z.array(EntitySimilarityResultSchema),
|
|
21
|
+
/** Web searches for this question not yet stored; their evidence joins a later request. Empty without the `web` layer. */
|
|
22
|
+
pendingWebQuery: z.array(z.string()),
|
|
18
23
|
/** Entity list page returned by the canonical entity list engine. */
|
|
19
24
|
result: PageResultEntityListSchema,
|
|
20
25
|
/** Entities the question is about, one per resolved subject name, in query order; empty when the question names none or none resolves. */
|
package/dist/natural/search.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { z } from "zod/v4";
|
|
3
3
|
import { SearchModeSchema } from "../search/mode.js";
|
|
4
4
|
const NaturalSearchSchemaDefinition = z.object({
|
|
5
|
-
/** Search strategy to run. Defaults to `auto`: the fast name layer runs first (a single-token query as keyword search, a multiword query as an exact normalized name) and the language-model planner runs only on a miss, so name lookups never pay for planning. Any other value forces exactly that strategy: `exact` and `keyword` skip planner model resolution and its rate limit. Entity and person natural-search take every value; news and federated search accept only `auto` and `keyword`; content search accepts
|
|
5
|
+
/** Search strategy to run. Defaults to `auto`: the fast name layer runs first (a single-token query as keyword search, a multiword query as an exact normalized name) and the language-model planner runs only on a miss, so name lookups never pay for planning. Any other value forces exactly that strategy: `exact` and `keyword` skip planner model resolution and its rate limit. Entity and person natural-search take every value; news and federated search accept only `auto` and `keyword`; content search accepts `auto`, `keyword`, and `semantic` (`semantic` only for one entity's or person's content). */
|
|
6
6
|
mode: SearchModeSchema.default("auto").optional(),
|
|
7
7
|
/** Optional chat model for planning; null uses the configured natural-search default. A caller without admin authority may only choose an allowlisted model; admin callers are unrestricted. */
|
|
8
8
|
model: z.string().nullish(),
|
|
@@ -487,6 +487,11 @@ export const OPENAPI_COMPONENT_MANIFEST = Object.freeze({
|
|
|
487
487
|
HarnessRunStatus: { modulePath: "harness/run-status", schemaName: "HarnessRunStatusSchema" },
|
|
488
488
|
HarnessRunType: { modulePath: "harness/run-type", schemaName: "HarnessRunTypeSchema" },
|
|
489
489
|
HelpCitation: { modulePath: "help/citation", schemaName: "HelpCitationSchema" },
|
|
490
|
+
HelpResolution: { modulePath: "help/resolution", schemaName: "HelpResolutionSchema" },
|
|
491
|
+
HelpResolutionOutcome: {
|
|
492
|
+
modulePath: "help/resolution-outcome",
|
|
493
|
+
schemaName: "HelpResolutionOutcomeSchema",
|
|
494
|
+
},
|
|
490
495
|
HelpScope: { modulePath: "help/scope", schemaName: "HelpScopeSchema" },
|
|
491
496
|
HelpSourceType: { modulePath: "help/source-type", schemaName: "HelpSourceTypeSchema" },
|
|
492
497
|
Identification: {
|
|
@@ -808,6 +813,7 @@ export const OPENAPI_COMPONENT_MANIFEST = Object.freeze({
|
|
|
808
813
|
modulePath: "search/interpretation",
|
|
809
814
|
schemaName: "SearchInterpretationSchema",
|
|
810
815
|
},
|
|
816
|
+
SearchJudgment: { modulePath: "search/judgment", schemaName: "SearchJudgmentSchema" },
|
|
811
817
|
SearchLayer: { modulePath: "search/layer", schemaName: "SearchLayerSchema" },
|
|
812
818
|
SearchMode: { modulePath: "search/mode", schemaName: "SearchModeSchema" },
|
|
813
819
|
SearchModeExecution: {
|