From cfe5ae9e78ae2878e21e04c7dbe83b5ac4e426fe Mon Sep 17 00:00:00 2001 From: lda Date: Wed, 15 Nov 2023 13:54:55 +0100 Subject: [PATCH] [ADD/WIP] Start work on the POST /login endpoint --- Schema/LoginRequest.json | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Schema/LoginRequest.json diff --git a/Schema/LoginRequest.json b/Schema/LoginRequest.json new file mode 100644 index 0000000..b93dcc5 --- /dev/null +++ b/Schema/LoginRequest.json @@ -0,0 +1,38 @@ +{ + "header": "Schema\/LoginRequest.h", + "types": { + "LoginRequestType": { + "fields": { + "m.login.password": { "name": "REQUEST_TYPE_PASSWORD" } + }, + "type": "enum" + }, + "LoginRequestUserIdentifier": { + "fields": { + "type": { "type": "string" }, + "user": { "type": "string" } + }, + "type": "struct" + }, + "LoginRequest": { + "fields": { + "type": { "type": "LoginRequestType" }, + + "identifier": { "type": "object" }, + + "password": { "type": "string" }, + "address": { "type": "string" }, + "user": { "type": "string" }, + "device_id": { "type": "string" }, + "initial_device_display_name": { "type": "string" }, + "medium": { "type": "string" }, + "token": { "type": "string" }, + + "refresh_token": { "type": "boolean" } + }, + "type": "struct" + } + }, + "guard": "TELODENDRIA_SCHEMA_LOGIN_REQUEST_H" +} +