{"openapi":"3.0.0","info":{"title":"Active Integration - Admin Server Internal API documentation","version":"1.0.0","description":"Internal development purpose API documentation for Active Integration Admin Server"},"servers":[{"url":"http://localhost:11350/aigx","description":"AIG Admin Application Development Server"}],"paths":{"/admin-app/v1/ba/signIn":{"post":{"summary":"Validates user credentials and returns a session ID.","tags":["Authentication"],"description":"This API validates the user credentials and returns the session ID.\nIt authenticates the user with BGS (default BGS currently set in the admin app configuration file).\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"username":{"type":"string","description":"Username of the user.","example":"john_doe"},"password":{"type":"string","description":"Password of the user.","example":"password123"}},"required":["username","password"]}}}},"responses":{"200":{"description":"Successful response with session details.","content":{"application/json":{"schema":{"type":"object","properties":{"sid":{"type":"string","description":"Session ID of the user.","example":"abc123"},"username":{"type":"string","description":"Username of the user.","example":"john_doe"},"timeout":{"type":"string","description":"Timeout of the session.","example":"30m"},"expires":{"type":"string","description":"Expiration time of the session.","example":"2025-12-31T23:59:59Z"},"persist":{"type":"boolean","description":"Persist flag of the session.","example":true},"lastModified":{"type":"string","description":"Last modified time of the session.","example":"2025-01-01T12:00:00Z"}}}}}},"400":{"description":"Bad request - Invalid or missing credentials.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Error message describing the validation failure."},"type":{"type":"string","description":"Error type classification.","example":"VALIDATION"},"code":{"type":"integer","description":"Error code.","example":400}}},"examples":{"missingCredentials":{"summary":"Missing username or password","value":null},"invalidUsernameFormat":{"summary":"Invalid username format","value":{"message":"Invalid username format. Username must be 1-64 characters long and can only contain letters, numbers, underscores, or hyphens.","type":"VALIDATION","code":400}},"invalidPasswordFormat":{"summary":"Invalid password format","value":{"message":"Invalid password format. Password must be 1-128 characters long.","type":"VALIDATION","code":400}}}}}},"401":{"description":"Unauthorized - Invalid credentials.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"integer","description":"HTTP status code.","example":401},"message":{"type":"string","description":"Authentication failure message."},"type":{"type":"string","description":"Error type classification."},"code":{"type":"integer","description":"Error code.","example":419}}},"examples":{"invalidCredentials":{"summary":"Invalid username or password","value":{"status":401,"message":"Authentication failed","type":"","code":419}}}}}},"500":{"description":"Internal server error - Service initialization or BGS communication failed.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"integer","description":"HTTP status code.","example":500},"message":{"type":"string","description":"Detailed error message."},"type":{"type":"string","description":"Error type classification.","example":"system"},"code":{"type":"integer","description":"Error code.","example":500}}},"examples":{"bgsConnectionError":{"summary":"BGS connection failed","value":{"status":500,"message":"Server is Not Accessible. Communication to BGS:BGS_01 failed : request to https://*****:11320/admingui/json/startSession failed, reason:","type":"system","code":500}}}}}}}}},"/admin-app/v1/ba/sessionRecovery":{"post":{"summary":"Recovers the session and returns session data.","tags":["Authentication"],"description":"This API validates the session ID and returns the session data.","responses":{"200":{"description":"Successful response with session data.","content":{"application/json":{"schema":{"type":"object","properties":{"sid":{"type":"string","description":"Session ID of the user.","example":"abc123"},"username":{"type":"string","description":"Username of the user.","example":"john_doe"},"timeout":{"type":"string","description":"Timeout of the session.","example":"30m"},"expires":{"type":"string","description":"Expiration time of the session.","example":"2025-12-31T23:59:59Z"},"persist":{"type":"boolean","description":"Persist flag of the session.","example":true},"lastModified":{"type":"string","description":"Last modified time of the session.","example":"2025-01-01T12:00:00Z"}}}}}}}}},"/admin-app/v1/ba/signOut":{"post":{"summary":"Signs out the session and returns a response.","tags":["Authentication"],"description":"This API will sign out the session and return the response.","responses":{"200":{"description":"Successful sign-out response."}}}},"/admin-app/v1/oidc/signIn":{"get":{"summary":"Retrieves the session sign-in information for oAuth2.0.","tags":["Authentication"],"description":"This API returns the session sign-in information for oAuth2.0.","responses":{"200":{"description":"Successful response with session sign-in information for oAuth2.0."},"429":{"description":"Too many authentication attempts. Rate limit exceeded."}}}},"/admin-app/v1/oidc/callback":{"get":{"summary":"OAuth2.0 callback endpoint for post authentication.","tags":["Authentication"],"description":"Handles the OAuth2.0 callback and processes authentication response.","parameters":[{"in":"query","name":"state","schema":{"type":"string"},"required":false,"allowReserved":true,"description":"OAuth2 state parameter. May contain unencoded RFC 3986 reserved characters (e.g. Base64 tokens sent by IDPs)."},{"in":"query","name":"session_state","schema":{"type":"string"},"required":false,"allowReserved":true,"description":"OAuth2 session state parameter. May contain unencoded RFC 3986 reserved characters."},{"in":"query","name":"iss","schema":{"type":"string"},"required":false,"description":"OAuth2 issuer parameter."},{"in":"query","name":"code","schema":{"type":"string"},"required":false,"allowReserved":true,"description":"OAuth2 authorization code. May contain unencoded RFC 3986 reserved characters."},{"in":"query","name":"error","schema":{"type":"string"},"required":false,"description":"OAuth2 error parameter."},{"in":"query","name":"error_description","schema":{"type":"string"},"required":false,"allowReserved":true,"description":"OAuth2 error description parameter. May contain unencoded reserved characters."},{"in":"query","name":"error_uri","schema":{"type":"string"},"required":false,"allowReserved":true,"description":"OAuth2 error URI parameter. May contain unencoded RFC 3986 reserved characters."},{"in":"query","name":"access_token","schema":{"type":"string"},"required":false,"description":"OAuth2 access token parameter."},{"in":"query","name":"token_type","schema":{"type":"string"},"required":false,"description":"OAuth2 token type parameter."},{"in":"query","name":"expires_in","schema":{"type":"string"},"required":false,"description":"OAuth2 expires in parameter."},{"in":"query","name":"scope","schema":{"type":"string"},"required":false,"description":"OAuth2 scope parameter."},{"in":"query","name":"id_token","schema":{"type":"string"},"required":false,"description":"OAuth2 ID token parameter."}],"responses":{"200":{"description":"Successful response with session sign-in information for oAuth2.0."},"429":{"description":"Too many authentication attempts. Rate limit exceeded."}}}},"/admin-app/v1/oidc/userInfo":{"post":{"summary":"Retrieves the authenticated user's information.","tags":["Authentication"],"description":"This API returns the authenticated user's information.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"example":{}}}}},"responses":{"200":{"description":"Successful response with user information.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"User ID.","example":"4a82e8ce-1d11-403c-a065-abc03ffd49ca"},"email":{"type":"string","description":"User email address.","example":"prerana.patil@user.com"},"name":{"type":"string","description":"User's full name.","example":"Prerana Patil"},"provider":{"type":"string","description":"Authentication provider.","example":"keycloak"},"iat":{"type":"integer","description":"Issued at (timestamp).","example":1760592188},"exp":{"type":"integer","description":"Expiration time (timestamp).","example":1760595788}}}}}}}}},"/admin-app/v1/oidc/signOut":{"post":{"summary":"Signs out the session and returns a response.","tags":["Authentication"],"description":"This API will sign out the session and return the response.","responses":{"200":{"description":"Successful sign-out response."}}}},"/admin-app/v1/aboutApp/getHelpAboutInfo":{"post":{"summary":"Get AIG Admin UI App About Information","tags":["AboutAigAdminAppRoutes"],"responses":{"200":{"description":"AIG Admin UI App About Information","content":{"application/json":{"schema":{"type":"object","properties":{"bgsServiceInfo":{"type":"object","description":"Information about BGS services."},"bgsCreditsInfo":{"type":"object","description":"Information about BGS credits."},"bgsCopyrightsInfo":{"type":"object","description":"Copyright information from BGS."},"aigAdminAppServerInfo":{"type":"object","description":"Information about the AIG Admin App server."}}}}}},"400":{"description":"Invalid request data"}}}},"/admin-app/v1/aboutApp/getBGSInfo":{"post":{"summary":"Retrieve BGS Installation Name","description":"API to fetch BGS installation information[Name]","tags":["AboutAigAdminAppRoutes"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"type":"object","properties":{"installationName":{"type":"string","description":"BGS installation identifier with timestamp","example":"BGS_20240624-174223"}}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"Unauthorized access"}}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"Internal server error"}}}}}}}}},"/admin-app/v1/bgsLogs/list":{"post":{"summary":"Provides the list of logs based on the logType.","tags":["LogRoutes"],"description":"This API provides the list of logs based on the logType. On BGS side, API exists for each type of the log. Based on the logType sent in the request body, this API calls the appropriate API on BGS side. Response from 5 different APIs is transformed into 1 generic structure, with the superset response presented in the example.\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"logType":{"type":"string","enum":["transaction","system","workflow","session","user","security"],"pattern":"^[a-z]+$","example":"transaction"},"offset":{"type":"number","minimum":0,"maximum":10000,"multipleOf":1,"description":"This field is used for pagination. Client sends the relevant page number as the value. Offset value starts from 0.\n","example":0},"getFilters":{"type":"boolean","description":"Flag to indicate whether to fetch filter values."},"sortBy":{"type":"object","additionalProperties":false,"properties":{"criteria":{"type":"string","pattern":"^[a-zA-Z ]+$","description":"This field sends in the criteria by which the logs are sorted. By default - the value sent is `modificationTime`.\n","example":"modificationTime"},"direction":{"type":"string","enum":["ASCENDING","DESCENDING"],"description":"This field sends in the direction of sorting. The expected values are: ASCENDING / DESCENDING. By default - the value sent is `DESCENDING`.\n","example":"DESCENDING"}},"required":["criteria","direction"]},"filterBy":{"type":"object","additionalProperties":false,"properties":{"searchText":{"type":"string","pattern":"^[a-zA-Z0-9 ._-]*$","description":"A free text to search in the logs."},"host":{"type":"string","pattern":"^[a-zA-Z0-9._-]*$"},"mode":{"type":"string","pattern":"^[a-zA-Z0-9 _-]*$"},"state":{"type":"string","pattern":"^[a-zA-Z0-9]*$"},"transaction":{"type":"string","pattern":"^[a-zA-Z]*$"},"type":{"type":"string","pattern":"^[a-zA-Z0-9 _-]*$"},"instance":{"type":"string","pattern":"^[a-zA-Z0-9._-]*$"},"component":{"type":"string","pattern":"^[a-zA-Z0-9._-]*$"},"modifiedFrom":{"type":"number","minimum":0},"modifiedUntil":{"type":"number","minimum":0}}}},"required":["logType"]}}}},"responses":{"200":{"description":"Successful response with the list of logs.","content":{"application/json":{"schema":{"type":"object","properties":{"totalLogCounter":{"type":"string","description":"This field sends the total number of logs available on BGS for the given type.\n","example":"100"},"paginationSize":{"type":"string","description":"This field sends the pagination size configured on the server side for the logs list.\n","example":25},"resultingLogs":{"type":"array","items":{"type":"object","properties":{"header":{"type":"string","description":"This field creates a header to be displayed as a header on the UI.\n","example":"Log Header"},"subHeader":{"type":"string","description":"This field creates a sub-header to be displayed as a sub-header on the UI.\n","example":"Log SubHeader"},"path":{"type":"string","description":"Value sent from the BGS when the log type is transaction, system, workflow, session or user.\n","example":"/logs/transaction/123"},"name":{"type":"string","description":"Value sent from the BGS when the log type is workflow, session, user.\n","example":"Workflow Log"},"host":{"type":"string","description":"Value sent from the BGS when the log type is system, workflow, session, user.\n","example":"localhost"},"instance":{"type":"string","description":"Value sent from the BGS when the log type is system.\n","example":"instance1"},"objectId":{"type":"string","description":"Value sent from the BGS when the log type is transaction.\n","example":"obj123"},"kind":{"type":"string","description":"Value sent from the BGS when the log type is transaction.\n","example":"kind1"},"state":{"type":"string","description":"Value sent from the BGS when the log type is transaction.\n","example":"active"},"creationTime":{"type":"string","description":"The creation time of the log.\n","example":"2025-01-01T12:00:00Z"},"modificationTime":{"type":"string","description":"The modification time of the log.\n","example":"2025-01-02T12:00:00Z"}}}},"filterValues":{"type":"object","properties":{"types":{"type":"array","items":{"type":"string"},"example":["ChangeNotice","ChangeNoticeForReverseMapping","DocumentVersion"]},"modes":{"type":"array","items":{"type":"string"},"example":["JOB","WORKFLOW"]},"transactions":{"type":"array","items":{"type":"string"},"example":["ActionHandler","TRANSFER"]},"hosts":{"type":"array","items":{"type":"string"},"example":["vc6s015.net.plm.eds.com"]},"instances":{"type":"array","items":{"type":"string"},"example":["instance1","instance2"]},"components":{"type":"array","items":{"type":"string"},"example":["tpapps","tpbgs"]}}}}}}}}}}},"/admin-app/v1/bgsLogs/details":{"post":{"summary":"Provides the details of the log based on the path sent in the request.","tags":["LogRoutes"],"description":"This API provides the details of the log based on the path sent in the request. The API accepts the path and logType in the request, and calls the appropriate API on BGS side based on the logType.\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"logType":{"type":"string","enum":["transaction","system","workflow","session","user","security"],"pattern":"^[a-z]+$"},"path":{"type":"string","pattern":"^[a-zA-Z0-9._$/-]*$","description":"This field is used to identify the path of the log to be fetched.\n","example":"/logs/transaction/123"},"showDetails":{"type":"boolean","description":"Optional field to indicate whether to show detailed information.\n","example":true},"showFewLines":{"type":"boolean","description":"Optional field to indicate whether to show a few lines of the log.\n","example":false},"showFingerprint":{"type":"boolean","description":"Optional field to indicate whether to show the fingerprint of the log.\n","example":true},"bgsName":{"type":"string","pattern":"^[a-zA-Z0-9._-]*$","description":"This field is an optional field. Mandatory ONLY when fetching security logs. This gives the instance name of the active BGS\n","example":"BGS_20212_12412-123123"},"offset":{"type":"number","minimum":0,"maximum":10000,"multipleOf":1,"description":"This field is used for pagination in case of security logs. Client sends the relevant page number as the value. Offset value starts from 0.\n"},"columnFilters":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"columnName":{"type":"string","pattern":"^[a-zA-Z0-9_]*$","description":"Name of the column to filter on.","example":"event_type"},"operation":{"type":"string","enum":["contains","notContains","startsWith","endsWith","equals","notEquals"],"description":"Filter operation to be applied. Allowed values - contains, notContains, startsWith, endsWith, equals, notEquals."},"values":{"type":"array","items":{"type":"string","description":"Values to filter the column by.","pattern":"^[a-zA-Z0-9 ._/-]*$"}}}}},"sortCriteria":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"fieldName":{"type":"string","pattern":"^[a-zA-Z0-9._-]*$"},"sortDirection":{"type":"string","description":"Either ASC or DESC","enum":["ASC","DESC"]}}}}},"required":["logType","path"]}}}},"responses":{"200":{"description":"Successful response with the details of the log.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"path":{"type":"string","example":"/logs/transaction/123"},"logType":{"type":"string","example":"transaction"},"objectId":{"type":"string","example":"obj123"},"kind":{"type":"string","example":"kind1"},"state":{"type":"string","example":"active"},"objectType":{"type":"string","example":"transaction"},"user":{"type":"string","example":"admin"},"duration":{"type":"string","example":"5m"},"host":{"type":"string","example":"localhost"},"instance":{"type":"string","example":"instance1"},"component":{"type":"string","example":"componentA"},"creationTime":{"type":"string","example":"2025-01-01T12:00:00Z"},"modificationTime":{"type":"string","example":"2025-01-02T12:00:00Z"},"logfile":{"type":"object","properties":{"path":{"type":"string","example":"/logs/transaction/logfile.log"},"errorOccurred":{"type":"string","example":false},"errorMessage":{"type":"string","example":null},"content":{"type":"string","example":"Log content here"}}},"sessionfile":{"type":"object","properties":{"path":{"type":"string","example":"/logs/session/sessionfile.log"},"errorOccurred":{"type":"string","example":false},"errorMessage":{"type":"string","example":null},"content":{"type":"string","example":"Session content here"}}},"workflowfile":{"type":"object","properties":{"path":{"type":"string","example":"/logs/workflow/workflowfile.log"},"errorOccurred":{"type":"string","example":false},"errorMessage":{"type":"string","example":null},"content":{"type":"string","example":"Workflow content here"}}}}},{"type":"object","properties":{"totalFound":{"type":"number","example":42},"events":{"type":"array","items":{"type":"object","properties":{"version":{"type":"string","example":2506},"timestamp":{"type":"string","example":"2025-01-01T12:00:00Z"},"client_id":{"type":"string","example":"DISW7G11MG3-BGS_20250604"},"event_id":{"type":"string","example":"c-f3ad-985f-d4bc-789ghi01"},"event_type":{"type":"string","example":"SECURITY"},"correlation_ids":{"type":"array","items":{"type":"string","example":"ghi912dss2"}},"event_data":{"type":"object","properties":{"event_code":{"type":"string","example":"AUTH-1012"},"category":{"type":"string","example":"USER"},"subcategory":{"type":"string","example":"CHANGE_PASSWORD"},"message":{"type":"string","example":"Password change for user successful"},"calling_identity":{"type":"string","example":"t4adm-ffff-127.0.0.1-78945"},"risk":{"type":"string","example":"MEDIUM"}}}}}}}}]},"examples":{"ResponseType_Default":{"summary":"Default log details response","value":{"path":"/logs/transaction/123","logType":"transaction","objectId":"obj123","kind":"kind1","state":"active","objectType":"transaction","user":"admin","duration":"5m","host":"localhost","instance":"instance1","component":"componentA","creationTime":"2025-01-01T12:00:00Z","modificationTime":"2025-01-02T12:00:00Z","logfile":{"path":"/logs/transaction/logfile.log","errorOccurred":false,"errorMessage":null,"content":"Log content here"},"sessionfile":{"path":"/logs/session/sessionfile.log","errorOccurred":false,"errorMessage":null,"content":"Session content here"},"workflowfile":{"path":"/logs/workflow/workflowfile.log","errorOccurred":false,"errorMessage":null,"content":"Workflow content here"}}},"ResponseType_Security":{"summary":"Security log details response","value":{"totalFound":42,"events":[{"version":2506,"timestamp":"2025-01-01T12:00:00Z","client_id":"DISW7G11MG3-BGS_20250604","event_id":"c-f3ad-985f-d4bc-789ghi01","event_type":"SECURITY","correlation_ids":["ghi912dss2"],"event_data":{"event_code":"AUTH-1012","category":"USER","subcategory":"CHANGE_PASSWORD","message":"Password change for user successful","calling_identity":"t4adm-ffff"}}]}}}}}}}}},"/admin-app/v1/bgsLogs/download":{"post":{"summary":"Gets the zip file of the logs along with its attachments.","tags":["LogRoutes"],"description":"This API gets the zip file of the log stack along with its attachments. The API accepts the path and logType in the request, and calls the appropriate API on BGS side based on the logType.\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"logType":{"type":"string","enum":["transaction","system","workflow","session","user","security"],"description":"This field is used to identify the type of log to be fetched.\n","example":"transaction"},"path":{"type":"string","pattern":"^[a-zA-Z0-9._/-]*$","description":"This field is used to identify the path of the log to be fetched.\n","example":"/logs/transaction/123"},"bgsName":{"type":"string","pattern":"^[a-zA-Z0-9._-]*$","description":"This field is an optional field. Mandatory ONLY when downloading security logs\n","example":"BGS_20212_12412-123123"}},"required":["logType","path"]}}}},"responses":{"200":{"description":"Successful response with the details of the downloaded file.","content":{"application/json":{"schema":{"type":"object","properties":{"content":{"type":"string","example":"UEsDBBQAAAAIACZ9oloWOZuaDQoAAAdGA......base64 string...."},"contentType":{"type":"string","example":"application/zip"},"fileName":{"type":"string","example":"16473923696_QEvdMgTYJDzKpBAAAAAAAAAAAAA_CN.log_pack_174618067044779.zip"}}}}}}}}},"/admin-app/v1/bgsLogs/reqBulkDownload":{"post":{"summary":"Initiates a multi-download of logs.","tags":["LogRoutes"],"description":"This API initiates a process to download multiple logs at once by sending a list of paths and the logType.\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"logType":{"type":"string","enum":["transaction","system","workflow","session","user"],"description":"This field is used to identify the type of log to be fetched.\n","example":"transaction"},"paths":{"type":"array","minItems":1,"items":{"type":"string","pattern":"^[a-zA-Z0-9._/-]*$","description":"This field is used to identify the paths of the logs to be fetched.\n","example":["/path/to/log1","/path/to/log2"]}}},"required":["logType","paths"]}}}},"responses":{"200":{"description":"Successful response with a token for download status.","content":{"application/json":{"schema":{"type":"object","properties":{"downloadToken":{"type":"string","example":"uuid-token-1234"}}}}}}}}},"/admin-app/v1/bgsLogs/startBulkDownload":{"post":{"summary":"Gets the status of the multi-download.","tags":["LogRoutes"],"description":"This API checks the status of the multi-download request based on the token sent in the request. The API either sends PROCESSING / COMPLETED based on the download status.\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"logType":{"type":"string","enum":["transaction","system","workflow","session","user"],"description":"This field is used to identify the type of log to be fetched.\n","example":"transaction"},"downloadToken":{"type":"string","pattern":"^[a-zA-Z0-9]*$","description":"This download token is used to track the download status","example":"download-token"}},"required":["logType","downloadToken"]}}}},"responses":{"200":{"description":"Successful response. Returns one of two schemas depending on the current download status. Poll this endpoint until `status` transitions from `PROCESSING` to `COMPLETED`.\n","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"Returned while the batch download is still being assembled. The client should poll again after a short delay.\n","properties":{"status":{"type":"string","description":"Always \"PROCESSING\" while the download is in progress.","example":"PROCESSING"},"message":{"type":"string","description":"Human-readable progress message.","example":"The download is still in progress. Please check back later."}}},{"type":"object","description":"Returned once the consolidated zip archive is ready. The transaction folder is deleted after this response is served.\n","properties":{"status":{"type":"string","description":"Always \"COMPLETED\" when the zip is ready.","example":"COMPLETED"},"fileName":{"type":"string","description":"Name of the generated zip archive.","example":"transaction_abc123token.zip"},"contentType":{"type":"string","description":"MIME type of the generated file.","example":"application/zip"},"content":{"type":"string","description":"Base64-encoded contents of the generated zip archive.","example":"UEsDBBQAAAAIACZ9oloWOZuaDQoAAAdGA......base64 string...."},"checksum":{"type":"string","description":"Checksum of the generated zip archive.","example":"a1b2c3d4e5f6..."},"checksumAlgorithm":{"type":"string","description":"Algorithm used to compute the checksum.","example":"SHA-256"}}}]}}}},"403":{"description":"Forbidden. Returned in two distinct situations: (1) The server process lacks OS-level read permission (EACCES) on the download transaction folder — the folder exists but cannot be accessed. (2) The authenticated user does not hold the required `<logType>_log_download.read` permission checked by the session middleware.\n","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"integer","description":"HTTP status code.","example":403},"code":{"type":"integer","description":"Internal error code mirroring the HTTP status.","example":403},"type":{"type":"string","description":"Error origin. \"application\" indicates the error was raised directly by this server rather than forwarded from BGS.\n","example":"application"},"message":{"type":"string","description":"Human-readable description of the access denial, including the logType and downloadToken that triggered it.\n","example":"Error communicating with AIG Admin server : Access to the download transaction is denied for logType: transaction, downloadToken: abc123token"}}}}}},"404":{"description":"Not Found. The download transaction identified by the given `logType` and `downloadToken` does not exist on disk. This occurs when: (1) The token was never issued or contains a typo. (2) The transaction folder was swept by the TTL cleanup (folders older than 4 hours are removed opportunistically on each status-check call). (3) The folder was already deleted after a COMPLETED response was served (each completed download is consumed exactly once).\n","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"integer","description":"HTTP status code.","example":404},"code":{"type":"integer","description":"Internal error code mirroring the HTTP status.","example":404},"type":{"type":"string","description":"Error origin. \"application\" indicates the error was raised directly by this server rather than forwarded from BGS.\n","example":"application"},"message":{"type":"string","description":"Human-readable description of the missing transaction, including the logType and downloadToken that were looked up.\n","example":"Error communicating with AIG Admin server : Download transaction token was not found for logType: transaction, downloadToken: abc123token"}}}}}}}}},"/admin-app/v1/notification/getAll":{"post":{"summary":"Fetches all the user notifications.","tags":["NotificationRoutes"],"description":"This API fetches all the user notifications from the server.\nIt returns the notifications in a sorted order based on the created date.\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"locale":{"type":"string","pattern":"^[a-zA-Z-_]*$","description":"Locale of the user.","example":"en-US"}}}}}},"responses":{"200":{"description":"Successfully retrieved notifications","content":{"application/json":{"schema":{"type":"object","properties":{"notifications":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the notification"},"messageType":{"type":"string","enum":["WARNING","INFO","ERROR","SUCCESS"],"description":"Type of the notification message"},"messageTitle":{"type":"string","description":"Title of the notification"},"messageText":{"type":"string","description":"Detailed message content"},"notificationLevel":{"type":"string","enum":["low","medium","high"],"description":"Severity level of the notification"},"closable":{"type":"boolean","description":"Whether the notification can be dismissed"},"createdAt":{"type":"string","format":"date-time","description":"Creation timestamp"},"validFrom":{"type":"string","format":"date-time","description":"Start of validity period"},"validThrough":{"type":"string","format":"date-time","description":"End of validity period*"},"isCritical":{"type":"boolean","description":"Indicates if the notification is critical*"},"isActive":{"type":"boolean","description":"Current status of the notification"},"sourceSystem":{"type":"string","description":"Author or source of the notification"}}}}}},"example":{"notifications":[{"id":"1","messageType":"WARNING","messageTitle":"Application Upgrade","messageText":"Action Required: Check for Latest Updates at Siemens Support Center. Analyze and apply relevant updates and critical security patches to ensure system stability and protection.","notificationLevel":"medium","closable":false,"createdAt":"2025-04-09T12:00:00.000Z","validFrom":"2025-04-09T12:00:00.000Z","validThrough":"2025-05-09T12:00:00.000Z","isCritical":true,"isActive":true,"sourceSystem":"BGS_2024"},{"id":"2","messageType":"INFO","messageTitle":"BGS Instance Information","messageText":"BGS_2024 is under maintenance. Please contact your administrator for more information.","notificationLevel":"low","closable":true,"createdAt":"2025-04-11T12:00:00.000Z","validFrom":"2025-04-11T12:00:00.000Z","validThrough":"2025-05-11T12:00:00.000Z","isCritical":false,"isActive":true,"sourceSystem":"GS_2024"},{"id":"3","messageType":"ERROR","messageTitle":"BGS Instance Error","messageText":"BGS_2025 is not available. Please contact your administrator for more information.","notificationLevel":"high","closable":false,"createdAt":"2025-04-05T12:00:00.000Z","validFrom":"2025-04-05T12:00:00.000Z","validThrough":"2025-05-05T12:00:00.000Z","isCritical":false,"isActive":true,"sourceSystem":"BGS_2024"},{"id":"4","messageType":"SUCCESS","messageTitle":"BGS Instance Upgrade Success","messageText":"Patch Upgrade for BGS_2024 was successful. You can now use the system.","notificationLevel":"low","closable":true,"createdAt":"2025-04-15T12:00:00.000Z","validFrom":"2025-04-15T12:00:00.000Z","validThrough":"2025-05-15T12:00:00.000Z","isCritical":false,"isActive":true,"sourceSystem":"GS_2024"}]}}}}}}},"/admin-app/v1/notification/getNewCount":{"post":{"summary":"Get new notification count","tags":["NotificationRoutes"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"lastFetchTimestamp":{"type":"number","description":"Epoch timestamp of the last notification fetch","minimum":0},"lastNotificationFetchTime":{"type":"string","pattern":"^[a-zA-Z0-9:._-]*$","description":"Timestamp of the last notification fetch (e.g., '2025-04-09T12:00:00.000Z')","example":"2025-04-09T12:00:00.000Z"}}}}}},"responses":{"200":{"description":"Count of new notifications since the last fetch.","content":{"application/json":{"schema":{"type":"object","properties":{"notificationCount":{"type":"string","description":"Number of new notifications since the last fetch."}}}}}},"400":{"description":"Invalid request data"}}}},"/admin-app/v1/notification/getDashboardMessages":{"post":{"summary":"Get dashboard notifications","tags":["NotificationRoutes"],"responses":{"200":{"description":"List of localized notifications for the dashboard","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"array","items":{"type":"string"}}}}}}},"400":{"description":"Invalid request data"}}}},"/admin-app/v1/notification/delete":{"post":{"summary":"Deletes a user notification.","tags":["NotificationRoutes"],"description":"This API deletes a user notification based on the provided notification ID.\nIt takes the notification ID and deletes the notification accordingly.\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"notificationIds":{"type":"array","items":{"type":"string"},"minItems":1,"description":"IDs of the notification to be deleted.","example":["8e646bf2-fa16-4aad-b445-49915e4bb517"]}},"required":["notificationIds"]}}}},"responses":{"200":{"description":"Successfully deleted notification","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Success message after deleting the notification.","example":"Notification deleted successfully."}}}}}}}}},"/admin-app/v1/session/getPostInitInfo":{"post":{"summary":"Get AIG Admin App Post Init Session related Information","tags":["AdminAppSessionRoutes"],"responses":{"200":{"description":"AIG Admin App Post Init Information, such as feature flags","content":{"application/json":{"schema":{"type":"object","properties":{"featureFlags":{"type":"object","description":"Feature flags for the session.","properties":{"isIncubationEnabled":{"type":"boolean","description":"Give the incubation status."}}}}}}}},"400":{"description":"Invalid request data"}}}},"/admin-app/v1/session/getPreInitInfo":{"post":{"summary":"Get AIG Admin App Pre Init Session related Information","tags":["AdminAppSessionRoutes"],"responses":{"200":{"description":"AIG Admin App Pre Init Information, such as feature flags","content":{"application/json":{"schema":{"type":"object","properties":{"featureFlags":{"$ref":"#/components/schemas/FeatureFlags"}}}}}},"400":{"description":"Invalid request data"}}}},"/admin-app/v1/session/health":{"get":{"summary":"Session health check endpoint","description":"Health check endpoint to verify that the session is responsive","tags":["AdminAppSessionRoutes"],"responses":{"200":{"description":"Session is healthy","content":{"application/json":{"schema":{"type":"object","properties":{"healthy":{"type":"boolean","example":true},"status":{"type":"string","example":"Session is healthy"},"timestamp":{"type":"string","format":"date-time","example":"2026-03-04T10:30:00.000Z"}}}}}}}}}},"components":{"schemas":{"FeatureFlags":{"type":"object","properties":{"adminAppOAuth2Enabled":{"type":"boolean","description":"Give the SSO Enabled status."}}}}},"tags":[]}