(value: unknown)
| 18 | } |
| 19 | |
| 20 | export const isUserActionableError = (value: unknown): value is UserActionableError => |
| 21 | typeof value === "object" && |
| 22 | value !== null && |
| 23 | "__executorUserActionable" in value && |
| 24 | value.__executorUserActionable === true && |
| 25 | "userMessage" in value && |
| 26 | typeof value.userMessage === "string" && |
| 27 | value.userMessage.length > 0 && |
| 28 | "code" in value && |
| 29 | typeof value.code === "string" && |
| 30 | value.code.length > 0; |
| 31 | |
| 32 | /* The failure set the SDK surfaces. `execute`'s invoke failures are ported from |
| 33 | * v1 but re-keyed by `address` (the full `tools.<integration>.<owner>.<connection>.<tool>` |
no outgoing calls
no test coverage detected