mirror of
https://github.com/paralus/paralus.git
synced 2026-05-17 05:47:04 +00:00
276 lines
5.5 KiB
JSON
276 lines
5.5 KiB
JSON
{
|
|
"swagger": "2.0",
|
|
"info": {
|
|
"title": "pkg/auth/v3/auth.proto",
|
|
"version": "version not set"
|
|
},
|
|
"tags": [
|
|
{
|
|
"name": "Auth"
|
|
}
|
|
],
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"paths": {},
|
|
"definitions": {
|
|
"protobufAny": {
|
|
"type": "object",
|
|
"properties": {
|
|
"@type": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": {}
|
|
},
|
|
"rpcStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/protobufAny"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"v3APIKeyStatus": {
|
|
"type": "string",
|
|
"enum": [
|
|
"APIKeyNotFound",
|
|
"APIKeyExists"
|
|
],
|
|
"default": "APIKeyNotFound"
|
|
},
|
|
"v3AuthType": {
|
|
"type": "string",
|
|
"enum": [
|
|
"AuthTypeNotSet",
|
|
"SessionLogin",
|
|
"APIKey"
|
|
],
|
|
"default": "AuthTypeNotSet"
|
|
},
|
|
"v3ClientType": {
|
|
"type": "string",
|
|
"enum": [
|
|
"ClientTypeNotSet",
|
|
"BROWSER",
|
|
"CLI"
|
|
],
|
|
"default": "ClientTypeNotSet"
|
|
},
|
|
"v3GetAPIKeyResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"status": {
|
|
"$ref": "#/definitions/v3APIKeyStatus"
|
|
},
|
|
"reason": {
|
|
"type": "string"
|
|
},
|
|
"secret": {
|
|
"type": "string"
|
|
},
|
|
"data": {
|
|
"$ref": "#/definitions/v3SessionData"
|
|
}
|
|
}
|
|
},
|
|
"v3GetSessionResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"status": {
|
|
"$ref": "#/definitions/v3SessionStatus"
|
|
},
|
|
"reason": {
|
|
"type": "string"
|
|
},
|
|
"data": {
|
|
"$ref": "#/definitions/v3SessionData"
|
|
}
|
|
}
|
|
},
|
|
"v3IsRequestAllowedResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"status": {
|
|
"$ref": "#/definitions/v3RequestStatus"
|
|
},
|
|
"reason": {
|
|
"type": "string"
|
|
},
|
|
"sessionData": {
|
|
"$ref": "#/definitions/v3SessionData"
|
|
}
|
|
}
|
|
},
|
|
"v3NamespaceData": {
|
|
"type": "object",
|
|
"properties": {
|
|
"projectId": {
|
|
"type": "string"
|
|
},
|
|
"namespaceId": {
|
|
"type": "string"
|
|
},
|
|
"role": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"v3ProjectData": {
|
|
"type": "object",
|
|
"properties": {
|
|
"all": {
|
|
"type": "boolean"
|
|
},
|
|
"list": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/v3ProjectRole"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"v3ProjectRole": {
|
|
"type": "object",
|
|
"properties": {
|
|
"projectId": {
|
|
"type": "string"
|
|
},
|
|
"role": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"v3RequestStatus": {
|
|
"type": "string",
|
|
"enum": [
|
|
"RequestAllowed",
|
|
"RequestNotAuthenticated",
|
|
"RequestMethodOrURLNotAllowed"
|
|
],
|
|
"default": "RequestAllowed"
|
|
},
|
|
"v3ResourceURLMethods": {
|
|
"type": "object",
|
|
"properties": {
|
|
"methods": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"v3SessionData": {
|
|
"type": "object",
|
|
"properties": {
|
|
"account": {
|
|
"type": "string"
|
|
},
|
|
"organization": {
|
|
"type": "string"
|
|
},
|
|
"partner": {
|
|
"type": "string"
|
|
},
|
|
"role": {
|
|
"type": "string"
|
|
},
|
|
"permissions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"partnerDomain": {
|
|
"type": "string"
|
|
},
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"isSuperAdmin": {
|
|
"type": "boolean"
|
|
},
|
|
"isPartnerAdmin": {
|
|
"type": "boolean"
|
|
},
|
|
"isSsoUser": {
|
|
"type": "boolean"
|
|
},
|
|
"resourceUrls": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"$ref": "#/definitions/v3ResourceURLMethods"
|
|
}
|
|
},
|
|
"ttl": {
|
|
"type": "string"
|
|
},
|
|
"groups": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"authType": {
|
|
"$ref": "#/definitions/v3AuthType"
|
|
},
|
|
"idp": {
|
|
"type": "string"
|
|
},
|
|
"isOrgAdmin": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"clientType": {
|
|
"$ref": "#/definitions/v3ClientType"
|
|
},
|
|
"isAllNsAccess": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"namespaces": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/v3NamespaceData"
|
|
}
|
|
},
|
|
"project": {
|
|
"$ref": "#/definitions/v3ProjectData"
|
|
},
|
|
"isReadonlyOrgAdmin": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "boolean"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"v3SessionStatus": {
|
|
"type": "string",
|
|
"enum": [
|
|
"SessionNotFound",
|
|
"SessionExists"
|
|
],
|
|
"default": "SessionNotFound"
|
|
}
|
|
}
|
|
}
|