(meta: ElicitationMeta | undefined)
| 24 | * approval sends `persist: "always"` — a statement of what accepting |
| 25 | * means, not a choice — and contributes nothing here. */ |
| 26 | export const offeredPersistence = (meta: ElicitationMeta | undefined): readonly string[] => { |
| 27 | const persist = meta?.["persist"]; |
| 28 | return Array.isArray(persist) && persist.every((scope) => typeof scope === "string") |
| 29 | ? persist |
| 30 | : []; |
| 31 | }; |
| 32 | |
| 33 | /** What an accepted approval carries back, in the request's own vocabulary. |
| 34 | * |
no outgoing calls
no test coverage detected