@aventurevc/api-schemas 0.8.264 → 0.8.266
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/prompt.d.ts +2 -2
- package/dist/entity/analysis-draft.d.ts +37 -1
- package/dist/entity/analysis-draft.js +4 -1
- package/dist/entity/analysis-section-mutation.d.ts +2 -2
- package/dist/entity/analysis-section-verification.d.ts +87 -0
- package/dist/entity/analysis-section-verification.js +38 -0
- package/dist/entity/analysis-verification-failure.d.ts +68 -0
- package/dist/entity/analysis-verification-failure.js +31 -0
- package/dist/entity/analysis-verification.d.ts +49 -0
- package/dist/entity/analysis-verification.js +18 -0
- package/dist/entity/detail.d.ts +18 -33
- package/dist/entity/investor-participation.d.ts +18 -33
- package/dist/entity/resolution.d.ts +18 -33
- package/dist/entity/text.d.ts +1 -0
- package/dist/entity/text.js +4 -0
- package/dist/federated/search.d.ts +18 -33
- package/dist/harness/run-create.d.ts +2 -2
- package/dist/http/openapi-metadata.d.ts +6 -0
- package/dist/http/openapi-metadata.js +9 -0
- package/dist/http/problem-detail.d.ts +1 -0
- package/dist/http/problem-detail.js +4 -2
- package/dist/lookup/job-mutation.d.ts +1 -0
- package/dist/lookup/job-mutation.js +2 -0
- package/dist/lookup/job.d.ts +2 -0
- package/dist/mention/lookup.d.ts +62 -0
- package/dist/mention/lookup.js +3 -0
- package/dist/news/detail.d.ts +18 -33
- package/dist/news/match-status.d.ts +2 -0
- package/dist/news/match-status.js +2 -0
- package/dist/news/news.d.ts +39 -41
- package/dist/news/news.js +29 -27
- package/dist/news/published-event.d.ts +18 -33
- package/dist/news/resolved-entity-link.d.ts +2 -0
- package/dist/news/resolved-entity-link.js +2 -0
- package/dist/news/resolved-person-link.d.ts +2 -0
- package/dist/news/resolved-person-link.js +2 -0
- package/dist/news/title-mention.d.ts +2 -0
- package/dist/news/title-mention.js +2 -0
- package/dist/openapi-component-manifest.js +12 -0
- package/dist/pagination/schemas.d.ts +100 -99
- package/dist/person/graph-career-context.d.ts +18 -33
- package/dist/prose/problem.d.ts +2 -0
- package/dist/prose/problem.js +2 -0
- package/dist/research/finding.d.ts +1 -1
- package/dist/research/finding.js +2 -2
- package/dist/writer/brief.d.ts +2 -2
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ declare const EnrichmentPromptSchemaDefinition: z.ZodObject<{
|
|
|
7
7
|
sourceDocumentId?: string | null | undefined;
|
|
8
8
|
sourceUrl: string;
|
|
9
9
|
start?: number | null | undefined;
|
|
10
|
-
statement
|
|
10
|
+
statement?: string | undefined;
|
|
11
11
|
writerSurface?: string | null | undefined;
|
|
12
12
|
}, import("../research/finding.ts").ResearchFindingSchemaInput, z.core.$ZodTypeInternals<{
|
|
13
13
|
end?: number | null | undefined;
|
|
@@ -16,7 +16,7 @@ declare const EnrichmentPromptSchemaDefinition: z.ZodObject<{
|
|
|
16
16
|
sourceDocumentId?: string | null | undefined;
|
|
17
17
|
sourceUrl: string;
|
|
18
18
|
start?: number | null | undefined;
|
|
19
|
-
statement
|
|
19
|
+
statement?: string | undefined;
|
|
20
20
|
writerSurface?: string | null | undefined;
|
|
21
21
|
}, import("../research/finding.ts").ResearchFindingSchemaInput>>>>>;
|
|
22
22
|
userPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -51,13 +51,49 @@ declare const EntityAnalysisDraftSchemaDefinition: z.ZodObject<{
|
|
|
51
51
|
}[];
|
|
52
52
|
title: string;
|
|
53
53
|
}, import("./analysis-section.ts").EntityAnalysisSectionSchemaInput>>>;
|
|
54
|
+
verification: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
55
|
+
section: z.ZodArray<z.ZodType<{
|
|
56
|
+
failure: {
|
|
57
|
+
passage: string;
|
|
58
|
+
problem: "citedLegalPage" | "invalidSection" | "missingCitation" | "notApplicable" | "prose" | "quoteNotFound" | "restatement" | "unreadSource";
|
|
59
|
+
proseProblem?: string | null | undefined;
|
|
60
|
+
reason: string;
|
|
61
|
+
rule: string;
|
|
62
|
+
}[];
|
|
63
|
+
key: string;
|
|
64
|
+
outcome: "failed" | "passed";
|
|
65
|
+
passage?: string | null | undefined;
|
|
66
|
+
problem?: "citedLegalPage" | "invalidSection" | "missingCitation" | "notApplicable" | "prose" | "quoteNotFound" | "restatement" | "unreadSource" | null | undefined;
|
|
67
|
+
prosePolicyVersion?: string | null | undefined;
|
|
68
|
+
proseProblem?: string | null | undefined;
|
|
69
|
+
rule?: string | null | undefined;
|
|
70
|
+
violation?: string | null | undefined;
|
|
71
|
+
}, import("./analysis-section-verification.ts").EntityAnalysisSectionVerificationSchemaInput, z.core.$ZodTypeInternals<{
|
|
72
|
+
failure: {
|
|
73
|
+
passage: string;
|
|
74
|
+
problem: "citedLegalPage" | "invalidSection" | "missingCitation" | "notApplicable" | "prose" | "quoteNotFound" | "restatement" | "unreadSource";
|
|
75
|
+
proseProblem?: string | null | undefined;
|
|
76
|
+
reason: string;
|
|
77
|
+
rule: string;
|
|
78
|
+
}[];
|
|
79
|
+
key: string;
|
|
80
|
+
outcome: "failed" | "passed";
|
|
81
|
+
passage?: string | null | undefined;
|
|
82
|
+
problem?: "citedLegalPage" | "invalidSection" | "missingCitation" | "notApplicable" | "prose" | "quoteNotFound" | "restatement" | "unreadSource" | null | undefined;
|
|
83
|
+
prosePolicyVersion?: string | null | undefined;
|
|
84
|
+
proseProblem?: string | null | undefined;
|
|
85
|
+
rule?: string | null | undefined;
|
|
86
|
+
violation?: string | null | undefined;
|
|
87
|
+
}, import("./analysis-section-verification.ts").EntityAnalysisSectionVerificationSchemaInput>>>;
|
|
88
|
+
version: z.ZodInt;
|
|
89
|
+
}, z.core.$strip>>>;
|
|
54
90
|
version: z.ZodInt;
|
|
55
91
|
}, z.core.$strip>;
|
|
56
92
|
type EntityAnalysisDraftDefinition = z.infer<typeof EntityAnalysisDraftSchemaDefinition>;
|
|
57
93
|
export interface EntityAnalysisDraftSchemaInput extends z.input<typeof EntityAnalysisDraftSchemaDefinition> {
|
|
58
94
|
}
|
|
59
95
|
/**
|
|
60
|
-
* Private
|
|
96
|
+
* Private analysis for one research run, with section acceptance outcomes.
|
|
61
97
|
*
|
|
62
98
|
* @openapiSchema EntityAnalysisDraft
|
|
63
99
|
* @endpoint GET /v1/research-runs/{runId}/draft
|
|
@@ -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 { EntityAnalysisSectionSchema } from "./analysis-section.js";
|
|
4
|
+
import { EntityAnalysisVerificationSchema } from "./analysis-verification.js";
|
|
4
5
|
const EntityAnalysisDraftSchemaDefinition = z.object({
|
|
5
6
|
/** Entity researched by this run. */
|
|
6
7
|
entityId: z.uuid(),
|
|
@@ -8,11 +9,13 @@ const EntityAnalysisDraftSchemaDefinition = z.object({
|
|
|
8
9
|
runId: z.uuid(),
|
|
9
10
|
/** Current sections, each identified by its snippet type key. */
|
|
10
11
|
section: z.array(EntityAnalysisSectionSchema),
|
|
12
|
+
/** Acceptance and publication outcomes recorded for this draft version. */
|
|
13
|
+
verification: EntityAnalysisVerificationSchema.nullish(),
|
|
11
14
|
/** Latest analysis-section event sequence; zero before the first section. */
|
|
12
15
|
version: z.int().min(0),
|
|
13
16
|
});
|
|
14
17
|
/**
|
|
15
|
-
* Private
|
|
18
|
+
* Private analysis for one research run, with section acceptance outcomes.
|
|
16
19
|
*
|
|
17
20
|
* @openapiSchema EntityAnalysisDraft
|
|
18
21
|
* @endpoint GET /v1/research-runs/{runId}/draft
|
|
@@ -56,7 +56,7 @@ declare const EntityAnalysisSectionMutationSchemaDefinition: z.ZodObject<{
|
|
|
56
56
|
sourceDocumentId?: string | null | undefined;
|
|
57
57
|
sourceUrl: string;
|
|
58
58
|
start?: number | null | undefined;
|
|
59
|
-
statement
|
|
59
|
+
statement?: string | undefined;
|
|
60
60
|
writerSurface?: string | null | undefined;
|
|
61
61
|
}, import("../research/finding.ts").ResearchFindingSchemaInput, z.core.$ZodTypeInternals<{
|
|
62
62
|
end?: number | null | undefined;
|
|
@@ -65,7 +65,7 @@ declare const EntityAnalysisSectionMutationSchemaDefinition: z.ZodObject<{
|
|
|
65
65
|
sourceDocumentId?: string | null | undefined;
|
|
66
66
|
sourceUrl: string;
|
|
67
67
|
start?: number | null | undefined;
|
|
68
|
-
statement
|
|
68
|
+
statement?: string | undefined;
|
|
69
69
|
writerSurface?: string | null | undefined;
|
|
70
70
|
}, import("../research/finding.ts").ResearchFindingSchemaInput>>>;
|
|
71
71
|
metaAnalysis: z.ZodOptional<z.ZodObject<{
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
declare const EntityAnalysisSectionVerificationSchemaDefinition: z.ZodObject<{
|
|
3
|
+
failure: z.ZodArray<z.ZodType<{
|
|
4
|
+
passage: string;
|
|
5
|
+
problem: "citedLegalPage" | "invalidSection" | "missingCitation" | "notApplicable" | "prose" | "quoteNotFound" | "restatement" | "unreadSource";
|
|
6
|
+
proseProblem?: string | null | undefined;
|
|
7
|
+
reason: string;
|
|
8
|
+
rule: string;
|
|
9
|
+
}, import("./analysis-verification-failure.ts").EntityAnalysisVerificationFailureSchemaInput, z.core.$ZodTypeInternals<{
|
|
10
|
+
passage: string;
|
|
11
|
+
problem: "citedLegalPage" | "invalidSection" | "missingCitation" | "notApplicable" | "prose" | "quoteNotFound" | "restatement" | "unreadSource";
|
|
12
|
+
proseProblem?: string | null | undefined;
|
|
13
|
+
reason: string;
|
|
14
|
+
rule: string;
|
|
15
|
+
}, import("./analysis-verification-failure.ts").EntityAnalysisVerificationFailureSchemaInput>>>;
|
|
16
|
+
key: z.ZodString;
|
|
17
|
+
outcome: z.ZodEnum<{
|
|
18
|
+
failed: "failed";
|
|
19
|
+
passed: "passed";
|
|
20
|
+
}>;
|
|
21
|
+
passage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
problem: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
23
|
+
citedLegalPage: "citedLegalPage";
|
|
24
|
+
invalidSection: "invalidSection";
|
|
25
|
+
missingCitation: "missingCitation";
|
|
26
|
+
notApplicable: "notApplicable";
|
|
27
|
+
prose: "prose";
|
|
28
|
+
quoteNotFound: "quoteNotFound";
|
|
29
|
+
restatement: "restatement";
|
|
30
|
+
unreadSource: "unreadSource";
|
|
31
|
+
}>>>;
|
|
32
|
+
prosePolicyVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
|
+
proseProblem: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
|
|
34
|
+
chained: "chained";
|
|
35
|
+
disclaimer: "disclaimer";
|
|
36
|
+
factList: "factList";
|
|
37
|
+
legalSource: "legalSource";
|
|
38
|
+
marketing: "marketing";
|
|
39
|
+
markup: "markup";
|
|
40
|
+
mojibake: "mojibake";
|
|
41
|
+
record: "record";
|
|
42
|
+
source: "source";
|
|
43
|
+
structured: "structured";
|
|
44
|
+
temporal: "temporal";
|
|
45
|
+
tense: "tense";
|
|
46
|
+
textContract: "textContract";
|
|
47
|
+
unsupported: "unsupported";
|
|
48
|
+
voice: "voice";
|
|
49
|
+
}>, z.ZodString]> & {
|
|
50
|
+
enum: {
|
|
51
|
+
chained: "chained";
|
|
52
|
+
disclaimer: "disclaimer";
|
|
53
|
+
factList: "factList";
|
|
54
|
+
legalSource: "legalSource";
|
|
55
|
+
marketing: "marketing";
|
|
56
|
+
markup: "markup";
|
|
57
|
+
mojibake: "mojibake";
|
|
58
|
+
record: "record";
|
|
59
|
+
source: "source";
|
|
60
|
+
structured: "structured";
|
|
61
|
+
temporal: "temporal";
|
|
62
|
+
tense: "tense";
|
|
63
|
+
textContract: "textContract";
|
|
64
|
+
unsupported: "unsupported";
|
|
65
|
+
voice: "voice";
|
|
66
|
+
};
|
|
67
|
+
}>>;
|
|
68
|
+
rule: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
69
|
+
violation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
70
|
+
}, z.core.$strip>;
|
|
71
|
+
type EntityAnalysisSectionVerificationDefinition = z.infer<typeof EntityAnalysisSectionVerificationSchemaDefinition>;
|
|
72
|
+
export interface EntityAnalysisSectionVerificationSchemaInput extends z.input<typeof EntityAnalysisSectionVerificationSchemaDefinition> {
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* @openapiSchema EntityAnalysisSectionVerification
|
|
76
|
+
* @endpoint GET /v1/research-runs/{runId}/draft
|
|
77
|
+
* @endpoint GET /v1/research/runs/{runId}/draft
|
|
78
|
+
* @endpoint PUT /v1/research-runs/{runId}/draft/sections/{sectionKey}
|
|
79
|
+
* @endpoint PUT /v1/research/runs/{runId}/draft/sections/{sectionKey}
|
|
80
|
+
* @usedBySchema EntityAnalysisVerificationSchema
|
|
81
|
+
* @contractShape entity.analysis-section-verification
|
|
82
|
+
* @contractRole canonical
|
|
83
|
+
*/
|
|
84
|
+
export declare const EntityAnalysisSectionVerificationSchema: z.ZodType<EntityAnalysisSectionVerificationDefinition, EntityAnalysisSectionVerificationSchemaInput>;
|
|
85
|
+
export type EntityAnalysisSectionVerification = z.infer<typeof EntityAnalysisSectionVerificationSchema>;
|
|
86
|
+
export {};
|
|
87
|
+
//# sourceMappingURL=analysis-section-verification.d.ts.map
|
|
@@ -0,0 +1,38 @@
|
|
|
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 { EntityAnalysisVerificationFailureSchema } from "./analysis-verification-failure.js";
|
|
4
|
+
import { ProseProblemSchema } from "../prose/problem.js";
|
|
5
|
+
const EntityAnalysisSectionVerificationSchemaDefinition = z.object({
|
|
6
|
+
failure: z.array(EntityAnalysisVerificationFailureSchema),
|
|
7
|
+
key: z.string(),
|
|
8
|
+
outcome: z.enum(["passed", "failed"]),
|
|
9
|
+
passage: z.string().nullish(),
|
|
10
|
+
problem: z
|
|
11
|
+
.enum([
|
|
12
|
+
"invalidSection",
|
|
13
|
+
"notApplicable",
|
|
14
|
+
"missingCitation",
|
|
15
|
+
"unreadSource",
|
|
16
|
+
"quoteNotFound",
|
|
17
|
+
"citedLegalPage",
|
|
18
|
+
"restatement",
|
|
19
|
+
"prose",
|
|
20
|
+
])
|
|
21
|
+
.nullish(),
|
|
22
|
+
prosePolicyVersion: z.string().nullish(),
|
|
23
|
+
proseProblem: ProseProblemSchema.nullish(),
|
|
24
|
+
rule: z.string().nullish(),
|
|
25
|
+
violation: z.string().nullish(),
|
|
26
|
+
});
|
|
27
|
+
/**
|
|
28
|
+
* @openapiSchema EntityAnalysisSectionVerification
|
|
29
|
+
* @endpoint GET /v1/research-runs/{runId}/draft
|
|
30
|
+
* @endpoint GET /v1/research/runs/{runId}/draft
|
|
31
|
+
* @endpoint PUT /v1/research-runs/{runId}/draft/sections/{sectionKey}
|
|
32
|
+
* @endpoint PUT /v1/research/runs/{runId}/draft/sections/{sectionKey}
|
|
33
|
+
* @usedBySchema EntityAnalysisVerificationSchema
|
|
34
|
+
* @contractShape entity.analysis-section-verification
|
|
35
|
+
* @contractRole canonical
|
|
36
|
+
*/
|
|
37
|
+
export const EntityAnalysisSectionVerificationSchema = EntityAnalysisSectionVerificationSchemaDefinition;
|
|
38
|
+
//# sourceMappingURL=analysis-section-verification.js.map
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
declare const EntityAnalysisVerificationFailureSchemaDefinition: z.ZodObject<{
|
|
3
|
+
passage: z.ZodString;
|
|
4
|
+
problem: z.ZodEnum<{
|
|
5
|
+
citedLegalPage: "citedLegalPage";
|
|
6
|
+
invalidSection: "invalidSection";
|
|
7
|
+
missingCitation: "missingCitation";
|
|
8
|
+
notApplicable: "notApplicable";
|
|
9
|
+
prose: "prose";
|
|
10
|
+
quoteNotFound: "quoteNotFound";
|
|
11
|
+
restatement: "restatement";
|
|
12
|
+
unreadSource: "unreadSource";
|
|
13
|
+
}>;
|
|
14
|
+
proseProblem: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
|
|
15
|
+
chained: "chained";
|
|
16
|
+
disclaimer: "disclaimer";
|
|
17
|
+
factList: "factList";
|
|
18
|
+
legalSource: "legalSource";
|
|
19
|
+
marketing: "marketing";
|
|
20
|
+
markup: "markup";
|
|
21
|
+
mojibake: "mojibake";
|
|
22
|
+
record: "record";
|
|
23
|
+
source: "source";
|
|
24
|
+
structured: "structured";
|
|
25
|
+
temporal: "temporal";
|
|
26
|
+
tense: "tense";
|
|
27
|
+
textContract: "textContract";
|
|
28
|
+
unsupported: "unsupported";
|
|
29
|
+
voice: "voice";
|
|
30
|
+
}>, z.ZodString]> & {
|
|
31
|
+
enum: {
|
|
32
|
+
chained: "chained";
|
|
33
|
+
disclaimer: "disclaimer";
|
|
34
|
+
factList: "factList";
|
|
35
|
+
legalSource: "legalSource";
|
|
36
|
+
marketing: "marketing";
|
|
37
|
+
markup: "markup";
|
|
38
|
+
mojibake: "mojibake";
|
|
39
|
+
record: "record";
|
|
40
|
+
source: "source";
|
|
41
|
+
structured: "structured";
|
|
42
|
+
temporal: "temporal";
|
|
43
|
+
tense: "tense";
|
|
44
|
+
textContract: "textContract";
|
|
45
|
+
unsupported: "unsupported";
|
|
46
|
+
voice: "voice";
|
|
47
|
+
};
|
|
48
|
+
}>>;
|
|
49
|
+
reason: z.ZodString;
|
|
50
|
+
rule: z.ZodString;
|
|
51
|
+
}, z.core.$strip>;
|
|
52
|
+
type EntityAnalysisVerificationFailureDefinition = z.infer<typeof EntityAnalysisVerificationFailureSchemaDefinition>;
|
|
53
|
+
export interface EntityAnalysisVerificationFailureSchemaInput extends z.input<typeof EntityAnalysisVerificationFailureSchemaDefinition> {
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* @openapiSchema EntityAnalysisVerificationFailure
|
|
57
|
+
* @endpoint GET /v1/research-runs/{runId}/draft
|
|
58
|
+
* @endpoint GET /v1/research/runs/{runId}/draft
|
|
59
|
+
* @endpoint PUT /v1/research-runs/{runId}/draft/sections/{sectionKey}
|
|
60
|
+
* @endpoint PUT /v1/research/runs/{runId}/draft/sections/{sectionKey}
|
|
61
|
+
* @usedBySchema EntityAnalysisSectionVerificationSchema
|
|
62
|
+
* @contractShape entity.analysis-verification-failure
|
|
63
|
+
* @contractRole canonical
|
|
64
|
+
*/
|
|
65
|
+
export declare const EntityAnalysisVerificationFailureSchema: z.ZodType<EntityAnalysisVerificationFailureDefinition, EntityAnalysisVerificationFailureSchemaInput>;
|
|
66
|
+
export type EntityAnalysisVerificationFailure = z.infer<typeof EntityAnalysisVerificationFailureSchema>;
|
|
67
|
+
export {};
|
|
68
|
+
//# sourceMappingURL=analysis-verification-failure.d.ts.map
|
|
@@ -0,0 +1,31 @@
|
|
|
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 { ProseProblemSchema } from "../prose/problem.js";
|
|
4
|
+
const EntityAnalysisVerificationFailureSchemaDefinition = z.object({
|
|
5
|
+
passage: z.string(),
|
|
6
|
+
problem: z.enum([
|
|
7
|
+
"invalidSection",
|
|
8
|
+
"notApplicable",
|
|
9
|
+
"missingCitation",
|
|
10
|
+
"unreadSource",
|
|
11
|
+
"quoteNotFound",
|
|
12
|
+
"citedLegalPage",
|
|
13
|
+
"restatement",
|
|
14
|
+
"prose",
|
|
15
|
+
]),
|
|
16
|
+
proseProblem: ProseProblemSchema.nullish(),
|
|
17
|
+
reason: z.string(),
|
|
18
|
+
rule: z.string(),
|
|
19
|
+
});
|
|
20
|
+
/**
|
|
21
|
+
* @openapiSchema EntityAnalysisVerificationFailure
|
|
22
|
+
* @endpoint GET /v1/research-runs/{runId}/draft
|
|
23
|
+
* @endpoint GET /v1/research/runs/{runId}/draft
|
|
24
|
+
* @endpoint PUT /v1/research-runs/{runId}/draft/sections/{sectionKey}
|
|
25
|
+
* @endpoint PUT /v1/research/runs/{runId}/draft/sections/{sectionKey}
|
|
26
|
+
* @usedBySchema EntityAnalysisSectionVerificationSchema
|
|
27
|
+
* @contractShape entity.analysis-verification-failure
|
|
28
|
+
* @contractRole canonical
|
|
29
|
+
*/
|
|
30
|
+
export const EntityAnalysisVerificationFailureSchema = EntityAnalysisVerificationFailureSchemaDefinition;
|
|
31
|
+
//# sourceMappingURL=analysis-verification-failure.js.map
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
/**
|
|
3
|
+
* @openapiSchema EntityAnalysisVerification
|
|
4
|
+
* @endpoint GET /v1/research-runs/{runId}/draft
|
|
5
|
+
* @endpoint GET /v1/research/runs/{runId}/draft
|
|
6
|
+
* @endpoint PUT /v1/research-runs/{runId}/draft/sections/{sectionKey}
|
|
7
|
+
* @endpoint PUT /v1/research/runs/{runId}/draft/sections/{sectionKey}
|
|
8
|
+
* @usedBySchema EntityAnalysisDraftSchema
|
|
9
|
+
* @contractShape entity.analysis-verification
|
|
10
|
+
* @contractRole canonical
|
|
11
|
+
*/
|
|
12
|
+
export declare const EntityAnalysisVerificationSchema: z.ZodObject<{
|
|
13
|
+
section: z.ZodArray<z.ZodType<{
|
|
14
|
+
failure: {
|
|
15
|
+
passage: string;
|
|
16
|
+
problem: "citedLegalPage" | "invalidSection" | "missingCitation" | "notApplicable" | "prose" | "quoteNotFound" | "restatement" | "unreadSource";
|
|
17
|
+
proseProblem?: string | null | undefined;
|
|
18
|
+
reason: string;
|
|
19
|
+
rule: string;
|
|
20
|
+
}[];
|
|
21
|
+
key: string;
|
|
22
|
+
outcome: "failed" | "passed";
|
|
23
|
+
passage?: string | null | undefined;
|
|
24
|
+
problem?: "citedLegalPage" | "invalidSection" | "missingCitation" | "notApplicable" | "prose" | "quoteNotFound" | "restatement" | "unreadSource" | null | undefined;
|
|
25
|
+
prosePolicyVersion?: string | null | undefined;
|
|
26
|
+
proseProblem?: string | null | undefined;
|
|
27
|
+
rule?: string | null | undefined;
|
|
28
|
+
violation?: string | null | undefined;
|
|
29
|
+
}, import("./analysis-section-verification.ts").EntityAnalysisSectionVerificationSchemaInput, z.core.$ZodTypeInternals<{
|
|
30
|
+
failure: {
|
|
31
|
+
passage: string;
|
|
32
|
+
problem: "citedLegalPage" | "invalidSection" | "missingCitation" | "notApplicable" | "prose" | "quoteNotFound" | "restatement" | "unreadSource";
|
|
33
|
+
proseProblem?: string | null | undefined;
|
|
34
|
+
reason: string;
|
|
35
|
+
rule: string;
|
|
36
|
+
}[];
|
|
37
|
+
key: string;
|
|
38
|
+
outcome: "failed" | "passed";
|
|
39
|
+
passage?: string | null | undefined;
|
|
40
|
+
problem?: "citedLegalPage" | "invalidSection" | "missingCitation" | "notApplicable" | "prose" | "quoteNotFound" | "restatement" | "unreadSource" | null | undefined;
|
|
41
|
+
prosePolicyVersion?: string | null | undefined;
|
|
42
|
+
proseProblem?: string | null | undefined;
|
|
43
|
+
rule?: string | null | undefined;
|
|
44
|
+
violation?: string | null | undefined;
|
|
45
|
+
}, import("./analysis-section-verification.ts").EntityAnalysisSectionVerificationSchemaInput>>>;
|
|
46
|
+
version: z.ZodInt;
|
|
47
|
+
}, z.core.$strip>;
|
|
48
|
+
export type EntityAnalysisVerification = z.infer<typeof EntityAnalysisVerificationSchema>;
|
|
49
|
+
//# sourceMappingURL=analysis-verification.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
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 { EntityAnalysisSectionVerificationSchema } from "./analysis-section-verification.js";
|
|
4
|
+
/**
|
|
5
|
+
* @openapiSchema EntityAnalysisVerification
|
|
6
|
+
* @endpoint GET /v1/research-runs/{runId}/draft
|
|
7
|
+
* @endpoint GET /v1/research/runs/{runId}/draft
|
|
8
|
+
* @endpoint PUT /v1/research-runs/{runId}/draft/sections/{sectionKey}
|
|
9
|
+
* @endpoint PUT /v1/research/runs/{runId}/draft/sections/{sectionKey}
|
|
10
|
+
* @usedBySchema EntityAnalysisDraftSchema
|
|
11
|
+
* @contractShape entity.analysis-verification
|
|
12
|
+
* @contractRole canonical
|
|
13
|
+
*/
|
|
14
|
+
export const EntityAnalysisVerificationSchema = z.object({
|
|
15
|
+
section: z.array(EntityAnalysisSectionVerificationSchema),
|
|
16
|
+
version: z.int(),
|
|
17
|
+
});
|
|
18
|
+
//# sourceMappingURL=analysis-verification.js.map
|
package/dist/entity/detail.d.ts
CHANGED
|
@@ -837,20 +837,20 @@ export declare const EntityDetailSchema: z.ZodObject<{
|
|
|
837
837
|
valuationPostMoney?: number | null | undefined;
|
|
838
838
|
valuationPreMoney?: number | null | undefined;
|
|
839
839
|
}, import("./fundraise-transaction.ts").EntityFundraiseTransactionSchemaInput>>>;
|
|
840
|
-
newsArticle: z.ZodArray<z.
|
|
841
|
-
author
|
|
842
|
-
category
|
|
843
|
-
createdAt
|
|
844
|
-
excerpt
|
|
845
|
-
externalNewsArticle
|
|
846
|
-
id:
|
|
847
|
-
newsImageThumbnail
|
|
848
|
-
newsUrlOriginal
|
|
849
|
-
publication
|
|
850
|
-
publishedAt
|
|
851
|
-
slug
|
|
852
|
-
title:
|
|
853
|
-
titleMention
|
|
840
|
+
newsArticle: z.ZodArray<z.ZodObject<{
|
|
841
|
+
author: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
842
|
+
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
843
|
+
createdAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
844
|
+
excerpt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
845
|
+
externalNewsArticle: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
846
|
+
id: z.ZodInt;
|
|
847
|
+
newsImageThumbnail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
848
|
+
newsUrlOriginal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
849
|
+
publication: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
850
|
+
publishedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
851
|
+
slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
852
|
+
title: z.ZodString;
|
|
853
|
+
titleMention: z.ZodOptional<z.ZodArray<z.ZodType<{
|
|
854
854
|
end: number;
|
|
855
855
|
entity?: {
|
|
856
856
|
createdAt: string;
|
|
@@ -873,22 +873,7 @@ export declare const EntityDetailSchema: z.ZodObject<{
|
|
|
873
873
|
updatedAt: string;
|
|
874
874
|
} | null | undefined;
|
|
875
875
|
start: number;
|
|
876
|
-
}
|
|
877
|
-
updatedAt?: string | null | undefined;
|
|
878
|
-
}, import("../news/news.ts").NewsSchemaInput, z.core.$ZodTypeInternals<{
|
|
879
|
-
author?: string | null | undefined;
|
|
880
|
-
category?: string | null | undefined;
|
|
881
|
-
createdAt?: string | null | undefined;
|
|
882
|
-
excerpt?: string | null | undefined;
|
|
883
|
-
externalNewsArticle?: boolean | null | undefined;
|
|
884
|
-
id: number;
|
|
885
|
-
newsImageThumbnail?: string | null | undefined;
|
|
886
|
-
newsUrlOriginal?: string | null | undefined;
|
|
887
|
-
publication?: string | null | undefined;
|
|
888
|
-
publishedAt?: string | null | undefined;
|
|
889
|
-
slug?: string | null | undefined;
|
|
890
|
-
title: string;
|
|
891
|
-
titleMention?: {
|
|
876
|
+
}, import("../news/title-mention.ts").NewsTitleMentionSchemaInput, z.core.$ZodTypeInternals<{
|
|
892
877
|
end: number;
|
|
893
878
|
entity?: {
|
|
894
879
|
createdAt: string;
|
|
@@ -911,9 +896,9 @@ export declare const EntityDetailSchema: z.ZodObject<{
|
|
|
911
896
|
updatedAt: string;
|
|
912
897
|
} | null | undefined;
|
|
913
898
|
start: number;
|
|
914
|
-
}
|
|
915
|
-
updatedAt
|
|
916
|
-
},
|
|
899
|
+
}, import("../news/title-mention.ts").NewsTitleMentionSchemaInput>>>>;
|
|
900
|
+
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
901
|
+
}, z.core.$strip>>;
|
|
917
902
|
person: z.ZodArray<z.ZodType<{
|
|
918
903
|
articleCount?: number | null | undefined;
|
|
919
904
|
association: {
|
|
@@ -815,20 +815,20 @@ declare const EntityInvestorParticipationSchemaDefinition: z.ZodObject<{
|
|
|
815
815
|
valuationPostMoney?: number | null | undefined;
|
|
816
816
|
valuationPreMoney?: number | null | undefined;
|
|
817
817
|
}, import("./fundraise-transaction.ts").EntityFundraiseTransactionSchemaInput>>>;
|
|
818
|
-
newsArticle: z.ZodArray<z.
|
|
819
|
-
author
|
|
820
|
-
category
|
|
821
|
-
createdAt
|
|
822
|
-
excerpt
|
|
823
|
-
externalNewsArticle
|
|
824
|
-
id:
|
|
825
|
-
newsImageThumbnail
|
|
826
|
-
newsUrlOriginal
|
|
827
|
-
publication
|
|
828
|
-
publishedAt
|
|
829
|
-
slug
|
|
830
|
-
title:
|
|
831
|
-
titleMention
|
|
818
|
+
newsArticle: z.ZodArray<z.ZodObject<{
|
|
819
|
+
author: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
820
|
+
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
821
|
+
createdAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
822
|
+
excerpt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
823
|
+
externalNewsArticle: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
824
|
+
id: z.ZodInt;
|
|
825
|
+
newsImageThumbnail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
826
|
+
newsUrlOriginal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
827
|
+
publication: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
828
|
+
publishedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
829
|
+
slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
830
|
+
title: z.ZodString;
|
|
831
|
+
titleMention: z.ZodOptional<z.ZodArray<z.ZodType<{
|
|
832
832
|
end: number;
|
|
833
833
|
entity?: {
|
|
834
834
|
createdAt: string;
|
|
@@ -851,22 +851,7 @@ declare const EntityInvestorParticipationSchemaDefinition: z.ZodObject<{
|
|
|
851
851
|
updatedAt: string;
|
|
852
852
|
} | null | undefined;
|
|
853
853
|
start: number;
|
|
854
|
-
}
|
|
855
|
-
updatedAt?: string | null | undefined;
|
|
856
|
-
}, import("../news/news.ts").NewsSchemaInput, z.core.$ZodTypeInternals<{
|
|
857
|
-
author?: string | null | undefined;
|
|
858
|
-
category?: string | null | undefined;
|
|
859
|
-
createdAt?: string | null | undefined;
|
|
860
|
-
excerpt?: string | null | undefined;
|
|
861
|
-
externalNewsArticle?: boolean | null | undefined;
|
|
862
|
-
id: number;
|
|
863
|
-
newsImageThumbnail?: string | null | undefined;
|
|
864
|
-
newsUrlOriginal?: string | null | undefined;
|
|
865
|
-
publication?: string | null | undefined;
|
|
866
|
-
publishedAt?: string | null | undefined;
|
|
867
|
-
slug?: string | null | undefined;
|
|
868
|
-
title: string;
|
|
869
|
-
titleMention?: {
|
|
854
|
+
}, import("../news/title-mention.ts").NewsTitleMentionSchemaInput, z.core.$ZodTypeInternals<{
|
|
870
855
|
end: number;
|
|
871
856
|
entity?: {
|
|
872
857
|
createdAt: string;
|
|
@@ -889,9 +874,9 @@ declare const EntityInvestorParticipationSchemaDefinition: z.ZodObject<{
|
|
|
889
874
|
updatedAt: string;
|
|
890
875
|
} | null | undefined;
|
|
891
876
|
start: number;
|
|
892
|
-
}
|
|
893
|
-
updatedAt
|
|
894
|
-
},
|
|
877
|
+
}, import("../news/title-mention.ts").NewsTitleMentionSchemaInput>>>>;
|
|
878
|
+
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
879
|
+
}, z.core.$strip>>;
|
|
895
880
|
person: z.ZodArray<z.ZodType<{
|
|
896
881
|
articleCount?: number | null | undefined;
|
|
897
882
|
association: {
|
|
@@ -824,20 +824,20 @@ export declare const EntityResolutionSchema: z.ZodObject<{
|
|
|
824
824
|
valuationPostMoney?: number | null | undefined;
|
|
825
825
|
valuationPreMoney?: number | null | undefined;
|
|
826
826
|
}, import("./fundraise-transaction.ts").EntityFundraiseTransactionSchemaInput>>>;
|
|
827
|
-
newsArticle: z.ZodArray<z.
|
|
828
|
-
author
|
|
829
|
-
category
|
|
830
|
-
createdAt
|
|
831
|
-
excerpt
|
|
832
|
-
externalNewsArticle
|
|
833
|
-
id:
|
|
834
|
-
newsImageThumbnail
|
|
835
|
-
newsUrlOriginal
|
|
836
|
-
publication
|
|
837
|
-
publishedAt
|
|
838
|
-
slug
|
|
839
|
-
title:
|
|
840
|
-
titleMention
|
|
827
|
+
newsArticle: z.ZodArray<z.ZodObject<{
|
|
828
|
+
author: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
829
|
+
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
830
|
+
createdAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
831
|
+
excerpt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
832
|
+
externalNewsArticle: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
833
|
+
id: z.ZodInt;
|
|
834
|
+
newsImageThumbnail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
835
|
+
newsUrlOriginal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
836
|
+
publication: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
837
|
+
publishedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
838
|
+
slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
839
|
+
title: z.ZodString;
|
|
840
|
+
titleMention: z.ZodOptional<z.ZodArray<z.ZodType<{
|
|
841
841
|
end: number;
|
|
842
842
|
entity?: {
|
|
843
843
|
createdAt: string;
|
|
@@ -860,22 +860,7 @@ export declare const EntityResolutionSchema: z.ZodObject<{
|
|
|
860
860
|
updatedAt: string;
|
|
861
861
|
} | null | undefined;
|
|
862
862
|
start: number;
|
|
863
|
-
}
|
|
864
|
-
updatedAt?: string | null | undefined;
|
|
865
|
-
}, import("../news/news.ts").NewsSchemaInput, z.core.$ZodTypeInternals<{
|
|
866
|
-
author?: string | null | undefined;
|
|
867
|
-
category?: string | null | undefined;
|
|
868
|
-
createdAt?: string | null | undefined;
|
|
869
|
-
excerpt?: string | null | undefined;
|
|
870
|
-
externalNewsArticle?: boolean | null | undefined;
|
|
871
|
-
id: number;
|
|
872
|
-
newsImageThumbnail?: string | null | undefined;
|
|
873
|
-
newsUrlOriginal?: string | null | undefined;
|
|
874
|
-
publication?: string | null | undefined;
|
|
875
|
-
publishedAt?: string | null | undefined;
|
|
876
|
-
slug?: string | null | undefined;
|
|
877
|
-
title: string;
|
|
878
|
-
titleMention?: {
|
|
863
|
+
}, import("../news/title-mention.ts").NewsTitleMentionSchemaInput, z.core.$ZodTypeInternals<{
|
|
879
864
|
end: number;
|
|
880
865
|
entity?: {
|
|
881
866
|
createdAt: string;
|
|
@@ -898,9 +883,9 @@ export declare const EntityResolutionSchema: z.ZodObject<{
|
|
|
898
883
|
updatedAt: string;
|
|
899
884
|
} | null | undefined;
|
|
900
885
|
start: number;
|
|
901
|
-
}
|
|
902
|
-
updatedAt
|
|
903
|
-
},
|
|
886
|
+
}, import("../news/title-mention.ts").NewsTitleMentionSchemaInput>>>>;
|
|
887
|
+
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
888
|
+
}, z.core.$strip>>;
|
|
904
889
|
person: z.ZodArray<z.ZodType<{
|
|
905
890
|
articleCount?: number | null | undefined;
|
|
906
891
|
association: {
|
package/dist/entity/text.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ declare const EntityTextSchemaDefinition: z.ZodObject<{
|
|
|
7
7
|
wordCount: z.ZodInt;
|
|
8
8
|
}, z.core.$strip>>>;
|
|
9
9
|
createdAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
10
|
+
expandedText: z.ZodOptional<z.ZodNullable<z.ZodObject</*elided*/ any, z.core.$strip>>>;
|
|
10
11
|
expandedTextId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
11
12
|
id: z.ZodInt;
|
|
12
13
|
isCurrent: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
package/dist/entity/text.js
CHANGED
|
@@ -6,6 +6,10 @@ const EntityTextSchemaDefinition = z.object({
|
|
|
6
6
|
/** Derived character/word counts and governed-contract compliance for this text row; null when not evaluated. */
|
|
7
7
|
compliance: ContentComplianceSchema.nullish(),
|
|
8
8
|
createdAt: z.iso.datetime({ offset: true }).nullish(),
|
|
9
|
+
/** Expanded row written with this summary by expandedWriterBrief, including its compliance. Null when this response does not represent a paired create. */
|
|
10
|
+
get expandedText() {
|
|
11
|
+
return EntityTextSchemaDefinition.nullish();
|
|
12
|
+
},
|
|
9
13
|
/** Id of the expanded row a summary create wrote in the same transaction from expandedWriterBrief; read it at GET /v1/entities/{entityId}/texts/{textId}. Null on every other response. */
|
|
10
14
|
expandedTextId: z.int().nullish(),
|
|
11
15
|
/** Type-safe identifier for text records */
|