From 14e9c6472aa6fa659a1f87964cf9f2f1fa9952f4 Mon Sep 17 00:00:00 2001 From: bbiggerr Date: Tue, 25 Jul 2023 13:20:17 -0400 Subject: [PATCH 1/2] Added last_login to User --- openapi.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/openapi.yaml b/openapi.yaml index c1f8391d9..282f7752e 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -25902,6 +25902,33 @@ components: `null` if this User has not created a password yet. example: "2018-01-01T01:01:01" + last_login: + type: object + readOnly: true + nullable: true + description: | + Information for the most recent login attempt for this User. + + `null` if no login attempts have been made since creation of this User. + + Access the [User Logins List All](/docs/api/account/#user-logins-list-all) command for additional login information. + properties: + login_datetime: + type: string + format: date-time + readOnly: true + description: | + The date and time of this User's most recent login attempt. + example: "2018-01-01T01:01:01" + status: + type: string + readOnly: true + enum: + - successful + - failed + description: | + The result of the most recent login attempt for this User. + example: successful UserDefinedField: type: object required: From 48087fad3c7c9a0bdeff7d33c5d16db92e612f5e Mon Sep 17 00:00:00 2001 From: bbiggerr Date: Tue, 25 Jul 2023 13:48:04 -0400 Subject: [PATCH 2/2] Added example for User tfa_enabled --- openapi.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/openapi.yaml b/openapi.yaml index 282f7752e..ad2817a35 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -25880,6 +25880,7 @@ components: A boolean value indicating if the User has Two Factor Authentication (TFA) enabled. See the Create Two Factor Secret ([POST /profile/tfa-enable](/docs/api/profile/#two-factor-secret-create)) endpoint to enable TFA. + example: true verified_phone_number: type: string format: phone