Trendsic Platform Service

<back to all web services

UserVerifyMfaTypeRequest

The following routes are available for this service:
GET,PUT,POST,OPTIONS/v1/userverifymfatype
namespace Amazon.CognitoIdentityProvider

open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    type CoreChecksumAlgorithm =
        | NONE = 0
        | CRC32C = 1
        | CRC32 = 2
        | SHA256 = 3
        | SHA1 = 4

    type ChecksumValidationStatus =
        | NOT_VALIDATED = 0
        | PENDING_RESPONSE_READ = 1
        | SUCCESSFUL = 2
        | INVALID = 3

    [<AllowNullLiteral>]
    type ResponseMetadata() = 
        member val RequestId:String = null with get,set
        member val Metadata:IDictionary<String, String> = new IDictionary<String, String>() with get,set
        member val ChecksumAlgorithm:CoreChecksumAlgorithm = new CoreChecksumAlgorithm() with get,set
        member val ChecksumValidationStatus:ChecksumValidationStatus = new ChecksumValidationStatus() with get,set

    [<AllowNullLiteral>]
    type AmazonWebServiceResponse() = 
        member val ResponseMetadata:ResponseMetadata = null with get,set
        member val ContentLength:Int64 = new Int64() with get,set
        member val HttpStatusCode:HttpStatusCode = new HttpStatusCode() with get,set

    [<AllowNullLiteral>]
    type NewDeviceMetadataType() = 
        member val DeviceGroupKey:String = null with get,set
        member val DeviceKey:String = null with get,set

    [<AllowNullLiteral>]
    type AuthenticationResultType() = 
        member val AccessToken:String = null with get,set
        member val ExpiresIn:Int32 = new Int32() with get,set
        member val IdToken:String = null with get,set
        member val NewDeviceMetadata:NewDeviceMetadataType = null with get,set
        member val RefreshToken:String = null with get,set
        member val TokenType:String = null with get,set

    [<AllowNullLiteral>]
    type ConstantClass() = 
        member val Value:String = null with get,set

    [<AllowNullLiteral>]
    type ChallengeNameType() = 
        inherit ConstantClass()

    [<AllowNullLiteral>]
    type InitiateAuthResponse() = 
        inherit AmazonWebServiceResponse()
        member val AuthenticationResult:AuthenticationResultType = null with get,set
        member val ChallengeName:ChallengeNameType = null with get,set
        member val ChallengeParameters:Dictionary<String, String> = new Dictionary<String, String>() with get,set
        member val Session:String = null with get,set

    [<AllowNullLiteral>]
    type AwsAuthResponse() = 
        member val ResponseStatus:ResponseStatus = null with get,set
        member val InitiateAuthResponse:InitiateAuthResponse = null with get,set
        member val Success:Boolean = new Boolean() with get,set

    [<AllowNullLiteral>]
    type UserVerifyMfaTypeRequest() = 
        member val UserId:Guid = new Guid() with get,set

F# UserVerifyMfaTypeRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /v1/userverifymfatype HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	UserId: 00000000000000000000000000000000
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	},
	InitiateAuthResponse: 
	{
		AuthenticationResult: 
		{
			AccessToken: String,
			ExpiresIn: 0,
			IdToken: String,
			NewDeviceMetadata: 
			{
				DeviceGroupKey: String,
				DeviceKey: String
			},
			RefreshToken: String,
			TokenType: String
		},
		ChallengeParameters: 
		{
			String: String
		},
		Session: String,
		ResponseMetadata: 
		{
			RequestId: String,
			Metadata: {},
			ChecksumAlgorithm: NONE,
			ChecksumValidationStatus: NOT_VALIDATED
		},
		ContentLength: 0,
		HttpStatusCode: Continue
	},
	Success: False
}