Skip to main content

PreviewRoutingRuleRequest

@gravity-rail/sdk


@gravity-rail/sdk / PreviewRoutingRuleRequest

Interface: PreviewRoutingRuleRequest

Dry-run one evaluation: which rule WOULD match, and why.

Read-only. The endpoint is required — a rule belongs to one endpoint, so there is no rule list to evaluate without naming the one the interaction would arrive on. The caller axis is stated explicitly — exactly one of callerAnonymous or memberId — because a rule matches the anonymous branch or the member branch and there is no third state to infer. A memberId also lets the preview evaluate a rule's member filter against a real member instead of reporting it unresolvable; that branch requires members:read on top of read access to the endpoint (see the module docstring).

Properties​

at?​

optional at: string | null


callerAnonymous?​

optional callerAnonymous: boolean


channel​

channel: RoutingChannel


inboxId?​

optional inboxId: number | null


memberId?​

optional memberId: number | null


phoneNumberId?​

optional phoneNumberId: number | null