Module Values.CreateOAuth2TokenResponseSource

Output structure for CreateOAuth2Token operation Contains flattened token operation outputs for both authorization code and refresh token flows. The response content depends on the grant_type from the original request.

Sourcetype nonrec t = {
  1. tokenOutput : CreateOAuth2TokenResponseBody.t option;
    (*

    Flattened token operation outputs The specific response fields depend on the grant_type used in the request

    *)
}
Sourcetype nonrec error = [
  1. | `AccessDeniedException of AccessDeniedException.t
  2. | `InternalServerException of InternalServerException.t
  3. | `TooManyRequestsError of TooManyRequestsError.t
  4. | `ValidationException of ValidationException.t
  5. | `Unknown_operation_error of string * string option
]
Sourceval make : ?tokenOutput:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `AccessDeniedException of AccessDeniedException.t | `InternalServerException of InternalServerException.t | `TooManyRequestsError of TooManyRequestsError.t | `Unknown_operation_error of string * string option | `ValidationException of ValidationException.t ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `AccessDeniedException of AccessDeniedException.t | `InternalServerException of InternalServerException.t | `TooManyRequestsError of TooManyRequestsError.t | `Unknown_operation_error of string * string option | `ValidationException of ValidationException.t ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval of_header_and_body : ('a * CreateOAuth2TokenResponseBody.t) -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Structure of (string * [> `Integer of ExpiresIn.t | `String of TokenType.t | `Structure of (string * [> `String of String_.t ]) list ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t