Files
rea/src/domain/native/nativeCallReference.ts
T
morluto a80575c736 fix(native): preserve partial call reference evidence
Retain provider-reported call sites and raw classification independently of generic reference flags. Keep all endpoint evidence when containing-procedure routes merge, and include relation in edge identity to avoid order-dependent labels.

Closes #5130
2026-10-19 07:12:44 +08:00

16 lines
620 B
TypeScript

import { z } from "zod";
/** Partial provider classification; it does not establish generic reference flags. */
export const nativeCallClassificationSchema = z.strictObject({
classification: z.enum(["none", "unknown", "direct", "objective_c"]),
provider_type: z.number().int(),
provenance: z.string().min(1),
});
/** Original provider endpoints, before resolving a containing procedure. */
export const nativeCallReferenceSchema = nativeCallClassificationSchema.extend({
source_address: z.string(),
target_address: z.string(),
});
export type NativeCallReference = z.infer<typeof nativeCallReferenceSchema>;