mirror of
https://github.com/morluto/rea.git
synced 2026-11-13 10:12:50 +00:00
Authenticate inventory requests once before family projection, remove obsolete schema aliases and raw facades, and preserve unresolved occurrence references from partial pages without fabricating content identities.
25 lines
980 B
TypeScript
25 lines
980 B
TypeScript
import type { AnalysisError } from "../../domain/analysisErrorBase.js";
|
|
import { projectAppleInventory } from "../../domain/apple/appleApplication.js";
|
|
import type { Result } from "../../domain/result.js";
|
|
import { APPLE_APPLICATION_PROVIDER } from "../InvestigationProviders.js";
|
|
import {
|
|
projectInventoryEvidence,
|
|
type InventoryProjectionEvidenceResult,
|
|
} from "../InventoryProjectionEvidence.js";
|
|
|
|
const OPERATION = "project_apple_application_graph" as const;
|
|
|
|
/** Project authenticated IPA or macOS app inventory Evidence into Apple application evidence. */
|
|
export const projectAppleApplicationEvidence = (
|
|
rawInput: unknown,
|
|
): Result<InventoryProjectionEvidenceResult, AnalysisError> => {
|
|
return projectInventoryEvidence({
|
|
rawInput,
|
|
project: projectAppleInventory,
|
|
operation: OPERATION,
|
|
predicateType: "rea.apple-application-graph",
|
|
provider: APPLE_APPLICATION_PROVIDER,
|
|
subjectFormat: (first) => first.subject?.format ?? "unknown",
|
|
});
|
|
};
|