From 53e8d40909a7b6d4f3e0b889fbf77408b5d61c2e Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Wed, 29 Jan 2020 16:44:46 +0100 Subject: types --- libeufin/api-nexus.rst | 35 +++++++++++++++++------------------ 1 file changed, 17 insertions(+), 18 deletions(-) (limited to 'libeufin/api-nexus.rst') diff --git a/libeufin/api-nexus.rst b/libeufin/api-nexus.rst index f0125796..fb02858c 100644 --- a/libeufin/api-nexus.rst +++ b/libeufin/api-nexus.rst @@ -64,44 +64,46 @@ Low-level EBICS API .. ts:def:: NexusEbicsBackupRequest interface NexusEbicsBackupRequest { - passphrase: string; - } .. ts:def:: NexusEbicsBackupResponse - interface NexusEbicsBackupResponse { // The three passphrase-protected private keys in the PKCS#8 format - authBlob: binary; - encBlob: binary; - sigBlob: binary; + authBlob: string; // base64 + encBlob: string; // base64 + sigBlob: string; // base64 + hostID: string; + userID: string; + partnerID: string; + ebicsURL: string; } .. http:post:: /ebics/subscribers/{id}/restoreBackup - Ask the server to restore the keys. + Ask the server to restore the keys. Always creates a NEW + "{id}" account, and fails if it exists already. .. ts:def:: NexusEbicsRestoreBackupRequest - interface NexusEbicsRestoreBackupRequest { // passphrase to decrypt the keys passphrase: string; // The three passphrase-protected private keys in the PKCS#8 format - authBlob: binary; - encBlob: binary; - sigBlob: binary; + authBlob: string; // base64 + encBlob: string; // base64 + sigBlob: string; // base64 + hostID: string; + userID: string; + partnerID: string; + ebicsURL: string; } - - - .. ts:def:: NexusEbicsCreateSubscriber .. http:post:: /ebics/subscribers @@ -129,17 +131,14 @@ Low-level EBICS API Get details about an EBICS subscriber. - .. http:get:: /ebics/subscriber/{id}/keyletter - Get a nicely formatted key letter. (Does not return JSON, but markdown-formatted text) - + Get a formatted letter (mark-down) to confirm keys via ordinary mail. .. http:post:: /ebics/subscriber/{id}/sendIni Send INI message to the EBICS host. - .. http:post:: /ebics/subscriber/{id}/sendHia Send HIA message to the EBICS host. -- cgit v1.2.3