{ "openapi": "3.0.1", "info": { "title": "Aegis API", "description": "Centralized, explainable authorization API.", "version": "v1" }, "servers": [ { "url": "/" } ], "paths": { "/metrics": { "get": { "tags": [ "Aegis.Api" ], "responses": { "200": { "description": "OK" } } } }, "/api/v1/tenants/{tenantId}/audit": { "get": { "tags": [ "Audit" ], "parameters": [ { "name": "tenantId", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "action", "in": "query", "schema": { "type": "string" } }, { "name": "decision", "in": "query", "schema": { "type": "string" } }, { "name": "storeId", "in": "query", "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AuditEventDtoIReadOnlyListApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AuditEventDtoIReadOnlyListApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AuditEventDtoIReadOnlyListApiResponse" } } } } } } }, "/api/v1/auth/login": { "post": { "tags": [ "Auth" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LoginRequestDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/LoginRequestDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/LoginRequestDto" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/LoginResponseDtoApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/LoginResponseDtoApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/LoginResponseDtoApiResponse" } } } }, "429": { "description": "Too Many Requests", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } } } } } } }, "/api/v1/auth/refresh": { "post": { "tags": [ "Auth" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RefreshRequestDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/RefreshRequestDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/RefreshRequestDto" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/LoginResponseDtoApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/LoginResponseDtoApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/LoginResponseDtoApiResponse" } } } }, "429": { "description": "Too Many Requests", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } } } } } } }, "/api/v1/auth/me": { "get": { "tags": [ "Auth" ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/UserProfileDtoApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/UserProfileDtoApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UserProfileDtoApiResponse" } } } } } } }, "/api/v1/auth/logout": { "post": { "tags": [ "Auth" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RefreshRequestDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/RefreshRequestDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/RefreshRequestDto" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } } } } } } }, "/api/v1/auth/logout-all": { "post": { "tags": [ "Auth" ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } } } } } } }, "/api/v1/stores/{storeId}/authorization-models": { "get": { "tags": [ "AuthorizationModels" ], "parameters": [ { "name": "storeId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AuthorizationModelDtoIReadOnlyListApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AuthorizationModelDtoIReadOnlyListApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AuthorizationModelDtoIReadOnlyListApiResponse" } } } } } }, "post": { "tags": [ "AuthorizationModels" ], "parameters": [ { "name": "storeId", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "Idempotency-Key", "in": "header", "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateAuthorizationModelRequestDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CreateAuthorizationModelRequestDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/CreateAuthorizationModelRequestDto" } } } }, "responses": { "201": { "description": "Created", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AuthorizationModelDtoApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AuthorizationModelDtoApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AuthorizationModelDtoApiResponse" } } } }, "409": { "description": "Conflict", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } } } } } } }, "/api/v1/stores/{storeId}/authorization-models/latest": { "get": { "tags": [ "AuthorizationModels" ], "parameters": [ { "name": "storeId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AuthorizationModelDtoApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AuthorizationModelDtoApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AuthorizationModelDtoApiResponse" } } } }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AuthorizationModelDtoApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AuthorizationModelDtoApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AuthorizationModelDtoApiResponse" } } } } } } }, "/api/v1/stores/{storeId}/authorization-models/{authorizationModelId}": { "get": { "tags": [ "AuthorizationModels" ], "parameters": [ { "name": "storeId", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "authorizationModelId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AuthorizationModelDtoApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AuthorizationModelDtoApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AuthorizationModelDtoApiResponse" } } } }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AuthorizationModelDtoApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AuthorizationModelDtoApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AuthorizationModelDtoApiResponse" } } } } } }, "put": { "tags": [ "AuthorizationModels" ], "parameters": [ { "name": "storeId", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "authorizationModelId", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "If-Match", "in": "header", "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateAuthorizationModelRequestDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CreateAuthorizationModelRequestDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/CreateAuthorizationModelRequestDto" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AuthorizationModelDtoApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AuthorizationModelDtoApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AuthorizationModelDtoApiResponse" } } } }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AuthorizationModelDtoApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AuthorizationModelDtoApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AuthorizationModelDtoApiResponse" } } } }, "412": { "description": "Precondition Failed", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } } } }, "428": { "description": "Precondition Required", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } } } } } }, "delete": { "tags": [ "AuthorizationModels" ], "parameters": [ { "name": "storeId", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "authorizationModelId", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "If-Match", "in": "header", "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } } } }, "412": { "description": "Precondition Failed", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } } } }, "428": { "description": "Precondition Required", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } } } } } } }, "/api/v1/stores/{storeId}/authorization-models/{authorizationModelId}/publish": { "post": { "tags": [ "AuthorizationModels" ], "parameters": [ { "name": "storeId", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "authorizationModelId", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "If-Match", "in": "header", "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/PublishAuthorizationModelResponseDtoApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/PublishAuthorizationModelResponseDtoApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/PublishAuthorizationModelResponseDtoApiResponse" } } } }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/PublishAuthorizationModelResponseDtoApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/PublishAuthorizationModelResponseDtoApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/PublishAuthorizationModelResponseDtoApiResponse" } } } }, "412": { "description": "Precondition Failed", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } } } }, "428": { "description": "Precondition Required", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } } } } } } }, "/api/v1/stores/{storeId}/authorization-models/{authorizationModelId}/rollback": { "post": { "tags": [ "AuthorizationModels" ], "parameters": [ { "name": "storeId", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "authorizationModelId", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "If-Match", "in": "header", "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/RollbackAuthorizationModelResponseDtoApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/RollbackAuthorizationModelResponseDtoApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/RollbackAuthorizationModelResponseDtoApiResponse" } } } }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/RollbackAuthorizationModelResponseDtoApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/RollbackAuthorizationModelResponseDtoApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/RollbackAuthorizationModelResponseDtoApiResponse" } } } }, "412": { "description": "Precondition Failed", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } } } }, "428": { "description": "Precondition Required", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } } } } } } }, "/api/v1/stores/{storeId}/authorization-models/{leftAuthorizationModelId}/diff/{rightAuthorizationModelId}": { "get": { "tags": [ "AuthorizationModels" ], "parameters": [ { "name": "storeId", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "leftAuthorizationModelId", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "rightAuthorizationModelId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AuthorizationModelDiffDtoApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AuthorizationModelDiffDtoApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AuthorizationModelDiffDtoApiResponse" } } } }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AuthorizationModelDiffDtoApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AuthorizationModelDiffDtoApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AuthorizationModelDiffDtoApiResponse" } } } } } } }, "/api/v1/stores/{storeId}/authorization-models/validate": { "post": { "tags": [ "AuthorizationModels" ], "parameters": [ { "name": "storeId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ValidateAuthorizationModelRequestDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ValidateAuthorizationModelRequestDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/ValidateAuthorizationModelRequestDto" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AuthorizationModelValidationResultDtoApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AuthorizationModelValidationResultDtoApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AuthorizationModelValidationResultDtoApiResponse" } } } } } } }, "/api/v1/check": { "post": { "tags": [ "Check" ], "parameters": [ { "name": "tenantId", "in": "query", "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CheckRequestDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CheckRequestDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/CheckRequestDto" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/CheckResponseDtoApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/CheckResponseDtoApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CheckResponseDtoApiResponse" } } } } } } }, "/api/v1/explain": { "post": { "tags": [ "Explain" ], "parameters": [ { "name": "tenantId", "in": "query", "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CheckRequestDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CheckRequestDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/CheckRequestDto" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/CheckResponseDtoApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/CheckResponseDtoApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CheckResponseDtoApiResponse" } } } } } } }, "/api/v1/metrics/authorization": { "get": { "tags": [ "Metrics" ], "responses": { "200": { "description": "OK" } } } }, "/api/v1/tenants/{tenantId}/permissions": { "get": { "tags": [ "Permissions" ], "parameters": [ { "name": "tenantId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/PermissionDtoIReadOnlyListApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/PermissionDtoIReadOnlyListApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/PermissionDtoIReadOnlyListApiResponse" } } } } } }, "post": { "tags": [ "Permissions" ], "parameters": [ { "name": "tenantId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreatePermissionRequestDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CreatePermissionRequestDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/CreatePermissionRequestDto" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } } } } } } }, "/api/v1/tenants/{tenantId}/permissions/resolve": { "get": { "tags": [ "Permissions" ], "parameters": [ { "name": "tenantId", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "relation", "in": "query", "schema": { "type": "string" } }, { "name": "object", "in": "query", "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/PermissionDtoApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/PermissionDtoApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/PermissionDtoApiResponse" } } } }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ObjectApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ObjectApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ObjectApiResponse" } } } } } } }, "/api/v1/tenants/{tenantId}/permissions/assign-to-role": { "post": { "tags": [ "Permissions" ], "parameters": [ { "name": "tenantId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AssignPermissionToRoleRequestDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AssignPermissionToRoleRequestDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/AssignPermissionToRoleRequestDto" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } } } } } } }, "/api/v1/tenants/{tenantId}/presets": { "get": { "tags": [ "Presets" ], "parameters": [ { "name": "tenantId", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "storeId", "in": "query", "schema": { "type": "string" } }, { "name": "source", "in": "query", "schema": { "type": "string" } }, { "name": "scope", "in": "query", "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/PresetItemDtoIReadOnlyListApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/PresetItemDtoIReadOnlyListApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/PresetItemDtoIReadOnlyListApiResponse" } } } } } }, "post": { "tags": [ "Presets" ], "parameters": [ { "name": "tenantId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpsertPresetRequestDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UpsertPresetRequestDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/UpsertPresetRequestDto" } } } }, "responses": { "201": { "description": "Created", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/PresetItemDtoApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/PresetItemDtoApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/PresetItemDtoApiResponse" } } } } } }, "delete": { "tags": [ "Presets" ], "parameters": [ { "name": "tenantId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DeletePresetRequestDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/DeletePresetRequestDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/DeletePresetRequestDto" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } } } } } } }, "/api/v1/tenants/{tenantId}/presets/meta": { "get": { "tags": [ "Presets" ], "parameters": [ { "name": "tenantId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/StringPresetMetaDtoIReadOnlyDictionaryApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/StringPresetMetaDtoIReadOnlyDictionaryApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/StringPresetMetaDtoIReadOnlyDictionaryApiResponse" } } } } } }, "put": { "tags": [ "Presets" ], "parameters": [ { "name": "tenantId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SetPresetMetaRequestDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/SetPresetMetaRequestDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/SetPresetMetaRequestDto" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/StringPresetMetaDtoIReadOnlyDictionaryApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/StringPresetMetaDtoIReadOnlyDictionaryApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/StringPresetMetaDtoIReadOnlyDictionaryApiResponse" } } } } } } }, "/api/v1/tenants/{tenantId}/roles": { "get": { "tags": [ "Roles" ], "parameters": [ { "name": "tenantId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/RoleDtoIReadOnlyListApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/RoleDtoIReadOnlyListApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/RoleDtoIReadOnlyListApiResponse" } } } } } }, "post": { "tags": [ "Roles" ], "parameters": [ { "name": "tenantId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateRoleRequestDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CreateRoleRequestDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/CreateRoleRequestDto" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } } } } } } }, "/api/v1/tenants/{tenantId}/roles/assign-permission": { "post": { "tags": [ "Roles" ], "parameters": [ { "name": "tenantId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AssignPermissionToRoleRequestDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AssignPermissionToRoleRequestDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/AssignPermissionToRoleRequestDto" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } } } } } } }, "/api/v1/stores/{storeId}/assertions/{authorizationModelId}": { "get": { "tags": [ "StoreAssertions" ], "parameters": [ { "name": "storeId", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "authorizationModelId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AegisCompatReadAssertionsResponseDtoApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AegisCompatReadAssertionsResponseDtoApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AegisCompatReadAssertionsResponseDtoApiResponse" } } } } } }, "post": { "tags": [ "StoreAssertions" ], "parameters": [ { "name": "storeId", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "authorizationModelId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AegisCompatWriteAssertionsRequestDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AegisCompatWriteAssertionsRequestDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/AegisCompatWriteAssertionsRequestDto" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } } } } } } }, "/api/v1/stores/{storeId}/assertions/{authorizationModelId}/run": { "post": { "tags": [ "StoreAssertions" ], "parameters": [ { "name": "storeId", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "authorizationModelId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AegisAssertionRunRecordDtoApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AegisAssertionRunRecordDtoApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AegisAssertionRunRecordDtoApiResponse" } } } } } } }, "/api/v1/stores/{storeId}/assertions/{authorizationModelId}/runs": { "get": { "tags": [ "StoreAssertions" ], "parameters": [ { "name": "storeId", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "authorizationModelId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AegisAssertionRunListResponseDtoApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AegisAssertionRunListResponseDtoApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AegisAssertionRunListResponseDtoApiResponse" } } } } } } }, "/api/v1/stores/{storeId}/assertions/runs/{runId}": { "get": { "tags": [ "StoreAssertions" ], "parameters": [ { "name": "storeId", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "runId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AegisAssertionRunRecordDtoApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AegisAssertionRunRecordDtoApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AegisAssertionRunRecordDtoApiResponse" } } } }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AegisAssertionRunRecordDtoApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AegisAssertionRunRecordDtoApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AegisAssertionRunRecordDtoApiResponse" } } } } } } }, "/api/v1/stores/{storeId}/assertions/{authorizationModelId}/generate-from-audit": { "post": { "tags": [ "StoreAssertions" ], "parameters": [ { "name": "storeId", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "authorizationModelId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AegisGenerateAssertionsFromAuditRequestDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AegisGenerateAssertionsFromAuditRequestDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/AegisGenerateAssertionsFromAuditRequestDto" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AegisGenerateAssertionsFromAuditResponseDtoApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AegisGenerateAssertionsFromAuditResponseDtoApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AegisGenerateAssertionsFromAuditResponseDtoApiResponse" } } } } } } }, "/api/v1/stores/{storeId}/check": { "post": { "tags": [ "StoreCheck" ], "parameters": [ { "name": "storeId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CheckRequestDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CheckRequestDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/CheckRequestDto" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/CheckResponseDtoApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/CheckResponseDtoApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CheckResponseDtoApiResponse" } } } } } } }, "/api/v1/stores/{storeId}/explain": { "post": { "tags": [ "StoreCheck" ], "parameters": [ { "name": "storeId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CheckRequestDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CheckRequestDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/CheckRequestDto" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/CheckResponseDtoApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/CheckResponseDtoApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CheckResponseDtoApiResponse" } } } } } } }, "/api/v1/stores/{storeId}/batch-check": { "post": { "tags": [ "StoreCheck" ], "parameters": [ { "name": "storeId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BatchCheckRequestDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/BatchCheckRequestDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/BatchCheckRequestDto" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/BatchCheckResponseDtoApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/BatchCheckResponseDtoApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/BatchCheckResponseDtoApiResponse" } } } } } } }, "/api/v1/stores/{storeId}/check/compat": { "post": { "tags": [ "StoreCheck" ], "parameters": [ { "name": "storeId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AegisCompatCheckRequestDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AegisCompatCheckRequestDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/AegisCompatCheckRequestDto" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AegisCompatCheckResponseDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AegisCompatCheckResponseDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AegisCompatCheckResponseDto" } } } } } } }, "/api/v1/stores/{storeId}/batch-check/compat": { "post": { "tags": [ "StoreCheck" ], "parameters": [ { "name": "storeId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AegisCompatBatchCheckRequestDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AegisCompatBatchCheckRequestDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/AegisCompatBatchCheckRequestDto" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AegisCompatBatchCheckResponseDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AegisCompatBatchCheckResponseDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AegisCompatBatchCheckResponseDto" } } } } } } }, "/api/v1/stores/{storeId}/graph/list-users": { "post": { "tags": [ "StoreGraph" ], "parameters": [ { "name": "storeId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ListUsersRequestDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ListUsersRequestDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/ListUsersRequestDto" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ListUsersResponseDtoApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ListUsersResponseDtoApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ListUsersResponseDtoApiResponse" } } } } } } }, "/api/v1/stores/{storeId}/graph/list-objects": { "post": { "tags": [ "StoreGraph" ], "parameters": [ { "name": "storeId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ListObjectsRequestDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ListObjectsRequestDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/ListObjectsRequestDto" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ListObjectsResponseDtoApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ListObjectsResponseDtoApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ListObjectsResponseDtoApiResponse" } } } } } } }, "/api/v1/stores/{storeId}/graph/expand": { "post": { "tags": [ "StoreGraph" ], "parameters": [ { "name": "storeId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExpandRequestDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ExpandRequestDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/ExpandRequestDto" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ExpandNodeDtoApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ExpandNodeDtoApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ExpandNodeDtoApiResponse" } } } } } } }, "/api/v1/stores/{storeId}/graph/list-users/compat": { "post": { "tags": [ "StoreGraph" ], "parameters": [ { "name": "storeId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AegisCompatListUsersRequestDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AegisCompatListUsersRequestDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/AegisCompatListUsersRequestDto" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AegisCompatListUsersResponseDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AegisCompatListUsersResponseDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AegisCompatListUsersResponseDto" } } } } } } }, "/api/v1/stores/{storeId}/graph/list-objects/compat": { "post": { "tags": [ "StoreGraph" ], "parameters": [ { "name": "storeId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AegisCompatListObjectsRequestDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AegisCompatListObjectsRequestDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/AegisCompatListObjectsRequestDto" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AegisCompatListObjectsResponseDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AegisCompatListObjectsResponseDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AegisCompatListObjectsResponseDto" } } } } } } }, "/api/v1/stores/{storeId}/graph/expand/compat": { "post": { "tags": [ "StoreGraph" ], "parameters": [ { "name": "storeId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AegisCompatExpandRequestDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AegisCompatExpandRequestDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/AegisCompatExpandRequestDto" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AegisCompatExpandResponseDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AegisCompatExpandResponseDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AegisCompatExpandResponseDto" } } } } } } }, "/api/v1/stores/{storeId}/permissions": { "get": { "tags": [ "StorePermissions" ], "parameters": [ { "name": "storeId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/PermissionDtoIReadOnlyListApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/PermissionDtoIReadOnlyListApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/PermissionDtoIReadOnlyListApiResponse" } } } } } }, "post": { "tags": [ "StorePermissions" ], "parameters": [ { "name": "storeId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreatePermissionRequestDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CreatePermissionRequestDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/CreatePermissionRequestDto" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } } } } } } }, "/api/v1/stores/{storeId}/permissions/resolve": { "get": { "tags": [ "StorePermissions" ], "parameters": [ { "name": "storeId", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "relation", "in": "query", "schema": { "type": "string" } }, { "name": "object", "in": "query", "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/PermissionDtoApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/PermissionDtoApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/PermissionDtoApiResponse" } } } }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ObjectApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ObjectApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ObjectApiResponse" } } } } } } }, "/api/v1/stores/{storeId}/permissions/assign-to-role": { "post": { "tags": [ "StorePermissions" ], "parameters": [ { "name": "storeId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AssignPermissionToRoleRequestDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AssignPermissionToRoleRequestDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/AssignPermissionToRoleRequestDto" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } } } } } } }, "/api/v1/stores/{storeId}/relationships": { "get": { "tags": [ "StoreRelationships" ], "parameters": [ { "name": "storeId", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "subject", "in": "query", "schema": { "type": "string" } }, { "name": "relation", "in": "query", "schema": { "type": "string" } }, { "name": "object", "in": "query", "schema": { "type": "string" } }, { "name": "effect", "in": "query", "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/RelationshipTupleDtoIReadOnlyListApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/RelationshipTupleDtoIReadOnlyListApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/RelationshipTupleDtoIReadOnlyListApiResponse" } } } } } }, "post": { "tags": [ "StoreRelationships" ], "parameters": [ { "name": "storeId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RelationshipWriteRequestDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/RelationshipWriteRequestDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/RelationshipWriteRequestDto" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } } } } } }, "delete": { "tags": [ "StoreRelationships" ], "parameters": [ { "name": "storeId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RelationshipDeleteRequestDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/RelationshipDeleteRequestDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/RelationshipDeleteRequestDto" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } } } } } } }, "/api/v1/stores/{storeId}/relationships/changes": { "get": { "tags": [ "StoreRelationships" ], "parameters": [ { "name": "storeId", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "page_size", "in": "query", "schema": { "maximum": 100, "minimum": 1, "type": "integer", "format": "int32" } }, { "name": "continuation_token", "in": "query", "schema": { "maxLength": 512, "minLength": 0, "type": "string" } }, { "name": "type", "in": "query", "schema": { "maxLength": 128, "minLength": 0, "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ReadChangesResponseDtoApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ReadChangesResponseDtoApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ReadChangesResponseDtoApiResponse" } } } } } } }, "/api/v1/stores/{storeId}/roles": { "get": { "tags": [ "StoreRoles" ], "parameters": [ { "name": "storeId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/RoleDtoIReadOnlyListApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/RoleDtoIReadOnlyListApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/RoleDtoIReadOnlyListApiResponse" } } } } } }, "post": { "tags": [ "StoreRoles" ], "parameters": [ { "name": "storeId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateRoleRequestDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CreateRoleRequestDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/CreateRoleRequestDto" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } } } } } } }, "/api/v1/stores/{storeId}/roles/assign-permission": { "post": { "tags": [ "StoreRoles" ], "parameters": [ { "name": "storeId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AssignPermissionToRoleRequestDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AssignPermissionToRoleRequestDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/AssignPermissionToRoleRequestDto" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } } } } } } }, "/api/v1/stores": { "get": { "tags": [ "Stores" ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/StoreDtoIReadOnlyListApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/StoreDtoIReadOnlyListApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/StoreDtoIReadOnlyListApiResponse" } } } } } }, "post": { "tags": [ "Stores" ], "parameters": [ { "name": "Idempotency-Key", "in": "header", "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateStoreRequestDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CreateStoreRequestDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/CreateStoreRequestDto" } } } }, "responses": { "201": { "description": "Created", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/StoreDtoApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/StoreDtoApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/StoreDtoApiResponse" } } } }, "409": { "description": "Conflict", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } } } } } } }, "/api/v1/stores/{storeId}": { "get": { "tags": [ "Stores" ], "parameters": [ { "name": "storeId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/StoreDtoApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/StoreDtoApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/StoreDtoApiResponse" } } } }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/StoreDtoApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/StoreDtoApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/StoreDtoApiResponse" } } } } } }, "delete": { "tags": [ "Stores" ], "parameters": [ { "name": "storeId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } } } } } } }, "/api/v1/stores/{storeId}/users/{userId}/roles": { "get": { "tags": [ "StoreUsers" ], "parameters": [ { "name": "storeId", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "userId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/UserRolesDtoApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/UserRolesDtoApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UserRolesDtoApiResponse" } } } } } }, "post": { "tags": [ "StoreUsers" ], "parameters": [ { "name": "storeId", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "userId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AssignRoleToUserRequestDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AssignRoleToUserRequestDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/AssignRoleToUserRequestDto" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } } } } } } }, "/api/v1/tenants/{tenantId}/users": { "get": { "tags": [ "Users" ], "parameters": [ { "name": "tenantId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/UserDtoIReadOnlyListApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/UserDtoIReadOnlyListApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UserDtoIReadOnlyListApiResponse" } } } } } }, "post": { "tags": [ "Users" ], "parameters": [ { "name": "tenantId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateUserRequestDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CreateUserRequestDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/CreateUserRequestDto" } } } }, "responses": { "201": { "description": "Created", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/UserDtoApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/UserDtoApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UserDtoApiResponse" } } } } } } }, "/api/v1/tenants/{tenantId}/users/{userId}": { "put": { "tags": [ "Users" ], "parameters": [ { "name": "tenantId", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "userId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateUserRequestDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UpdateUserRequestDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/UpdateUserRequestDto" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/UserDtoApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/UserDtoApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UserDtoApiResponse" } } } }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/UserDtoApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/UserDtoApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UserDtoApiResponse" } } } } } }, "delete": { "tags": [ "Users" ], "parameters": [ { "name": "tenantId", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "userId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } } } } } } }, "/api/v1/tenants/{tenantId}/users/{userId}/roles": { "get": { "tags": [ "Users" ], "parameters": [ { "name": "tenantId", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "userId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/UserRolesDtoApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/UserRolesDtoApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UserRolesDtoApiResponse" } } } } } }, "post": { "tags": [ "Users" ], "parameters": [ { "name": "tenantId", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "userId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AssignRoleToUserRequestDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AssignRoleToUserRequestDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/AssignRoleToUserRequestDto" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/StringApiResponse" } } } } } } } }, "components": { "schemas": { "AegisApiError": { "type": "object", "properties": { "code": { "type": "string", "nullable": true }, "message": { "type": "string", "nullable": true }, "traceId": { "type": "string", "nullable": true }, "details": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "string" } }, "nullable": true } }, "additionalProperties": false }, "AegisAssertionRunListResponseDto": { "type": "object", "properties": { "runs": { "type": "array", "items": { "$ref": "#/components/schemas/AegisAssertionRunRecordDto" }, "nullable": true } }, "additionalProperties": false }, "AegisAssertionRunListResponseDtoApiResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "data": { "$ref": "#/components/schemas/AegisAssertionRunListResponseDto" }, "error": { "$ref": "#/components/schemas/AegisApiError" } }, "additionalProperties": false }, "AegisAssertionRunRecordDto": { "type": "object", "properties": { "run_id": { "type": "string", "nullable": true }, "store_id": { "type": "string", "nullable": true }, "authorization_model_id": { "type": "string", "nullable": true }, "definition_revision": { "type": "integer", "format": "int64" }, "started_at": { "type": "string", "format": "date-time" }, "completed_at": { "type": "string", "format": "date-time" }, "summary": { "$ref": "#/components/schemas/AegisAssertionRunSummaryDto" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/AegisAssertionRunResultItemDto" }, "nullable": true } }, "additionalProperties": false }, "AegisAssertionRunRecordDtoApiResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "data": { "$ref": "#/components/schemas/AegisAssertionRunRecordDto" }, "error": { "$ref": "#/components/schemas/AegisApiError" } }, "additionalProperties": false }, "AegisAssertionRunResultItemDto": { "type": "object", "properties": { "tuple_key": { "$ref": "#/components/schemas/AegisCompatTupleKeyDto" }, "expected": { "type": "boolean" }, "actual": { "type": "boolean" }, "passed": { "type": "boolean" }, "decision": { "type": "string", "nullable": true }, "reason": { "type": "string", "nullable": true }, "explain_trace_id": { "type": "string", "nullable": true } }, "additionalProperties": false }, "AegisAssertionRunSummaryDto": { "type": "object", "properties": { "total": { "type": "integer", "format": "int32" }, "passed": { "type": "integer", "format": "int32" }, "failed": { "type": "integer", "format": "int32" } }, "additionalProperties": false }, "AegisCompatAssertionDto": { "type": "object", "properties": { "tuple_key": { "$ref": "#/components/schemas/AegisCompatTupleKeyDto" }, "expectation": { "type": "boolean" }, "contextual_tuples": { "$ref": "#/components/schemas/AegisCompatContextualTuplesDto" } }, "additionalProperties": false }, "AegisCompatBatchCheckItemRequestDto": { "type": "object", "properties": { "tuple_key": { "$ref": "#/components/schemas/AegisCompatTupleKeyDto" }, "correlation_id": { "type": "string", "nullable": true }, "contextual_tuples": { "$ref": "#/components/schemas/AegisCompatContextualTuplesDto" }, "consistency": { "type": "string", "nullable": true }, "authorization_model_id": { "type": "string", "nullable": true }, "context": { "type": "object", "additionalProperties": { }, "nullable": true } }, "additionalProperties": false }, "AegisCompatBatchCheckRequestDto": { "type": "object", "properties": { "checks": { "type": "array", "items": { "$ref": "#/components/schemas/AegisCompatBatchCheckItemRequestDto" }, "nullable": true }, "authorization_model_id": { "type": "string", "nullable": true } }, "additionalProperties": false }, "AegisCompatBatchCheckResponseDto": { "type": "object", "properties": { "result": { "type": "array", "items": { "$ref": "#/components/schemas/AegisCompatBatchCheckResultItemDto" }, "nullable": true } }, "additionalProperties": false }, "AegisCompatBatchCheckResultItemDto": { "type": "object", "properties": { "correlation_id": { "type": "string", "nullable": true }, "allowed": { "type": "boolean", "nullable": true }, "error": { "$ref": "#/components/schemas/AegisCompatErrorResponseDto" } }, "additionalProperties": false }, "AegisCompatCheckRequestDto": { "type": "object", "properties": { "tuple_key": { "$ref": "#/components/schemas/AegisCompatTupleKeyDto" }, "contextual_tuples": { "$ref": "#/components/schemas/AegisCompatContextualTuplesDto" }, "consistency": { "type": "string", "nullable": true }, "authorization_model_id": { "type": "string", "nullable": true }, "context": { "type": "object", "additionalProperties": { }, "nullable": true } }, "additionalProperties": false }, "AegisCompatCheckResponseDto": { "type": "object", "properties": { "allowed": { "type": "boolean" } }, "additionalProperties": false }, "AegisCompatContextualTuplesDto": { "type": "object", "properties": { "tuple_keys": { "type": "array", "items": { "$ref": "#/components/schemas/AegisCompatTupleKeyDto" }, "nullable": true } }, "additionalProperties": false }, "AegisCompatErrorResponseDto": { "type": "object", "properties": { "code": { "type": "string", "nullable": true }, "message": { "type": "string", "nullable": true } }, "additionalProperties": false }, "AegisCompatExpandRequestDto": { "type": "object", "properties": { "tuple_key": { "$ref": "#/components/schemas/AegisCompatTupleKeyDto" }, "consistency": { "type": "string", "nullable": true }, "authorization_model_id": { "type": "string", "nullable": true }, "contextual_tuples": { "$ref": "#/components/schemas/AegisCompatContextualTuplesDto" }, "context": { "type": "object", "additionalProperties": { }, "nullable": true } }, "additionalProperties": false }, "AegisCompatExpandResponseDto": { "type": "object", "properties": { "tree": { "$ref": "#/components/schemas/ExpandNodeDto" } }, "additionalProperties": false }, "AegisCompatListObjectsRequestDto": { "type": "object", "properties": { "user": { "type": "string", "nullable": true }, "relation": { "type": "string", "nullable": true }, "type": { "type": "string", "nullable": true }, "contextual_tuples": { "$ref": "#/components/schemas/AegisCompatContextualTuplesDto" }, "consistency": { "type": "string", "nullable": true }, "authorization_model_id": { "type": "string", "nullable": true }, "context": { "type": "object", "additionalProperties": { }, "nullable": true } }, "additionalProperties": false }, "AegisCompatListObjectsResponseDto": { "type": "object", "properties": { "objects": { "type": "array", "items": { "type": "string" }, "nullable": true } }, "additionalProperties": false }, "AegisCompatListUsersRequestDto": { "type": "object", "properties": { "object": { "$ref": "#/components/schemas/AegisCompatObjectRefDto" }, "relation": { "type": "string", "nullable": true }, "user_filters": { "type": "array", "items": { "$ref": "#/components/schemas/AegisCompatUserFilterDto" }, "nullable": true }, "contextual_tuples": { "$ref": "#/components/schemas/AegisCompatContextualTuplesDto" }, "consistency": { "type": "string", "nullable": true }, "authorization_model_id": { "type": "string", "nullable": true }, "context": { "type": "object", "additionalProperties": { }, "nullable": true } }, "additionalProperties": false }, "AegisCompatListUsersResponseDto": { "type": "object", "properties": { "users": { "type": "array", "items": { "$ref": "#/components/schemas/AegisCompatUserEntryDto" }, "nullable": true } }, "additionalProperties": false }, "AegisCompatObjectRefDto": { "type": "object", "properties": { "type": { "type": "string", "nullable": true }, "id": { "type": "string", "nullable": true }, "relation": { "type": "string", "nullable": true } }, "additionalProperties": false }, "AegisCompatReadAssertionsResponseDto": { "type": "object", "properties": { "authorization_model_id": { "type": "string", "nullable": true }, "assertions": { "type": "array", "items": { "$ref": "#/components/schemas/AegisCompatAssertionDto" }, "nullable": true } }, "additionalProperties": false }, "AegisCompatReadAssertionsResponseDtoApiResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "data": { "$ref": "#/components/schemas/AegisCompatReadAssertionsResponseDto" }, "error": { "$ref": "#/components/schemas/AegisApiError" } }, "additionalProperties": false }, "AegisCompatTupleKeyDto": { "type": "object", "properties": { "user": { "type": "string", "nullable": true }, "relation": { "type": "string", "nullable": true }, "object": { "type": "string", "nullable": true } }, "additionalProperties": false }, "AegisCompatUserEntryDto": { "type": "object", "properties": { "object": { "$ref": "#/components/schemas/AegisCompatObjectRefDto" } }, "additionalProperties": false }, "AegisCompatUserFilterDto": { "type": "object", "properties": { "type": { "type": "string", "nullable": true }, "relation": { "type": "string", "nullable": true } }, "additionalProperties": false }, "AegisCompatWriteAssertionsRequestDto": { "type": "object", "properties": { "assertions": { "type": "array", "items": { "$ref": "#/components/schemas/AegisCompatAssertionDto" }, "nullable": true } }, "additionalProperties": false }, "AegisGenerateAssertionsFromAuditRequestDto": { "type": "object", "properties": { "decision": { "type": "string", "nullable": true }, "limit": { "type": "integer", "format": "int32", "nullable": true }, "append": { "type": "boolean" } }, "additionalProperties": false }, "AegisGenerateAssertionsFromAuditResponseDto": { "type": "object", "properties": { "authorization_model_id": { "type": "string", "nullable": true }, "generated_count": { "type": "integer", "format": "int32" }, "appended": { "type": "boolean" }, "assertions": { "type": "array", "items": { "$ref": "#/components/schemas/AegisCompatAssertionDto" }, "nullable": true } }, "additionalProperties": false }, "AegisGenerateAssertionsFromAuditResponseDtoApiResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "data": { "$ref": "#/components/schemas/AegisGenerateAssertionsFromAuditResponseDto" }, "error": { "$ref": "#/components/schemas/AegisApiError" } }, "additionalProperties": false }, "AssignPermissionToRoleRequestDto": { "type": "object", "properties": { "roleName": { "type": "string", "nullable": true }, "relation": { "type": "string", "nullable": true }, "object": { "type": "string", "nullable": true }, "conditionName": { "type": "string", "nullable": true } }, "additionalProperties": false }, "AssignRoleToUserRequestDto": { "type": "object", "properties": { "roleName": { "type": "string", "nullable": true } }, "additionalProperties": false }, "AuditEventDto": { "type": "object", "properties": { "action": { "type": "string", "nullable": true }, "subject": { "type": "string", "nullable": true }, "relation": { "type": "string", "nullable": true }, "object": { "type": "string", "nullable": true }, "decision": { "type": "string", "nullable": true }, "reasonCode": { "type": "string", "nullable": true }, "createdAt": { "type": "string", "format": "date-time" }, "storeId": { "type": "string", "nullable": true } }, "additionalProperties": false }, "AuditEventDtoIReadOnlyListApiResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "data": { "type": "array", "items": { "$ref": "#/components/schemas/AuditEventDto" }, "nullable": true }, "error": { "$ref": "#/components/schemas/AegisApiError" } }, "additionalProperties": false }, "AuthorizationModelDiffDto": { "type": "object", "properties": { "leftModelId": { "type": "string", "nullable": true }, "rightModelId": { "type": "string", "nullable": true }, "addedTypes": { "type": "array", "items": { "type": "string" }, "nullable": true }, "removedTypes": { "type": "array", "items": { "type": "string" }, "nullable": true }, "changedTypes": { "type": "array", "items": { "type": "string" }, "nullable": true }, "addedRelations": { "type": "array", "items": { "$ref": "#/components/schemas/AuthorizationModelRelationDiffDto" }, "nullable": true }, "removedRelations": { "type": "array", "items": { "$ref": "#/components/schemas/AuthorizationModelRelationDiffDto" }, "nullable": true }, "changedRelations": { "type": "array", "items": { "$ref": "#/components/schemas/AuthorizationModelRelationChangeDto" }, "nullable": true }, "breakingChangeHints": { "type": "array", "items": { "type": "string" }, "nullable": true } }, "additionalProperties": false }, "AuthorizationModelDiffDtoApiResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "data": { "$ref": "#/components/schemas/AuthorizationModelDiffDto" }, "error": { "$ref": "#/components/schemas/AegisApiError" } }, "additionalProperties": false }, "AuthorizationModelDto": { "type": "object", "properties": { "id": { "type": "string", "nullable": true }, "storeId": { "type": "string", "nullable": true }, "schemaVersion": { "type": "string", "nullable": true }, "model": { "type": "string", "nullable": true }, "createdAt": { "type": "string", "format": "date-time" }, "state": { "type": "string", "nullable": true }, "publishedAt": { "type": "string", "format": "date-time", "nullable": true }, "archivedAt": { "type": "string", "format": "date-time", "nullable": true }, "supersededBy": { "type": "string", "nullable": true }, "revision": { "type": "integer", "format": "int64" } }, "additionalProperties": false }, "AuthorizationModelDtoApiResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "data": { "$ref": "#/components/schemas/AuthorizationModelDto" }, "error": { "$ref": "#/components/schemas/AegisApiError" } }, "additionalProperties": false }, "AuthorizationModelDtoIReadOnlyListApiResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "data": { "type": "array", "items": { "$ref": "#/components/schemas/AuthorizationModelDto" }, "nullable": true }, "error": { "$ref": "#/components/schemas/AegisApiError" } }, "additionalProperties": false }, "AuthorizationModelRelationChangeDto": { "type": "object", "properties": { "type": { "type": "string", "nullable": true }, "relation": { "type": "string", "nullable": true }, "leftExpression": { "type": "string", "nullable": true }, "rightExpression": { "type": "string", "nullable": true } }, "additionalProperties": false }, "AuthorizationModelRelationDiffDto": { "type": "object", "properties": { "type": { "type": "string", "nullable": true }, "relation": { "type": "string", "nullable": true }, "expression": { "type": "string", "nullable": true } }, "additionalProperties": false }, "AuthorizationModelValidationIssueDto": { "type": "object", "properties": { "code": { "type": "string", "nullable": true }, "message": { "type": "string", "nullable": true }, "line": { "type": "integer", "format": "int32", "nullable": true } }, "additionalProperties": false }, "AuthorizationModelValidationResultDto": { "type": "object", "properties": { "valid": { "type": "boolean" }, "summary": { "$ref": "#/components/schemas/AuthorizationModelValidationSummaryDto" }, "errors": { "type": "array", "items": { "$ref": "#/components/schemas/AuthorizationModelValidationIssueDto" }, "nullable": true }, "warnings": { "type": "array", "items": { "$ref": "#/components/schemas/AuthorizationModelValidationIssueDto" }, "nullable": true } }, "additionalProperties": false }, "AuthorizationModelValidationResultDtoApiResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "data": { "$ref": "#/components/schemas/AuthorizationModelValidationResultDto" }, "error": { "$ref": "#/components/schemas/AegisApiError" } }, "additionalProperties": false }, "AuthorizationModelValidationSummaryDto": { "type": "object", "properties": { "typeCount": { "type": "integer", "format": "int32" }, "relationCount": { "type": "integer", "format": "int32" }, "directRelationCount": { "type": "integer", "format": "int32" }, "hasUnion": { "type": "boolean" }, "hasIntersection": { "type": "boolean" }, "hasExclusion": { "type": "boolean" }, "hasTupleToUserset": { "type": "boolean" } }, "additionalProperties": false }, "BatchCheckItemDto": { "type": "object", "properties": { "user": { "type": "string", "nullable": true }, "relation": { "type": "string", "nullable": true }, "object": { "type": "string", "nullable": true }, "correlationId": { "type": "string", "nullable": true }, "contextualTuples": { "type": "array", "items": { "$ref": "#/components/schemas/ContextualTupleDto" }, "nullable": true }, "consistency": { "type": "string", "nullable": true }, "authorizationModelId": { "type": "string", "nullable": true }, "context": { "type": "object", "additionalProperties": { }, "nullable": true } }, "additionalProperties": false }, "BatchCheckItemResultDto": { "type": "object", "properties": { "correlationId": { "type": "string", "nullable": true }, "result": { "$ref": "#/components/schemas/CheckResponseDto" } }, "additionalProperties": false }, "BatchCheckRequestDto": { "type": "object", "properties": { "items": { "type": "array", "items": { "$ref": "#/components/schemas/BatchCheckItemDto" }, "nullable": true } }, "additionalProperties": false }, "BatchCheckResponseDto": { "type": "object", "properties": { "results": { "type": "array", "items": { "$ref": "#/components/schemas/BatchCheckItemResultDto" }, "nullable": true } }, "additionalProperties": false }, "BatchCheckResponseDtoApiResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "data": { "$ref": "#/components/schemas/BatchCheckResponseDto" }, "error": { "$ref": "#/components/schemas/AegisApiError" } }, "additionalProperties": false }, "CheckRequestDto": { "type": "object", "properties": { "subject": { "type": "string", "nullable": true }, "relation": { "type": "string", "nullable": true }, "object": { "type": "string", "nullable": true }, "contextualTuples": { "type": "array", "items": { "$ref": "#/components/schemas/ContextualTupleDto" }, "nullable": true }, "consistency": { "type": "string", "nullable": true }, "authorizationModelId": { "type": "string", "nullable": true }, "context": { "type": "object", "additionalProperties": { }, "nullable": true } }, "additionalProperties": false }, "CheckResponseDto": { "type": "object", "properties": { "allowed": { "type": "boolean" }, "decision": { "type": "string", "nullable": true }, "reasonCode": { "type": "string", "nullable": true }, "trace": { "type": "array", "items": { "$ref": "#/components/schemas/ExplainTraceStepDto" }, "nullable": true } }, "additionalProperties": false }, "CheckResponseDtoApiResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "data": { "$ref": "#/components/schemas/CheckResponseDto" }, "error": { "$ref": "#/components/schemas/AegisApiError" } }, "additionalProperties": false }, "ContextualTupleDto": { "type": "object", "properties": { "subject": { "type": "string", "nullable": true }, "relation": { "type": "string", "nullable": true }, "object": { "type": "string", "nullable": true }, "effect": { "type": "string", "nullable": true } }, "additionalProperties": false }, "CreateAuthorizationModelRequestDto": { "type": "object", "properties": { "schemaVersion": { "type": "string", "nullable": true }, "model": { "type": "string", "nullable": true } }, "additionalProperties": false }, "CreatePermissionRequestDto": { "type": "object", "properties": { "relation": { "type": "string", "nullable": true }, "object": { "type": "string", "nullable": true }, "conditionName": { "type": "string", "nullable": true } }, "additionalProperties": false }, "CreateRoleRequestDto": { "type": "object", "properties": { "name": { "type": "string", "nullable": true }, "description": { "type": "string", "nullable": true } }, "additionalProperties": false }, "CreateStoreRequestDto": { "type": "object", "properties": { "name": { "type": "string", "nullable": true } }, "additionalProperties": false }, "CreateUserRequestDto": { "type": "object", "properties": { "userId": { "type": "string", "nullable": true }, "email": { "type": "string", "nullable": true }, "displayName": { "type": "string", "nullable": true } }, "additionalProperties": false }, "DeletePresetRequestDto": { "type": "object", "properties": { "source": { "type": "string", "nullable": true }, "storeId": { "type": "string", "nullable": true }, "scope": { "type": "string", "nullable": true }, "name": { "type": "string", "nullable": true } }, "additionalProperties": false }, "ExpandNodeDto": { "type": "object", "properties": { "node": { "type": "string", "nullable": true }, "kind": { "type": "string", "nullable": true }, "users": { "type": "array", "items": { "type": "string" }, "nullable": true }, "children": { "type": "array", "items": { "$ref": "#/components/schemas/ExpandNodeDto" }, "nullable": true } }, "additionalProperties": false }, "ExpandNodeDtoApiResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "data": { "$ref": "#/components/schemas/ExpandNodeDto" }, "error": { "$ref": "#/components/schemas/AegisApiError" } }, "additionalProperties": false }, "ExpandRequestDto": { "type": "object", "properties": { "relation": { "type": "string", "nullable": true }, "object": { "type": "string", "nullable": true }, "consistency": { "type": "string", "nullable": true }, "contextualTuples": { "type": "array", "items": { "$ref": "#/components/schemas/ContextualTupleDto" }, "nullable": true }, "authorizationModelId": { "type": "string", "nullable": true }, "context": { "type": "object", "additionalProperties": { }, "nullable": true } }, "additionalProperties": false }, "ExplainTraceStepDto": { "type": "object", "properties": { "step": { "type": "string", "nullable": true }, "result": { "type": "string", "nullable": true }, "tuple": { "type": "string", "nullable": true } }, "additionalProperties": false }, "ListObjectsRequestDto": { "type": "object", "properties": { "user": { "type": "string", "nullable": true }, "relation": { "type": "string", "nullable": true }, "type": { "type": "string", "nullable": true }, "consistency": { "type": "string", "nullable": true }, "contextualTuples": { "type": "array", "items": { "$ref": "#/components/schemas/ContextualTupleDto" }, "nullable": true }, "authorizationModelId": { "type": "string", "nullable": true }, "context": { "type": "object", "additionalProperties": { }, "nullable": true } }, "additionalProperties": false }, "ListObjectsResponseDto": { "type": "object", "properties": { "objects": { "type": "array", "items": { "type": "string" }, "nullable": true } }, "additionalProperties": false }, "ListObjectsResponseDtoApiResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "data": { "$ref": "#/components/schemas/ListObjectsResponseDto" }, "error": { "$ref": "#/components/schemas/AegisApiError" } }, "additionalProperties": false }, "ListUsersRequestDto": { "type": "object", "properties": { "relation": { "type": "string", "nullable": true }, "object": { "type": "string", "nullable": true }, "consistency": { "type": "string", "nullable": true }, "contextualTuples": { "type": "array", "items": { "$ref": "#/components/schemas/ContextualTupleDto" }, "nullable": true }, "authorizationModelId": { "type": "string", "nullable": true }, "context": { "type": "object", "additionalProperties": { }, "nullable": true } }, "additionalProperties": false }, "ListUsersResponseDto": { "type": "object", "properties": { "users": { "type": "array", "items": { "type": "string" }, "nullable": true } }, "additionalProperties": false }, "ListUsersResponseDtoApiResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "data": { "$ref": "#/components/schemas/ListUsersResponseDto" }, "error": { "$ref": "#/components/schemas/AegisApiError" } }, "additionalProperties": false }, "LoginRequestDto": { "type": "object", "properties": { "username": { "type": "string", "nullable": true }, "password": { "type": "string", "nullable": true } }, "additionalProperties": false }, "LoginResponseDto": { "type": "object", "properties": { "accessToken": { "type": "string", "nullable": true }, "refreshToken": { "type": "string", "nullable": true }, "expiresIn": { "type": "integer", "format": "int32" } }, "additionalProperties": false }, "LoginResponseDtoApiResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "data": { "$ref": "#/components/schemas/LoginResponseDto" }, "error": { "$ref": "#/components/schemas/AegisApiError" } }, "additionalProperties": false }, "ObjectApiResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "data": { "nullable": true }, "error": { "$ref": "#/components/schemas/AegisApiError" } }, "additionalProperties": false }, "PermissionDto": { "type": "object", "properties": { "relation": { "type": "string", "nullable": true }, "object": { "type": "string", "nullable": true }, "conditionName": { "type": "string", "nullable": true } }, "additionalProperties": false }, "PermissionDtoApiResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "data": { "$ref": "#/components/schemas/PermissionDto" }, "error": { "$ref": "#/components/schemas/AegisApiError" } }, "additionalProperties": false }, "PermissionDtoIReadOnlyListApiResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "data": { "type": "array", "items": { "$ref": "#/components/schemas/PermissionDto" }, "nullable": true }, "error": { "$ref": "#/components/schemas/AegisApiError" } }, "additionalProperties": false }, "PresetItemDto": { "type": "object", "properties": { "source": { "type": "string", "nullable": true }, "storeId": { "type": "string", "nullable": true }, "scope": { "type": "string", "nullable": true }, "name": { "type": "string", "nullable": true }, "payload": { "type": "string", "nullable": true }, "updatedAt": { "type": "string", "format": "date-time" } }, "additionalProperties": false }, "PresetItemDtoApiResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "data": { "$ref": "#/components/schemas/PresetItemDto" }, "error": { "$ref": "#/components/schemas/AegisApiError" } }, "additionalProperties": false }, "PresetItemDtoIReadOnlyListApiResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "data": { "type": "array", "items": { "$ref": "#/components/schemas/PresetItemDto" }, "nullable": true }, "error": { "$ref": "#/components/schemas/AegisApiError" } }, "additionalProperties": false }, "PresetMetaDto": { "type": "object", "properties": { "pinned": { "type": "boolean" }, "favorite": { "type": "boolean" }, "tags": { "type": "array", "items": { "type": "string" }, "nullable": true }, "group": { "type": "string", "nullable": true } }, "additionalProperties": false }, "PublishAuthorizationModelResponseDto": { "type": "object", "properties": { "publishedModel": { "$ref": "#/components/schemas/AuthorizationModelDto" }, "activeModelId": { "type": "string", "nullable": true }, "version": { "type": "string", "nullable": true } }, "additionalProperties": false }, "PublishAuthorizationModelResponseDtoApiResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "data": { "$ref": "#/components/schemas/PublishAuthorizationModelResponseDto" }, "error": { "$ref": "#/components/schemas/AegisApiError" } }, "additionalProperties": false }, "ReadChangesResponseDto": { "type": "object", "properties": { "changes": { "type": "array", "items": { "$ref": "#/components/schemas/RelationshipChangeDto" }, "nullable": true }, "continuation_token": { "type": "string", "nullable": true } }, "additionalProperties": false }, "ReadChangesResponseDtoApiResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "data": { "$ref": "#/components/schemas/ReadChangesResponseDto" }, "error": { "$ref": "#/components/schemas/AegisApiError" } }, "additionalProperties": false }, "RefreshRequestDto": { "type": "object", "properties": { "refreshToken": { "type": "string", "nullable": true } }, "additionalProperties": false }, "RelationshipChangeDto": { "type": "object", "properties": { "subject": { "type": "string", "nullable": true }, "relation": { "type": "string", "nullable": true }, "object": { "type": "string", "nullable": true }, "operation": { "type": "string", "nullable": true }, "createdAt": { "type": "string", "format": "date-time" } }, "additionalProperties": false }, "RelationshipDeleteRequestDto": { "type": "object", "properties": { "subject": { "type": "string", "nullable": true }, "relation": { "type": "string", "nullable": true }, "object": { "type": "string", "nullable": true } }, "additionalProperties": false }, "RelationshipTupleDto": { "type": "object", "properties": { "subject": { "type": "string", "nullable": true }, "relation": { "type": "string", "nullable": true }, "object": { "type": "string", "nullable": true }, "effect": { "type": "string", "nullable": true }, "createdAt": { "type": "string", "format": "date-time" } }, "additionalProperties": false }, "RelationshipTupleDtoIReadOnlyListApiResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "data": { "type": "array", "items": { "$ref": "#/components/schemas/RelationshipTupleDto" }, "nullable": true }, "error": { "$ref": "#/components/schemas/AegisApiError" } }, "additionalProperties": false }, "RelationshipWriteRequestDto": { "type": "object", "properties": { "subject": { "type": "string", "nullable": true }, "relation": { "type": "string", "nullable": true }, "object": { "type": "string", "nullable": true }, "effect": { "type": "string", "nullable": true } }, "additionalProperties": false }, "RoleDto": { "type": "object", "properties": { "name": { "type": "string", "nullable": true }, "description": { "type": "string", "nullable": true } }, "additionalProperties": false }, "RoleDtoIReadOnlyListApiResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "data": { "type": "array", "items": { "$ref": "#/components/schemas/RoleDto" }, "nullable": true }, "error": { "$ref": "#/components/schemas/AegisApiError" } }, "additionalProperties": false }, "RollbackAuthorizationModelResponseDto": { "type": "object", "properties": { "activeModel": { "$ref": "#/components/schemas/AuthorizationModelDto" }, "activeModelId": { "type": "string", "nullable": true }, "rolledBackFromModelId": { "type": "string", "nullable": true } }, "additionalProperties": false }, "RollbackAuthorizationModelResponseDtoApiResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "data": { "$ref": "#/components/schemas/RollbackAuthorizationModelResponseDto" }, "error": { "$ref": "#/components/schemas/AegisApiError" } }, "additionalProperties": false }, "SetPresetMetaRequestDto": { "type": "object", "properties": { "meta": { "type": "object", "additionalProperties": { "$ref": "#/components/schemas/PresetMetaDto" }, "nullable": true } }, "additionalProperties": false }, "StoreDto": { "type": "object", "properties": { "id": { "type": "string", "nullable": true }, "name": { "type": "string", "nullable": true }, "createdAt": { "type": "string", "format": "date-time" }, "updatedAt": { "type": "string", "format": "date-time" }, "modelCount": { "type": "integer", "format": "int32", "nullable": true }, "relationshipCount": { "type": "integer", "format": "int32", "nullable": true }, "tenantId": { "type": "string", "nullable": true } }, "additionalProperties": false }, "StoreDtoApiResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "data": { "$ref": "#/components/schemas/StoreDto" }, "error": { "$ref": "#/components/schemas/AegisApiError" } }, "additionalProperties": false }, "StoreDtoIReadOnlyListApiResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "data": { "type": "array", "items": { "$ref": "#/components/schemas/StoreDto" }, "nullable": true }, "error": { "$ref": "#/components/schemas/AegisApiError" } }, "additionalProperties": false }, "StringApiResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "data": { "type": "string", "nullable": true }, "error": { "$ref": "#/components/schemas/AegisApiError" } }, "additionalProperties": false }, "StringPresetMetaDtoIReadOnlyDictionaryApiResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "data": { "type": "object", "additionalProperties": { "$ref": "#/components/schemas/PresetMetaDto" }, "nullable": true }, "error": { "$ref": "#/components/schemas/AegisApiError" } }, "additionalProperties": false }, "UpdateUserRequestDto": { "type": "object", "properties": { "email": { "type": "string", "nullable": true }, "displayName": { "type": "string", "nullable": true } }, "additionalProperties": false }, "UpsertPresetRequestDto": { "type": "object", "properties": { "source": { "type": "string", "nullable": true }, "storeId": { "type": "string", "nullable": true }, "scope": { "type": "string", "nullable": true }, "name": { "type": "string", "nullable": true }, "payload": { "type": "string", "nullable": true } }, "additionalProperties": false }, "UserDto": { "type": "object", "properties": { "userId": { "type": "string", "nullable": true }, "createdAt": { "type": "string", "format": "date-time" }, "email": { "type": "string", "nullable": true }, "displayName": { "type": "string", "nullable": true } }, "additionalProperties": false }, "UserDtoApiResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "data": { "$ref": "#/components/schemas/UserDto" }, "error": { "$ref": "#/components/schemas/AegisApiError" } }, "additionalProperties": false }, "UserDtoIReadOnlyListApiResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "data": { "type": "array", "items": { "$ref": "#/components/schemas/UserDto" }, "nullable": true }, "error": { "$ref": "#/components/schemas/AegisApiError" } }, "additionalProperties": false }, "UserProfileDto": { "type": "object", "properties": { "subject": { "type": "string", "nullable": true }, "username": { "type": "string", "nullable": true }, "tenantId": { "type": "string", "nullable": true }, "roles": { "type": "array", "items": { "type": "string" }, "nullable": true }, "expiresAt": { "type": "string", "format": "date-time", "nullable": true } }, "additionalProperties": false }, "UserProfileDtoApiResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "data": { "$ref": "#/components/schemas/UserProfileDto" }, "error": { "$ref": "#/components/schemas/AegisApiError" } }, "additionalProperties": false }, "UserRolesDto": { "type": "object", "properties": { "userId": { "type": "string", "nullable": true }, "roles": { "type": "array", "items": { "type": "string" }, "nullable": true } }, "additionalProperties": false }, "UserRolesDtoApiResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "data": { "$ref": "#/components/schemas/UserRolesDto" }, "error": { "$ref": "#/components/schemas/AegisApiError" } }, "additionalProperties": false }, "ValidateAuthorizationModelRequestDto": { "type": "object", "properties": { "schemaVersion": { "type": "string", "nullable": true }, "model": { "type": "string", "nullable": true } }, "additionalProperties": false } }, "securitySchemes": { "Bearer": { "type": "http", "description": "JWT Authorization header using the Bearer scheme.", "scheme": "bearer", "bearerFormat": "JWT" } } }, "security": [ { "Bearer": [ ] } ] }