{ "x-generator": "NSwag v14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))", "openapi": "3.0.0", "info": { "title": "Api", "version": "1.0.0" }, "paths": { "/v1/Applications": { "post": { "tags": [ "Applications" ], "summary": "Creates a new application with initial response.", "operationId": "Applications_CreateApplication", "requestBody": { "x-name": "request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateApplicationRequest" } } }, "required": true, "x-position": 1 }, "responses": { "200": { "description": "The created application.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApplicationDto" } } } }, "400": { "description": "Invalid request data.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "401": { "description": "Unauthorized - no valid user token", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "403": { "description": "Forbidden - user does not have required permissions", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "500": { "description": "Internal server error.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "429": { "description": "Too Many Requests.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } } } } }, "/v1/Applications/{applicationId}/responses": { "post": { "tags": [ "Applications" ], "summary": "Adds a new response version to an existing application.", "operationId": "Applications_AddApplicationResponse", "parameters": [ { "name": "applicationId", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" }, "x-position": 1 } ], "requestBody": { "x-name": "request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AddApplicationResponseRequest" } } }, "required": true, "x-position": 2 }, "responses": { "201": { "description": "Response version created.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApplicationResponseDto" } } } }, "400": { "description": "Invalid request data.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "401": { "description": "Unauthorized - no valid user token.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "403": { "description": "User does not have permission to update this application.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "404": { "description": "Application not found.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "500": { "description": "Internal server error.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "429": { "description": "Too Many Requests.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } } } } }, "/v1/me/applications": { "get": { "tags": [ "Applications" ], "summary": "Returns all applications the current user can access.", "operationId": "Applications_GetMyApplications", "parameters": [ { "name": "includeSchema", "in": "query", "schema": { "type": "boolean", "nullable": true }, "x-position": 1 }, { "name": "templateId", "in": "query", "schema": { "type": "string", "format": "guid", "nullable": true }, "x-position": 2 } ], "responses": { "200": { "description": "A list of applications accessible to the user.", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ApplicationDto" } } } } }, "400": { "description": "Invalid request data.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "401": { "description": "Unauthorized no valid user token", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "403": { "description": "Forbidden - user does not have required permissions", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "500": { "description": "Internal server error.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } } } } }, "/v1/Users/{email}/applications": { "get": { "tags": [ "Applications" ], "summary": "Returns all applications for the user by {email}.", "operationId": "Applications_GetApplicationsForUser", "parameters": [ { "name": "email", "in": "path", "required": true, "schema": { "type": "string" }, "x-position": 1 }, { "name": "includeSchema", "in": "query", "schema": { "type": "boolean", "nullable": true }, "x-position": 2 }, { "name": "templateId", "in": "query", "schema": { "type": "string", "format": "guid", "nullable": true }, "x-position": 3 } ], "responses": { "200": { "description": "Applications for the user.", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ApplicationDto" } } } } }, "400": { "description": "Email cannot be null or empty.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "401": { "description": "Unauthorized - no valid user token", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "403": { "description": "Forbidden - user does not have required permissions", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "500": { "description": "Internal server error.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } } } } }, "/v1/Applications/reference/{applicationReference}": { "get": { "tags": [ "Applications" ], "summary": "Returns application details with its latest response by application reference.", "operationId": "Applications_GetApplicationByReference", "parameters": [ { "name": "applicationReference", "in": "path", "required": true, "schema": { "type": "string" }, "x-position": 1 } ], "responses": { "200": { "description": "Application details with latest response.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApplicationDto" } } } }, "400": { "description": "Invalid application reference or application not found.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "401": { "description": "Unauthorized - no valid user token", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "403": { "description": "User does not have permission to read this application", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "404": { "description": "Application not found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "500": { "description": "Internal server error.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } } } } }, "/v1/Applications/{applicationId}/submit": { "post": { "tags": [ "Applications" ], "summary": "Submits an application, changing its status to Submitted.", "operationId": "Applications_SubmitApplication", "parameters": [ { "name": "applicationId", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" }, "x-position": 1 } ], "responses": { "200": { "description": "Application submitted successfully.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApplicationDto" } } } }, "400": { "description": "Invalid request data or application already submitted.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "401": { "description": "Unauthorized - no valid user token", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "403": { "description": "User does not have permission to submit this application", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "404": { "description": "Application not found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "500": { "description": "Internal server error.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "429": { "description": "Too Many Requests.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } } } } }, "/v1/Applications/{applicationId}/contributors": { "get": { "tags": [ "Applications" ], "summary": "Gets all contributors for a specific application.", "operationId": "Applications_GetContributors", "parameters": [ { "name": "applicationId", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" }, "x-position": 1 }, { "name": "includePermissionDetails", "in": "query", "schema": { "type": "boolean", "nullable": true }, "x-position": 2 } ], "responses": { "200": { "description": "List of contributors for the application.", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/UserDto" } } } } }, "400": { "description": "Invalid request data.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "401": { "description": "Unauthorized - no valid user token", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "403": { "description": "User does not have permission to read this application", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "404": { "description": "Application not found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "500": { "description": "Internal server error.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } } } }, "post": { "tags": [ "Applications" ], "summary": "Adds a contributor to an application.", "operationId": "Applications_AddContributor", "parameters": [ { "name": "applicationId", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" }, "x-position": 1 } ], "requestBody": { "x-name": "request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AddContributorRequest" } } }, "required": true, "x-position": 2 }, "responses": { "200": { "description": "Contributor added successfully.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserDto" } } } }, "400": { "description": "Invalid request data or contributor already exists.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "401": { "description": "Unauthorized - no valid user token", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "403": { "description": "User does not have permission to manage contributors for this application", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "404": { "description": "Application not found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "500": { "description": "Internal server error.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "429": { "description": "Too Many Requests.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } } } } }, "/v1/Applications/{applicationId}/contributors/{userId}": { "delete": { "tags": [ "Applications" ], "summary": "Removes a contributor from an application.", "operationId": "Applications_RemoveContributor", "parameters": [ { "name": "applicationId", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" }, "x-position": 1 }, { "name": "userId", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" }, "x-position": 2 } ], "responses": { "200": { "description": "Contributor removed successfully." }, "400": { "description": "Invalid request data.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "401": { "description": "Unauthorized - no valid user token", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "403": { "description": "User does not have permission to manage contributors for this application", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "404": { "description": "Application or contributor not found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "500": { "description": "Internal server error.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } } } } }, "/v1/Applications/{applicationId}/files": { "post": { "tags": [ "Applications" ], "summary": "Uploads a file for a specific application.", "operationId": "Applications_UploadFile", "parameters": [ { "name": "applicationId", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" }, "x-position": 1 } ], "requestBody": { "content": { "multipart/form-data": { "schema": { "type": "object", "properties": { "name": { "type": "string", "nullable": true }, "description": { "type": "string", "nullable": true }, "file": { "type": "string", "format": "binary", "nullable": true } } } } } }, "responses": { "201": { "description": "File uploaded successfully.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UploadDto" } } } }, "400": { "description": "Invalid request data.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "401": { "description": "Unauthorized - no valid user token", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "403": { "description": "User does not have permission to manage files for this application", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "404": { "description": "Application not found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "429": { "description": "Too Many Requests.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "409": { "description": "Conflict Error.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "500": { "description": "Internal server error.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } } } }, "get": { "tags": [ "Applications" ], "summary": "Gets all files for a specific application.", "operationId": "Applications_GetFilesForApplication", "parameters": [ { "name": "applicationId", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" }, "x-position": 1 } ], "responses": { "200": { "description": "List of files for the application.", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/UploadDto" } } } } }, "400": { "description": "Invalid request data.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "401": { "description": "Unauthorized - no valid user token", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "403": { "description": "User does not have permission to manage files for this application", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "404": { "description": "Application not found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "500": { "description": "Internal server error.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } } } } }, "/v1/Applications/{applicationId}/files/{fileId}/download": { "get": { "tags": [ "Applications" ], "summary": "Downloads a file by fileId.", "operationId": "Applications_DownloadFile", "parameters": [ { "name": "fileId", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" }, "x-position": 1 }, { "name": "applicationId", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" }, "x-position": 2 } ], "responses": { "200": { "description": "File stream.", "content": { "application/octet-stream": { "schema": { "type": "string", "format": "binary" } } } }, "400": { "description": "Invalid request data.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "401": { "description": "Unauthorized - no valid user token", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "403": { "description": "User does not have permission to manage files for this application", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "404": { "description": "File not found.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "500": { "description": "Internal server error.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } } } } }, "/v1/Applications/{applicationId}/files/{fileId}": { "delete": { "tags": [ "Applications" ], "summary": "Deletes a file by fileId.", "operationId": "Applications_DeleteFile", "parameters": [ { "name": "fileId", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" }, "x-position": 1 }, { "name": "applicationId", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" }, "x-position": 2 } ], "responses": { "200": { "description": "File deleted successfully.", "content": { "application/json": { "schema": { "type": "boolean" } } } }, "400": { "description": "Invalid request data.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "401": { "description": "Unauthorized - no valid user token", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "403": { "description": "User does not have permission to manage files for this application", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "404": { "description": "File not found.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "500": { "description": "Internal server error.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } } } } }, "/v1/Applications/reference/{applicationReference}/preview/download": { "get": { "tags": [ "Applications" ], "summary": "Generates and downloads a static HTML preview of the application by reference.", "operationId": "Applications_DownloadApplicationPreviewHtml", "parameters": [ { "name": "applicationReference", "in": "path", "required": true, "schema": { "type": "string" }, "x-position": 1 } ], "responses": { "200": { "description": "Static HTML file.", "content": { "application/octet-stream": { "schema": { "type": "string", "format": "binary" } } } }, "400": { "description": "Invalid request data.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "401": { "description": "Unauthorized - no valid user token", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "403": { "description": "User does not have permission to read this application", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "404": { "description": "Application not found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "500": { "description": "Internal server error.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } } } } }, "/v1/diagnostics": { "get": { "tags": [ "Diagnostics" ], "operationId": "Diagnostics_Get", "responses": { "200": { "description": "", "content": { "application/octet-stream": { "schema": { "type": "string", "format": "binary" } } } } } } }, "/v1/Notifications": { "post": { "tags": [ "Notifications" ], "summary": "Creates a new notification for the current user.", "operationId": "Notifications_CreateNotification", "requestBody": { "x-name": "request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AddNotificationRequest" } } }, "required": true, "x-position": 1 }, "responses": { "200": { "description": "The created notification.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NotificationDto" } } } }, "400": { "description": "Invalid request data.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "401": { "description": "Unauthorized - no valid user token", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "403": { "description": "Forbidden - user does not have required permissions", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "500": { "description": "Internal server error.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "429": { "description": "Too Many Requests.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } } } }, "get": { "tags": [ "Notifications" ], "summary": "Gets all notifications (read and unread) for the current user.", "operationId": "Notifications_GetAllNotifications", "parameters": [ { "name": "context", "in": "query", "schema": { "type": "string", "nullable": true }, "x-position": 1 }, { "name": "category", "in": "query", "schema": { "type": "string", "nullable": true }, "x-position": 2 } ], "responses": { "200": { "description": "List of all notifications.", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/NotificationDto" } } } } }, "400": { "description": "Invalid request data.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "401": { "description": "Unauthorized - no valid user token", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "403": { "description": "Forbidden - user does not have required permissions", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "500": { "description": "Internal server error.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } } } } }, "/v1/Notifications/unread": { "get": { "tags": [ "Notifications" ], "summary": "Gets all unread notifications for the current user.", "operationId": "Notifications_GetUnreadNotifications", "parameters": [ { "name": "context", "in": "query", "schema": { "type": "string", "nullable": true }, "x-position": 1 }, { "name": "category", "in": "query", "schema": { "type": "string", "nullable": true }, "x-position": 2 } ], "responses": { "200": { "description": "List of unread notifications.", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/NotificationDto" } } } } }, "400": { "description": "Invalid request data.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "401": { "description": "Unauthorized - no valid user token", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "403": { "description": "Forbidden - user does not have required permissions", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "500": { "description": "Internal server error.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } } } } }, "/v1/Notifications/category/{category}": { "get": { "tags": [ "Notifications" ], "summary": "Gets notifications filtered by category.", "operationId": "Notifications_GetNotificationsByCategory", "parameters": [ { "name": "category", "in": "path", "required": true, "schema": { "type": "string" }, "x-position": 1 }, { "name": "unreadOnly", "in": "query", "schema": { "type": "boolean", "default": false }, "x-position": 2 } ], "responses": { "200": { "description": "List of notifications for the specified category.", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/NotificationDto" } } } } }, "400": { "description": "Invalid request data.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "401": { "description": "Unauthorized - no valid user token", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "403": { "description": "Forbidden - user does not have required permissions", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "500": { "description": "Internal server error.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } } } }, "delete": { "tags": [ "Notifications" ], "summary": "Clears notifications by category for the current user.", "operationId": "Notifications_ClearNotificationsByCategory", "parameters": [ { "name": "category", "in": "path", "required": true, "schema": { "type": "string" }, "x-position": 1 } ], "responses": { "200": { "description": "Notifications cleared successfully.", "content": { "application/json": { "schema": { "type": "boolean" } } } }, "400": { "description": "Invalid request data.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "401": { "description": "Unauthorized - no valid user token", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "403": { "description": "Forbidden - user does not have required permissions", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "500": { "description": "Internal server error.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "429": { "description": "Too Many Requests.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } } } } }, "/v1/Notifications/unread/count": { "get": { "tags": [ "Notifications" ], "summary": "Gets the count of unread notifications for the current user.", "operationId": "Notifications_GetUnreadNotificationCount", "parameters": [ { "name": "context", "in": "query", "schema": { "type": "string", "nullable": true }, "x-position": 1 }, { "name": "category", "in": "query", "schema": { "type": "string", "nullable": true }, "x-position": 2 } ], "responses": { "200": { "description": "Count of unread notifications.", "content": { "application/json": { "schema": { "type": "integer", "format": "int32" } } } }, "400": { "description": "Invalid request data.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "401": { "description": "Unauthorized - no valid user token", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "403": { "description": "Forbidden - user does not have required permissions", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "500": { "description": "Internal server error.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } } } } }, "/v1/Notifications/{notificationId}/read": { "put": { "tags": [ "Notifications" ], "summary": "Marks a specific notification as read.", "operationId": "Notifications_MarkNotificationAsRead", "parameters": [ { "name": "notificationId", "in": "path", "required": true, "schema": { "type": "string" }, "x-position": 1 } ], "responses": { "200": { "description": "Notification marked as read successfully.", "content": { "application/json": { "schema": { "type": "boolean" } } } }, "400": { "description": "Invalid request data.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "401": { "description": "Unauthorized - no valid user token", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "403": { "description": "Forbidden - user does not have required permissions", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "404": { "description": "Notification not found.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "500": { "description": "Internal server error.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "429": { "description": "Too Many Requests.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } } } } }, "/v1/Notifications/read-all": { "put": { "tags": [ "Notifications" ], "summary": "Marks all notifications as read for the current user.", "operationId": "Notifications_MarkAllNotificationsAsRead", "parameters": [ { "name": "context", "in": "query", "schema": { "type": "string", "nullable": true }, "x-position": 1 }, { "name": "category", "in": "query", "schema": { "type": "string", "nullable": true }, "x-position": 2 } ], "responses": { "200": { "description": "All notifications marked as read successfully.", "content": { "application/json": { "schema": { "type": "boolean" } } } }, "400": { "description": "Invalid request data.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "401": { "description": "Unauthorized - no valid user token", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "403": { "description": "Forbidden - user does not have required permissions", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "500": { "description": "Internal server error.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "429": { "description": "Too Many Requests.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } } } } }, "/v1/Notifications/{notificationId}": { "delete": { "tags": [ "Notifications" ], "summary": "Removes a specific notification.", "operationId": "Notifications_RemoveNotification", "parameters": [ { "name": "notificationId", "in": "path", "required": true, "schema": { "type": "string" }, "x-position": 1 } ], "responses": { "200": { "description": "Notification removed successfully.", "content": { "application/json": { "schema": { "type": "boolean" } } } }, "400": { "description": "Invalid request data.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "401": { "description": "Unauthorized - no valid user token", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "403": { "description": "Forbidden - user does not have required permissions", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "404": { "description": "Notification not found.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "500": { "description": "Internal server error.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "429": { "description": "Too Many Requests.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } } } } }, "/v1/Notifications/clear-all": { "delete": { "tags": [ "Notifications" ], "summary": "Clears all notifications for the current user.", "operationId": "Notifications_ClearAllNotifications", "responses": { "200": { "description": "All notifications cleared successfully.", "content": { "application/json": { "schema": { "type": "boolean" } } } }, "400": { "description": "Invalid request data.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "401": { "description": "Unauthorized - no valid user token", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "403": { "description": "Forbidden - user does not have required permissions", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "500": { "description": "Internal server error.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "429": { "description": "Too Many Requests.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } } } } }, "/v1/Notifications/context/{context}": { "delete": { "tags": [ "Notifications" ], "summary": "Clears notifications by context for the current user.", "operationId": "Notifications_ClearNotificationsByContext", "parameters": [ { "name": "context", "in": "path", "required": true, "schema": { "type": "string" }, "x-position": 1 } ], "responses": { "200": { "description": "Notifications cleared successfully.", "content": { "application/json": { "schema": { "type": "boolean" } } } }, "400": { "description": "Invalid request data.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "401": { "description": "Unauthorized - no valid user token", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "403": { "description": "Forbidden - user does not have required permissions", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "500": { "description": "Internal server error.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "429": { "description": "Too Many Requests.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } } } } }, "/v1/Templates/{templateId}/schema": { "get": { "tags": [ "Templates" ], "summary": "Returns the latest template schema for the specified template name if the user has access.", "operationId": "Templates_GetLatestTemplateSchema", "parameters": [ { "name": "templateId", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" }, "x-position": 1 } ], "responses": { "200": { "description": "The latest template schema.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TemplateSchemaDto" } } } }, "400": { "description": "Request was invalid or template not found.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "401": { "description": "Unauthorized - no valid user token", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "403": { "description": "Access denied.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "404": { "description": "Template not found.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "500": { "description": "Internal server error.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } } } } }, "/v1/Templates/{templateId}/versions": { "post": { "tags": [ "Templates" ], "summary": "Creates a new schema version for the specified template.", "operationId": "Templates_CreateTemplateVersion", "parameters": [ { "name": "templateId", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" }, "x-position": 1 } ], "requestBody": { "x-name": "request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateTemplateVersionRequest" } } }, "required": true, "x-position": 2 }, "responses": { "201": { "description": "Template version created successfully.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TemplateSchemaDto" } } } }, "400": { "description": "Invalid request data.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "401": { "description": "Unauthorized - no valid user token", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "403": { "description": "Access denied.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "404": { "description": "Template not found.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "500": { "description": "Internal server error.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "429": { "description": "Too Many Requests.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } } } } }, "/v1/Tokens/exchange": { "post": { "tags": [ "Tokens" ], "summary": "Exchanges an DSI token for our ExternalApplications InternalUser JWT.", "operationId": "Tokens_Exchange", "requestBody": { "x-name": "request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExchangeTokenRequest" } } }, "required": true, "x-position": 1 }, "responses": { "200": { "description": "Token exchanged successfully.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExchangeTokenDto" } } } }, "400": { "description": "Invalid request data.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "401": { "description": "Unauthorized - no valid user token", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "500": { "description": "Internal server error.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } } } } }, "/v1/UserFeedback": { "post": { "tags": [ "UserFeedback" ], "operationId": "UserFeedback_Post", "requestBody": { "x-name": "request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserFeedbackRequest" } } }, "required": true, "x-position": 1 }, "responses": { "202": { "description": "User feedback was submitted successfully." }, "400": { "description": "Invalid request data.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "500": { "description": "Internal server error.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "429": { "description": "Too many requests.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } } } } }, "/v1/me/permissions": { "get": { "tags": [ "Users" ], "summary": "Returns all my permissions.", "operationId": "Users_GetMyPermissions", "responses": { "200": { "description": "A UserAuthorizationDto object representing the User's Permissions and Roles.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserAuthorizationDto" } } } }, "400": { "description": "Invalid request data.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "401": { "description": "Unauthorized no valid user token", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "403": { "description": "Forbidden - user does not have required permissions", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "500": { "description": "Internal server error.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } } } } }, "/v1/Users/register": { "post": { "tags": [ "Users" ], "summary": "Create and registers a new user using the data in the provided External-IDP token.", "operationId": "Users_RegisterUser", "requestBody": { "x-name": "request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RegisterUserRequest" } } }, "required": true, "x-position": 1 }, "responses": { "200": { "description": "User registered successfully.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserDto" } } } }, "400": { "description": "Invalid request data.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "401": { "description": "Unauthorized - no valid user token", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "500": { "description": "Internal server error.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "429": { "description": "Too Many Requests.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } } } } }, "/auth/hub-ticket": { "post": { "tags": [ "HubAuth" ], "operationId": "HubAuth_CreateHubTicket", "responses": { "200": { "description": "The created ticket.", "content": { "application/json": { "schema": { "type": "object", "additionalProperties": { "type": "string" } } } } }, "400": { "description": "Invalid request data.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "401": { "description": "Unauthorized - no valid user token", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "403": { "description": "Forbidden - user does not have required permissions", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "500": { "description": "Internal server error.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "429": { "description": "Too Many Requests.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } } } } }, "/auth/hub-cookie": { "get": { "tags": [ "HubAuth" ], "operationId": "HubAuth_RedeemHubCookie", "parameters": [ { "name": "ticket", "in": "query", "schema": { "type": "string" }, "x-position": 1 } ], "responses": { "204": { "description": "" }, "400": { "description": "Invalid request data.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "401": { "description": "Unauthorized - no valid user token", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "403": { "description": "Forbidden - user does not have required permissions", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "500": { "description": "Internal server error.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } }, "429": { "description": "Too Many Requests.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExceptionResponse" } } } } } } } }, "components": { "schemas": { "ApplicationDto": { "type": "object", "additionalProperties": false, "properties": { "applicationId": { "type": "string", "format": "guid" }, "applicationReference": { "type": "string" }, "templateVersionId": { "type": "string", "format": "guid" }, "templateName": { "type": "string" }, "status": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/ApplicationStatus" } ] }, "dateCreated": { "type": "string", "format": "date-time" }, "dateSubmitted": { "type": "string", "format": "date-time", "nullable": true }, "createdBy": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/UserDto" } ] }, "latestResponse": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/ApplicationResponseDetailsDto" } ] }, "templateSchema": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/TemplateSchemaDto" } ] } } }, "ApplicationStatus": { "type": "string", "description": "", "x-enumNames": [ "InProgress", "Submitted" ], "x-enum-descriptions": [ "In progress", "Submitted" ], "enum": [ "InProgress", "Submitted" ] }, "UserDto": { "type": "object", "additionalProperties": false, "properties": { "userId": { "type": "string", "format": "guid" }, "name": { "type": "string" }, "email": { "type": "string" }, "roleId": { "type": "string", "format": "guid" }, "authorization": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/UserAuthorizationDto" } ] } } }, "UserAuthorizationDto": { "type": "object", "additionalProperties": false, "properties": { "permissions": { "type": "array", "items": { "$ref": "#/components/schemas/UserPermissionDto" } }, "roles": { "type": "array", "items": { "type": "string" } } } }, "UserPermissionDto": { "type": "object", "additionalProperties": false, "properties": { "applicationId": { "type": "string", "format": "guid", "nullable": true }, "resourceKey": { "type": "string" }, "resourceType": { "$ref": "#/components/schemas/ResourceType" }, "accessType": { "$ref": "#/components/schemas/AccessType" } } }, "ResourceType": { "type": "string", "description": "", "x-enumNames": [ "Application", "User", "Template", "TaskGroup", "Task", "Page", "Field", "ApplicationFiles", "File", "Notifications" ], "enum": [ "Application", "User", "Template", "TaskGroup", "Task", "Page", "Field", "ApplicationFiles", "File", "Notifications" ] }, "AccessType": { "type": "string", "description": "", "x-enumNames": [ "Read", "Write", "Delete" ], "enum": [ "Read", "Write", "Delete" ] }, "ApplicationResponseDetailsDto": { "type": "object", "additionalProperties": false, "properties": { "responseId": { "type": "string", "format": "guid" }, "responseBody": { "type": "string" }, "createdOn": { "type": "string", "format": "date-time" }, "createdBy": { "type": "string", "format": "guid" }, "lastModifiedOn": { "type": "string", "format": "date-time", "nullable": true }, "lastModifiedBy": { "type": "string", "format": "guid", "nullable": true } } }, "TemplateSchemaDto": { "type": "object", "additionalProperties": false, "properties": { "templateId": { "type": "string", "format": "guid" }, "templateVersionId": { "type": "string", "format": "guid" }, "versionNumber": { "type": "string" }, "jsonSchema": { "type": "string" } } }, "ExceptionResponse": { "type": "object", "additionalProperties": false, "properties": { "errorId": { "type": "string" }, "statusCode": { "type": "integer", "format": "int32" }, "message": { "type": "string" }, "details": { "type": "string", "nullable": true }, "exceptionType": { "type": "string" }, "timestamp": { "type": "string", "format": "date-time" }, "correlationId": { "type": "string", "nullable": true }, "context": { "type": "object", "nullable": true, "additionalProperties": {} } } }, "CreateApplicationRequest": { "type": "object", "additionalProperties": false, "properties": { "templateId": { "type": "string", "format": "guid" }, "initialResponseBody": { "type": "string" } } }, "ApplicationResponseDto": { "type": "object", "additionalProperties": false, "properties": { "responseId": { "type": "string", "format": "guid" }, "applicationReference": { "type": "string" }, "applicationId": { "type": "string", "format": "guid" }, "responseBody": { "type": "string" }, "createdOn": { "type": "string", "format": "date-time" }, "createdBy": { "type": "string", "format": "guid" } } }, "AddApplicationResponseRequest": { "type": "object", "additionalProperties": false, "properties": { "responseBody": { "type": "string" } } }, "AddContributorRequest": { "type": "object", "additionalProperties": false, "properties": { "name": { "type": "string" }, "email": { "type": "string" } } }, "UploadDto": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "format": "guid" }, "applicationId": { "type": "string", "format": "guid" }, "uploadedBy": { "type": "string", "format": "guid" }, "uploadedByUser": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/UserDto" } ] }, "name": { "type": "string" }, "description": { "type": "string", "nullable": true }, "originalFileName": { "type": "string" }, "fileName": { "type": "string" }, "fileSize": { "type": "integer", "format": "int64" }, "uploadedOn": { "type": "string", "format": "date-time" } } }, "NotificationDto": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string" }, "message": { "type": "string" }, "type": { "$ref": "#/components/schemas/NotificationType" }, "category": { "type": "string", "nullable": true }, "context": { "type": "string", "nullable": true }, "isRead": { "type": "boolean" }, "createdAt": { "type": "string", "format": "date-time" }, "autoDismiss": { "type": "boolean" }, "autoDismissSeconds": { "type": "integer", "format": "int32" }, "userId": { "type": "string", "nullable": true }, "actionUrl": { "type": "string", "nullable": true }, "metadata": { "type": "object", "nullable": true, "additionalProperties": {} }, "priority": { "$ref": "#/components/schemas/NotificationPriority" } } }, "NotificationType": { "type": "string", "description": "", "x-enumNames": [ "Success", "Error", "Info", "Warning" ], "enum": [ "Success", "Error", "Info", "Warning" ] }, "NotificationPriority": { "type": "string", "description": "", "x-enumNames": [ "Low", "Normal", "High", "Critical" ], "enum": [ "Low", "Normal", "High", "Critical" ] }, "AddNotificationRequest": { "type": "object", "additionalProperties": false, "required": [ "message", "type" ], "properties": { "message": { "type": "string", "maxLength": 1000, "minLength": 1 }, "type": { "$ref": "#/components/schemas/NotificationType" }, "category": { "type": "string", "maxLength": 100, "nullable": true }, "context": { "type": "string", "maxLength": 100, "nullable": true }, "autoDismiss": { "type": "boolean", "nullable": true }, "autoDismissSeconds": { "type": "integer", "format": "int32", "nullable": true }, "actionUrl": { "type": "string", "maxLength": 500, "nullable": true }, "metadata": { "type": "object", "nullable": true, "additionalProperties": {} }, "priority": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/NotificationPriority" } ] }, "replaceExistingContext": { "type": "boolean", "nullable": true }, "userId": { "type": "string", "format": "guid", "nullable": true } } }, "CreateTemplateVersionRequest": { "type": "object", "additionalProperties": false, "properties": { "versionNumber": { "type": "string" }, "jsonSchema": { "type": "string" } } }, "ExchangeTokenDto": { "type": "object", "additionalProperties": false, "properties": { "access_token": { "type": "string" }, "token_type": { "type": "string" }, "expires_in": { "type": "integer", "format": "int32" }, "refresh_token": { "type": "string", "nullable": true }, "scope": { "type": "string", "nullable": true }, "id_token": { "type": "string", "nullable": true }, "refresh_expires_in": { "type": "integer", "format": "int32", "nullable": true } } }, "ExchangeTokenRequest": { "type": "object", "additionalProperties": false, "properties": { "accessToken": { "type": "string" } } }, "UserFeedbackRequest": { "type": "object", "discriminator": { "propertyName": "$type", "mapping": { "BugReport": "#/components/schemas/BugReport", "SupportRequest": "#/components/schemas/SupportRequest", "FeedbackOrSuggestion": "#/components/schemas/FeedbackOrSuggestion" } }, "x-abstract": true, "additionalProperties": false, "required": [ "$type" ], "properties": { "message": { "type": "string" }, "referenceNumber": { "type": "string", "nullable": true }, "templateId": { "type": "string", "format": "guid" }, "$type": { "type": "string" } } }, "BugReport": { "allOf": [ { "$ref": "#/components/schemas/UserFeedbackRequest" }, { "type": "object", "additionalProperties": false, "properties": { "emailAddress": { "type": "string", "nullable": true } } } ] }, "SupportRequest": { "allOf": [ { "$ref": "#/components/schemas/UserFeedbackRequest" }, { "type": "object", "additionalProperties": false, "properties": { "emailAddress": { "type": "string" } } } ] }, "FeedbackOrSuggestion": { "allOf": [ { "$ref": "#/components/schemas/UserFeedbackRequest" }, { "type": "object", "additionalProperties": false, "properties": { "satisfactionScore": { "$ref": "#/components/schemas/SatisfactionScore" } } } ] }, "SatisfactionScore": { "type": "string", "description": "", "x-enumNames": [ "VerySatisfied", "Satisfied", "NeitherSatisfiedOrDissatisfied", "Dissatisfied", "VeryDissatisfied" ], "enum": [ "VerySatisfied", "Satisfied", "NeitherSatisfiedOrDissatisfied", "Dissatisfied", "VeryDissatisfied" ] }, "RegisterUserRequest": { "type": "object", "additionalProperties": false, "properties": { "accessToken": { "type": "string" }, "templateId": { "type": "string", "format": "guid" } } } } } }