Skip to main content

api_visibility_reviews_for_resource_v2

Function api_visibility_reviews_for_resource_v2 

Source
pub fn api_visibility_reviews_for_resource_v2(
    knowledge: &KnowledgeBase,
    resource_scope: &EntityId,
    cursor: Option<&ApiVisibilityReviewCursor>,
    scan_limit: u16,
) -> Result<ApiVisibilityReviewPage, ApiObservationError>
Expand description

Projects one bounded review page using a resource-bound v2 cursor.

A cursor is checked against the caller-authorized resource before the knowledge store is scanned. The legacy ApiVisibilityReviewQuery and api_visibility_reviews_for_resource contracts remain available for trusted in-process continuation, while this entry point prevents accidental cross-resource cursor reuse. This cursor is deterministic, not authenticated; transports may sign or MAC its serialized representation.