{
  "swagger": "2.0",
  "info": {
    "title": "provider/service.proto",
    "version": "version not set"
  },
  "tags": [
    {
      "name": "AuthServerService"
    }
  ],
  "consumes": [
    "application/json"
  ],
  "produces": [
    "application/json"
  ],
  "paths": {},
  "definitions": {
    "baseBaseResp": {
      "type": "object",
      "properties": {
        "tags": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        "errCode": {
          "type": "string",
          "format": "int64"
        },
        "errMsg": {
          "type": "string"
        }
      }
    },
    "protobufAny": {
      "type": "object",
      "properties": {
        "@type": {
          "type": "string"
        }
      },
      "additionalProperties": {}
    },
    "providerAccessTokenIdentity": {
      "type": "object",
      "properties": {
        "userId": {
          "type": "string",
          "format": "uint64"
        },
        "orgId": {
          "type": "string",
          "format": "uint64"
        },
        "grantAllProjects": {
          "type": "boolean"
        },
        "projectIds": {
          "type": "array",
          "items": {
            "type": "string",
            "format": "uint64"
          }
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        },
        "expiresIn": {
          "type": "string",
          "format": "int64"
        },
        "rawAccessToken": {
          "type": "string"
        },
        "userEmail": {
          "type": "string"
        },
        "id": {
          "type": "string",
          "format": "uint64"
        },
        "grantType": {
          "$ref": "#/definitions/providerGrantType"
        }
      }
    },
    "providerGetIdentityByAccessTokenResp": {
      "type": "object",
      "properties": {
        "accessTokenIdentity": {
          "$ref": "#/definitions/providerAccessTokenIdentity"
        },
        "baseResp": {
          "$ref": "#/definitions/baseBaseResp"
        }
      }
    },
    "providerGrantType": {
      "type": "string",
      "enum": [
        "DeviceCode",
        "AuthorizationCode"
      ],
      "default": "DeviceCode"
    },
    "rpcStatus": {
      "type": "object",
      "properties": {
        "code": {
          "type": "integer",
          "format": "int32"
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/protobufAny"
          }
        }
      }
    }
  }
}
