type Outcome
import cswap-bend-cli@0.1.0.0/usage.bend as Usageimport Base
import cswap-bend-cli@0.1.0.0/json.bend as Json
18# usage: the normalised result (JNull when there is none); error: the kind
19# (http-429, http-403, timeout, network, bad-response, no-access-token,
20# invalid_grant, no_refresh_token, invalid_client, refresh-failed, ...);
21# retry: Retry-After seconds; struck: the credential text whose refresh token
22# the server rejected for good (the store quarantines on it).
23type Outcome is Data:
24 Outcome{usage: Json.Json, error: Maybe<&2, String>, retry: Maybe<&2, U32>, struck: Maybe<&2, String>}