@inflexa-ai/harness 0.35.8 → 0.36.1
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/auth/types.d.ts +5 -14
- package/dist/auth/types.js +3 -10
- package/dist/billing/usage-recorder.d.ts +1 -1
- package/dist/contracts/analogy-report.d.ts +1 -1
- package/dist/contracts/analogy-report.js +1 -1
- package/dist/contracts/chat-parts.d.ts +2 -3
- package/dist/contracts/index.d.ts +0 -4
- package/dist/contracts/index.js +0 -2
- package/dist/index.d.ts +0 -7
- package/dist/index.js +0 -21
- package/dist/lib/metrics.d.ts +1 -1
- package/dist/lib/otel-spans.d.ts +0 -2
- package/dist/lib/otel-spans.js +0 -2
- package/dist/loop/genai-spans.d.ts +14 -0
- package/dist/loop/genai-spans.js +35 -0
- package/dist/loop/run-agent.d.ts +1 -1
- package/dist/loop/run-agent.js +37 -4
- package/dist/runtime/assemble.d.ts +0 -3
- package/dist/runtime/assemble.js +0 -3
- package/dist/state/index.d.ts +0 -2
- package/dist/state/index.js +0 -1
- package/dist/state/init.js +1 -60
- package/dist/state/purge-analysis.d.ts +1 -2
- package/dist/state/purge-analysis.js +1 -2
- package/dist/tasks/regulatory-corpus-boot-refresh.js +1 -1
- package/dist/tools/bio/gene-preclinical-profile.d.ts +1 -3
- package/dist/tools/bio/gene-preclinical-profile.js +1 -3
- package/dist/tools/lib/chembl-client.d.ts +1 -4
- package/dist/tools/lib/chembl-client.js +1 -4
- package/dist/tools/lib/clinical-benchmarks-client.d.ts +1 -1
- package/dist/tools/lib/clinical-benchmarks-client.js +1 -1
- package/dist/tools/lib/clinical-trials-client.d.ts +0 -3
- package/dist/tools/lib/clinical-trials-client.js +0 -3
- package/dist/tools/lib/identifier-resolver.d.ts +5 -7
- package/dist/tools/lib/identifier-resolver.js +5 -7
- package/dist/tools/lib/iuphar-client.d.ts +1 -3
- package/dist/tools/lib/iuphar-client.js +1 -3
- package/dist/tools/lib/opentargets-client.d.ts +1 -1
- package/dist/tools/lib/opentargets-client.js +1 -1
- package/dist/tools/lib/protein-family-normalize.d.ts +5 -7
- package/dist/tools/lib/protein-family-normalize.js +5 -7
- package/dist/tools/lib/uniprot-client.d.ts +0 -7
- package/dist/tools/lib/uniprot-client.js +2 -9
- package/package.json +1 -1
- package/dist/contracts/target-assessment-row.d.ts +0 -85
- package/dist/contracts/target-assessment-row.js +0 -37
- package/dist/contracts/target-dossier.d.ts +0 -12423
- package/dist/contracts/target-dossier.js +0 -1282
- package/dist/prompts/target-assessment/briefs/executive-recommendation.d.ts +0 -1
- package/dist/prompts/target-assessment/briefs/executive-recommendation.js +0 -85
- package/dist/prompts/target-assessment/briefs/index.d.ts +0 -4
- package/dist/prompts/target-assessment/briefs/index.js +0 -4
- package/dist/prompts/target-assessment/briefs/liability-bullets.d.ts +0 -1
- package/dist/prompts/target-assessment/briefs/liability-bullets.js +0 -114
- package/dist/prompts/target-assessment/briefs/target-organ-liabilities.d.ts +0 -1
- package/dist/prompts/target-assessment/briefs/target-organ-liabilities.js +0 -37
- package/dist/prompts/target-assessment/briefs/translational-commentary.d.ts +0 -1
- package/dist/prompts/target-assessment/briefs/translational-commentary.js +0 -23
- package/dist/prompts/target-assessment/drugs-in-class.d.ts +0 -1
- package/dist/prompts/target-assessment/drugs-in-class.js +0 -29
- package/dist/prompts/target-assessment/investigation/adversarial-critique.d.ts +0 -1
- package/dist/prompts/target-assessment/investigation/adversarial-critique.js +0 -67
- package/dist/prompts/target-assessment/investigation/claim-reverification.d.ts +0 -1
- package/dist/prompts/target-assessment/investigation/claim-reverification.js +0 -49
- package/dist/prompts/target-assessment/investigation/index.d.ts +0 -3
- package/dist/prompts/target-assessment/investigation/index.js +0 -3
- package/dist/prompts/target-assessment/investigation/mechanism-proposal.d.ts +0 -1
- package/dist/prompts/target-assessment/investigation/mechanism-proposal.js +0 -49
- package/dist/prompts/target-assessment/modulator-triage.d.ts +0 -1
- package/dist/prompts/target-assessment/modulator-triage.js +0 -31
- package/dist/prompts/target-assessment/off-target-annotator.d.ts +0 -1
- package/dist/prompts/target-assessment/off-target-annotator.js +0 -28
- package/dist/prompts/target-assessment/tox-voice/core.d.ts +0 -1
- package/dist/prompts/target-assessment/tox-voice/core.js +0 -74
- package/dist/prompts/target-assessment/tox-voice/critique.d.ts +0 -7
- package/dist/prompts/target-assessment/tox-voice/critique.js +0 -109
- package/dist/prompts/target-assessment/tox-voice/exemplars.d.ts +0 -8
- package/dist/prompts/target-assessment/tox-voice/exemplars.js +0 -24
- package/dist/prompts/target-assessment/tox-voice/index.d.ts +0 -4
- package/dist/prompts/target-assessment/tox-voice/index.js +0 -4
- package/dist/prompts/target-assessment/tox-voice/vocabulary.d.ts +0 -18
- package/dist/prompts/target-assessment/tox-voice/vocabulary.js +0 -61
- package/dist/state/target-assessments.d.ts +0 -68
- package/dist/state/target-assessments.js +0 -222
- package/dist/workflows/execute-target-assessment.d.ts +0 -118
- package/dist/workflows/execute-target-assessment.js +0 -631
- package/dist/workflows/target-assessment/assemblers/index.d.ts +0 -5
- package/dist/workflows/target-assessment/assemblers/index.js +0 -4
- package/dist/workflows/target-assessment/assemblers/literature.d.ts +0 -281
- package/dist/workflows/target-assessment/assemblers/literature.js +0 -971
- package/dist/workflows/target-assessment/assemblers/orchestrator.d.ts +0 -118
- package/dist/workflows/target-assessment/assemblers/orchestrator.js +0 -945
- package/dist/workflows/target-assessment/assemblers/safety.d.ts +0 -374
- package/dist/workflows/target-assessment/assemblers/safety.js +0 -1068
- package/dist/workflows/target-assessment/assemblers/trials.d.ts +0 -30
- package/dist/workflows/target-assessment/assemblers/trials.js +0 -75
- package/dist/workflows/target-assessment/collectors/index.d.ts +0 -114
- package/dist/workflows/target-assessment/collectors/index.js +0 -538
- package/dist/workflows/target-assessment/coverage.d.ts +0 -97
- package/dist/workflows/target-assessment/coverage.js +0 -86
- package/dist/workflows/target-assessment/decisions/index.d.ts +0 -86
- package/dist/workflows/target-assessment/decisions/index.js +0 -127
- package/dist/workflows/target-assessment/fanout/index.d.ts +0 -32
- package/dist/workflows/target-assessment/fanout/index.js +0 -156
- package/dist/workflows/target-assessment/investigation/index.d.ts +0 -97
- package/dist/workflows/target-assessment/investigation/index.js +0 -419
- package/dist/workflows/target-assessment/lib/approval-precedents.d.ts +0 -73
- package/dist/workflows/target-assessment/lib/approval-precedents.js +0 -185
- package/dist/workflows/target-assessment/lib/citation-validator.d.ts +0 -46
- package/dist/workflows/target-assessment/lib/citation-validator.js +0 -316
- package/dist/workflows/target-assessment/lib/clinical-consequence-annotator.d.ts +0 -65
- package/dist/workflows/target-assessment/lib/clinical-consequence-annotator.js +0 -174
- package/dist/workflows/target-assessment/lib/clinical-evidence-attribution.d.ts +0 -44
- package/dist/workflows/target-assessment/lib/clinical-evidence-attribution.js +0 -152
- package/dist/workflows/target-assessment/lib/compute-derived.d.ts +0 -20
- package/dist/workflows/target-assessment/lib/compute-derived.js +0 -261
- package/dist/workflows/target-assessment/lib/compute-selectivity.d.ts +0 -15
- package/dist/workflows/target-assessment/lib/compute-selectivity.js +0 -18
- package/dist/workflows/target-assessment/lib/dedup-modulators.d.ts +0 -37
- package/dist/workflows/target-assessment/lib/dedup-modulators.js +0 -157
- package/dist/workflows/target-assessment/lib/evidence-conflict-detector.d.ts +0 -17
- package/dist/workflows/target-assessment/lib/evidence-conflict-detector.js +0 -100
- package/dist/workflows/target-assessment/lib/expression-constants.d.ts +0 -21
- package/dist/workflows/target-assessment/lib/expression-constants.js +0 -21
- package/dist/workflows/target-assessment/lib/family-complex-supplement.d.ts +0 -20
- package/dist/workflows/target-assessment/lib/family-complex-supplement.js +0 -36
- package/dist/workflows/target-assessment/lib/fda-label-safety.d.ts +0 -72
- package/dist/workflows/target-assessment/lib/fda-label-safety.js +0 -166
- package/dist/workflows/target-assessment/lib/heterodimer-filter.d.ts +0 -30
- package/dist/workflows/target-assessment/lib/heterodimer-filter.js +0 -44
- package/dist/workflows/target-assessment/lib/hpo-organ-map.d.ts +0 -34
- package/dist/workflows/target-assessment/lib/hpo-organ-map.js +0 -63
- package/dist/workflows/target-assessment/lib/impc-organ-map.d.ts +0 -19
- package/dist/workflows/target-assessment/lib/impc-organ-map.js +0 -39
- package/dist/workflows/target-assessment/lib/intended-polypharm-filter.d.ts +0 -4
- package/dist/workflows/target-assessment/lib/intended-polypharm-filter.js +0 -24
- package/dist/workflows/target-assessment/lib/llm-step.d.ts +0 -80
- package/dist/workflows/target-assessment/lib/llm-step.js +0 -101
- package/dist/workflows/target-assessment/lib/meddra-organ-map.d.ts +0 -40
- package/dist/workflows/target-assessment/lib/meddra-organ-map.js +0 -138
- package/dist/workflows/target-assessment/lib/recommendation-quality-gates.d.ts +0 -17
- package/dist/workflows/target-assessment/lib/recommendation-quality-gates.js +0 -99
- package/dist/workflows/target-assessment/lib/recommendation-sanitizer.d.ts +0 -2
- package/dist/workflows/target-assessment/lib/recommendation-sanitizer.js +0 -51
- package/dist/workflows/target-assessment/lib/regulatory-actions.d.ts +0 -25
- package/dist/workflows/target-assessment/lib/regulatory-actions.js +0 -176
- package/dist/workflows/target-assessment/lib/safety-corroboration.d.ts +0 -44
- package/dist/workflows/target-assessment/lib/safety-corroboration.js +0 -273
- package/dist/workflows/target-assessment/lib/structured-llm.d.ts +0 -61
- package/dist/workflows/target-assessment/lib/structured-llm.js +0 -102
- package/dist/workflows/target-assessment/lib/target-identity-filter.d.ts +0 -59
- package/dist/workflows/target-assessment/lib/target-identity-filter.js +0 -95
- package/dist/workflows/target-assessment/lib/therapeutic-programs.d.ts +0 -20
- package/dist/workflows/target-assessment/lib/therapeutic-programs.js +0 -68
- package/dist/workflows/target-assessment/metrics.d.ts +0 -16
- package/dist/workflows/target-assessment/metrics.js +0 -30
- package/dist/workflows/target-assessment/phase4-assemble.d.ts +0 -3182
- package/dist/workflows/target-assessment/phase4-assemble.js +0 -39
- package/dist/workflows/target-assessment/phase5-persist.d.ts +0 -59
- package/dist/workflows/target-assessment/phase5-persist.js +0 -349
- package/dist/workflows/target-assessment/progress-stream.d.ts +0 -75
- package/dist/workflows/target-assessment/progress-stream.js +0 -110
- package/dist/workflows/target-assessment/progress.d.ts +0 -39
- package/dist/workflows/target-assessment/progress.js +0 -77
- package/dist/workflows/target-assessment/schemas.d.ts +0 -970
- package/dist/workflows/target-assessment/schemas.js +0 -318
- package/dist/workflows/target-assessment/steps/collectors/pathways.d.ts +0 -15
- package/dist/workflows/target-assessment/steps/collectors/pathways.js +0 -58
- package/dist/workflows/target-assessment/steps/fanout/aes-for-one-class-drug-step.d.ts +0 -34
- package/dist/workflows/target-assessment/steps/fanout/aes-for-one-class-drug-step.js +0 -31
- package/dist/workflows/target-assessment/steps/fanout/aes-for-one-trial-step.d.ts +0 -57
- package/dist/workflows/target-assessment/steps/fanout/aes-for-one-trial-step.js +0 -54
- package/dist/workflows/target-assessment/steps/fanout/faers-for-one-modulator-step.d.ts +0 -35
- package/dist/workflows/target-assessment/steps/fanout/faers-for-one-modulator-step.js +0 -32
- package/dist/workflows/target-assessment/steps/fanout/index.d.ts +0 -14
- package/dist/workflows/target-assessment/steps/fanout/index.js +0 -10
- package/dist/workflows/target-assessment/steps/fanout/polypharm-for-one-modulator-step.d.ts +0 -29
- package/dist/workflows/target-assessment/steps/fanout/polypharm-for-one-modulator-step.js +0 -29
- package/dist/workflows/target-assessment/steps/phase2-aggregate.d.ts +0 -657
- package/dist/workflows/target-assessment/steps/phase2-aggregate.js +0 -34
- package/dist/workflows/target-assessment/steps/phase3-aggregate.d.ts +0 -806
- package/dist/workflows/target-assessment/steps/phase3-aggregate.js +0 -16
- package/dist/workflows/target-assessment/steps/synthesis/diagnostics.d.ts +0 -28
- package/dist/workflows/target-assessment/steps/synthesis/diagnostics.js +0 -27
- package/dist/workflows/target-assessment/sub-workflows/index.d.ts +0 -15
- package/dist/workflows/target-assessment/sub-workflows/index.js +0 -11
- package/dist/workflows/target-assessment/sub-workflows/per-class-drug-aes.d.ts +0 -41
- package/dist/workflows/target-assessment/sub-workflows/per-class-drug-aes.js +0 -12
- package/dist/workflows/target-assessment/sub-workflows/per-modulator-faers.d.ts +0 -41
- package/dist/workflows/target-assessment/sub-workflows/per-modulator-faers.js +0 -12
- package/dist/workflows/target-assessment/sub-workflows/per-modulator-polypharm.d.ts +0 -37
- package/dist/workflows/target-assessment/sub-workflows/per-modulator-polypharm.js +0 -12
- package/dist/workflows/target-assessment/sub-workflows/per-trial-aes.d.ts +0 -66
- package/dist/workflows/target-assessment/sub-workflows/per-trial-aes.js +0 -12
- package/dist/workflows/target-assessment/synthesis/index.d.ts +0 -607
- package/dist/workflows/target-assessment/synthesis/index.js +0 -354
- package/dist/workflows/target-assessment/synthesis-probes.d.ts +0 -56
- package/dist/workflows/target-assessment/synthesis-probes.js +0 -320
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Phase 3 aggregator — schema definitions retained for downstream
|
|
3
|
-
* type-checking. The DBOS workflow assembles the Phase-3 bundle inline.
|
|
4
|
-
*/
|
|
5
|
-
import { z } from "zod";
|
|
6
|
-
import { Phase2BundleSchema } from "./phase2-aggregate.js";
|
|
7
|
-
import { PerModulatorFaersResultsSchema, PerTrialAEsResultsSchema, PerModulatorPolypharmResultsSchema, PerClassDrugAEsResultsSchema, } from "../sub-workflows/index.js";
|
|
8
|
-
export const Phase3BundleSchema = z.object({
|
|
9
|
-
phase2: Phase2BundleSchema,
|
|
10
|
-
fanout: z.object({
|
|
11
|
-
perModulatorFaers: PerModulatorFaersResultsSchema,
|
|
12
|
-
perTrialAes: PerTrialAEsResultsSchema,
|
|
13
|
-
perModulatorPolypharm: PerModulatorPolypharmResultsSchema,
|
|
14
|
-
perClassDrugAes: PerClassDrugAEsResultsSchema,
|
|
15
|
-
}),
|
|
16
|
-
});
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Synthesis diagnostics row builder.
|
|
3
|
-
*
|
|
4
|
-
* Each Phase-5 synthesis step accumulates a single
|
|
5
|
-
* `SynthesisDiagnosticRow` describing its attempt history (model id,
|
|
6
|
-
* attempts, retry critique, output length, probe verdict, final
|
|
7
|
-
* coverage). Phase-5 persist collects the four rows and stamps them
|
|
8
|
-
* into `dossier.analytics.synthesis_diagnostics`.
|
|
9
|
-
*
|
|
10
|
-
* Diagnostics persist even when synthesis fails — that is the point.
|
|
11
|
-
* A reader who sees `executive_recommendation.coverage = queried_no_data`
|
|
12
|
-
* with `error.kind = synthesis-too-shallow` can open the diagnostics
|
|
13
|
-
* row to see exactly which probe rejected the output and why.
|
|
14
|
-
*/
|
|
15
|
-
import type { SynthesisDiagnosticRow } from "@inflexa-ai/harness/contracts/target-dossier.js";
|
|
16
|
-
import type { ProbeResult } from "../../synthesis-probes.js";
|
|
17
|
-
export type StepId = SynthesisDiagnosticRow["step_id"];
|
|
18
|
-
export interface BuildDiagnosticsRowInput {
|
|
19
|
-
stepId: StepId;
|
|
20
|
-
modelId: string;
|
|
21
|
-
attemptCount: 1 | 2;
|
|
22
|
-
retryCritique: string | null;
|
|
23
|
-
finalProbe: ProbeResult;
|
|
24
|
-
finalCoverage: "available" | "queried_no_data";
|
|
25
|
-
errorKind?: "synthesis-too-shallow" | "synthesis-unavailable" | "voice-violation" | null;
|
|
26
|
-
errorMessage?: string | null;
|
|
27
|
-
}
|
|
28
|
-
export declare function buildDiagnosticsRow(input: BuildDiagnosticsRowInput): SynthesisDiagnosticRow;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Synthesis diagnostics row builder.
|
|
3
|
-
*
|
|
4
|
-
* Each Phase-5 synthesis step accumulates a single
|
|
5
|
-
* `SynthesisDiagnosticRow` describing its attempt history (model id,
|
|
6
|
-
* attempts, retry critique, output length, probe verdict, final
|
|
7
|
-
* coverage). Phase-5 persist collects the four rows and stamps them
|
|
8
|
-
* into `dossier.analytics.synthesis_diagnostics`.
|
|
9
|
-
*
|
|
10
|
-
* Diagnostics persist even when synthesis fails — that is the point.
|
|
11
|
-
* A reader who sees `executive_recommendation.coverage = queried_no_data`
|
|
12
|
-
* with `error.kind = synthesis-too-shallow` can open the diagnostics
|
|
13
|
-
* row to see exactly which probe rejected the output and why.
|
|
14
|
-
*/
|
|
15
|
-
export function buildDiagnosticsRow(input) {
|
|
16
|
-
return {
|
|
17
|
-
step_id: input.stepId,
|
|
18
|
-
model_id: input.modelId,
|
|
19
|
-
attempt_count: input.attemptCount,
|
|
20
|
-
retry_critique: input.retryCritique,
|
|
21
|
-
output_chars: input.finalProbe.output_chars,
|
|
22
|
-
probe_verdict: input.finalProbe.verdict,
|
|
23
|
-
final_coverage: input.finalCoverage,
|
|
24
|
-
error_kind: input.errorKind ?? null,
|
|
25
|
-
error_message: input.errorMessage ?? null,
|
|
26
|
-
};
|
|
27
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Phase-3 fan-out result schemas.
|
|
3
|
-
*
|
|
4
|
-
* The DBOS workflow body owns the fan-out itself (`.foreach` is replaced by
|
|
5
|
-
* inline `Promise.all` over `DBOS.runStep`); this module re-exports each
|
|
6
|
-
* sub-workflow's result schema.
|
|
7
|
-
*/
|
|
8
|
-
export { PerModulatorFaersResultsSchema } from "./per-modulator-faers.js";
|
|
9
|
-
export type { PerModulatorFaersResults } from "./per-modulator-faers.js";
|
|
10
|
-
export { PerTrialAEsResultsSchema } from "./per-trial-aes.js";
|
|
11
|
-
export type { PerTrialAEsResults } from "./per-trial-aes.js";
|
|
12
|
-
export { PerModulatorPolypharmResultsSchema } from "./per-modulator-polypharm.js";
|
|
13
|
-
export type { PerModulatorPolypharmResults } from "./per-modulator-polypharm.js";
|
|
14
|
-
export { PerClassDrugAEsResultsSchema } from "./per-class-drug-aes.js";
|
|
15
|
-
export type { PerClassDrugAEsResults } from "./per-class-drug-aes.js";
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Phase-3 fan-out result schemas.
|
|
3
|
-
*
|
|
4
|
-
* The DBOS workflow body owns the fan-out itself (`.foreach` is replaced by
|
|
5
|
-
* inline `Promise.all` over `DBOS.runStep`); this module re-exports each
|
|
6
|
-
* sub-workflow's result schema.
|
|
7
|
-
*/
|
|
8
|
-
export { PerModulatorFaersResultsSchema } from "./per-modulator-faers.js";
|
|
9
|
-
export { PerTrialAEsResultsSchema } from "./per-trial-aes.js";
|
|
10
|
-
export { PerModulatorPolypharmResultsSchema } from "./per-modulator-polypharm.js";
|
|
11
|
-
export { PerClassDrugAEsResultsSchema } from "./per-class-drug-aes.js";
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Per-class-drug AEs — Phase-3 fan-out result schema.
|
|
3
|
-
*
|
|
4
|
-
* The DBOS workflow body drives the `.foreach` fan-out itself; this module
|
|
5
|
-
* is kept for its result schema.
|
|
6
|
-
*/
|
|
7
|
-
import { z } from "zod";
|
|
8
|
-
export declare const PerClassDrugAEsResultsSchema: z.ZodObject<{
|
|
9
|
-
results: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
10
|
-
coverage: z.ZodLiteral<"available">;
|
|
11
|
-
data: z.ZodObject<{
|
|
12
|
-
moleculeChemblId: z.ZodString;
|
|
13
|
-
preferredName: z.ZodString;
|
|
14
|
-
totalReports: z.ZodNullable<z.ZodNumber>;
|
|
15
|
-
topReactions: z.ZodArray<z.ZodObject<{
|
|
16
|
-
reaction: z.ZodString;
|
|
17
|
-
count: z.ZodNumber;
|
|
18
|
-
}, z.core.$strip>>;
|
|
19
|
-
seriousness: z.ZodNullable<z.ZodObject<{
|
|
20
|
-
totalReports: z.ZodNumber;
|
|
21
|
-
fatalCount: z.ZodNumber;
|
|
22
|
-
hospitalizationCount: z.ZodNumber;
|
|
23
|
-
lifeThreateningCount: z.ZodNumber;
|
|
24
|
-
disablingCount: z.ZodNumber;
|
|
25
|
-
congenitalAnomalyCount: z.ZodDefault<z.ZodNumber>;
|
|
26
|
-
otherSeriousCount: z.ZodDefault<z.ZodNumber>;
|
|
27
|
-
}, z.core.$strip>>;
|
|
28
|
-
}, z.core.$strip>;
|
|
29
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
30
|
-
coverage: z.ZodLiteral<"queried_no_data">;
|
|
31
|
-
error: z.ZodOptional<z.ZodObject<{
|
|
32
|
-
message: z.ZodString;
|
|
33
|
-
name: z.ZodOptional<z.ZodString>;
|
|
34
|
-
stack: z.ZodOptional<z.ZodString>;
|
|
35
|
-
}, z.core.$strip>>;
|
|
36
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
37
|
-
coverage: z.ZodLiteral<"not_loaded">;
|
|
38
|
-
reason: z.ZodOptional<z.ZodString>;
|
|
39
|
-
}, z.core.$strip>], "coverage">>;
|
|
40
|
-
}, z.core.$strip>;
|
|
41
|
-
export type PerClassDrugAEsResults = z.infer<typeof PerClassDrugAEsResultsSchema>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Per-class-drug AEs — Phase-3 fan-out result schema.
|
|
3
|
-
*
|
|
4
|
-
* The DBOS workflow body drives the `.foreach` fan-out itself; this module
|
|
5
|
-
* is kept for its result schema.
|
|
6
|
-
*/
|
|
7
|
-
import { z } from "zod";
|
|
8
|
-
import { PerClassDrugAEsItemSchema } from "../steps/fanout/index.js";
|
|
9
|
-
import { withCoverage } from "../coverage.js";
|
|
10
|
-
export const PerClassDrugAEsResultsSchema = z.object({
|
|
11
|
-
results: z.array(withCoverage(PerClassDrugAEsItemSchema)),
|
|
12
|
-
});
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Per-modulator FAERS — Phase-3 fan-out result schema.
|
|
3
|
-
*
|
|
4
|
-
* The DBOS workflow body drives the `.foreach` fan-out itself; this module
|
|
5
|
-
* is kept for its result schema.
|
|
6
|
-
*/
|
|
7
|
-
import { z } from "zod";
|
|
8
|
-
export declare const PerModulatorFaersResultsSchema: z.ZodObject<{
|
|
9
|
-
results: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
10
|
-
coverage: z.ZodLiteral<"available">;
|
|
11
|
-
data: z.ZodObject<{
|
|
12
|
-
moleculeChemblId: z.ZodString;
|
|
13
|
-
preferredName: z.ZodString;
|
|
14
|
-
totalReports: z.ZodNullable<z.ZodNumber>;
|
|
15
|
-
topReactions: z.ZodArray<z.ZodObject<{
|
|
16
|
-
reaction: z.ZodString;
|
|
17
|
-
count: z.ZodNumber;
|
|
18
|
-
}, z.core.$strip>>;
|
|
19
|
-
seriousness: z.ZodNullable<z.ZodObject<{
|
|
20
|
-
totalReports: z.ZodNumber;
|
|
21
|
-
fatalCount: z.ZodNumber;
|
|
22
|
-
hospitalizationCount: z.ZodNumber;
|
|
23
|
-
lifeThreateningCount: z.ZodNumber;
|
|
24
|
-
disablingCount: z.ZodNumber;
|
|
25
|
-
congenitalAnomalyCount: z.ZodDefault<z.ZodNumber>;
|
|
26
|
-
otherSeriousCount: z.ZodDefault<z.ZodNumber>;
|
|
27
|
-
}, z.core.$strip>>;
|
|
28
|
-
}, z.core.$strip>;
|
|
29
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
30
|
-
coverage: z.ZodLiteral<"queried_no_data">;
|
|
31
|
-
error: z.ZodOptional<z.ZodObject<{
|
|
32
|
-
message: z.ZodString;
|
|
33
|
-
name: z.ZodOptional<z.ZodString>;
|
|
34
|
-
stack: z.ZodOptional<z.ZodString>;
|
|
35
|
-
}, z.core.$strip>>;
|
|
36
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
37
|
-
coverage: z.ZodLiteral<"not_loaded">;
|
|
38
|
-
reason: z.ZodOptional<z.ZodString>;
|
|
39
|
-
}, z.core.$strip>], "coverage">>;
|
|
40
|
-
}, z.core.$strip>;
|
|
41
|
-
export type PerModulatorFaersResults = z.infer<typeof PerModulatorFaersResultsSchema>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Per-modulator FAERS — Phase-3 fan-out result schema.
|
|
3
|
-
*
|
|
4
|
-
* The DBOS workflow body drives the `.foreach` fan-out itself; this module
|
|
5
|
-
* is kept for its result schema.
|
|
6
|
-
*/
|
|
7
|
-
import { z } from "zod";
|
|
8
|
-
import { PerModulatorFaersItemSchema } from "../steps/fanout/index.js";
|
|
9
|
-
import { withCoverage } from "../coverage.js";
|
|
10
|
-
export const PerModulatorFaersResultsSchema = z.object({
|
|
11
|
-
results: z.array(withCoverage(PerModulatorFaersItemSchema)),
|
|
12
|
-
});
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Per-modulator polypharmacology — Phase-3 fan-out result schema.
|
|
3
|
-
*
|
|
4
|
-
* The DBOS workflow body drives the `.foreach` fan-out itself; this module
|
|
5
|
-
* is kept for its result schema.
|
|
6
|
-
*/
|
|
7
|
-
import { z } from "zod";
|
|
8
|
-
export declare const PerModulatorPolypharmResultsSchema: z.ZodObject<{
|
|
9
|
-
results: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
10
|
-
coverage: z.ZodLiteral<"available">;
|
|
11
|
-
data: z.ZodObject<{
|
|
12
|
-
moleculeChemblId: z.ZodString;
|
|
13
|
-
preferredName: z.ZodString;
|
|
14
|
-
primaryPchembl: z.ZodNullable<z.ZodNumber>;
|
|
15
|
-
hits: z.ZodArray<z.ZodObject<{
|
|
16
|
-
targetChemblId: z.ZodString;
|
|
17
|
-
targetName: z.ZodNullable<z.ZodString>;
|
|
18
|
-
assayChemblId: z.ZodNullable<z.ZodString>;
|
|
19
|
-
pchemblValue: z.ZodNullable<z.ZodNumber>;
|
|
20
|
-
standardType: z.ZodNullable<z.ZodString>;
|
|
21
|
-
standardValue: z.ZodNullable<z.ZodNumber>;
|
|
22
|
-
standardUnits: z.ZodNullable<z.ZodString>;
|
|
23
|
-
}, z.core.$strip>>;
|
|
24
|
-
}, z.core.$strip>;
|
|
25
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
26
|
-
coverage: z.ZodLiteral<"queried_no_data">;
|
|
27
|
-
error: z.ZodOptional<z.ZodObject<{
|
|
28
|
-
message: z.ZodString;
|
|
29
|
-
name: z.ZodOptional<z.ZodString>;
|
|
30
|
-
stack: z.ZodOptional<z.ZodString>;
|
|
31
|
-
}, z.core.$strip>>;
|
|
32
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
33
|
-
coverage: z.ZodLiteral<"not_loaded">;
|
|
34
|
-
reason: z.ZodOptional<z.ZodString>;
|
|
35
|
-
}, z.core.$strip>], "coverage">>;
|
|
36
|
-
}, z.core.$strip>;
|
|
37
|
-
export type PerModulatorPolypharmResults = z.infer<typeof PerModulatorPolypharmResultsSchema>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Per-modulator polypharmacology — Phase-3 fan-out result schema.
|
|
3
|
-
*
|
|
4
|
-
* The DBOS workflow body drives the `.foreach` fan-out itself; this module
|
|
5
|
-
* is kept for its result schema.
|
|
6
|
-
*/
|
|
7
|
-
import { z } from "zod";
|
|
8
|
-
import { PerModulatorPolypharmItemSchema } from "../steps/fanout/index.js";
|
|
9
|
-
import { withCoverage } from "../coverage.js";
|
|
10
|
-
export const PerModulatorPolypharmResultsSchema = z.object({
|
|
11
|
-
results: z.array(withCoverage(PerModulatorPolypharmItemSchema)),
|
|
12
|
-
});
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Per-trial AEs — Phase-3 fan-out result schema.
|
|
3
|
-
*
|
|
4
|
-
* The DBOS workflow body drives the `.foreach` fan-out itself; this module
|
|
5
|
-
* is kept for its result schema.
|
|
6
|
-
*/
|
|
7
|
-
import { z } from "zod";
|
|
8
|
-
export declare const PerTrialAEsResultsSchema: z.ZodObject<{
|
|
9
|
-
results: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
10
|
-
coverage: z.ZodLiteral<"available">;
|
|
11
|
-
data: z.ZodObject<{
|
|
12
|
-
nctId: z.ZodString;
|
|
13
|
-
title: z.ZodString;
|
|
14
|
-
whyStopped: z.ZodNullable<z.ZodString>;
|
|
15
|
-
outcomes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
16
|
-
type: z.ZodEnum<{
|
|
17
|
-
other: "other";
|
|
18
|
-
primary: "primary";
|
|
19
|
-
secondary: "secondary";
|
|
20
|
-
}>;
|
|
21
|
-
measure: z.ZodString;
|
|
22
|
-
description: z.ZodNullable<z.ZodString>;
|
|
23
|
-
timeFrame: z.ZodNullable<z.ZodString>;
|
|
24
|
-
effect: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
25
|
-
kind: z.ZodLiteral<"quantitative">;
|
|
26
|
-
value: z.ZodNumber;
|
|
27
|
-
units: z.ZodString;
|
|
28
|
-
ci_low: z.ZodOptional<z.ZodNumber>;
|
|
29
|
-
ci_high: z.ZodOptional<z.ZodNumber>;
|
|
30
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
-
kind: z.ZodLiteral<"not_extracted">;
|
|
32
|
-
reason: z.ZodEnum<{
|
|
33
|
-
ctgov_no_numeric_result: "ctgov_no_numeric_result";
|
|
34
|
-
ctgov_no_result_groups: "ctgov_no_result_groups";
|
|
35
|
-
}>;
|
|
36
|
-
}, z.core.$strip>], "kind">;
|
|
37
|
-
}, z.core.$strip>>>;
|
|
38
|
-
groups: z.ZodArray<z.ZodObject<{
|
|
39
|
-
groupId: z.ZodString;
|
|
40
|
-
title: z.ZodString;
|
|
41
|
-
description: z.ZodNullable<z.ZodString>;
|
|
42
|
-
}, z.core.$strip>>;
|
|
43
|
-
events: z.ZodArray<z.ZodObject<{
|
|
44
|
-
serious: z.ZodBoolean;
|
|
45
|
-
term: z.ZodString;
|
|
46
|
-
organSystem: z.ZodNullable<z.ZodString>;
|
|
47
|
-
counts: z.ZodArray<z.ZodObject<{
|
|
48
|
-
groupId: z.ZodString;
|
|
49
|
-
numAffected: z.ZodNullable<z.ZodNumber>;
|
|
50
|
-
numAtRisk: z.ZodNullable<z.ZodNumber>;
|
|
51
|
-
}, z.core.$strip>>;
|
|
52
|
-
}, z.core.$strip>>;
|
|
53
|
-
}, z.core.$strip>;
|
|
54
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
55
|
-
coverage: z.ZodLiteral<"queried_no_data">;
|
|
56
|
-
error: z.ZodOptional<z.ZodObject<{
|
|
57
|
-
message: z.ZodString;
|
|
58
|
-
name: z.ZodOptional<z.ZodString>;
|
|
59
|
-
stack: z.ZodOptional<z.ZodString>;
|
|
60
|
-
}, z.core.$strip>>;
|
|
61
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
62
|
-
coverage: z.ZodLiteral<"not_loaded">;
|
|
63
|
-
reason: z.ZodOptional<z.ZodString>;
|
|
64
|
-
}, z.core.$strip>], "coverage">>;
|
|
65
|
-
}, z.core.$strip>;
|
|
66
|
-
export type PerTrialAEsResults = z.infer<typeof PerTrialAEsResultsSchema>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Per-trial AEs — Phase-3 fan-out result schema.
|
|
3
|
-
*
|
|
4
|
-
* The DBOS workflow body drives the `.foreach` fan-out itself; this module
|
|
5
|
-
* is kept for its result schema.
|
|
6
|
-
*/
|
|
7
|
-
import { z } from "zod";
|
|
8
|
-
import { PerTrialAEsItemSchema } from "../steps/fanout/index.js";
|
|
9
|
-
import { withCoverage } from "../coverage.js";
|
|
10
|
-
export const PerTrialAEsResultsSchema = z.object({
|
|
11
|
-
results: z.array(withCoverage(PerTrialAEsItemSchema)),
|
|
12
|
-
});
|