Remote / foldkit-remote/testing

Decision

type · packages/remote/src/scenario.ts:85

type Decision =
  | {
      readonly _tag: 'Accepted'
    }
  | {
      readonly _tag: 'Refused'
      readonly refusal: string
    }
  | {
      readonly _tag: 'Forbidden'
    }
  | {
      readonly _tag: 'Unauthenticated'
    }

What a decision reads as, whichever backend made it: the tag, and the rule a refusal names.