2020-03-23 16:56:02 +01:00
{
"swagger" : "2.0" ,
"info" : {
"title" : "Auth API" ,
"version" : "0.1" ,
"contact" : {
"url" : "https://github.com/caos/zitadel/pkg/auth"
}
} ,
"schemes" : [
"https"
] ,
"consumes" : [
"application/json" ,
"application/grpc"
] ,
"produces" : [
"application/json" ,
"application/grpc"
] ,
"paths" : {
2020-03-31 11:07:48 +02:00
"/global/projectorgs/_search" : {
2020-03-23 16:56:02 +01:00
"post" : {
2020-03-31 11:07:48 +02:00
"operationId" : "SearchMyProjectOrgs" ,
2020-03-23 16:56:02 +01:00
"responses" : {
"200" : {
"description" : "A successful response." ,
"schema" : {
2020-03-31 11:07:48 +02:00
"$ref" : "#/definitions/v1MyProjectOrgSearchResponse"
2020-03-23 16:56:02 +01:00
}
}
} ,
"parameters" : [
{
"name" : "body" ,
"in" : "body" ,
"required" : true ,
"schema" : {
2020-03-31 11:07:48 +02:00
"$ref" : "#/definitions/v1MyProjectOrgSearchRequest"
2020-03-23 16:56:02 +01:00
}
}
] ,
"tags" : [
"AuthService"
]
}
} ,
2020-03-31 11:07:48 +02:00
"/healthz" : {
2020-03-23 16:56:02 +01:00
"get" : {
2020-03-31 11:07:48 +02:00
"summary" : "Readiness" ,
"operationId" : "Healthz" ,
2020-03-23 16:56:02 +01:00
"responses" : {
"200" : {
"description" : "A successful response." ,
"schema" : {
2020-03-31 11:07:48 +02:00
"properties" : { }
2020-03-23 16:56:02 +01:00
}
}
} ,
"tags" : [
"AuthService"
]
}
} ,
2020-03-31 11:07:48 +02:00
"/me/usersessions" : {
2020-03-23 16:56:02 +01:00
"get" : {
2020-03-31 11:07:48 +02:00
"summary" : "Authorization" ,
"operationId" : "GetMyUserSessions" ,
2020-03-23 16:56:02 +01:00
"responses" : {
"200" : {
"description" : "A successful response." ,
"schema" : {
2020-03-31 11:07:48 +02:00
"$ref" : "#/definitions/v1UserSessionViews"
2020-03-23 16:56:02 +01:00
}
}
} ,
"tags" : [
"AuthService"
]
}
} ,
2020-03-31 11:07:48 +02:00
"/permissions/zitadel/me" : {
"get" : {
"summary" : "Permission" ,
"operationId" : "GetMyZitadelPermissions" ,
2020-03-23 16:56:02 +01:00
"responses" : {
"200" : {
"description" : "A successful response." ,
"schema" : {
2020-03-31 11:07:48 +02:00
"$ref" : "#/definitions/v1MyPermissions"
2020-03-23 16:56:02 +01:00
}
}
} ,
"tags" : [
"AuthService"
]
}
} ,
2020-03-31 11:07:48 +02:00
"/ready" : {
"get" : {
"operationId" : "Ready" ,
2020-03-23 16:56:02 +01:00
"responses" : {
"200" : {
"description" : "A successful response." ,
"schema" : {
2020-03-31 11:07:48 +02:00
"properties" : { }
2020-03-23 16:56:02 +01:00
}
}
} ,
"tags" : [
"AuthService"
]
}
} ,
2020-06-05 07:50:04 +02:00
"/usergrants/me/_search" : {
"post" : {
"operationId" : "SearchMyUserGrant" ,
"responses" : {
"200" : {
"description" : "A successful response." ,
"schema" : {
"$ref" : "#/definitions/v1UserGrantSearchResponse"
}
}
} ,
"parameters" : [
{
"name" : "body" ,
"in" : "body" ,
"required" : true ,
"schema" : {
"$ref" : "#/definitions/v1UserGrantSearchRequest"
}
}
] ,
"tags" : [
"AuthService"
]
}
} ,
2020-03-31 11:07:48 +02:00
"/users/me/address" : {
2020-03-23 16:56:02 +01:00
"get" : {
2020-03-31 11:07:48 +02:00
"operationId" : "GetMyUserAddress" ,
2020-03-23 16:56:02 +01:00
"responses" : {
"200" : {
"description" : "A successful response." ,
"schema" : {
2020-03-31 11:07:48 +02:00
"$ref" : "#/definitions/v1UserAddress"
2020-03-23 16:56:02 +01:00
}
}
} ,
"tags" : [
"AuthService"
]
2020-03-31 11:07:48 +02:00
} ,
"put" : {
"operationId" : "UpdateMyUserAddress" ,
2020-03-23 16:56:02 +01:00
"responses" : {
"200" : {
"description" : "A successful response." ,
"schema" : {
2020-03-31 11:07:48 +02:00
"$ref" : "#/definitions/v1UserAddress"
2020-03-23 16:56:02 +01:00
}
}
} ,
2020-03-31 11:07:48 +02:00
"parameters" : [
{
"name" : "body" ,
"in" : "body" ,
"required" : true ,
"schema" : {
"$ref" : "#/definitions/v1UpdateUserAddressRequest"
}
}
] ,
2020-03-23 16:56:02 +01:00
"tags" : [
"AuthService"
]
}
} ,
2020-03-31 11:07:48 +02:00
"/users/me/email" : {
2020-03-23 16:56:02 +01:00
"get" : {
2020-03-31 11:07:48 +02:00
"operationId" : "GetMyUserEmail" ,
2020-03-23 16:56:02 +01:00
"responses" : {
"200" : {
"description" : "A successful response." ,
"schema" : {
2020-03-31 11:07:48 +02:00
"$ref" : "#/definitions/v1UserEmail"
2020-03-23 16:56:02 +01:00
}
}
} ,
"tags" : [
"AuthService"
]
2020-03-31 11:07:48 +02:00
} ,
"put" : {
"operationId" : "ChangeMyUserEmail" ,
2020-03-23 16:56:02 +01:00
"responses" : {
"200" : {
"description" : "A successful response." ,
"schema" : {
2020-03-31 11:07:48 +02:00
"$ref" : "#/definitions/v1UserEmail"
2020-03-23 16:56:02 +01:00
}
}
} ,
2020-03-31 11:07:48 +02:00
"parameters" : [
{
"name" : "body" ,
"in" : "body" ,
"required" : true ,
"schema" : {
"$ref" : "#/definitions/v1UpdateUserEmailRequest"
}
}
] ,
2020-03-23 16:56:02 +01:00
"tags" : [
"AuthService"
]
}
} ,
2020-03-31 11:07:48 +02:00
"/users/me/email/_resendverification" : {
"post" : {
"operationId" : "ResendMyEmailVerificationMail" ,
2020-03-23 16:56:02 +01:00
"responses" : {
"200" : {
"description" : "A successful response." ,
"schema" : {
2020-03-31 11:07:48 +02:00
"properties" : { }
2020-03-23 16:56:02 +01:00
}
}
} ,
"parameters" : [
{
2020-03-31 11:07:48 +02:00
"name" : "body" ,
"in" : "body" ,
2020-03-23 16:56:02 +01:00
"required" : true ,
2020-03-31 11:07:48 +02:00
"schema" : {
"properties" : { }
}
2020-03-23 16:56:02 +01:00
}
] ,
"tags" : [
"AuthService"
]
}
} ,
2020-03-31 11:07:48 +02:00
"/users/me/email/_verify" : {
2020-03-23 16:56:02 +01:00
"post" : {
2020-03-31 11:07:48 +02:00
"operationId" : "VerifyMyUserEmail" ,
2020-03-23 16:56:02 +01:00
"responses" : {
"200" : {
"description" : "A successful response." ,
"schema" : {
2020-03-31 11:07:48 +02:00
"properties" : { }
2020-03-23 16:56:02 +01:00
}
}
} ,
"parameters" : [
{
"name" : "body" ,
"in" : "body" ,
"required" : true ,
"schema" : {
2020-03-31 11:07:48 +02:00
"$ref" : "#/definitions/v1VerifyMyUserEmailRequest"
2020-03-23 16:56:02 +01:00
}
}
] ,
"tags" : [
"AuthService"
]
}
} ,
2020-03-31 11:07:48 +02:00
"/users/me/mfa/otp" : {
"delete" : {
"operationId" : "RemoveMfaOTP" ,
"responses" : {
"200" : {
"description" : "A successful response." ,
"schema" : {
"properties" : { }
}
}
} ,
"tags" : [
"AuthService"
]
} ,
2020-03-23 16:56:02 +01:00
"post" : {
2020-03-31 11:07:48 +02:00
"summary" : "MFA" ,
"operationId" : "AddMfaOTP" ,
2020-03-23 16:56:02 +01:00
"responses" : {
"200" : {
"description" : "A successful response." ,
"schema" : {
2020-03-31 11:07:48 +02:00
"$ref" : "#/definitions/v1MfaOtpResponse"
2020-03-23 16:56:02 +01:00
}
}
} ,
"parameters" : [
{
"name" : "body" ,
"in" : "body" ,
"required" : true ,
"schema" : {
2020-03-31 11:07:48 +02:00
"properties" : { }
2020-03-23 16:56:02 +01:00
}
}
] ,
"tags" : [
"AuthService"
]
}
} ,
2020-03-31 11:07:48 +02:00
"/users/me/mfa/otp/_verify" : {
2020-03-23 16:56:02 +01:00
"put" : {
2020-03-31 11:07:48 +02:00
"operationId" : "VerifyMfaOTP" ,
2020-03-23 16:56:02 +01:00
"responses" : {
"200" : {
"description" : "A successful response." ,
"schema" : {
2020-05-18 12:06:36 +02:00
"properties" : { }
2020-03-23 16:56:02 +01:00
}
}
} ,
"parameters" : [
{
"name" : "body" ,
"in" : "body" ,
"required" : true ,
"schema" : {
2020-03-31 11:07:48 +02:00
"$ref" : "#/definitions/v1VerifyMfaOtp"
2020-03-23 16:56:02 +01:00
}
}
] ,
"tags" : [
"AuthService"
]
}
} ,
2020-03-31 11:07:48 +02:00
"/users/me/mfas" : {
"get" : {
"operationId" : "GetMyMfas" ,
"responses" : {
"200" : {
"description" : "A successful response." ,
"schema" : {
"$ref" : "#/definitions/v1MultiFactors"
}
}
} ,
"tags" : [
"AuthService"
]
}
} ,
"/users/me/passwords/_change" : {
2020-03-23 16:56:02 +01:00
"put" : {
2020-05-18 12:06:36 +02:00
"summary" : "Password" ,
2020-03-31 11:07:48 +02:00
"operationId" : "ChangeMyPassword" ,
2020-03-23 16:56:02 +01:00
"responses" : {
"200" : {
"description" : "A successful response." ,
"schema" : {
2020-03-31 11:07:48 +02:00
"properties" : { }
2020-03-23 16:56:02 +01:00
}
}
} ,
"parameters" : [
{
"name" : "body" ,
"in" : "body" ,
"required" : true ,
"schema" : {
2020-03-31 11:07:48 +02:00
"$ref" : "#/definitions/v1PasswordChange"
2020-03-23 16:56:02 +01:00
}
}
] ,
"tags" : [
"AuthService"
]
}
} ,
2020-03-31 11:07:48 +02:00
"/users/me/phone" : {
"get" : {
"operationId" : "GetMyUserPhone" ,
"responses" : {
"200" : {
"description" : "A successful response." ,
"schema" : {
"$ref" : "#/definitions/v1UserPhone"
}
}
} ,
"tags" : [
"AuthService"
]
} ,
2020-03-23 16:56:02 +01:00
"put" : {
2020-03-31 11:07:48 +02:00
"operationId" : "ChangeMyUserPhone" ,
2020-03-23 16:56:02 +01:00
"responses" : {
"200" : {
"description" : "A successful response." ,
"schema" : {
2020-03-31 11:07:48 +02:00
"$ref" : "#/definitions/v1UserPhone"
2020-03-23 16:56:02 +01:00
}
}
} ,
"parameters" : [
{
"name" : "body" ,
"in" : "body" ,
"required" : true ,
"schema" : {
2020-03-31 11:07:48 +02:00
"$ref" : "#/definitions/v1UpdateUserPhoneRequest"
2020-03-23 16:56:02 +01:00
}
}
] ,
"tags" : [
"AuthService"
]
}
} ,
2020-03-31 11:07:48 +02:00
"/users/me/phone/_resendverification" : {
2020-03-23 16:56:02 +01:00
"post" : {
2020-03-31 11:07:48 +02:00
"operationId" : "ResendMyPhoneVerificationCode" ,
2020-03-23 16:56:02 +01:00
"responses" : {
"200" : {
"description" : "A successful response." ,
"schema" : {
2020-03-31 11:07:48 +02:00
"properties" : { }
2020-03-23 16:56:02 +01:00
}
}
} ,
"parameters" : [
{
"name" : "body" ,
"in" : "body" ,
"required" : true ,
"schema" : {
2020-03-31 11:07:48 +02:00
"properties" : { }
2020-03-23 16:56:02 +01:00
}
}
] ,
"tags" : [
"AuthService"
]
}
} ,
2020-03-31 11:07:48 +02:00
"/users/me/phone/_verify" : {
"post" : {
"operationId" : "VerifyMyUserPhone" ,
2020-03-23 16:56:02 +01:00
"responses" : {
"200" : {
"description" : "A successful response." ,
"schema" : {
2020-03-31 11:07:48 +02:00
"properties" : { }
2020-03-23 16:56:02 +01:00
}
}
} ,
"parameters" : [
{
2020-03-31 11:07:48 +02:00
"name" : "body" ,
"in" : "body" ,
2020-03-23 16:56:02 +01:00
"required" : true ,
"schema" : {
2020-03-31 11:07:48 +02:00
"$ref" : "#/definitions/v1VerifyUserPhoneRequest"
2020-03-23 16:56:02 +01:00
}
}
] ,
"tags" : [
"AuthService"
]
}
} ,
2020-03-31 11:07:48 +02:00
"/users/me/profile" : {
2020-03-23 16:56:02 +01:00
"get" : {
2020-03-31 11:07:48 +02:00
"summary" : "User" ,
"operationId" : "GetMyUserProfile" ,
2020-03-23 16:56:02 +01:00
"responses" : {
"200" : {
"description" : "A successful response." ,
"schema" : {
2020-03-31 11:07:48 +02:00
"$ref" : "#/definitions/v1UserProfile"
2020-03-23 16:56:02 +01:00
}
}
} ,
"tags" : [
"AuthService"
]
} ,
"put" : {
2020-03-31 11:07:48 +02:00
"operationId" : "UpdateMyUserProfile" ,
2020-03-23 16:56:02 +01:00
"responses" : {
"200" : {
"description" : "A successful response." ,
"schema" : {
2020-03-31 11:07:48 +02:00
"$ref" : "#/definitions/v1UserProfile"
2020-03-23 16:56:02 +01:00
}
}
} ,
"parameters" : [
{
"name" : "body" ,
"in" : "body" ,
"required" : true ,
"schema" : {
2020-03-31 11:07:48 +02:00
"$ref" : "#/definitions/v1UpdateUserProfileRequest"
2020-03-23 16:56:02 +01:00
}
}
] ,
"tags" : [
"AuthService"
]
}
} ,
2020-03-31 11:07:48 +02:00
"/validate" : {
"get" : {
"operationId" : "Validate" ,
2020-03-23 16:56:02 +01:00
"responses" : {
"200" : {
"description" : "A successful response." ,
"schema" : {
2020-06-09 09:22:37 +02:00
"type" : "object"
2020-03-23 16:56:02 +01:00
}
}
} ,
"tags" : [
"AuthService"
]
}
2020-03-31 11:07:48 +02:00
}
} ,
"definitions" : {
"protobufNullValue" : {
"type" : "string" ,
"enum" : [
"NULL_VALUE"
] ,
"default" : "NULL_VALUE" ,
"description" : "`NullValue` is a singleton enumeration to represent the null value for the\n`Value` type union.\n\n The JSON representation for `NullValue` is JSON `null`.\n\n - NULL_VALUE: Null value."
} ,
"v1Gender" : {
"type" : "string" ,
"enum" : [
"GENDER_UNSPECIFIED" ,
"GENDER_FEMALE" ,
"GENDER_MALE" ,
"GENDER_DIVERSE"
] ,
"default" : "GENDER_UNSPECIFIED"
2020-03-23 16:56:02 +01:00
} ,
"v1MFAState" : {
"type" : "string" ,
"enum" : [
"MFASTATE_UNSPECIFIED" ,
"MFASTATE_NOT_READY" ,
"MFASTATE_READY" ,
"MFASTATE_REMOVED"
] ,
"default" : "MFASTATE_UNSPECIFIED"
} ,
"v1MfaOtpResponse" : {
"type" : "object" ,
"properties" : {
"user_id" : {
"type" : "string"
} ,
"url" : {
"type" : "string"
} ,
"secret" : {
"type" : "string"
} ,
"state" : {
"$ref" : "#/definitions/v1MFAState"
}
}
} ,
"v1MfaType" : {
"type" : "string" ,
"enum" : [
"MFATYPE_UNSPECIFIED" ,
"MFATYPE_SMS" ,
"MFATYPE_OTP"
] ,
"default" : "MFATYPE_UNSPECIFIED"
} ,
"v1MultiFactor" : {
"type" : "object" ,
"properties" : {
"type" : {
"$ref" : "#/definitions/v1MfaType"
} ,
"state" : {
"$ref" : "#/definitions/v1MFAState"
}
}
} ,
"v1MultiFactors" : {
"type" : "object" ,
"properties" : {
"mfas" : {
"type" : "array" ,
"items" : {
"$ref" : "#/definitions/v1MultiFactor"
}
}
}
} ,
"v1MyPermissions" : {
"type" : "object" ,
2020-03-31 11:07:48 +02:00
"properties" : {
"permissions" : {
"type" : "array" ,
"items" : {
"type" : "string"
}
2020-03-23 16:56:02 +01:00
}
}
} ,
2020-03-31 11:07:48 +02:00
"v1MyProjectOrgSearchKey" : {
2020-03-23 16:56:02 +01:00
"type" : "string" ,
"enum" : [
2020-03-31 11:07:48 +02:00
"MYPROJECTORGSEARCHKEY_UNSPECIFIED" ,
"MYPROJECTORGSEARCHKEY_ORG_NAME"
2020-03-23 16:56:02 +01:00
] ,
2020-03-31 11:07:48 +02:00
"default" : "MYPROJECTORGSEARCHKEY_UNSPECIFIED"
2020-03-23 16:56:02 +01:00
} ,
2020-03-31 11:07:48 +02:00
"v1MyProjectOrgSearchQuery" : {
2020-03-23 16:56:02 +01:00
"type" : "object" ,
"properties" : {
2020-03-31 11:07:48 +02:00
"key" : {
"$ref" : "#/definitions/v1MyProjectOrgSearchKey"
2020-03-23 16:56:02 +01:00
} ,
2020-03-31 11:07:48 +02:00
"method" : {
"$ref" : "#/definitions/v1SearchMethod"
2020-03-23 16:56:02 +01:00
} ,
2020-03-31 11:07:48 +02:00
"value" : {
2020-03-23 16:56:02 +01:00
"type" : "string"
}
}
} ,
2020-03-31 11:07:48 +02:00
"v1MyProjectOrgSearchRequest" : {
2020-03-23 16:56:02 +01:00
"type" : "object" ,
"properties" : {
2020-03-31 11:07:48 +02:00
"offset" : {
"type" : "string" ,
"format" : "uint64"
2020-03-23 16:56:02 +01:00
} ,
2020-03-31 11:07:48 +02:00
"limit" : {
"type" : "string" ,
"format" : "uint64"
2020-03-23 16:56:02 +01:00
} ,
2020-03-31 11:07:48 +02:00
"asc" : {
"type" : "boolean" ,
"format" : "boolean"
2020-03-23 16:56:02 +01:00
} ,
2020-03-31 11:07:48 +02:00
"queries" : {
"type" : "array" ,
"items" : {
"$ref" : "#/definitions/v1MyProjectOrgSearchQuery"
}
}
}
} ,
"v1MyProjectOrgSearchResponse" : {
"type" : "object" ,
"properties" : {
"offset" : {
"type" : "string" ,
"format" : "uint64"
2020-03-23 16:56:02 +01:00
} ,
2020-03-31 11:07:48 +02:00
"limit" : {
"type" : "string" ,
"format" : "uint64"
2020-03-23 16:56:02 +01:00
} ,
2020-03-31 11:07:48 +02:00
"total_result" : {
"type" : "string" ,
"format" : "uint64"
2020-03-23 16:56:02 +01:00
} ,
2020-03-31 11:07:48 +02:00
"result" : {
"type" : "array" ,
"items" : {
"$ref" : "#/definitions/v1Org"
}
2020-03-23 16:56:02 +01:00
}
}
} ,
2020-03-31 11:07:48 +02:00
"v1Org" : {
2020-03-23 16:56:02 +01:00
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
2020-03-31 11:07:48 +02:00
"name" : {
"type" : "string"
}
}
} ,
"v1PasswordChange" : {
"type" : "object" ,
"properties" : {
"old_password" : {
2020-03-23 16:56:02 +01:00
"type" : "string"
} ,
"new_password" : {
"type" : "string"
}
}
} ,
"v1SearchMethod" : {
"type" : "string" ,
"enum" : [
"SEARCHMETHOD_EQUALS" ,
"SEARCHMETHOD_STARTS_WITH" ,
2020-06-05 07:50:04 +02:00
"SEARCHMETHOD_CONTAINS" ,
"SEARCHMETHOD_EQUALS_IGNORE_CASE" ,
"SEARCHMETHOD_STARTS_WITH_IGNORE_CASE" ,
"SEARCHMETHOD_CONTAINS_IGNORE_CASE"
2020-03-23 16:56:02 +01:00
] ,
"default" : "SEARCHMETHOD_EQUALS"
} ,
"v1UpdateUserAddressRequest" : {
"type" : "object" ,
"properties" : {
"country" : {
"type" : "string"
} ,
"locality" : {
"type" : "string"
} ,
"postal_code" : {
"type" : "string"
} ,
"region" : {
"type" : "string"
} ,
"street_address" : {
"type" : "string"
}
}
} ,
"v1UpdateUserEmailRequest" : {
"type" : "object" ,
"properties" : {
"email" : {
"type" : "string"
}
}
} ,
"v1UpdateUserPhoneRequest" : {
"type" : "object" ,
"properties" : {
"phone" : {
"type" : "string"
}
}
} ,
"v1UpdateUserProfileRequest" : {
"type" : "object" ,
"properties" : {
"first_name" : {
"type" : "string"
} ,
"last_name" : {
"type" : "string"
} ,
"nick_name" : {
"type" : "string"
} ,
"display_name" : {
"type" : "string"
} ,
"preferred_language" : {
"type" : "string"
} ,
"gender" : {
"$ref" : "#/definitions/v1Gender"
}
}
} ,
"v1UserAddress" : {
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"country" : {
"type" : "string"
} ,
"locality" : {
"type" : "string"
} ,
"postal_code" : {
"type" : "string"
} ,
"region" : {
"type" : "string"
} ,
"street_address" : {
"type" : "string"
2020-04-07 13:23:04 +02:00
} ,
"sequence" : {
"type" : "string" ,
"format" : "uint64"
2020-05-18 12:06:36 +02:00
} ,
"creation_date" : {
"type" : "string" ,
"format" : "date-time"
} ,
"change_date" : {
"type" : "string" ,
"format" : "date-time"
2020-03-23 16:56:02 +01:00
}
}
} ,
"v1UserEmail" : {
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"email" : {
"type" : "string"
} ,
"isEmailVerified" : {
"type" : "boolean" ,
"format" : "boolean"
2020-04-07 13:23:04 +02:00
} ,
"sequence" : {
"type" : "string" ,
"format" : "uint64"
2020-05-18 12:06:36 +02:00
} ,
"creation_date" : {
"type" : "string" ,
"format" : "date-time"
} ,
"change_date" : {
"type" : "string" ,
"format" : "date-time"
2020-03-23 16:56:02 +01:00
}
}
} ,
2020-06-05 07:50:04 +02:00
"v1UserGrantSearchKey" : {
"type" : "string" ,
"enum" : [
"UserGrantSearchKey_UNKNOWN" ,
"UserGrantSearchKey_ORG_ID" ,
"UserGrantSearchKey_PROJECT_ID"
] ,
"default" : "UserGrantSearchKey_UNKNOWN"
} ,
"v1UserGrantSearchQuery" : {
"type" : "object" ,
"properties" : {
"key" : {
"$ref" : "#/definitions/v1UserGrantSearchKey"
} ,
"method" : {
"$ref" : "#/definitions/v1SearchMethod"
} ,
"value" : {
"type" : "string"
}
}
} ,
"v1UserGrantSearchRequest" : {
"type" : "object" ,
"properties" : {
"offset" : {
"type" : "string" ,
"format" : "uint64"
} ,
"limit" : {
"type" : "string" ,
"format" : "uint64"
} ,
"sorting_column" : {
"$ref" : "#/definitions/v1UserGrantSearchKey"
} ,
"asc" : {
"type" : "boolean" ,
"format" : "boolean"
} ,
"queries" : {
"type" : "array" ,
"items" : {
"$ref" : "#/definitions/v1UserGrantSearchQuery"
}
}
}
} ,
"v1UserGrantSearchResponse" : {
"type" : "object" ,
"properties" : {
"offset" : {
"type" : "string" ,
"format" : "uint64"
} ,
"limit" : {
"type" : "string" ,
"format" : "uint64"
} ,
"total_result" : {
"type" : "string" ,
"format" : "uint64"
} ,
"result" : {
"type" : "array" ,
"items" : {
"$ref" : "#/definitions/v1UserGrantView"
}
}
}
} ,
"v1UserGrantView" : {
"type" : "object" ,
"properties" : {
"OrgId" : {
"type" : "string"
} ,
"ProjectId" : {
"type" : "string"
} ,
"UserId" : {
"type" : "string"
} ,
"Roles" : {
"type" : "array" ,
"items" : {
"type" : "string"
}
} ,
"OrgName" : {
"type" : "string"
}
}
} ,
2020-03-23 16:56:02 +01:00
"v1UserPhone" : {
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"phone" : {
"type" : "string"
} ,
"is_phone_verified" : {
"type" : "boolean" ,
"format" : "boolean"
2020-04-07 13:23:04 +02:00
} ,
"sequence" : {
"type" : "string" ,
"format" : "uint64"
2020-05-18 12:06:36 +02:00
} ,
"creation_date" : {
"type" : "string" ,
"format" : "date-time"
} ,
"change_date" : {
"type" : "string" ,
"format" : "date-time"
2020-03-23 16:56:02 +01:00
}
}
} ,
"v1UserProfile" : {
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"user_name" : {
"type" : "string"
} ,
"first_name" : {
"type" : "string"
} ,
"last_name" : {
"type" : "string"
} ,
"nick_name" : {
"type" : "string"
} ,
"display_name" : {
"type" : "string"
} ,
"preferred_language" : {
"type" : "string"
} ,
"gender" : {
"$ref" : "#/definitions/v1Gender"
2020-04-07 13:23:04 +02:00
} ,
"sequence" : {
"type" : "string" ,
"format" : "uint64"
2020-05-18 12:06:36 +02:00
} ,
"creation_date" : {
"type" : "string" ,
"format" : "date-time"
} ,
"change_date" : {
"type" : "string" ,
"format" : "date-time"
2020-03-23 16:56:02 +01:00
}
}
} ,
"v1UserSessionState" : {
"type" : "string" ,
"enum" : [
"USERSESSIONSTATE_UNSPECIFIED" ,
"USERSESSIONSTATE_ACTIVE" ,
"USERSESSIONSTATE_TERMINATED"
] ,
"default" : "USERSESSIONSTATE_UNSPECIFIED"
} ,
"v1UserSessionView" : {
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"agent_id" : {
"type" : "string"
} ,
"auth_state" : {
"$ref" : "#/definitions/v1UserSessionState"
} ,
"user_id" : {
"type" : "string"
} ,
"user_name" : {
"type" : "string"
2020-04-07 13:23:04 +02:00
} ,
"sequence" : {
"type" : "string" ,
"format" : "uint64"
2020-03-23 16:56:02 +01:00
}
}
} ,
"v1UserSessionViews" : {
"type" : "object" ,
"properties" : {
"user_sessions" : {
"type" : "array" ,
"items" : {
"$ref" : "#/definitions/v1UserSessionView"
}
}
}
} ,
"v1VerifyMfaOtp" : {
"type" : "object" ,
"properties" : {
"code" : {
"type" : "string"
}
}
} ,
"v1VerifyMyUserEmailRequest" : {
"type" : "object" ,
"properties" : {
"code" : {
"type" : "string"
}
}
} ,
"v1VerifyUserPhoneRequest" : {
"type" : "object" ,
"properties" : {
"code" : {
"type" : "string"
}
}
}
}
}