@aventurevc/api-schemas 0.8.261 → 0.8.263
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/enrichment/enrichment.d.ts +2 -0
- package/dist/enrichment/prompt.d.ts +8 -2
- package/dist/entity/analysis-citation.d.ts +1 -0
- package/dist/entity/analysis-citation.js +1 -0
- package/dist/entity/analysis-figure.d.ts +1 -0
- package/dist/entity/analysis-figure.js +1 -0
- package/dist/entity/analysis-paragraph.d.ts +1 -0
- package/dist/entity/analysis-paragraph.js +1 -0
- package/dist/entity/analysis-section-mutation.d.ts +162 -0
- package/dist/entity/analysis-section-mutation.js +34 -0
- package/dist/entity/analysis-section-origin.d.ts +1 -0
- package/dist/entity/analysis-section-origin.js +1 -0
- package/dist/entity/text.d.ts +1 -0
- package/dist/entity/text.js +2 -0
- package/dist/federated/search.d.ts +8 -0
- package/dist/harness/run-create.d.ts +8 -2
- package/dist/harness/run-detail.d.ts +2 -0
- package/dist/harness/run.d.ts +2 -0
- package/dist/harness/run.js +4 -0
- package/dist/link/search.d.ts +8 -0
- package/dist/natural/search-result.d.ts +8 -0
- package/dist/openapi-component-manifest.js +35 -0
- package/dist/pagination/schemas.d.ts +4 -0
- package/dist/research/finding.d.ts +7 -1
- package/dist/research/finding.js +11 -2
- package/dist/search/answer-paragraph.d.ts +7 -0
- package/dist/search/answer-paragraph.js +3 -0
- package/dist/search/answer-web-source.d.ts +27 -0
- package/dist/search/answer-web-source.js +25 -0
- package/dist/search/answer.d.ts +8 -0
- package/dist/shared/search.d.ts +8 -0
- package/dist/writer/analysis-section.d.ts +28 -0
- package/dist/writer/analysis-section.js +21 -0
- package/dist/writer/brief.d.ts +108 -0
- package/dist/writer/brief.js +29 -0
- package/dist/writer/change-signal.d.ts +22 -0
- package/dist/writer/change-signal.js +20 -0
- package/dist/writer/claim-surface.d.ts +2 -0
- package/dist/writer/claim-surface.js +2 -0
- package/dist/writer/gap-reason.d.ts +26 -0
- package/dist/writer/gap-reason.js +20 -0
- package/dist/writer/gap.d.ts +35 -0
- package/dist/writer/gap.js +23 -0
- package/dist/writer/judgment.d.ts +23 -0
- package/dist/writer/judgment.js +21 -0
- package/dist/writer/meta-analysis.d.ts +62 -0
- package/dist/writer/meta-analysis.js +34 -0
- package/dist/writer/paragraph-analysis.d.ts +17 -0
- package/dist/writer/paragraph-analysis.js +19 -0
- package/dist/writer/paragraph.d.ts +40 -0
- package/dist/writer/paragraph.js +24 -0
- package/dist/writer/positioning-element.d.ts +29 -0
- package/dist/writer/positioning-element.js +22 -0
- package/dist/writer/positioning.d.ts +37 -0
- package/dist/writer/positioning.js +23 -0
- package/dist/writer/scope.d.ts +23 -0
- package/dist/writer/scope.js +22 -0
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// LLM AGENTS MAY NOT EDIT THIS FILE UNDER ANY CIRCUMSTANCES. DO NOT EDIT - generated from Kotlin data classes via OpenAPI. Edit the backend owner and run: make docs-openapi && make docs-zod
|
|
2
2
|
import { z } from "zod/v4";
|
|
3
3
|
import { SearchAnswerCitationSchema } from "./answer-citation.js";
|
|
4
|
+
import { SearchAnswerWebSourceSchema } from "./answer-web-source.js";
|
|
4
5
|
const SearchAnswerParagraphSchemaDefinition = z.object({
|
|
5
6
|
/** Evidence this paragraph rests on, most important first. */
|
|
6
7
|
citation: z.array(SearchAnswerCitationSchema),
|
|
@@ -8,6 +9,8 @@ const SearchAnswerParagraphSchemaDefinition = z.object({
|
|
|
8
9
|
text: z.string(),
|
|
9
10
|
/** Short label naming the category, market, or segment this paragraph covers, such as "Smartphones · North America"; absent on the lead paragraph. */
|
|
10
11
|
topic: z.string().nullish(),
|
|
12
|
+
/** Web pages this paragraph rests on that no aVenture record owns, such as an encyclopedia article about a company the directory lacks; most important first. Always sent; absent only from answers written before it existed. */
|
|
13
|
+
webSource: z.array(SearchAnswerWebSourceSchema).optional(),
|
|
11
14
|
});
|
|
12
15
|
/**
|
|
13
16
|
* One paragraph of an answer and the evidence it rests on.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
declare const SearchAnswerWebSourceSchemaDefinition: z.ZodObject<{
|
|
3
|
+
title: z.ZodString;
|
|
4
|
+
url: z.ZodString;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
type SearchAnswerWebSourceDefinition = z.infer<typeof SearchAnswerWebSourceSchemaDefinition>;
|
|
7
|
+
export interface SearchAnswerWebSourceSchemaInput extends z.input<typeof SearchAnswerWebSourceSchemaDefinition> {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* A web search result an answer paragraph cites, by its page.
|
|
11
|
+
*
|
|
12
|
+
* @openapiSchema SearchAnswerWebSource
|
|
13
|
+
* @endpoint GET /v1/search/link
|
|
14
|
+
* @endpoint GET /v1/search/link/jobs/{jobId}
|
|
15
|
+
* @endpoint GET /v1/search/shared/{id}
|
|
16
|
+
* @endpoint GET /v1/search/shared/slug/{slug}
|
|
17
|
+
* @endpoint POST /v1/search
|
|
18
|
+
* @endpoint POST /v1/search/natural/entities
|
|
19
|
+
* @endpoint POST /v1/search/shared
|
|
20
|
+
* @usedBySchema SearchAnswerParagraphSchema
|
|
21
|
+
* @contractShape search.answer-web-source
|
|
22
|
+
* @contractRole canonical
|
|
23
|
+
*/
|
|
24
|
+
export declare const SearchAnswerWebSourceSchema: z.ZodType<SearchAnswerWebSourceDefinition, SearchAnswerWebSourceSchemaInput>;
|
|
25
|
+
export type SearchAnswerWebSource = z.infer<typeof SearchAnswerWebSourceSchema>;
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=answer-web-source.d.ts.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// LLM AGENTS MAY NOT EDIT THIS FILE UNDER ANY CIRCUMSTANCES. DO NOT EDIT - generated from Kotlin data classes via OpenAPI. Edit the backend owner and run: make docs-openapi && make docs-zod
|
|
2
|
+
import { z } from "zod/v4";
|
|
3
|
+
const SearchAnswerWebSourceSchemaDefinition = z.object({
|
|
4
|
+
/** Title of the cited page as the search result named it. */
|
|
5
|
+
title: z.string(),
|
|
6
|
+
/** Address of the cited page. */
|
|
7
|
+
url: z.string(),
|
|
8
|
+
});
|
|
9
|
+
/**
|
|
10
|
+
* A web search result an answer paragraph cites, by its page.
|
|
11
|
+
*
|
|
12
|
+
* @openapiSchema SearchAnswerWebSource
|
|
13
|
+
* @endpoint GET /v1/search/link
|
|
14
|
+
* @endpoint GET /v1/search/link/jobs/{jobId}
|
|
15
|
+
* @endpoint GET /v1/search/shared/{id}
|
|
16
|
+
* @endpoint GET /v1/search/shared/slug/{slug}
|
|
17
|
+
* @endpoint POST /v1/search
|
|
18
|
+
* @endpoint POST /v1/search/natural/entities
|
|
19
|
+
* @endpoint POST /v1/search/shared
|
|
20
|
+
* @usedBySchema SearchAnswerParagraphSchema
|
|
21
|
+
* @contractShape search.answer-web-source
|
|
22
|
+
* @contractRole canonical
|
|
23
|
+
*/
|
|
24
|
+
export const SearchAnswerWebSourceSchema = SearchAnswerWebSourceSchemaDefinition;
|
|
25
|
+
//# sourceMappingURL=answer-web-source.js.map
|
package/dist/search/answer.d.ts
CHANGED
|
@@ -39,6 +39,10 @@ export declare const SearchAnswerSchema: z.ZodObject<{
|
|
|
39
39
|
}[];
|
|
40
40
|
text: string;
|
|
41
41
|
topic?: string | null | undefined;
|
|
42
|
+
webSource?: {
|
|
43
|
+
title: string;
|
|
44
|
+
url: string;
|
|
45
|
+
}[] | undefined;
|
|
42
46
|
}, import("./answer-paragraph.ts").SearchAnswerParagraphSchemaInput, z.core.$ZodTypeInternals<{
|
|
43
47
|
citation: {
|
|
44
48
|
entityId: string;
|
|
@@ -47,6 +51,10 @@ export declare const SearchAnswerSchema: z.ZodObject<{
|
|
|
47
51
|
}[];
|
|
48
52
|
text: string;
|
|
49
53
|
topic?: string | null | undefined;
|
|
54
|
+
webSource?: {
|
|
55
|
+
title: string;
|
|
56
|
+
url: string;
|
|
57
|
+
}[] | undefined;
|
|
50
58
|
}, import("./answer-paragraph.ts").SearchAnswerParagraphSchemaInput>>>;
|
|
51
59
|
relatedQuery: z.ZodArray<z.ZodString>;
|
|
52
60
|
shareable: z.ZodBoolean;
|
package/dist/shared/search.d.ts
CHANGED
|
@@ -31,6 +31,10 @@ declare const SharedSearchSchemaDefinition: z.ZodObject<{
|
|
|
31
31
|
}[];
|
|
32
32
|
text: string;
|
|
33
33
|
topic?: string | null | undefined;
|
|
34
|
+
webSource?: {
|
|
35
|
+
title: string;
|
|
36
|
+
url: string;
|
|
37
|
+
}[] | undefined;
|
|
34
38
|
}[];
|
|
35
39
|
relatedQuery: string[];
|
|
36
40
|
shareable: boolean;
|
|
@@ -5842,6 +5846,10 @@ declare const SharedSearchSchemaDefinition: z.ZodObject<{
|
|
|
5842
5846
|
}[];
|
|
5843
5847
|
text: string;
|
|
5844
5848
|
topic?: string | null | undefined;
|
|
5849
|
+
webSource?: {
|
|
5850
|
+
title: string;
|
|
5851
|
+
url: string;
|
|
5852
|
+
}[] | undefined;
|
|
5845
5853
|
}[];
|
|
5846
5854
|
relatedQuery: string[];
|
|
5847
5855
|
shareable: boolean;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
declare const WriterAnalysisSectionSchemaDefinition: z.ZodObject<{
|
|
3
|
+
judgment: z.ZodType<{
|
|
4
|
+
claim: number[];
|
|
5
|
+
statement: string;
|
|
6
|
+
}, import("./judgment.ts").WriterJudgmentSchemaInput, z.core.$ZodTypeInternals<{
|
|
7
|
+
claim: number[];
|
|
8
|
+
statement: string;
|
|
9
|
+
}, import("./judgment.ts").WriterJudgmentSchemaInput>>;
|
|
10
|
+
label: z.ZodString;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
type WriterAnalysisSectionDefinition = z.infer<typeof WriterAnalysisSectionSchemaDefinition>;
|
|
13
|
+
export interface WriterAnalysisSectionSchemaInput extends z.input<typeof WriterAnalysisSectionSchemaDefinition> {
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* One ordered framework judgment.
|
|
17
|
+
*
|
|
18
|
+
* @openapiSchema WriterAnalysisSection
|
|
19
|
+
* @endpoint PUT /v1/research-runs/{runId}/draft/sections/{sectionKey}
|
|
20
|
+
* @endpoint PUT /v1/research/runs/{runId}/draft/sections/{sectionKey}
|
|
21
|
+
* @usedBySchema WriterMetaAnalysisSchema
|
|
22
|
+
* @contractShape writer.analysis-section
|
|
23
|
+
* @contractRole canonical
|
|
24
|
+
*/
|
|
25
|
+
export declare const WriterAnalysisSectionSchema: z.ZodType<WriterAnalysisSectionDefinition, WriterAnalysisSectionSchemaInput>;
|
|
26
|
+
export type WriterAnalysisSection = z.infer<typeof WriterAnalysisSectionSchema>;
|
|
27
|
+
export {};
|
|
28
|
+
//# sourceMappingURL=analysis-section.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// LLM AGENTS MAY NOT EDIT THIS FILE UNDER ANY CIRCUMSTANCES. DO NOT EDIT - generated from Kotlin data classes via OpenAPI. Edit the backend owner and run: make docs-openapi && make docs-zod
|
|
2
|
+
import { z } from "zod/v4";
|
|
3
|
+
import { WriterJudgmentSchema } from "./judgment.js";
|
|
4
|
+
const WriterAnalysisSectionSchemaDefinition = z.object({
|
|
5
|
+
/** Judgment for this section. */
|
|
6
|
+
judgment: WriterJudgmentSchema,
|
|
7
|
+
/** Skill-owned section label. */
|
|
8
|
+
label: z.string(),
|
|
9
|
+
});
|
|
10
|
+
/**
|
|
11
|
+
* One ordered framework judgment.
|
|
12
|
+
*
|
|
13
|
+
* @openapiSchema WriterAnalysisSection
|
|
14
|
+
* @endpoint PUT /v1/research-runs/{runId}/draft/sections/{sectionKey}
|
|
15
|
+
* @endpoint PUT /v1/research/runs/{runId}/draft/sections/{sectionKey}
|
|
16
|
+
* @usedBySchema WriterMetaAnalysisSchema
|
|
17
|
+
* @contractShape writer.analysis-section
|
|
18
|
+
* @contractRole canonical
|
|
19
|
+
*/
|
|
20
|
+
export const WriterAnalysisSectionSchema = WriterAnalysisSectionSchemaDefinition;
|
|
21
|
+
//# sourceMappingURL=analysis-section.js.map
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
/**
|
|
3
|
+
* Finished research analysis for a governed prose write. The writer may phrase only the selected output claims and supplied judgments.
|
|
4
|
+
*
|
|
5
|
+
* @openapiSchema WriterBrief
|
|
6
|
+
* @endpoint PUT /v1/research-runs/{runId}/draft/sections/{sectionKey}
|
|
7
|
+
* @endpoint PUT /v1/research/runs/{runId}/draft/sections/{sectionKey}
|
|
8
|
+
* @usedBySchema EntityAnalysisSectionMutationSchema
|
|
9
|
+
* @contractShape writer.brief
|
|
10
|
+
* @contractRole canonical
|
|
11
|
+
*/
|
|
12
|
+
export declare const WriterBriefSchema: z.ZodObject<{
|
|
13
|
+
claim: z.ZodArray<z.ZodType<{
|
|
14
|
+
end?: number | null | undefined;
|
|
15
|
+
gateId?: string | null | undefined;
|
|
16
|
+
quote?: string | undefined;
|
|
17
|
+
sourceDocumentId?: string | null | undefined;
|
|
18
|
+
sourceUrl: string;
|
|
19
|
+
start?: number | null | undefined;
|
|
20
|
+
statement: string;
|
|
21
|
+
writerSurface?: string | null | undefined;
|
|
22
|
+
}, import("../research/finding.ts").ResearchFindingSchemaInput, z.core.$ZodTypeInternals<{
|
|
23
|
+
end?: number | null | undefined;
|
|
24
|
+
gateId?: string | null | undefined;
|
|
25
|
+
quote?: string | undefined;
|
|
26
|
+
sourceDocumentId?: string | null | undefined;
|
|
27
|
+
sourceUrl: string;
|
|
28
|
+
start?: number | null | undefined;
|
|
29
|
+
statement: string;
|
|
30
|
+
writerSurface?: string | null | undefined;
|
|
31
|
+
}, import("../research/finding.ts").ResearchFindingSchemaInput>>>;
|
|
32
|
+
metaAnalysis: z.ZodOptional<z.ZodObject<{
|
|
33
|
+
answer: z.ZodType<{
|
|
34
|
+
claim: number[];
|
|
35
|
+
statement: string;
|
|
36
|
+
}, import("./judgment.ts").WriterJudgmentSchemaInput, z.core.$ZodTypeInternals<{
|
|
37
|
+
claim: number[];
|
|
38
|
+
statement: string;
|
|
39
|
+
}, import("./judgment.ts").WriterJudgmentSchemaInput>>;
|
|
40
|
+
asOfDate: z.ZodISODate;
|
|
41
|
+
changeSignal: z.ZodArray<z.ZodType<{
|
|
42
|
+
claim: number[];
|
|
43
|
+
statement: string;
|
|
44
|
+
}, import("./change-signal.ts").WriterChangeSignalSchemaInput, z.core.$ZodTypeInternals<{
|
|
45
|
+
claim: number[];
|
|
46
|
+
statement: string;
|
|
47
|
+
}, import("./change-signal.ts").WriterChangeSignalSchemaInput>>>;
|
|
48
|
+
gap: z.ZodArray<z.ZodType<{
|
|
49
|
+
claim: number[];
|
|
50
|
+
reason: string;
|
|
51
|
+
statement: string;
|
|
52
|
+
}, import("./gap.ts").WriterGapSchemaInput, z.core.$ZodTypeInternals<{
|
|
53
|
+
claim: number[];
|
|
54
|
+
reason: string;
|
|
55
|
+
statement: string;
|
|
56
|
+
}, import("./gap.ts").WriterGapSchemaInput>>>;
|
|
57
|
+
question: z.ZodString;
|
|
58
|
+
scope: z.ZodType<{
|
|
59
|
+
boundary: string;
|
|
60
|
+
geography?: string | null | undefined;
|
|
61
|
+
period?: string | null | undefined;
|
|
62
|
+
}, import("./scope.ts").WriterScopeSchemaInput, z.core.$ZodTypeInternals<{
|
|
63
|
+
boundary: string;
|
|
64
|
+
geography?: string | null | undefined;
|
|
65
|
+
period?: string | null | undefined;
|
|
66
|
+
}, import("./scope.ts").WriterScopeSchemaInput>>;
|
|
67
|
+
section: z.ZodArray<z.ZodType<{
|
|
68
|
+
judgment: {
|
|
69
|
+
claim: number[];
|
|
70
|
+
statement: string;
|
|
71
|
+
};
|
|
72
|
+
label: string;
|
|
73
|
+
}, import("./analysis-section.ts").WriterAnalysisSectionSchemaInput, z.core.$ZodTypeInternals<{
|
|
74
|
+
judgment: {
|
|
75
|
+
claim: number[];
|
|
76
|
+
statement: string;
|
|
77
|
+
};
|
|
78
|
+
label: string;
|
|
79
|
+
}, import("./analysis-section.ts").WriterAnalysisSectionSchemaInput>>>;
|
|
80
|
+
}, z.core.$strip>>;
|
|
81
|
+
outputClaim: z.ZodOptional<z.ZodArray<z.ZodInt>>;
|
|
82
|
+
paragraph: z.ZodArray<z.ZodType<{
|
|
83
|
+
analysis?: {
|
|
84
|
+
answer: boolean;
|
|
85
|
+
section: string[];
|
|
86
|
+
} | undefined;
|
|
87
|
+
claim: number[];
|
|
88
|
+
positioning?: string[] | undefined;
|
|
89
|
+
}, import("./paragraph.ts").WriterParagraphSchemaInput, z.core.$ZodTypeInternals<{
|
|
90
|
+
analysis?: {
|
|
91
|
+
answer: boolean;
|
|
92
|
+
section: string[];
|
|
93
|
+
} | undefined;
|
|
94
|
+
claim: number[];
|
|
95
|
+
positioning?: string[] | undefined;
|
|
96
|
+
}, import("./paragraph.ts").WriterParagraphSchemaInput>>>;
|
|
97
|
+
positioning: z.ZodArray<z.ZodType<{
|
|
98
|
+
claim: number[];
|
|
99
|
+
element: string;
|
|
100
|
+
statement: string;
|
|
101
|
+
}, import("./positioning.ts").WriterPositioningSchemaInput, z.core.$ZodTypeInternals<{
|
|
102
|
+
claim: number[];
|
|
103
|
+
element: string;
|
|
104
|
+
statement: string;
|
|
105
|
+
}, import("./positioning.ts").WriterPositioningSchemaInput>>>;
|
|
106
|
+
}, z.core.$strip>;
|
|
107
|
+
export type WriterBrief = z.infer<typeof WriterBriefSchema>;
|
|
108
|
+
//# sourceMappingURL=brief.d.ts.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// LLM AGENTS MAY NOT EDIT THIS FILE UNDER ANY CIRCUMSTANCES. DO NOT EDIT - generated from Kotlin data classes via OpenAPI. Edit the backend owner and run: make docs-openapi && make docs-zod
|
|
2
|
+
import { z } from "zod/v4";
|
|
3
|
+
import { ResearchFindingSchema } from "../research/finding.js";
|
|
4
|
+
import { WriterMetaAnalysisSchema } from "./meta-analysis.js";
|
|
5
|
+
import { WriterParagraphSchema } from "./paragraph.js";
|
|
6
|
+
import { WriterPositioningSchema } from "./positioning.js";
|
|
7
|
+
/**
|
|
8
|
+
* Finished research analysis for a governed prose write. The writer may phrase only the selected output claims and supplied judgments.
|
|
9
|
+
*
|
|
10
|
+
* @openapiSchema WriterBrief
|
|
11
|
+
* @endpoint PUT /v1/research-runs/{runId}/draft/sections/{sectionKey}
|
|
12
|
+
* @endpoint PUT /v1/research/runs/{runId}/draft/sections/{sectionKey}
|
|
13
|
+
* @usedBySchema EntityAnalysisSectionMutationSchema
|
|
14
|
+
* @contractShape writer.brief
|
|
15
|
+
* @contractRole canonical
|
|
16
|
+
*/
|
|
17
|
+
export const WriterBriefSchema = z.object({
|
|
18
|
+
/** Complete evidence ledger with source page and verbatim quote. */
|
|
19
|
+
claim: z.array(ResearchFindingSchema),
|
|
20
|
+
/** Finished research question, answer, framework judgments, gaps, and change signals. */
|
|
21
|
+
metaAnalysis: WriterMetaAnalysisSchema.optional(),
|
|
22
|
+
/** Evidence claims this output states: paragraph.claim in paragraph order. Derived by the server; a sent value is ignored. */
|
|
23
|
+
outputClaim: z.array(z.int()).optional(),
|
|
24
|
+
/** Paragraph plan; each paragraph states the listed claims and judgments, and paragraph order is the output order; only the first paragraph consumes the answer. */
|
|
25
|
+
paragraph: z.array(WriterParagraphSchema),
|
|
26
|
+
/** Positioning decisions selected by research. Each is stated in the paragraph that lists it, else in the paragraph that states its cited claims. */
|
|
27
|
+
positioning: z.array(WriterPositioningSchema),
|
|
28
|
+
});
|
|
29
|
+
//# sourceMappingURL=brief.js.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
declare const WriterChangeSignalSchemaDefinition: z.ZodObject<{
|
|
3
|
+
claim: z.ZodArray<z.ZodInt>;
|
|
4
|
+
statement: z.ZodString;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
type WriterChangeSignalDefinition = z.infer<typeof WriterChangeSignalSchemaDefinition>;
|
|
7
|
+
export interface WriterChangeSignalSchemaInput extends z.input<typeof WriterChangeSignalSchemaDefinition> {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Evidence that would change the supplied judgment.
|
|
11
|
+
*
|
|
12
|
+
* @openapiSchema WriterChangeSignal
|
|
13
|
+
* @endpoint PUT /v1/research-runs/{runId}/draft/sections/{sectionKey}
|
|
14
|
+
* @endpoint PUT /v1/research/runs/{runId}/draft/sections/{sectionKey}
|
|
15
|
+
* @usedBySchema WriterMetaAnalysisSchema
|
|
16
|
+
* @contractShape writer.change-signal
|
|
17
|
+
* @contractRole canonical
|
|
18
|
+
*/
|
|
19
|
+
export declare const WriterChangeSignalSchema: z.ZodType<WriterChangeSignalDefinition, WriterChangeSignalSchemaInput>;
|
|
20
|
+
export type WriterChangeSignal = z.infer<typeof WriterChangeSignalSchema>;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=change-signal.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// LLM AGENTS MAY NOT EDIT THIS FILE UNDER ANY CIRCUMSTANCES. DO NOT EDIT - generated from Kotlin data classes via OpenAPI. Edit the backend owner and run: make docs-openapi && make docs-zod
|
|
2
|
+
import { z } from "zod/v4";
|
|
3
|
+
const WriterChangeSignalSchemaDefinition = z.object({
|
|
4
|
+
/** Evidence claim numbers supporting the signal. */
|
|
5
|
+
claim: z.array(z.int()),
|
|
6
|
+
/** Observable signal that would change the view. */
|
|
7
|
+
statement: z.string(),
|
|
8
|
+
});
|
|
9
|
+
/**
|
|
10
|
+
* Evidence that would change the supplied judgment.
|
|
11
|
+
*
|
|
12
|
+
* @openapiSchema WriterChangeSignal
|
|
13
|
+
* @endpoint PUT /v1/research-runs/{runId}/draft/sections/{sectionKey}
|
|
14
|
+
* @endpoint PUT /v1/research/runs/{runId}/draft/sections/{sectionKey}
|
|
15
|
+
* @usedBySchema WriterMetaAnalysisSchema
|
|
16
|
+
* @contractShape writer.change-signal
|
|
17
|
+
* @contractRole canonical
|
|
18
|
+
*/
|
|
19
|
+
export const WriterChangeSignalSchema = WriterChangeSignalSchemaDefinition;
|
|
20
|
+
//# sourceMappingURL=change-signal.js.map
|
|
@@ -6,6 +6,8 @@ import { z } from "zod/v4";
|
|
|
6
6
|
* @endpoint POST /v1/entities/{entityId}/enrichments
|
|
7
7
|
* @endpoint POST /v1/research-runs
|
|
8
8
|
* @endpoint POST /v1/research/runs
|
|
9
|
+
* @endpoint PUT /v1/research-runs/{runId}/draft/sections/{sectionKey}
|
|
10
|
+
* @endpoint PUT /v1/research/runs/{runId}/draft/sections/{sectionKey}
|
|
9
11
|
* @usedBySchema ResearchFindingSchema
|
|
10
12
|
* @contractShape writer.claim-surface
|
|
11
13
|
* @contractRole canonical
|
|
@@ -8,6 +8,8 @@ const WriterClaimSurfaceSchemaKnownMembers = z.enum(["ENTITY_TEXT", "RESEARCH_SN
|
|
|
8
8
|
* @endpoint POST /v1/entities/{entityId}/enrichments
|
|
9
9
|
* @endpoint POST /v1/research-runs
|
|
10
10
|
* @endpoint POST /v1/research/runs
|
|
11
|
+
* @endpoint PUT /v1/research-runs/{runId}/draft/sections/{sectionKey}
|
|
12
|
+
* @endpoint PUT /v1/research/runs/{runId}/draft/sections/{sectionKey}
|
|
11
13
|
* @usedBySchema ResearchFindingSchema
|
|
12
14
|
* @contractShape writer.claim-surface
|
|
13
15
|
* @contractRole canonical
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
/**
|
|
3
|
+
* Reason a research gap remains unresolved.
|
|
4
|
+
*
|
|
5
|
+
* @openapiSchema WriterGapReason
|
|
6
|
+
* @endpoint PUT /v1/research-runs/{runId}/draft/sections/{sectionKey}
|
|
7
|
+
* @endpoint PUT /v1/research/runs/{runId}/draft/sections/{sectionKey}
|
|
8
|
+
* @usedBySchema WriterGapSchema
|
|
9
|
+
* @contractShape writer.gap-reason
|
|
10
|
+
* @contractRole canonical
|
|
11
|
+
*/
|
|
12
|
+
export declare const WriterGapReasonSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
13
|
+
CONFLICTING: "CONFLICTING";
|
|
14
|
+
NOT_APPLICABLE: "NOT_APPLICABLE";
|
|
15
|
+
NOT_DISCLOSED: "NOT_DISCLOSED";
|
|
16
|
+
NOT_FOUND: "NOT_FOUND";
|
|
17
|
+
}>, z.ZodString]> & {
|
|
18
|
+
enum: {
|
|
19
|
+
CONFLICTING: "CONFLICTING";
|
|
20
|
+
NOT_APPLICABLE: "NOT_APPLICABLE";
|
|
21
|
+
NOT_DISCLOSED: "NOT_DISCLOSED";
|
|
22
|
+
NOT_FOUND: "NOT_FOUND";
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export type WriterGapReason = z.infer<typeof WriterGapReasonSchema>;
|
|
26
|
+
//# sourceMappingURL=gap-reason.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// LLM AGENTS MAY NOT EDIT THIS FILE UNDER ANY CIRCUMSTANCES. DO NOT EDIT - generated from Kotlin data classes via OpenAPI. Edit the backend owner and run: make docs-openapi && make docs-zod
|
|
2
|
+
import { z } from "zod/v4";
|
|
3
|
+
const WriterGapReasonSchemaKnownMembers = z.enum([
|
|
4
|
+
"NOT_DISCLOSED",
|
|
5
|
+
"NOT_FOUND",
|
|
6
|
+
"NOT_APPLICABLE",
|
|
7
|
+
"CONFLICTING",
|
|
8
|
+
]);
|
|
9
|
+
/**
|
|
10
|
+
* Reason a research gap remains unresolved.
|
|
11
|
+
*
|
|
12
|
+
* @openapiSchema WriterGapReason
|
|
13
|
+
* @endpoint PUT /v1/research-runs/{runId}/draft/sections/{sectionKey}
|
|
14
|
+
* @endpoint PUT /v1/research/runs/{runId}/draft/sections/{sectionKey}
|
|
15
|
+
* @usedBySchema WriterGapSchema
|
|
16
|
+
* @contractShape writer.gap-reason
|
|
17
|
+
* @contractRole canonical
|
|
18
|
+
*/
|
|
19
|
+
export const WriterGapReasonSchema = Object.assign(z.union([WriterGapReasonSchemaKnownMembers, z.string()]), { enum: WriterGapReasonSchemaKnownMembers.enum });
|
|
20
|
+
//# sourceMappingURL=gap-reason.js.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
declare const WriterGapSchemaDefinition: z.ZodObject<{
|
|
3
|
+
claim: z.ZodArray<z.ZodInt>;
|
|
4
|
+
reason: z.ZodUnion<readonly [z.ZodEnum<{
|
|
5
|
+
CONFLICTING: "CONFLICTING";
|
|
6
|
+
NOT_APPLICABLE: "NOT_APPLICABLE";
|
|
7
|
+
NOT_DISCLOSED: "NOT_DISCLOSED";
|
|
8
|
+
NOT_FOUND: "NOT_FOUND";
|
|
9
|
+
}>, z.ZodString]> & {
|
|
10
|
+
enum: {
|
|
11
|
+
CONFLICTING: "CONFLICTING";
|
|
12
|
+
NOT_APPLICABLE: "NOT_APPLICABLE";
|
|
13
|
+
NOT_DISCLOSED: "NOT_DISCLOSED";
|
|
14
|
+
NOT_FOUND: "NOT_FOUND";
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
statement: z.ZodString;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
type WriterGapDefinition = z.infer<typeof WriterGapSchemaDefinition>;
|
|
20
|
+
export interface WriterGapSchemaInput extends z.input<typeof WriterGapSchemaDefinition> {
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* A known evidence gap or conflict.
|
|
24
|
+
*
|
|
25
|
+
* @openapiSchema WriterGap
|
|
26
|
+
* @endpoint PUT /v1/research-runs/{runId}/draft/sections/{sectionKey}
|
|
27
|
+
* @endpoint PUT /v1/research/runs/{runId}/draft/sections/{sectionKey}
|
|
28
|
+
* @usedBySchema WriterMetaAnalysisSchema
|
|
29
|
+
* @contractShape writer.gap
|
|
30
|
+
* @contractRole canonical
|
|
31
|
+
*/
|
|
32
|
+
export declare const WriterGapSchema: z.ZodType<WriterGapDefinition, WriterGapSchemaInput>;
|
|
33
|
+
export type WriterGap = z.infer<typeof WriterGapSchema>;
|
|
34
|
+
export {};
|
|
35
|
+
//# sourceMappingURL=gap.d.ts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// LLM AGENTS MAY NOT EDIT THIS FILE UNDER ANY CIRCUMSTANCES. DO NOT EDIT - generated from Kotlin data classes via OpenAPI. Edit the backend owner and run: make docs-openapi && make docs-zod
|
|
2
|
+
import { z } from "zod/v4";
|
|
3
|
+
import { WriterGapReasonSchema } from "./gap-reason.js";
|
|
4
|
+
const WriterGapSchemaDefinition = z.object({
|
|
5
|
+
/** Evidence claim numbers supporting the gap. */
|
|
6
|
+
claim: z.array(z.int()),
|
|
7
|
+
/** Why the gap is present. */
|
|
8
|
+
reason: WriterGapReasonSchema,
|
|
9
|
+
/** What is missing or unresolved. */
|
|
10
|
+
statement: z.string(),
|
|
11
|
+
});
|
|
12
|
+
/**
|
|
13
|
+
* A known evidence gap or conflict.
|
|
14
|
+
*
|
|
15
|
+
* @openapiSchema WriterGap
|
|
16
|
+
* @endpoint PUT /v1/research-runs/{runId}/draft/sections/{sectionKey}
|
|
17
|
+
* @endpoint PUT /v1/research/runs/{runId}/draft/sections/{sectionKey}
|
|
18
|
+
* @usedBySchema WriterMetaAnalysisSchema
|
|
19
|
+
* @contractShape writer.gap
|
|
20
|
+
* @contractRole canonical
|
|
21
|
+
*/
|
|
22
|
+
export const WriterGapSchema = WriterGapSchemaDefinition;
|
|
23
|
+
//# sourceMappingURL=gap.js.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
declare const WriterJudgmentSchemaDefinition: z.ZodObject<{
|
|
3
|
+
claim: z.ZodArray<z.ZodInt>;
|
|
4
|
+
statement: z.ZodString;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
type WriterJudgmentDefinition = z.infer<typeof WriterJudgmentSchemaDefinition>;
|
|
7
|
+
export interface WriterJudgmentSchemaInput extends z.input<typeof WriterJudgmentSchemaDefinition> {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* One sourced research judgment.
|
|
11
|
+
*
|
|
12
|
+
* @openapiSchema WriterJudgment
|
|
13
|
+
* @endpoint PUT /v1/research-runs/{runId}/draft/sections/{sectionKey}
|
|
14
|
+
* @endpoint PUT /v1/research/runs/{runId}/draft/sections/{sectionKey}
|
|
15
|
+
* @usedBySchema WriterAnalysisSectionSchema
|
|
16
|
+
* @usedBySchema WriterMetaAnalysisSchema
|
|
17
|
+
* @contractShape writer.judgment
|
|
18
|
+
* @contractRole canonical
|
|
19
|
+
*/
|
|
20
|
+
export declare const WriterJudgmentSchema: z.ZodType<WriterJudgmentDefinition, WriterJudgmentSchemaInput>;
|
|
21
|
+
export type WriterJudgment = z.infer<typeof WriterJudgmentSchema>;
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=judgment.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// LLM AGENTS MAY NOT EDIT THIS FILE UNDER ANY CIRCUMSTANCES. DO NOT EDIT - generated from Kotlin data classes via OpenAPI. Edit the backend owner and run: make docs-openapi && make docs-zod
|
|
2
|
+
import { z } from "zod/v4";
|
|
3
|
+
const WriterJudgmentSchemaDefinition = z.object({
|
|
4
|
+
/** Evidence claim numbers supporting the judgment. */
|
|
5
|
+
claim: z.array(z.int()),
|
|
6
|
+
/** The judgment in plain words. */
|
|
7
|
+
statement: z.string(),
|
|
8
|
+
});
|
|
9
|
+
/**
|
|
10
|
+
* One sourced research judgment.
|
|
11
|
+
*
|
|
12
|
+
* @openapiSchema WriterJudgment
|
|
13
|
+
* @endpoint PUT /v1/research-runs/{runId}/draft/sections/{sectionKey}
|
|
14
|
+
* @endpoint PUT /v1/research/runs/{runId}/draft/sections/{sectionKey}
|
|
15
|
+
* @usedBySchema WriterAnalysisSectionSchema
|
|
16
|
+
* @usedBySchema WriterMetaAnalysisSchema
|
|
17
|
+
* @contractShape writer.judgment
|
|
18
|
+
* @contractRole canonical
|
|
19
|
+
*/
|
|
20
|
+
export const WriterJudgmentSchema = WriterJudgmentSchemaDefinition;
|
|
21
|
+
//# sourceMappingURL=judgment.js.map
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
/**
|
|
3
|
+
* Research judgment the writer must preserve.
|
|
4
|
+
*
|
|
5
|
+
* @openapiSchema WriterMetaAnalysis
|
|
6
|
+
* @endpoint PUT /v1/research-runs/{runId}/draft/sections/{sectionKey}
|
|
7
|
+
* @endpoint PUT /v1/research/runs/{runId}/draft/sections/{sectionKey}
|
|
8
|
+
* @usedBySchema WriterBriefSchema
|
|
9
|
+
* @contractShape writer.meta-analysis
|
|
10
|
+
* @contractRole canonical
|
|
11
|
+
*/
|
|
12
|
+
export declare const WriterMetaAnalysisSchema: z.ZodObject<{
|
|
13
|
+
answer: z.ZodType<{
|
|
14
|
+
claim: number[];
|
|
15
|
+
statement: string;
|
|
16
|
+
}, import("./judgment.ts").WriterJudgmentSchemaInput, z.core.$ZodTypeInternals<{
|
|
17
|
+
claim: number[];
|
|
18
|
+
statement: string;
|
|
19
|
+
}, import("./judgment.ts").WriterJudgmentSchemaInput>>;
|
|
20
|
+
asOfDate: z.ZodISODate;
|
|
21
|
+
changeSignal: z.ZodArray<z.ZodType<{
|
|
22
|
+
claim: number[];
|
|
23
|
+
statement: string;
|
|
24
|
+
}, import("./change-signal.ts").WriterChangeSignalSchemaInput, z.core.$ZodTypeInternals<{
|
|
25
|
+
claim: number[];
|
|
26
|
+
statement: string;
|
|
27
|
+
}, import("./change-signal.ts").WriterChangeSignalSchemaInput>>>;
|
|
28
|
+
gap: z.ZodArray<z.ZodType<{
|
|
29
|
+
claim: number[];
|
|
30
|
+
reason: string;
|
|
31
|
+
statement: string;
|
|
32
|
+
}, import("./gap.ts").WriterGapSchemaInput, z.core.$ZodTypeInternals<{
|
|
33
|
+
claim: number[];
|
|
34
|
+
reason: string;
|
|
35
|
+
statement: string;
|
|
36
|
+
}, import("./gap.ts").WriterGapSchemaInput>>>;
|
|
37
|
+
question: z.ZodString;
|
|
38
|
+
scope: z.ZodType<{
|
|
39
|
+
boundary: string;
|
|
40
|
+
geography?: string | null | undefined;
|
|
41
|
+
period?: string | null | undefined;
|
|
42
|
+
}, import("./scope.ts").WriterScopeSchemaInput, z.core.$ZodTypeInternals<{
|
|
43
|
+
boundary: string;
|
|
44
|
+
geography?: string | null | undefined;
|
|
45
|
+
period?: string | null | undefined;
|
|
46
|
+
}, import("./scope.ts").WriterScopeSchemaInput>>;
|
|
47
|
+
section: z.ZodArray<z.ZodType<{
|
|
48
|
+
judgment: {
|
|
49
|
+
claim: number[];
|
|
50
|
+
statement: string;
|
|
51
|
+
};
|
|
52
|
+
label: string;
|
|
53
|
+
}, import("./analysis-section.ts").WriterAnalysisSectionSchemaInput, z.core.$ZodTypeInternals<{
|
|
54
|
+
judgment: {
|
|
55
|
+
claim: number[];
|
|
56
|
+
statement: string;
|
|
57
|
+
};
|
|
58
|
+
label: string;
|
|
59
|
+
}, import("./analysis-section.ts").WriterAnalysisSectionSchemaInput>>>;
|
|
60
|
+
}, z.core.$strip>;
|
|
61
|
+
export type WriterMetaAnalysis = z.infer<typeof WriterMetaAnalysisSchema>;
|
|
62
|
+
//# sourceMappingURL=meta-analysis.d.ts.map
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// LLM AGENTS MAY NOT EDIT THIS FILE UNDER ANY CIRCUMSTANCES. DO NOT EDIT - generated from Kotlin data classes via OpenAPI. Edit the backend owner and run: make docs-openapi && make docs-zod
|
|
2
|
+
import { z } from "zod/v4";
|
|
3
|
+
import { WriterAnalysisSectionSchema } from "./analysis-section.js";
|
|
4
|
+
import { WriterChangeSignalSchema } from "./change-signal.js";
|
|
5
|
+
import { WriterGapSchema } from "./gap.js";
|
|
6
|
+
import { WriterJudgmentSchema } from "./judgment.js";
|
|
7
|
+
import { WriterScopeSchema } from "./scope.js";
|
|
8
|
+
/**
|
|
9
|
+
* Research judgment the writer must preserve.
|
|
10
|
+
*
|
|
11
|
+
* @openapiSchema WriterMetaAnalysis
|
|
12
|
+
* @endpoint PUT /v1/research-runs/{runId}/draft/sections/{sectionKey}
|
|
13
|
+
* @endpoint PUT /v1/research/runs/{runId}/draft/sections/{sectionKey}
|
|
14
|
+
* @usedBySchema WriterBriefSchema
|
|
15
|
+
* @contractShape writer.meta-analysis
|
|
16
|
+
* @contractRole canonical
|
|
17
|
+
*/
|
|
18
|
+
export const WriterMetaAnalysisSchema = z.object({
|
|
19
|
+
/** Overall answer to the research question. */
|
|
20
|
+
answer: WriterJudgmentSchema,
|
|
21
|
+
/** Date through which the judgment is current. */
|
|
22
|
+
asOfDate: z.iso.date(),
|
|
23
|
+
/** Evidence that would change the supplied view. */
|
|
24
|
+
changeSignal: z.array(WriterChangeSignalSchema),
|
|
25
|
+
/** Known gaps or conflicts that must not become invented facts. */
|
|
26
|
+
gap: z.array(WriterGapSchema),
|
|
27
|
+
/** Question the research answered. */
|
|
28
|
+
question: z.string(),
|
|
29
|
+
/** Boundary and period used by the research. */
|
|
30
|
+
scope: WriterScopeSchema,
|
|
31
|
+
/** Ordered framework judgments, when the skill defines sections. */
|
|
32
|
+
section: z.array(WriterAnalysisSectionSchema),
|
|
33
|
+
});
|
|
34
|
+
//# sourceMappingURL=meta-analysis.js.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
/**
|
|
3
|
+
* Meta-analysis judgments assigned to one paragraph.
|
|
4
|
+
*
|
|
5
|
+
* @openapiSchema WriterParagraphAnalysis
|
|
6
|
+
* @endpoint PUT /v1/research-runs/{runId}/draft/sections/{sectionKey}
|
|
7
|
+
* @endpoint PUT /v1/research/runs/{runId}/draft/sections/{sectionKey}
|
|
8
|
+
* @usedBySchema WriterParagraphSchema
|
|
9
|
+
* @contractShape writer.paragraph-analysis
|
|
10
|
+
* @contractRole canonical
|
|
11
|
+
*/
|
|
12
|
+
export declare const WriterParagraphAnalysisSchema: z.ZodObject<{
|
|
13
|
+
answer: z.ZodBoolean;
|
|
14
|
+
section: z.ZodArray<z.ZodString>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
export type WriterParagraphAnalysis = z.infer<typeof WriterParagraphAnalysisSchema>;
|
|
17
|
+
//# sourceMappingURL=paragraph-analysis.d.ts.map
|