Wants seat: the backup answer of a want is again or skip (ADR 0634; issue 1966)

This commit is contained in:
2026-11-05 15:27:08 +01:00
parent 6d5fe4572d
commit 57dd579234
3 changed files with 12 additions and 2 deletions
+6
View File
@@ -286,6 +286,12 @@ type WantsByWantNodeModuleValue struct {
Yes string `json:"yes,omitempty"`
}
// The values of WantsByWantNodeModuleValue's backup.
const (
WantsByWantNodeModuleValueBackupAgain = "again"
WantsByWantNodeModuleValueBackupSkip = "skip"
)
// WantsByWantNodeNodeValue is one value of the state wants under the key want.<node>.node.
type WantsByWantNodeNodeValue struct {
Composed string `json:"composed"`
+5 -1
View File
@@ -97,7 +97,11 @@
},
"backup": {
"type": "string",
"description": "again or skip"
"description": "again or skip",
"enum": [
"again",
"skip"
]
},
"words": {
"type": "string"
+1 -1
View File
@@ -149,7 +149,7 @@ export type PolicyChangedEvent = Record<string, unknown>;
/** is one value of the state wants under the key want.<node>.<module>. */
export interface WantsByWantNodeModuleValue {
/** again or skip */
"backup"?: string;
"backup"?: "again" | "skip";
"composed"?: string;
"fp"?: string;
"hold"?: boolean;