From cf4b6ebd6de3370da4b16d2f1ef19a2a3d3d0b12 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 2 Mar 2022 23:39:26 +0100 Subject: push new /truth/ API through the entire implementation --- doc/sphinx/rest.rst | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'doc/sphinx') diff --git a/doc/sphinx/rest.rst b/doc/sphinx/rest.rst index 206eda7..4a5aad5 100644 --- a/doc/sphinx/rest.rst +++ b/doc/sphinx/rest.rst @@ -1,6 +1,6 @@ .. This file is part of Anastasis - Copyright (C) 2019-2021 Anastasis SARL + Copyright (C) 2019-2022 Anastasis SARL Anastasis is free software; you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software @@ -789,13 +789,14 @@ charge per truth operation using GNU Taler. .. ts:def:: ChallengeInstructionMessage type ChallengeInstructionMessage = + | FileChallengeInstructionMessage | IbanChallengeInstructionMessage | PinChallengeInstructionMessage; interface IbanChallengeInstructionMessage { // What kind of challenge is this? - method: "iban"; + method: "IBAN_WIRE"; // How much should be wired? amount: Amount; @@ -817,11 +818,21 @@ charge per truth operation using GNU Taler. interface PinChallengeInstructionMessage { // What kind of challenge is this? - method: "pin"; + method: "TAN_SENT"; // Where was the PIN code sent? Note that this // address will most likely have been obscured // to improve privacy. - address_hint: string; + tan_address_hint: string; + + } + + interface FileChallengeInstructionMessage { + + // What kind of challenge is this? + method: "FILE_WRITTEN"; + + // Name of the file where the PIN code was written. + filename: string; } -- cgit v1.2.3