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
16 lines
620 B
TypeScript
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>;
|