/** * Shared assignment and opportunity-evidence DTOs. * * These schemas are graph-agnostic protocol contracts. Protocol graphs and * backend workers may use the inferred TypeScript types, while backend storage * remains responsible for schema/SQL details. */ import { z } from "zod"; export declare const NetworkAssignmentResourceTypeSchema: z.ZodEnum<["premise", "intent"]>; export type NetworkAssignmentResourceType = z.infer; export declare const NetworkAssignmentModeSchema: z.ZodEnum<["automatic", "manual_override"]>; export type NetworkAssignmentMode = z.infer; export declare const NetworkAssignmentScopeSchema: z.ZodEnum<["global", "network"]>; export type NetworkAssignmentScope = z.infer; export declare const NetworkAssignmentPromptPresenceSchema: z.ZodEnum<["none", "index", "member", "both"]>; export type NetworkAssignmentPromptPresence = z.infer; export declare const NetworkAssignmentPolicySchema: z.ZodEnum<["unified-threshold-v1"]>; export type NetworkAssignmentPolicy = z.infer; export declare const NetworkAssignmentRawScoresSchema: z.ZodObject<{ indexScore: z.ZodOptional; memberScore: z.ZodOptional; }, "strip", z.ZodTypeAny, { indexScore?: number | undefined; memberScore?: number | undefined; }, { indexScore?: number | undefined; memberScore?: number | undefined; }>; export type NetworkAssignmentRawScores = z.infer; export declare const NetworkAssignmentMetadataSchema: z.ZodObject<{ resourceType: z.ZodEnum<["premise", "intent"]>; mode: z.ZodEnum<["automatic", "manual_override"]>; scope: z.ZodEnum<["global", "network"]>; policy: z.ZodEnum<["unified-threshold-v1"]>; threshold: z.ZodNumber; promptPresence: z.ZodEnum<["none", "index", "member", "both"]>; rawScores: z.ZodOptional; memberScore: z.ZodOptional; }, "strip", z.ZodTypeAny, { indexScore?: number | undefined; memberScore?: number | undefined; }, { indexScore?: number | undefined; memberScore?: number | undefined; }>>; finalScore: z.ZodNumber; assigned: z.ZodBoolean; reason: z.ZodOptional; evaluator: z.ZodOptional; source: z.ZodOptional; createdAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { resourceType: "intent" | "premise"; mode: "automatic" | "manual_override"; scope: "network" | "global"; policy: "unified-threshold-v1"; threshold: number; promptPresence: "none" | "index" | "member" | "both"; finalScore: number; assigned: boolean; rawScores?: { indexScore?: number | undefined; memberScore?: number | undefined; } | undefined; reason?: string | undefined; evaluator?: string | undefined; source?: string | undefined; createdAt?: string | undefined; }, { resourceType: "intent" | "premise"; mode: "automatic" | "manual_override"; scope: "network" | "global"; policy: "unified-threshold-v1"; threshold: number; promptPresence: "none" | "index" | "member" | "both"; finalScore: number; assigned: boolean; rawScores?: { indexScore?: number | undefined; memberScore?: number | undefined; } | undefined; reason?: string | undefined; evaluator?: string | undefined; source?: string | undefined; createdAt?: string | undefined; }>; export type NetworkAssignmentMetadata = z.infer; export declare const OpportunityEvidenceKindSchema: z.ZodEnum<["query_intent", "query_premise", "query_context", "premise_similarity", "context_similarity", "context_to_intent", "profile"]>; export type OpportunityEvidenceKind = z.infer; export declare const OpportunityEvidenceSchema: z.ZodObject<{ kind: z.ZodEnum<["query_intent", "query_premise", "query_context", "premise_similarity", "context_similarity", "context_to_intent", "profile"]>; networkId: z.ZodString; score: z.ZodOptional; lens: z.ZodOptional; discoverySource: z.ZodOptional>; matchedStrategies: z.ZodOptional>; sourcePremiseId: z.ZodOptional; candidatePremiseId: z.ZodOptional; candidateIntentId: z.ZodOptional; sourceContextId: z.ZodOptional; candidateContextId: z.ZodOptional; payload: z.ZodOptional; summary: z.ZodOptional; assertionText: z.ZodOptional; }, "strip", z.ZodTypeAny, { kind: "query_intent" | "query_premise" | "query_context" | "premise_similarity" | "context_similarity" | "context_to_intent" | "profile"; networkId: string; score?: number | undefined; lens?: string | undefined; discoverySource?: "query" | "premise-similarity" | "context-to-intent" | "context-similarity" | undefined; matchedStrategies?: string[] | undefined; sourcePremiseId?: string | undefined; candidatePremiseId?: string | undefined; candidateIntentId?: string | undefined; sourceContextId?: string | undefined; candidateContextId?: string | undefined; payload?: string | undefined; summary?: string | undefined; assertionText?: string | undefined; }, { kind: "query_intent" | "query_premise" | "query_context" | "premise_similarity" | "context_similarity" | "context_to_intent" | "profile"; networkId: string; score?: number | undefined; lens?: string | undefined; discoverySource?: "query" | "premise-similarity" | "context-to-intent" | "context-similarity" | undefined; matchedStrategies?: string[] | undefined; sourcePremiseId?: string | undefined; candidatePremiseId?: string | undefined; candidateIntentId?: string | undefined; sourceContextId?: string | undefined; candidateContextId?: string | undefined; payload?: string | undefined; summary?: string | undefined; assertionText?: string | undefined; }>; export type OpportunityEvidence = z.infer;