@aventurevc/api-schemas 0.8.261 → 0.8.262
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/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 +156 -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/federated/search.d.ts +8 -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/research/finding.d.ts +3 -0
- package/dist/research/finding.js +3 -0
- 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 +102 -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
|
@@ -0,0 +1,102 @@
|
|
|
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
|
+
gateId?: string | null | undefined;
|
|
15
|
+
quote: string;
|
|
16
|
+
sourceUrl: string;
|
|
17
|
+
statement: string;
|
|
18
|
+
writerSurface?: string | null | undefined;
|
|
19
|
+
}, import("../research/finding.ts").ResearchFindingSchemaInput, z.core.$ZodTypeInternals<{
|
|
20
|
+
gateId?: string | null | undefined;
|
|
21
|
+
quote: string;
|
|
22
|
+
sourceUrl: string;
|
|
23
|
+
statement: string;
|
|
24
|
+
writerSurface?: string | null | undefined;
|
|
25
|
+
}, import("../research/finding.ts").ResearchFindingSchemaInput>>>;
|
|
26
|
+
metaAnalysis: z.ZodOptional<z.ZodObject<{
|
|
27
|
+
answer: z.ZodType<{
|
|
28
|
+
claim: number[];
|
|
29
|
+
statement: string;
|
|
30
|
+
}, import("./judgment.ts").WriterJudgmentSchemaInput, z.core.$ZodTypeInternals<{
|
|
31
|
+
claim: number[];
|
|
32
|
+
statement: string;
|
|
33
|
+
}, import("./judgment.ts").WriterJudgmentSchemaInput>>;
|
|
34
|
+
asOfDate: z.ZodISODate;
|
|
35
|
+
changeSignal: z.ZodArray<z.ZodType<{
|
|
36
|
+
claim: number[];
|
|
37
|
+
statement: string;
|
|
38
|
+
}, import("./change-signal.ts").WriterChangeSignalSchemaInput, z.core.$ZodTypeInternals<{
|
|
39
|
+
claim: number[];
|
|
40
|
+
statement: string;
|
|
41
|
+
}, import("./change-signal.ts").WriterChangeSignalSchemaInput>>>;
|
|
42
|
+
gap: z.ZodArray<z.ZodType<{
|
|
43
|
+
claim: number[];
|
|
44
|
+
reason: string;
|
|
45
|
+
statement: string;
|
|
46
|
+
}, import("./gap.ts").WriterGapSchemaInput, z.core.$ZodTypeInternals<{
|
|
47
|
+
claim: number[];
|
|
48
|
+
reason: string;
|
|
49
|
+
statement: string;
|
|
50
|
+
}, import("./gap.ts").WriterGapSchemaInput>>>;
|
|
51
|
+
question: z.ZodString;
|
|
52
|
+
scope: z.ZodType<{
|
|
53
|
+
boundary: string;
|
|
54
|
+
geography?: string | null | undefined;
|
|
55
|
+
period?: string | null | undefined;
|
|
56
|
+
}, import("./scope.ts").WriterScopeSchemaInput, z.core.$ZodTypeInternals<{
|
|
57
|
+
boundary: string;
|
|
58
|
+
geography?: string | null | undefined;
|
|
59
|
+
period?: string | null | undefined;
|
|
60
|
+
}, import("./scope.ts").WriterScopeSchemaInput>>;
|
|
61
|
+
section: z.ZodArray<z.ZodType<{
|
|
62
|
+
judgment: {
|
|
63
|
+
claim: number[];
|
|
64
|
+
statement: string;
|
|
65
|
+
};
|
|
66
|
+
label: string;
|
|
67
|
+
}, import("./analysis-section.ts").WriterAnalysisSectionSchemaInput, z.core.$ZodTypeInternals<{
|
|
68
|
+
judgment: {
|
|
69
|
+
claim: number[];
|
|
70
|
+
statement: string;
|
|
71
|
+
};
|
|
72
|
+
label: string;
|
|
73
|
+
}, import("./analysis-section.ts").WriterAnalysisSectionSchemaInput>>>;
|
|
74
|
+
}, z.core.$strip>>;
|
|
75
|
+
outputClaim: z.ZodOptional<z.ZodArray<z.ZodInt>>;
|
|
76
|
+
paragraph: z.ZodArray<z.ZodType<{
|
|
77
|
+
analysis?: {
|
|
78
|
+
answer: boolean;
|
|
79
|
+
section: string[];
|
|
80
|
+
} | undefined;
|
|
81
|
+
claim: number[];
|
|
82
|
+
positioning?: string[] | undefined;
|
|
83
|
+
}, import("./paragraph.ts").WriterParagraphSchemaInput, z.core.$ZodTypeInternals<{
|
|
84
|
+
analysis?: {
|
|
85
|
+
answer: boolean;
|
|
86
|
+
section: string[];
|
|
87
|
+
} | undefined;
|
|
88
|
+
claim: number[];
|
|
89
|
+
positioning?: string[] | undefined;
|
|
90
|
+
}, import("./paragraph.ts").WriterParagraphSchemaInput>>>;
|
|
91
|
+
positioning: z.ZodArray<z.ZodType<{
|
|
92
|
+
claim: number[];
|
|
93
|
+
element: string;
|
|
94
|
+
statement: string;
|
|
95
|
+
}, import("./positioning.ts").WriterPositioningSchemaInput, z.core.$ZodTypeInternals<{
|
|
96
|
+
claim: number[];
|
|
97
|
+
element: string;
|
|
98
|
+
statement: string;
|
|
99
|
+
}, import("./positioning.ts").WriterPositioningSchemaInput>>>;
|
|
100
|
+
}, z.core.$strip>;
|
|
101
|
+
export type WriterBrief = z.infer<typeof WriterBriefSchema>;
|
|
102
|
+
//# 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
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
/**
|
|
4
|
+
* Meta-analysis judgments assigned to one paragraph.
|
|
5
|
+
*
|
|
6
|
+
* @openapiSchema WriterParagraphAnalysis
|
|
7
|
+
* @endpoint PUT /v1/research-runs/{runId}/draft/sections/{sectionKey}
|
|
8
|
+
* @endpoint PUT /v1/research/runs/{runId}/draft/sections/{sectionKey}
|
|
9
|
+
* @usedBySchema WriterParagraphSchema
|
|
10
|
+
* @contractShape writer.paragraph-analysis
|
|
11
|
+
* @contractRole canonical
|
|
12
|
+
*/
|
|
13
|
+
export const WriterParagraphAnalysisSchema = z.object({
|
|
14
|
+
/** Whether this paragraph states the overall research answer; true on the first paragraph only. */
|
|
15
|
+
answer: z.boolean(),
|
|
16
|
+
/** Framework section labels this paragraph must state, in order. */
|
|
17
|
+
section: z.array(z.string()),
|
|
18
|
+
});
|
|
19
|
+
//# sourceMappingURL=paragraph-analysis.js.map
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
declare const WriterParagraphSchemaDefinition: z.ZodObject<{
|
|
3
|
+
analysis: z.ZodOptional<z.ZodObject<{
|
|
4
|
+
answer: z.ZodBoolean;
|
|
5
|
+
section: z.ZodArray<z.ZodString>;
|
|
6
|
+
}, z.core.$strip>>;
|
|
7
|
+
claim: z.ZodArray<z.ZodInt>;
|
|
8
|
+
positioning: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
9
|
+
ALTERNATIVE: "ALTERNATIVE";
|
|
10
|
+
APPROACH: "APPROACH";
|
|
11
|
+
BUYER: "BUYER";
|
|
12
|
+
CATEGORY: "CATEGORY";
|
|
13
|
+
DIFFERENTIATION: "DIFFERENTIATION";
|
|
14
|
+
}>, z.ZodString]> & {
|
|
15
|
+
enum: {
|
|
16
|
+
ALTERNATIVE: "ALTERNATIVE";
|
|
17
|
+
APPROACH: "APPROACH";
|
|
18
|
+
BUYER: "BUYER";
|
|
19
|
+
CATEGORY: "CATEGORY";
|
|
20
|
+
DIFFERENTIATION: "DIFFERENTIATION";
|
|
21
|
+
};
|
|
22
|
+
}>>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
type WriterParagraphDefinition = z.infer<typeof WriterParagraphSchemaDefinition>;
|
|
25
|
+
export interface WriterParagraphSchemaInput extends z.input<typeof WriterParagraphSchemaDefinition> {
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* One planned paragraph.
|
|
29
|
+
*
|
|
30
|
+
* @openapiSchema WriterParagraph
|
|
31
|
+
* @endpoint PUT /v1/research-runs/{runId}/draft/sections/{sectionKey}
|
|
32
|
+
* @endpoint PUT /v1/research/runs/{runId}/draft/sections/{sectionKey}
|
|
33
|
+
* @usedBySchema WriterBriefSchema
|
|
34
|
+
* @contractShape writer.paragraph
|
|
35
|
+
* @contractRole canonical
|
|
36
|
+
*/
|
|
37
|
+
export declare const WriterParagraphSchema: z.ZodType<WriterParagraphDefinition, WriterParagraphSchemaInput>;
|
|
38
|
+
export type WriterParagraph = z.infer<typeof WriterParagraphSchema>;
|
|
39
|
+
export {};
|
|
40
|
+
//# sourceMappingURL=paragraph.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
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 { WriterParagraphAnalysisSchema } from "./paragraph-analysis.js";
|
|
4
|
+
import { WriterPositioningElementSchema } from "./positioning-element.js";
|
|
5
|
+
const WriterParagraphSchemaDefinition = z.object({
|
|
6
|
+
/** Meta-analysis judgments this paragraph must consume. */
|
|
7
|
+
analysis: WriterParagraphAnalysisSchema.optional(),
|
|
8
|
+
/** Output claims this paragraph states, in order. */
|
|
9
|
+
claim: z.array(z.int()),
|
|
10
|
+
/** Positioning decisions this paragraph must consume; each declared decision at most once across paragraphs. An unlisted decision goes to the paragraph that states its claims. */
|
|
11
|
+
positioning: z.array(WriterPositioningElementSchema).optional(),
|
|
12
|
+
});
|
|
13
|
+
/**
|
|
14
|
+
* One planned paragraph.
|
|
15
|
+
*
|
|
16
|
+
* @openapiSchema WriterParagraph
|
|
17
|
+
* @endpoint PUT /v1/research-runs/{runId}/draft/sections/{sectionKey}
|
|
18
|
+
* @endpoint PUT /v1/research/runs/{runId}/draft/sections/{sectionKey}
|
|
19
|
+
* @usedBySchema WriterBriefSchema
|
|
20
|
+
* @contractShape writer.paragraph
|
|
21
|
+
* @contractRole canonical
|
|
22
|
+
*/
|
|
23
|
+
export const WriterParagraphSchema = WriterParagraphSchemaDefinition;
|
|
24
|
+
//# sourceMappingURL=paragraph.js.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
/**
|
|
3
|
+
* Research-selected category, buyer, approach, differentiation, or alternative.
|
|
4
|
+
*
|
|
5
|
+
* @openapiSchema WriterPositioningElement
|
|
6
|
+
* @endpoint PUT /v1/research-runs/{runId}/draft/sections/{sectionKey}
|
|
7
|
+
* @endpoint PUT /v1/research/runs/{runId}/draft/sections/{sectionKey}
|
|
8
|
+
* @usedBySchema WriterParagraphSchema
|
|
9
|
+
* @usedBySchema WriterPositioningSchema
|
|
10
|
+
* @contractShape writer.positioning-element
|
|
11
|
+
* @contractRole canonical
|
|
12
|
+
*/
|
|
13
|
+
export declare const WriterPositioningElementSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
14
|
+
ALTERNATIVE: "ALTERNATIVE";
|
|
15
|
+
APPROACH: "APPROACH";
|
|
16
|
+
BUYER: "BUYER";
|
|
17
|
+
CATEGORY: "CATEGORY";
|
|
18
|
+
DIFFERENTIATION: "DIFFERENTIATION";
|
|
19
|
+
}>, z.ZodString]> & {
|
|
20
|
+
enum: {
|
|
21
|
+
ALTERNATIVE: "ALTERNATIVE";
|
|
22
|
+
APPROACH: "APPROACH";
|
|
23
|
+
BUYER: "BUYER";
|
|
24
|
+
CATEGORY: "CATEGORY";
|
|
25
|
+
DIFFERENTIATION: "DIFFERENTIATION";
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export type WriterPositioningElement = z.infer<typeof WriterPositioningElementSchema>;
|
|
29
|
+
//# sourceMappingURL=positioning-element.d.ts.map
|
|
@@ -0,0 +1,22 @@
|
|
|
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 WriterPositioningElementSchemaKnownMembers = z.enum([
|
|
4
|
+
"CATEGORY",
|
|
5
|
+
"BUYER",
|
|
6
|
+
"APPROACH",
|
|
7
|
+
"DIFFERENTIATION",
|
|
8
|
+
"ALTERNATIVE",
|
|
9
|
+
]);
|
|
10
|
+
/**
|
|
11
|
+
* Research-selected category, buyer, approach, differentiation, or alternative.
|
|
12
|
+
*
|
|
13
|
+
* @openapiSchema WriterPositioningElement
|
|
14
|
+
* @endpoint PUT /v1/research-runs/{runId}/draft/sections/{sectionKey}
|
|
15
|
+
* @endpoint PUT /v1/research/runs/{runId}/draft/sections/{sectionKey}
|
|
16
|
+
* @usedBySchema WriterParagraphSchema
|
|
17
|
+
* @usedBySchema WriterPositioningSchema
|
|
18
|
+
* @contractShape writer.positioning-element
|
|
19
|
+
* @contractRole canonical
|
|
20
|
+
*/
|
|
21
|
+
export const WriterPositioningElementSchema = Object.assign(z.union([WriterPositioningElementSchemaKnownMembers, z.string()]), { enum: WriterPositioningElementSchemaKnownMembers.enum });
|
|
22
|
+
//# sourceMappingURL=positioning-element.js.map
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
declare const WriterPositioningSchemaDefinition: z.ZodObject<{
|
|
3
|
+
claim: z.ZodArray<z.ZodInt>;
|
|
4
|
+
element: z.ZodUnion<readonly [z.ZodEnum<{
|
|
5
|
+
ALTERNATIVE: "ALTERNATIVE";
|
|
6
|
+
APPROACH: "APPROACH";
|
|
7
|
+
BUYER: "BUYER";
|
|
8
|
+
CATEGORY: "CATEGORY";
|
|
9
|
+
DIFFERENTIATION: "DIFFERENTIATION";
|
|
10
|
+
}>, z.ZodString]> & {
|
|
11
|
+
enum: {
|
|
12
|
+
ALTERNATIVE: "ALTERNATIVE";
|
|
13
|
+
APPROACH: "APPROACH";
|
|
14
|
+
BUYER: "BUYER";
|
|
15
|
+
CATEGORY: "CATEGORY";
|
|
16
|
+
DIFFERENTIATION: "DIFFERENTIATION";
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
statement: z.ZodString;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
type WriterPositioningDefinition = z.infer<typeof WriterPositioningSchemaDefinition>;
|
|
22
|
+
export interface WriterPositioningSchemaInput extends z.input<typeof WriterPositioningSchemaDefinition> {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* One positioning decision and supporting claims.
|
|
26
|
+
*
|
|
27
|
+
* @openapiSchema WriterPositioning
|
|
28
|
+
* @endpoint PUT /v1/research-runs/{runId}/draft/sections/{sectionKey}
|
|
29
|
+
* @endpoint PUT /v1/research/runs/{runId}/draft/sections/{sectionKey}
|
|
30
|
+
* @usedBySchema WriterBriefSchema
|
|
31
|
+
* @contractShape writer.positioning
|
|
32
|
+
* @contractRole canonical
|
|
33
|
+
*/
|
|
34
|
+
export declare const WriterPositioningSchema: z.ZodType<WriterPositioningDefinition, WriterPositioningSchemaInput>;
|
|
35
|
+
export type WriterPositioning = z.infer<typeof WriterPositioningSchema>;
|
|
36
|
+
export {};
|
|
37
|
+
//# sourceMappingURL=positioning.d.ts.map
|