Client-gated flows and client-value steps
An action flow can ask the client for a value that only a capable client can supply, for example a credential the
phone holds and the server does not. Two members of Reeve.PluginAbstractions make this possible. The host
knows no kind and no capability: it passes both through and treats the value as a secret.
Gate a flow on a client capability
IInstanceActionFlow.RequiredClientCapability is a default interface member that returns null. Override it to
name a capability string:
public string? RequiredClientCapability => "thread.active-operational-dataset";
- The host copies it to the instance's action descriptor. A client lists the flow only when it supports that capability, so a flow that does not override it is listed everywhere.
- The web application supports no capability and hides gated flows. A client that does not know a capability string must hide the flow rather than guess.
Ask the client for a value
ConfigFlowStep.ClientValue(id, title, kind, hints, description) builds a step of mode ClientValue.
| Argument | Meaning |
|---|---|
kind |
An opaque wire string the plugin and the client agree on. The host never inspects it. |
hints |
A non-secret string map for the client, such as which networks the plugin can see. It reaches every client: never put the value or any secret in it. |
The answer to a ClientValue step is the single field value. The host holds it like a Sensitive field:
- it is encrypted before the flow state is written and decrypted only for your
SubmitAsynccall; - it is registered for log masking and never logged, including on exception paths;
- a submit that does not carry exactly one non-empty string
valueis answered with a retry before your code runs, soSubmitAsynccan assume the shape. The value arrives inanswers["value"]as aSystem.Stringin every flow kind, never as aJsonElement.
Use a ClientValue step only in an action flow that overrides RequiredClientCapability with a capability
the client fulfils. Config and options flows accept the step and treat the value the same way, but they have no
capability gate and no client answers the step there, so it would dead-end; an action flow that does not
override the capability is listed in every client, including the web, which cannot run the step.
Repair flows keep their answers in plain text and refuse a ClientValue step: starting one, or returning
one from a step, ends the flow with an error.
Do not log or audit the value yourself, and keep it out of exception messages.
Kind vocabulary
The SDK declares no kinds. A kind is documented here, and the plugin and the client each own the string.
| Kind | Value | Capability |
|---|---|---|
thread.active-operational-dataset |
The hex TLV of a Thread network's active operational dataset. Hints: extendedPanIds, the extended PAN id of each mesh the plugin sees as comma separated hex, and networkNames, their names in the same order (optional). |
thread.active-operational-dataset |
What a client that meets a step it cannot run does
A client that does not support a step mode stops with a message to update the app and submits nothing. The web
application shows that a ClientValue step needs the Reeve app and sends nothing.
See the plugin authoring guide for where this sits among the other step kinds.
The action-flow path carries secret input under integrations.manage, with encryption at rest and audit. The first
use of a client value is the phone handing Thread credentials to the Matter plugin.