{
  "openapi": "3.0.1",
  "info": {
    "title": "mt.identity.proxy",
    "version": "1.0"
  },
  "paths": {
    "/Identity/Token": {
      "post": {
        "tags": [
          "Identity"
        ],
        "operationId": "Token",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MtTokenRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/MtTokenRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/MtTokenRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MtResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MtResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MtResponse"
                }
              }
            }
          }
        }
      }
    },
    "/Identity/RevocationToken": {
      "post": {
        "tags": [
          "Identity"
        ],
        "operationId": "RevocationToken",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MtRevocationTokenRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/MtRevocationTokenRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/MtRevocationTokenRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MtResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MtResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MtResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "GrantType": {
        "enum": [
          1,
          2,
          3
        ],
        "type": "integer",
        "format": "int32"
      },
      "MtResponse": {
        "type": "object",
        "properties": {
          "msg": {
            "type": "string",
            "nullable": true
          },
          "stat": {
            "type": "integer",
            "format": "int32"
          },
          "data": {
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MtRevocationTokenRequest": {
        "type": "object",
        "properties": {
          "clientId": {
            "type": "string",
            "nullable": true
          },
          "clientSecret": {
            "type": "string",
            "nullable": true
          },
          "grantType": {
            "$ref": "#/components/schemas/GrantType"
          },
          "token": {
            "type": "string",
            "nullable": true
          },
          "tokenTypeHint": {
            "$ref": "#/components/schemas/TokenTypeHint"
          }
        },
        "additionalProperties": false
      },
      "MtTokenRequest": {
        "type": "object",
        "properties": {
          "grantType": {
            "$ref": "#/components/schemas/GrantType"
          },
          "clientId": {
            "type": "string",
            "nullable": true
          },
          "clientSecret": {
            "type": "string",
            "nullable": true
          },
          "userName": {
            "type": "string",
            "nullable": true
          },
          "password": {
            "type": "string",
            "nullable": true
          },
          "phoneNumber": {
            "type": "string",
            "nullable": true
          },
          "verificationCode": {
            "type": "string",
            "nullable": true
          },
          "refreshToken": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TokenTypeHint": {
        "enum": [
          1,
          2,
          3
        ],
        "type": "integer",
        "format": "int32"
      }
    }
  }
}