mirror of
https://github.com/morluto/rea
synced 2026-10-26 22:28:27 -04:00
93a384db77
Parse caller selections and authenticated Evidence at their owners, reuse the parsed function and comparison facts, and preserve unexpected implementation failures. Remove downstream error guessing and redundant validation wrappers. Verify with 526 affected tests, source checks, docs conformance, test discovery and duplication checks. Seven public SDK regressions fail on the main baseline. No real-provider execution was performed.
29 lines
1.0 KiB
TypeScript
29 lines
1.0 KiB
TypeScript
import type { AnalysisError } from "../../domain/analysisErrorBase.js";
|
|
import {
|
|
androidApplicationProjectionInputSchema,
|
|
projectAndroidApplication,
|
|
} from "../../domain/android/androidApplication.js";
|
|
import type { Result } from "../../domain/result.js";
|
|
import { ANDROID_APPLICATION_PROVIDER } from "../InvestigationProviders.js";
|
|
import {
|
|
projectInventoryEvidence,
|
|
type InventoryProjectionEvidenceResult,
|
|
} from "../InventoryProjectionEvidence.js";
|
|
|
|
const OPERATION = "project_android_application_graph" as const;
|
|
|
|
/** Project authenticated APK inventory Evidence into Android application Evidence. */
|
|
export const projectAndroidApplicationEvidence = (
|
|
rawInput: unknown,
|
|
): Result<InventoryProjectionEvidenceResult, AnalysisError> => {
|
|
return projectInventoryEvidence({
|
|
rawInput,
|
|
schema: androidApplicationProjectionInputSchema,
|
|
project: projectAndroidApplication,
|
|
operation: OPERATION,
|
|
predicateType: "rea.android-application-graph",
|
|
provider: ANDROID_APPLICATION_PROVIDER,
|
|
subjectFormat: () => "apk",
|
|
});
|
|
};
|