{"openapi":"3.0.3","info":{"title":"Selis TMiS powered by Selis Core API","description":"API documentation for Selis TMiS powered by Selis Core. Used to manage the application and its resources.","contact":{"email":"mlarabi@calx.co"},"version":"3.0.0"},"servers":[{"url":"server:3000:3000/"}],"paths":{"/org/{org}/schedules/{id}/update":{"patch":{"tags":["ScheduleExtensionController"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/org/{org}/schedules/{id}/refresh":{"patch":{"tags":["ScheduleExtensionController"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/org/{org}/schedules/{id}/force-refresh":{"patch":{"tags":["ScheduleExtensionController"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/org/{org}/schedules/{id}/baseline":{"post":{"tags":["ScheduleExtensionController"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/org/{org}/schedules/{id}/activeBaseline":{"patch":{"tags":["ScheduleExtensionController"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/org/{org}/schedules/{id}/baselines/{baselineId}":{"delete":{"tags":["ScheduleExtensionController"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"},{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"baselineId","in":"path","required":true,"schema":{"type":"string"}}]}},"/token":{"get":{"tags":["Authentication"],"responses":{"200":{"description":"HTML page with JavaScript for token relay","content":{"text/html":{"schema":{"type":"string"},"example":"<html><script>/* Token relay logic */</script><body><h1>Authentication successful</h1></body></html>"}}}},"parameters":[{"name":"frontendOrigin","in":"query","required":true,"schema":{"type":"string"},"example":"https://app.selis.dev"},{"name":"token","in":"query","required":false,"schema":{"type":"string"},"example":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."}],"summary":"Serve SSO token relay page","description":"Returns an HTML page that relays the authentication token back to the frontend via postMessage or redirect.","operationId":"getTokenPage"}},"/login-via-saml":{"get":{"tags":["Authentication"],"responses":{"302":{"description":"Redirect to SAML identity provider"},"400":{"description":"Invalid frontend origin","content":{"application/json":{"schema":{"type":"object","properties":{"error_code":{"type":"string"}}},"example":{"error_code":"authentication.invalid_frontend_origin"}}}}},"parameters":[{"name":"frontendOrigin","in":"query","required":true,"schema":{"type":"string"},"example":"https://app.selis.dev"}],"summary":"Initiate SAML SSO login","description":"Redirects the user to the configured SAML identity provider for single sign-on authentication.","operationId":"loginViaSaml"}},"/login-via-microsoft":{"get":{"tags":["Authentication"],"responses":{"302":{"description":"Redirect to Microsoft Entra ID"},"400":{"description":"Invalid frontend origin","content":{"application/json":{"schema":{"type":"object","properties":{"error_code":{"type":"string"}}},"example":{"error_code":"authentication.invalid_frontend_origin"}}}}},"parameters":[{"name":"frontendOrigin","in":"query","required":true,"schema":{"type":"string"},"example":"https://app.selis.dev"}],"summary":"Initiate Microsoft SSO login","description":"Redirects the user to Microsoft Entra ID for single sign-on authentication using PKCE.","operationId":"loginViaMicrosoft"}},"/login-via-google":{"get":{"tags":["Authentication"],"responses":{"302":{"description":"Redirect to Google OAuth2"},"400":{"description":"Invalid frontend origin","content":{"application/json":{"schema":{"type":"object","properties":{"error_code":{"type":"string"}}},"example":{"error_code":"authentication.invalid_frontend_origin"}}}}},"parameters":[{"name":"frontendOrigin","in":"query","required":true,"schema":{"type":"string"},"example":"https://app.selis.dev"}],"summary":"Initiate Google SSO login","description":"Redirects the user to Google OAuth2 for single sign-on authentication.","operationId":"loginViaGoogle"}},"/loggedin-via-microsoft":{"post":{"tags":["Authentication"],"responses":{"302":{"description":"Redirect to token page with authentication token"},"400":{"description":"Invalid request or missing state","content":{"application/json":{"schema":{"type":"object","properties":{"error_code":{"type":"string"}}},"example":{"error_code":"authentication.invalid_state"}}}}},"summary":"Handle Microsoft SSO callback","description":"Processes the Microsoft Entra ID authorization code callback and issues a session token.","operationId":"loggedInViaMicrosoft","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"state":{"type":"string"}},"required":["code","state"]},"example":{"code":"0.AXsAuC1M...","state":"eyJmcm9udGVuZE9yaWdpbiI6Imh0dHBzOi8vYXBwLnNlbGlzLmRldiIsInJlZGlyZWN0VG8iOiIvdG9rZW4iLCJ2ZXJpZmllciI6ImFiYzEyMyJ9"}}}}}},"/loggedin-via-saml":{"post":{"tags":["Authentication"],"responses":{"302":{"description":"Redirect to token page with authentication token"},"500":{"description":"SAML processing error","content":{"text/plain":{"schema":{"type":"string"},"example":"Error parsing XML"}}}},"summary":"Handle SAML SSO callback","description":"Processes the SAML assertion response and issues a session token.","operationId":"loggedInViaSaml","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"SAMLResponse":{"type":"string"},"RelayState":{"type":"string"}},"required":["SAMLResponse","RelayState"]},"example":{"SAMLResponse":"PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjxzYW1scDpSZXNwb25zZS4uLg==","RelayState":"eyJmcm9udGVuZE9yaWdpbiI6Imh0dHBzOi8vYXBwLnNlbGlzLmRldiIsInJlZGlyZWN0VG8iOiIvdG9rZW4ifQ=="}}}}}},"/loggedin-via-google":{"get":{"tags":["Authentication"],"responses":{"302":{"description":"Redirect to token page with authentication token"},"400":{"description":"Invalid request or missing state","content":{"application/json":{"schema":{"type":"object","properties":{"error_code":{"type":"string"}}},"example":{"error_code":"authentication.invalid_state"}}}}},"parameters":[{"name":"code","in":"query","required":true,"schema":{"type":"string"},"example":"4/0AX4XfWh..."},{"name":"state","in":"query","required":true,"schema":{"type":"string"},"example":"eyJmcm9udGVuZE9yaWdpbiI6Imh0dHBzOi8vYXBwLnNlbGlzLmRldiIsInJlZGlyZWN0VG8iOiIvdG9rZW4ifQ=="}],"summary":"Handle Google SSO callback","description":"Processes the Google OAuth2 authorization code callback and issues a session token.","operationId":"loggedInViaGoogle"}},"/login":{"post":{"tags":["Authentication"],"responses":{"200":{"description":"Authentication successful","content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string"},"memberships":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"role":{"type":"string"},"organization":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"reference":{"type":"string"}}}}}}}},"example":{"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...","memberships":[{"id":"550e8400-e29b-41d4-a716-446655440001","role":"Admin","organization":{"id":"550e8400-e29b-41d4-a716-446655440002","name":"Acme Corp","reference":"acme"}}]}}}},"400":{"description":"Authentication failed or password auth disabled","content":{"application/json":{"schema":{"type":"object","properties":{"error_code":{"type":"string"}}},"example":{"error_code":"authentication.invalid_credentials"}}}}},"summary":"Authenticate with email and password","description":"Authenticates a user with email and password credentials. Returns a JWT token and organization memberships.","operationId":"loginWithPassword","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email"},"password":{"type":"string"},"rememberMe":{"type":"boolean"}},"required":["email","password"]},"example":{"email":"jane.doe@selis.dev","password":"SecurePassword123!","rememberMe":true}}}}}},"/logout":{"post":{"tags":["Authentication"],"responses":{"200":{"description":"Logout successful","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"}}},"example":{"success":true}}}}},"summary":"Invalidate session and clear token","description":"Invalidates the current session token and clears the authentication cookie.","operationId":"logout"}},"/register":{"post":{"tags":["Authentication"],"responses":{"201":{"description":"Registration successful","content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email"}}},"example":{"email":"jane.doe@selis.dev"}}}},"400":{"description":"Registration failed","content":{"application/json":{"schema":{"type":"object","properties":{"error_code":{"type":"string"}}},"example":{"error_code":"authentication.email_already_taken"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error_code":{"type":"string"}}},"example":{"error_code":"authentication.internal_server_error"}}}}},"summary":"Register a new user account","description":"Creates a new user profile with email, password, full name, and phone number. Enforces strong password requirements.","operationId":"registerAccount","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email"},"password":{"type":"string"},"fullName":{"type":"string"},"phoneNumber":{"type":"string"}},"required":["email","fullName"]},"example":{"email":"jane.doe@selis.dev","password":"SecurePassword123!","fullName":"Jane Doe","phoneNumber":"+1-555-0123"}}}}}},"/me":{"get":{"summary":"Get the current user information","operationId":"getMe","responses":{"200":{"description":"The current user information","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileDbo"},"example":{"id":"550e8400-e29b-41d4-a716-446655440001","email":"jane.doe@selis.dev","fullName":"Jane Doe","title":"Senior Developer","pictureFileId":"550e8400-e29b-41d4-a716-446655440002","phoneNumber":"+1-555-0123","hadAcceptedEula":true,"createdAt":"2025-01-15T09:00:00.000Z","updatedAt":"2025-01-15T09:00:00.000Z","organizations":[{"id":"550e8400-e29b-41d4-a716-446655440003","name":"Acme Corp","reference":"acme","role":"Admin"}],"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."}}}},"401":{"description":"Unauthorized"}},"security":[{"basicAuth":[]}],"description":"Returns the full profile for the authenticated user."}},"/profile":{"put":{"tags":["Profiles"],"responses":{"200":{"description":"Profile fields updated successfully","content":{"application/json":{"example":{"id":"550e8400-e29b-41d4-a716-446655440001","email":"jane.doe@selis.dev","fullName":"Jane Doe","title":"Senior Developer","pictureFileId":"550e8400-e29b-41d4-a716-446655440002","phoneNumber":"+1-555-0123","hadAcceptedEula":true,"createdAt":"2025-01-15T09:00:00.000Z","updatedAt":"2025-01-15T09:00:00.000Z"}}}},"401":{"description":"Authentication required","content":{"application/json":{"example":{"error_code":"authentication.required"}}}}},"summary":"Update profile display fields","description":"Updates display-related profile fields such as full name, title, and picture file ID.","operationId":"updateProfileFields","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"fullName":{"type":"string"},"title":{"type":"string"},"pictureFileId":{"type":"string"}}},"example":{"fullName":"Jane Doe","title":"Senior Developer","pictureFileId":"550e8400-e29b-41d4-a716-446655440002"}}}}},"patch":{"tags":["Profiles"],"responses":{"200":{"description":"Profile fields patched successfully","content":{"application/json":{"example":{"id":"550e8400-e29b-41d4-a716-446655440001","email":"jane.doe@selis.dev","fullName":"Jane Doe","title":"Lead Developer","pictureFileId":"550e8400-e29b-41d4-a716-446655440002","phoneNumber":"+1-555-0123","hadAcceptedEula":true,"createdAt":"2025-01-15T09:00:00.000Z","updatedAt":"2025-01-15T09:00:00.000Z"}}}},"401":{"description":"Authentication required","content":{"application/json":{"example":{"error_code":"authentication.required"}}}}},"summary":"Patch profile display fields","description":"Partially updates display-related profile fields such as full name, title, and picture file ID.","operationId":"patchProfileFields","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"fullName":{"type":"string"},"title":{"type":"string"},"pictureFileId":{"type":"string"}}},"example":{"title":"Lead Developer"}}}}}},"/profiles/{id}/accept-eula":{"patch":{"tags":["Profiles"],"responses":{"201":{"description":"EULA acceptance recorded successfully","content":{"application/json":{"example":true}}},"403":{"description":"Forbidden - insufficient permissions","content":{"application/json":{"example":{"error_code":"profile-change.forbidden"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"example":"550e8400-e29b-41d4-a716-446655440001"}],"summary":"Accept end-user license agreement","description":"Records EULA acceptance for the specified profile. Requires admin or self-access.","operationId":"acceptEula"}},"/profiles/{id}":{"get":{"tags":["Profiles"],"responses":{"200":{"description":"Profile retrieved successfully","content":{"application/json":{"example":{"id":"550e8400-e29b-41d4-a716-446655440001","email":"jane.doe@selis.dev","fullName":"Jane Doe","title":"Senior Developer","pictureFileId":"550e8400-e29b-41d4-a716-446655440002","phoneNumber":"+1-555-0123","hadAcceptedEula":true,"createdAt":"2025-01-15T09:00:00.000Z","updatedAt":"2025-01-15T09:00:00.000Z"}}}},"404":{"description":"Profile not found","content":{"application/json":{"example":{"error_code":"profile.not_found"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"example":"550e8400-e29b-41d4-a716-446655440001"}],"summary":"Get a profile by identifier","description":"Returns a profile by its unique identifier, excluding the hashed password.","operationId":"getProfileById"},"patch":{"tags":["Profiles"],"responses":{"200":{"description":"Profile updated successfully","content":{"application/json":{"example":{"id":"550e8400-e29b-41d4-a716-446655440001","email":"jane.doe@selis.dev","fullName":"Jane Doe Smith","title":"Lead Developer","pictureFileId":"550e8400-e29b-41d4-a716-446655440002","phoneNumber":"+1-555-9876","hadAcceptedEula":true,"createdAt":"2025-01-15T09:00:00.000Z","updatedAt":"2025-01-15T09:00:00.000Z"}}}},"403":{"description":"Forbidden - insufficient permissions","content":{"application/json":{"example":{"error_code":"profile-change.forbidden"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"example":"550e8400-e29b-41d4-a716-446655440001"}],"summary":"Patch a profile by identifier","description":"Updates profile fields or password for the specified profile. Requires super admin or self-access.","operationId":"patchProfile","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"fullName":{"type":"string"},"title":{"type":"string"},"pictureFileId":{"type":"string"},"phoneNumber":{"type":"string"},"password":{"type":"string"},"currentPassword":{"type":"string"},"notificationSettings":{"type":"object","additionalProperties":true}}},"example":{"fullName":"Jane Doe Smith","title":"Lead Developer","phoneNumber":"+1-555-9876"}}}}}},"/org/{org}":{"patch":{"tags":["Profiles"],"responses":{"200":{"description":"Organization updated successfully","content":{"application/json":{"example":true}}},"403":{"description":"Forbidden - insufficient permissions for SSO settings","content":{"application/json":{"example":{"error_code":"organization.sso_settings_forbidden"}}}}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"example":"acme"}],"summary":"Update organization settings","description":"Updates organization name, reference, modules, feature flags, shared registers, and SSO settings.","operationId":"updateOrganization","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"reference":{"type":"string"},"modules":{"type":"array","items":{"type":"string"}},"featureFlags":{"type":"object","additionalProperties":{"type":"boolean"}},"sharedRegisters":{"type":"array","items":{"type":"string"}},"ssoSettings":{"type":"object","properties":{"autoJoinEnabled":{"type":"boolean"},"autoJoinDomains":{"type":"array","items":{"type":"string"}},"passwordAuthDisabled":{"type":"boolean"}}}}},"example":{"name":"Acme Corporation","reference":"acme-corp","modules":["core","advanced"],"featureFlags":{"newUI":true,"betaFeature":false},"sharedRegisters":["global-registry"],"ssoSettings":{"autoJoinEnabled":true,"autoJoinDomains":["acme.com"],"passwordAuthDisabled":false}}}}}}},"/org/new":{"post":{"tags":["Profiles"],"responses":{"201":{"description":"Organization created successfully","content":{"application/json":{"example":{"id":"550e8400-e29b-41d4-a716-446655440003","name":"Acme Corp","reference":"acme"}}}},"400":{"description":"Organization creation failed or reference already taken","content":{"application/json":{"example":{"error_code":"organization.reference_already_taken"}}}},"401":{"description":"Authentication required","content":{"application/json":{"example":{"error_code":"authentication.required"}}}}},"summary":"Create a new organization","description":"Creates a new organization with a reference and name, assigns the current user as admin, and initializes database views.","operationId":"createOrganization","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reference":{"type":"string"},"name":{"type":"string"}},"required":["reference","name"]},"example":{"reference":"acme","name":"Acme Corp"}}}}}},"/organizations":{"get":{"tags":["Profiles"],"responses":{"default":{"description":"default response"}},"summary":"List all organizations","description":"Returns a list of all organizations. Super-user only.","operationId":"listOrganizations"}},"/org/{org}/profiles/{id}":{"patch":{"tags":["Profiles"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"summary":"Update a member role within an organization","description":"Updates the role of a profile within a specific organization. Requires admin privileges and prevents removing the last admin.","operationId":"updateMemberRole"},"delete":{"tags":["Profiles"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"summary":"Remove a profile from the organization","description":"Removes a profile's membership from the organization and clears authentication caches.","operationId":"removeProfileFromOrganization"}},"/notifications/web-push/subscribe":{"post":{"tags":["pushProfile"],"responses":{"default":{"description":"default response"}}}},"/notifications/web-push/unsubscribe":{"delete":{"tags":["pushProfile"],"responses":{"default":{"description":"default response"}}}},"/notifications/web-push/vapid-public-key":{"get":{"tags":["pushProfile"],"responses":{"default":{"description":"default response"}}}},"/notifications/push-devices":{"post":{"tags":["pushProfile"],"responses":{"default":{"description":"default response"}}},"delete":{"tags":["pushProfile"],"responses":{"default":{"description":"default response"}}}},"/org/{org}/files":{"get":{"tags":["Files"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"}],"summary":"List all files in the organization","description":"Returns all file metadata entries for the organization with normalized tags.","operationId":"listFiles"},"post":{"tags":["Files"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"}],"summary":"Upload files via multipart form","description":"Uploads one or more files using multipart form data. Supports optional PDF conversion and tag assignment.","operationId":"uploadFile"}},"/org/{org}/filesByCategory":{"get":{"tags":["Files"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"}],"summary":"Get files grouped by entity category","description":"Returns attached files grouped by their entity type (item category) with author and profile picture information.","operationId":"getFilesByCategory"}},"/org/{org}/files/{id}/meta":{"get":{"tags":["Files"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"summary":"Get metadata for a single file","description":"Returns file metadata including tags and document governance info for a file by identifier.","operationId":"getFileMeta"}},"/org/{org}/files/meta":{"post":{"tags":["Files"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"}],"summary":"Get metadata for multiple files by ID","description":"Accepts an array of file IDs in the request body and returns metadata for all matching files.","operationId":"getFilesMetaBatch"}},"/org/{org}/files/{id}":{"get":{"tags":["Files"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"summary":"Download a file by identifier","description":"Streams the file content with appropriate Content-Type and Content-Disposition headers. Supports S3 and local storage.","operationId":"downloadFile"},"delete":{"tags":["Files"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"summary":"Delete a file by identifier","description":"Soft-deletes a file and removes it from storage. Governed documents cannot be deleted.","operationId":"deleteFile"}},"/org/{org}/files/stream":{"post":{"tags":["Files"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"}],"summary":"Upload a file via octet-stream with progress","description":"Uploads a single file as a raw octet-stream. File metadata is passed via X-File-Name, X-File-Size, and X-File-Type headers.","operationId":"uploadFileStream"}},"/org/{org}/idss/check-user":{"get":{"tags":["Files"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"}],"summary":"Check if user has an IDSS account","description":"Checks whether the authenticated user has an account in the IDSS digital signing service.","operationId":"checkIdssUser"}},"/org/{org}/idss/sign":{"post":{"tags":["Files"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"}],"summary":"Digitally sign a document via IDSS","description":"Uploads a file to the IDSS service, applies a digital signature, and replaces the local file with the signed version.","operationId":"signDocument"}},"/org/{org}/files/synchronize":{"post":{"tags":["Files"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"}],"summary":"Synchronize file attachment references","description":"Detaches files that are no longer referenced in any entity document arrays across all item types.","operationId":"synchronizeDocuments"}},"/org/{org}/notifications":{"get":{"tags":["Notifications"],"responses":{"200":{"description":"List of notifications for the current user","content":{"application/json":{"schema":{},"example":[{"id":"550e8400-e29b-41d4-a716-446655440001","organizationId":"550e8400-e29b-41d4-a716-446655440002","targetProfileId":"550e8400-e29b-41d4-a716-446655440003","targetResourceId":"550e8400-e29b-41d4-a716-446655440004","table":"schedule","itemId":"550e8400-e29b-41d4-a716-446655440005","action":"created","isRead":false,"createdAt":"2025-01-15T09:00:00.000Z","author":{"id":"550e8400-e29b-41d4-a716-446655440006","name":"Jane Doe","email":"jane.doe@selis.dev"},"item":{"id":"550e8400-e29b-41d4-a716-446655440005","name":"Team Meeting","itemName":"Team Meeting"}}]}}}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"}],"summary":"List notifications for the current user","description":"Returns paginated notifications for the authenticated user. Supports limit/offset query parameters.","operationId":"getMyNotifications"},"patch":{"tags":["Notifications"],"responses":{"200":{"description":"Boolean indicating whether all notifications were successfully marked as read","content":{"application/json":{"schema":{},"example":true}}}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"}],"summary":"Mark all notifications as read","description":"Marks all notifications for the authenticated user as read.","operationId":"markAllNotificationsAsRead"}},"/org/{org}/notifications/{id}":{"get":{"tags":["Notifications"],"responses":{"200":{"description":"Notification details","content":{"application/json":{"schema":{}}}},"404":{"description":"Notification not found"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"summary":"Get a notification","description":"Returns one notification by identifier when it belongs to the current user.","operationId":"getNotification"},"delete":{"tags":["Notifications"],"responses":{"200":{"description":"Boolean indicating whether the notification was successfully deleted","content":{"application/json":{"schema":{},"example":true}}}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"summary":"Delete a notification","description":"Permanently deletes a notification by identifier.","operationId":"deleteNotification"},"patch":{"tags":["Notifications"],"responses":{"200":{"description":"Boolean indicating whether the notification read status was successfully toggled","content":{"application/json":{"schema":{},"example":true}}}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"summary":"Toggle read status on a notification","description":"Toggles the read/unread status of a notification by identifier.","operationId":"toggleNotificationRead"}},"/org/{org}/notifications/web-push/subscribe":{"post":{"tags":["push"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"}]}},"/org/{org}/notifications/web-push/unsubscribe":{"delete":{"tags":["push"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"}]}},"/org/{org}/notifications/web-push/vapid-public-key":{"get":{"tags":["push"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"}]}},"/org/{org}/notifications/push-devices":{"post":{"tags":["push"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"}]},"delete":{"tags":["push"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"}]}},"/org/{org}/accessControls":{"get":{"tags":["Access Control"],"responses":{"200":{"description":"List of access control policies with member assignments","content":{"application/json":{"schema":{},"example":[{"id":"550e8400-e29b-41d4-a716-446655440001","name":"HR Department Access","policies":["read:employees","write:payroll","admin:benefits"],"organizationId":"550e8400-e29b-41d4-a716-446655440002","members":[{"id":"550e8400-e29b-41d4-a716-446655440003","fullName":"Jane Doe","profilePicture":{"id":"550e8400-e29b-41d4-a716-446655440004","url":"/files/profiles/jane-doe.jpg"}}]}]}}}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"}],"summary":"List all access control policies","description":"Returns all access control policies for the organization with their assigned members and profile pictures.","operationId":"listAccessControls"},"post":{"tags":["Access Control"],"responses":{"200":{"description":"Created access control policy","content":{"application/json":{"schema":{},"example":{"id":"550e8400-e29b-41d4-a716-446655440001","name":"Marketing Team Access","policies":["read:campaigns","write:social-media","admin:analytics"],"organizationId":"550e8400-e29b-41d4-a716-446655440002","members":[]}}}}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"}],"summary":"Create an access control policy","description":"Creates a new access control policy with a name and set of permission policies for the organization.","operationId":"createAccessControl","requestBody":{"description":"Access control policy creation data","content":{"application/json":{"schema":{},"example":{"name":"Marketing Team Access","policies":["read:campaigns","write:social-media","admin:analytics"]}}}}}},"/org/{org}/accessControls/{id}":{"patch":{"tags":["Access Control"],"responses":{"200":{"description":"Updated access control policy","content":{"application/json":{"schema":{},"example":{"id":"550e8400-e29b-41d4-a716-446655440001","name":"Updated Marketing Team Access","policies":["read:campaigns","write:social-media","admin:analytics","admin:budgets"],"organizationId":"550e8400-e29b-41d4-a716-446655440002","members":[{"id":"550e8400-e29b-41d4-a716-446655440003","profilePicture":{"id":"550e8400-e29b-41d4-a716-446655440005","url":"/files/profiles/jane-doe.jpg"}}]}}}}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"summary":"Update an access control policy","description":"Updates the name, policies, or member assignments of an existing access control policy.","operationId":"updateAccessControl","requestBody":{"description":"Access control policy update data (partial)","content":{"application/json":{"schema":{},"example":{"name":"Updated Marketing Team Access","policies":["read:campaigns","write:social-media","admin:analytics","admin:budgets"],"members":["550e8400-e29b-41d4-a716-446655440003","550e8400-e29b-41d4-a716-446655440004"]}}}}},"delete":{"tags":["Access Control"],"responses":{"200":{"description":"Boolean indicating whether the access control policy was successfully deleted","content":{"application/json":{"schema":{},"example":true}}}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"summary":"Delete an access control policy","description":"Permanently deletes an access control policy by identifier.","operationId":"deleteAccessControl"}},"/org/{org}/profiles/{id}/accessControls":{"patch":{"tags":["Access Control"],"responses":{"200":{"description":"Boolean indicating whether the access control assignment was successful","content":{"application/json":{"schema":{},"example":true}}}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"summary":"Assign access control to a profile","description":"Assigns or updates the access control policy for a specific profile within the organization.","operationId":"updateProfileAccessControl","requestBody":{"description":"Access control assignment data","content":{"application/json":{"schema":{},"example":{"accessControl":"550e8400-e29b-41d4-a716-446655440001"}}}}}},"/org/{org}/{register}/{id}/comments":{"get":{"tags":["RegisterController"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"},{"name":"register","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]},"post":{"tags":["RegisterController"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"},{"name":"register","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/org/{org}/{register}/{id}/comments/{commentId}":{"get":{"tags":["RegisterController"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"},{"name":"register","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"commentId","in":"path","required":true,"schema":{"type":"string"}}]},"patch":{"tags":["RegisterController"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"},{"name":"register","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"commentId","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"tags":["RegisterController"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"},{"name":"register","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"commentId","in":"path","required":true,"schema":{"type":"string"}}]}},"/org/{org}/{register}/{id}/comments/{commentId}/resolve":{"patch":{"tags":["RegisterController"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"},{"name":"register","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"commentId","in":"path","required":true,"schema":{"type":"string"}}]}},"/org/{org}/{register}/{id}/share":{"post":{"tags":["RegisterController"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"},{"name":"register","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/org/{org}/{register}/{id}/permissions":{"get":{"tags":["RegisterController"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"},{"name":"register","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/org/{org}/{register}/{id}/follow":{"post":{"tags":["RegisterController"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"},{"name":"register","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/org/{org}/{register}/{id}/unfollow":{"post":{"tags":["RegisterController"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"},{"name":"register","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/org/{org}/{register}/{id}/markAsUnread":{"post":{"tags":["RegisterController"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"},{"name":"register","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/org/{org}/{register}/{id}/markAsRead":{"post":{"tags":["RegisterController"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"},{"name":"register","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/org/{org}/{register}/{id}/markCommentsAsRead":{"post":{"tags":["RegisterController"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"},{"name":"register","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/org/{org}/{register}/containers":{"get":{"tags":["RegisterController"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"},{"name":"register","in":"path","required":true,"schema":{"type":"string"}}]}},"/org/{org}/{register}/suggestions/{field}":{"get":{"tags":["RegisterController"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"},{"name":"register","in":"path","required":true,"schema":{"type":"string"}},{"name":"field","in":"path","required":true,"schema":{"type":"string"}}]}},"/org/{org}/{register}":{"post":{"tags":["RegisterController"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"},{"name":"register","in":"path","required":true,"schema":{"type":"string"}}]},"get":{"tags":["RegisterController"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"},{"name":"register","in":"path","required":true,"schema":{"type":"string"}}]}},"/org/{org}/{register}/{id}":{"patch":{"tags":["RegisterController"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"},{"name":"register","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]},"put":{"tags":["RegisterController"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"},{"name":"register","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"tags":["RegisterController"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"},{"name":"register","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]},"get":{"tags":["RegisterController"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"},{"name":"register","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/org/{org}/{register}/{id}/logs":{"get":{"tags":["RegisterController"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"},{"name":"register","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/org/{org}/{register}/{id}/{child}":{"get":{"tags":["RegisterController"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"},{"name":"register","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"child","in":"path","required":true,"schema":{"type":"string"}}]}},"/org/{org}/{register}/{id}/children":{"get":{"tags":["RegisterController"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"},{"name":"register","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/org/{org}/digest/{id}":{"get":{"tags":["Digest"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"summary":"Get digest for a specific profile","description":"Returns the organization digest items and metadata for a specific profile. Requires super admin access.","operationId":"getDigestByProfileId"}},"/org/{org}/digest":{"get":{"tags":["Digest"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"}],"summary":"Get digest for the current user","description":"Returns the organization digest items and metadata for the authenticated user. Supports date and filter query parameters.","operationId":"getDigest"},"patch":{"tags":["Digest"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"}],"summary":"Refresh organization digest views","description":"Triggers a refresh of the organization state and digest materialized views.","operationId":"refreshDigest"}},"/org/{org}/org-chart":{"get":{"tags":["OrgChart"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"}],"summary":"Get the organization chart","description":"Units (resource groups), people (person-resources), and the unassigned tray for the org-chart canvas.","operationId":"getOrgChart"}},"/org/{org}/cockpit":{"get":{"tags":["Cockpit"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"}],"summary":"Get the cockpit","description":"Deterministic exception lanes (off-track / drift / stale) over the digest + org-chart span, plus the directed-at-you inbox.","operationId":"getCockpit"}},"/org/{org}/global-search":{"get":{"tags":["Search"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"}],"summary":"Search items across entity types","description":"Performs a full-text search across dynamic entity items. Supports q, types, limit, and offset query parameters.","operationId":"globalSearch"}},"/org/{org}/org-chart/unit":{"post":{"tags":["OrganizationDataController"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"}]}},"/org/{org}/org-chart/person":{"post":{"tags":["OrganizationDataController"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"}]}},"/org/{org}/org-chart/move":{"post":{"tags":["OrganizationDataController"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"}]}},"/org/{org}/org-chart/move-unit":{"post":{"tags":["OrganizationDataController"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"}]}},"/org/{org}/org-chart/apply":{"post":{"tags":["OrgChart"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"}],"summary":"Apply a batch of org-chart draft changes","description":"Bulk-applies created/moved units and people in one transaction; amends only what changed and rejects ids outside the org.","operationId":"applyOrgChart"}},"/org/{org}/profile/{id}":{"get":{"tags":["Profiles"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"summary":"Get a profile in the organization context","description":"Returns a profile by identifier with the associated resource picture file within the organization.","operationId":"getOrganizationProfile"}},"/org/{org}/refresh-database":{"get":{"tags":["Organization"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"}],"summary":"Trigger database hierarchy refresh","description":"Refreshes all materialized hierarchy views for the organization. Requires admin privileges. Pass ?wait=true to wait for completion.","operationId":"refreshDatabase"}},"/org/{org}/refresh-sequences":{"get":{"tags":["Organization"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"}],"summary":"Refresh database sequences","description":"Fixes and refreshes database sequences for the organization. Requires admin or super admin privileges.","operationId":"refreshSequences"}},"/org/{org}/repair-database":{"get":{"tags":["Organization"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"}],"summary":"Run database repair","description":"Runs the full database preparation and repair routine for the organization. Requires admin privileges.","operationId":"repairDatabase"}},"/org/{org}/profiles":{"get":{"tags":["Profiles"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"}],"summary":"List all profiles in the organization","description":"Returns all member profiles in the organization with their roles, access controls, and profile pictures.","operationId":"listOrganizationProfiles"},"post":{"tags":["Profiles"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"}],"summary":"Add a profile to the organization","description":"Adds an existing profile as a member of the organization with the specified role.","operationId":"addProfileToOrganization"}},"/org/{org}/all-profiles":{"get":{"tags":["Profiles"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"}],"summary":"List all profiles referenced in the organization","description":"Returns org members plus any non-member profiles that authored logs, comments, or messages — so their names can be resolved (e.g. authors of items pushed in from another tenant).","operationId":"listAllOrganizationProfiles"}},"/org/{org}/{register}/{id}/push":{"post":{"tags":["Push"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"},{"name":"register","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"summary":"Push an item (and its forward closure) to another tenant","description":"Copies/syncs an item and the items it references in its form into a target organization the caller administers. Requires admin or privileged membership in both orgs. dryRun returns the plan + alerts without writing.","operationId":"pushItemToTenant"}},"/org/{org}/{register}/push-bulk":{"post":{"tags":["Push"],"responses":{"default":{"description":"default response"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization identifier (tenant scope)"},{"name":"register","in":"path","required":true,"schema":{"type":"string"}}],"summary":"Dry-run a bulk push and return the aggregated blast radius","description":"Previews pushing a list of items to a target tenant: the deduped union closure, per-item summaries, totals and alerts. Read-only — apply is done per item.","operationId":"pushBulkPreview"}}},"components":{"schemas":{"ItemDbo":{"type":"object","properties":{"label":{"type":"character varying"},"reference":{"type":"integer"},"state":{"type":"enum"},"type":{"type":"character varying"},"sourceOrganizationId":{"type":"uuid"},"sourceItemId":{"type":"uuid"},"lastPushedAt":{"type":"timestamp with time zone"},"id":{"type":"uuid"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"archivedAt":{"type":"timestamp with time zone"},"documents":{"type":"5"},"organization":{"type":"uuid"}}},"ResourceGroupDbo":{"type":"object","properties":{"id":{"type":"uuid"},"reference":{"type":"8"},"name":{"type":"0"},"industry":{"type":"0"},"subType":{"type":"0"},"meta":{"type":"jsonb"},"documents":{"type":"5"},"description":{"type":"0"},"geography":{"type":"0"},"offerings":{"type":"0"},"currentPartners":{"type":"0"},"potentialPartners":{"type":"0"},"benchmark":{"type":"0"},"tag":{"type":"0"},"strategicPlan":{"type":"0"},"kpis":{"type":"0"},"competitors":{"type":"0"},"opportunities":{"type":"0"},"threats":{"type":"0"},"currentManpower":{"type":"3"},"plannedManpower":{"type":"3"},"opEx":{"type":"3"},"consultantsExpense":{"type":"3"},"currentMarketSize":{"type":"3"},"projectedMarketSize":{"type":"3"},"targetMarketSize":{"type":"3"},"targetIRR":{"type":"3"},"status":{"type":"0"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"organization":{"type":"uuid"},"parent":{"type":"4"},"ceo":{"type":"4"},"delegateCeo":{"type":"4"}}},"ResourceDbo":{"type":"object","properties":{"id":{"type":"uuid"},"reference":{"type":"8"},"company":{"type":"0"},"isInternal":{"type":"0"},"name":{"type":"0"},"title":{"type":"0"},"mobile":{"type":"0"},"consumptionDetails":{"type":"5"},"actualConsumption":{"type":"3"},"anticipatedConsumption":{"type":"3"},"availableAmount":{"type":"3"},"unit":{"type":"0"},"expiryDate":{"type":"2"},"location":{"type":"0"},"phone":{"type":"0"},"meta":{"type":"jsonb"},"documents":{"type":"5"},"email":{"type":"0"},"linkedinProfileUrl":{"type":"0"},"address":{"type":"0"},"website":{"type":"0"},"initials":{"type":"0"},"description":{"type":"0"},"skills":{"type":"0"},"pool":{"type":"0"},"jobTitle":{"type":"0"},"type":{"type":"0"},"availability":{"type":"0"},"isVIP":{"type":"0"},"subType":{"type":"0"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"organization":{"type":"uuid"},"profile":{"type":"uuid"},"group":{"type":"4"},"source":{"type":"4"},"manager":{"type":"4"},"delegate":{"type":"4"},"amount":{"type":"double precision"},"standardRate":{"type":"1"},"overtimeRate":{"type":"1"}}},"LogDbo":{"type":"object","properties":{"table":{"type":"character varying"},"itemId":{"type":"uuid"},"timestamp":{"type":"timestamp with time zone"},"operation":{"type":"enum"},"property":{"type":"character varying"},"oldData":{"type":"jsonb"},"newData":{"type":"jsonb"},"id":{"type":"uuid"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"archivedAt":{"type":"timestamp with time zone"},"documents":{"type":"5"},"author":{"type":"uuid"},"organization":{"type":"uuid"}}},"AccessControlDbo":{"type":"object","properties":{"name":{"type":"character varying"},"policies":{"type":"5"},"id":{"type":"uuid"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"archivedAt":{"type":"timestamp with time zone"},"documents":{"type":"5"},"organization":{"type":"uuid"}}},"MemberDbo":{"type":"object","properties":{"role":{"type":"enum"},"id":{"type":"uuid"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"archivedAt":{"type":"timestamp with time zone"},"documents":{"type":"5"},"profile":{"type":"uuid"},"accessControl":{"type":"uuid"},"organization":{"type":"uuid"}}},"MeetDbo":{"type":"object","properties":{"id":{"type":"uuid"},"title":{"type":"0"},"reference":{"type":"8"},"seriesId":{"type":"character varying"},"type":{"type":"character varying"},"meetingStartTime":{"type":"timestamp with time zone"},"meetingEndTime":{"type":"timestamp with time zone"},"description":{"type":"character varying"},"location":{"type":"character varying"},"color":{"type":"character varying"},"recurrence":{"type":"jsonb"},"isCancelled":{"type":"bool"},"cancelledAt":{"type":"timestamp with time zone"},"cancellationReason":{"type":"character varying"},"isHidden":{"type":"bool"},"hiddenAt":{"type":"timestamp with time zone"},"documents":{"type":"5"},"meta":{"type":"jsonb"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"organization":{"type":"uuid"},"organizer":{"type":"uuid"},"aboutItem":{"type":"uuid"}}},"ChatRoomDbo":{"type":"object","properties":{"id":{"type":"uuid"},"name":{"type":"0"},"type":{"type":"enum"},"isArchived":{"type":"bool"},"archivedAt":{"type":"timestamp with time zone"},"isDeleted":{"type":"bool"},"deletedAt":{"type":"timestamp with time zone"},"directRestricted":{"type":"bool"},"directRestrictedAt":{"type":"timestamp with time zone"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"organization":{"type":"uuid"},"directRestrictedBy":{"type":"uuid"}}},"MessageDbo":{"type":"object","properties":{"content":{"type":"character varying"},"temporaryId":{"type":"character varying"},"messageType":{"type":"enum"},"voiceFileId":{"type":"uuid"},"voiceDurationMs":{"type":"integer"},"voiceWaveform":{"type":"jsonb"},"voiceTranscript":{"type":"character varying"},"voiceTranscriptStatus":{"type":"character varying"},"voiceTranscriptLang":{"type":"character varying"},"reactions":{"type":"jsonb"},"receipts":{"type":"jsonb"},"flags":{"type":"jsonb"},"isPinned":{"type":"bool"},"id":{"type":"uuid"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"archivedAt":{"type":"timestamp with time zone"},"documents":{"type":"5"},"item":{"type":"uuid"},"parent":{"type":"uuid"},"createdBy":{"type":"uuid"},"organization":{"type":"uuid"}}},"ModerationPolicyDbo":{"type":"object","properties":{"mode":{"type":"enum"},"enabledTargets":{"type":"jsonb"},"rules":{"type":"jsonb"},"allowlist":{"type":"jsonb"},"languages":{"type":"jsonb"},"thresholds":{"type":"jsonb"},"reviewerProfileIds":{"type":"jsonb"},"supportContactUrl":{"type":"character varying"},"termsVersion":{"type":"character varying"},"id":{"type":"uuid"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"archivedAt":{"type":"timestamp with time zone"},"documents":{"type":"5"},"organization":{"type":"uuid"}}},"ModerationReportDbo":{"type":"object","properties":{"source":{"type":"enum"},"targetKind":{"type":"enum"},"targetId":{"type":"uuid"},"targetContext":{"type":"jsonb"},"reason":{"type":"character varying"},"details":{"type":"character varying"},"evidence":{"type":"jsonb"},"matchedRules":{"type":"jsonb"},"status":{"type":"enum"},"priority":{"type":"enum"},"resolvedAt":{"type":"timestamp with time zone"},"id":{"type":"uuid"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"archivedAt":{"type":"timestamp with time zone"},"documents":{"type":"5"},"reporterProfile":{"type":"uuid"},"reportedProfile":{"type":"uuid"},"targetOwnerProfile":{"type":"uuid"},"assignedToProfile":{"type":"uuid"},"organization":{"type":"uuid"}}},"ModerationActionDbo":{"type":"object","properties":{"actionKind":{"type":"enum"},"targetKind":{"type":"enum"},"targetId":{"type":"uuid"},"payload":{"type":"jsonb"},"id":{"type":"uuid"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"archivedAt":{"type":"timestamp with time zone"},"documents":{"type":"5"},"report":{"type":"uuid"},"actorProfile":{"type":"uuid"},"organization":{"type":"uuid"}}},"ProfileRestrictionDbo":{"type":"object","properties":{"reason":{"type":"character varying"},"id":{"type":"uuid"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"archivedAt":{"type":"timestamp with time zone"},"documents":{"type":"5"},"blockerProfile":{"type":"uuid"},"restrictedProfile":{"type":"uuid"},"sourceReport":{"type":"uuid"},"organization":{"type":"uuid"}}},"QuestionnaireDbo":{"type":"object","properties":{"id":{"type":"uuid"},"title":{"type":"0"},"reference":{"type":"8"},"type":{"type":"enum"},"status":{"type":"enum"},"closesAt":{"type":"timestamp with time zone"},"isAnonymous":{"type":"bool"},"allowedAttempts":{"type":"integer"},"passingScore":{"type":"integer"},"timeLimitMinutes":{"type":"integer"},"shuffleQuestions":{"type":"bool"},"showResults":{"type":"enum"},"totalResponses":{"type":"integer"},"resultSummary":{"type":"jsonb"},"documents":{"type":"5"},"meta":{"type":"jsonb"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"organization":{"type":"uuid"},"aboutItem":{"type":"uuid"},"organizer":{"type":"uuid"}}},"AgentDbo":{"type":"object","properties":{"id":{"type":"uuid"},"name":{"type":"0"},"description":{"type":"0"},"systemPrompt":{"type":"0"},"modelId":{"type":"0"},"approvalMode":{"type":"0"},"plugins":{"type":"jsonb"},"skills":{"type":"jsonb"},"integrations":{"type":"jsonb"},"excludeGlobalIntegrations":{"type":"bool"},"isDeleted":{"type":"bool"},"deletedAt":{"type":"timestamp with time zone"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"organization":{"type":"uuid"}}},"PromptDbo":{"type":"object","properties":{"id":{"type":"uuid"},"name":{"type":"0"},"title":{"type":"0"},"description":{"type":"0"},"template":{"type":"0"},"args":{"type":"jsonb"},"isDeleted":{"type":"bool"},"deletedAt":{"type":"timestamp with time zone"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"organization":{"type":"uuid"}}},"ToolDbo":{"type":"object","properties":{"id":{"type":"uuid"},"name":{"type":"0"},"description":{"type":"0"},"kind":{"type":"0"},"model":{"type":"0"},"systemPrompt":{"type":"0"},"template":{"type":"0"},"moduleName":{"type":"0"},"inputSchema":{"type":"jsonb"},"outputSchema":{"type":"jsonb"},"claims":{"type":"jsonb"},"isDeleted":{"type":"bool"},"deletedAt":{"type":"timestamp with time zone"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"organization":{"type":"uuid"}}},"SkillDbo":{"type":"object","properties":{"id":{"type":"uuid"},"name":{"type":"0"},"description":{"type":"0"},"body":{"type":"0"},"allowedTools":{"type":"jsonb"},"disableModelInvocation":{"type":"bool"},"isDeleted":{"type":"bool"},"deletedAt":{"type":"timestamp with time zone"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"organization":{"type":"uuid"}}},"DirectToolCallDbo":{"type":"object","properties":{"calledByProfileId":{"type":"uuid"},"toolName":{"type":"character varying"},"kind":{"type":"character varying"},"inputSummary":{"type":"jsonb"},"output":{"type":"jsonb"},"isError":{"type":"bool"},"errorMessage":{"type":"character varying"},"usage":{"type":"jsonb"},"createdAt":{"type":"timestamp with time zone"},"id":{"type":"uuid"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"archivedAt":{"type":"timestamp with time zone"},"documents":{"type":"5"},"organization":{"type":"uuid"}}},"BackgroundTaskDbo":{"type":"object","properties":{"createdByProfileId":{"type":"uuid"},"sessionId":{"type":"uuid"},"agentRunId":{"type":"uuid"},"originRunId":{"type":"uuid"},"originToolCallId":{"type":"character varying"},"wakePolicy":{"type":"jsonb"},"parentTaskId":{"type":"uuid"},"rootTaskId":{"type":"uuid"},"idempotencyKey":{"type":"character varying"},"description":{"type":"character varying"},"kind":{"type":"character varying"},"lifecycle":{"type":"character varying"},"liveness":{"type":"character varying"},"definition":{"type":"jsonb"},"authoritySnapshot":{"type":"jsonb"},"budget":{"type":"jsonb"},"parentLossPolicy":{"type":"character varying"},"ownerInstanceId":{"type":"uuid"},"heartbeatAt":{"type":"timestamp with time zone"},"cancellationRequested":{"type":"bool"},"cancellationRequestedAt":{"type":"timestamp with time zone"},"cancellationRequestedBy":{"type":"uuid"},"cancellationReason":{"type":"character varying"},"outcome":{"type":"jsonb"},"latestActivityAt":{"type":"timestamp with time zone"},"startedAt":{"type":"timestamp with time zone"},"completedAt":{"type":"timestamp with time zone"},"id":{"type":"uuid"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"archivedAt":{"type":"timestamp with time zone"},"documents":{"type":"5"},"organization":{"type":"uuid"}}},"BackgroundTaskEventDbo":{"type":"object","properties":{"taskId":{"type":"uuid"},"sequence":{"type":"integer"},"kind":{"type":"character varying"},"source":{"type":"character varying"},"summary":{"type":"character varying"},"payload":{"type":"jsonb"},"artifactIds":{"type":"jsonb"},"id":{"type":"uuid"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"archivedAt":{"type":"timestamp with time zone"},"documents":{"type":"5"},"organization":{"type":"uuid"}}},"BackgroundTaskControlDbo":{"type":"object","properties":{"taskId":{"type":"uuid"},"requesterProfileId":{"type":"uuid"},"action":{"type":"character varying"},"idempotencyKey":{"type":"character varying"},"reason":{"type":"character varying"},"payload":{"type":"jsonb"},"decision":{"type":"character varying"},"deliveryState":{"type":"character varying"},"reasonCode":{"type":"character varying"},"decidedAt":{"type":"timestamp with time zone"},"deliveredAt":{"type":"timestamp with time zone"},"appliedAt":{"type":"timestamp with time zone"},"id":{"type":"uuid"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"archivedAt":{"type":"timestamp with time zone"},"documents":{"type":"5"},"organization":{"type":"uuid"}}},"BackgroundTaskWakeupDbo":{"type":"object","properties":{"taskId":{"type":"uuid"},"taskEventId":{"type":"uuid"},"sessionId":{"type":"uuid"},"runAsProfileId":{"type":"uuid"},"status":{"type":"character varying"},"availableAt":{"type":"timestamp with time zone"},"claimOwnerInstanceId":{"type":"uuid"},"claimExpiresAt":{"type":"timestamp with time zone"},"attemptCount":{"type":"integer"},"agentRunId":{"type":"uuid"},"firstEventSequence":{"type":"integer"},"lastEventSequence":{"type":"integer"},"reasonCode":{"type":"character varying"},"deliveredAt":{"type":"timestamp with time zone"},"id":{"type":"uuid"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"archivedAt":{"type":"timestamp with time zone"},"documents":{"type":"5"},"organization":{"type":"uuid"}}},"AgentSessionDbo":{"type":"object","properties":{"createdByProfileId":{"type":"uuid"},"title":{"type":"character varying"},"status":{"type":"character varying"},"lastRunId":{"type":"uuid"},"lastMessageAt":{"type":"timestamp with time zone"},"subjectItemId":{"type":"uuid"},"subjectItemType":{"type":"character varying"},"ownerType":{"type":"character varying"},"ownerProfileId":{"type":"uuid"},"agentId":{"type":"uuid"},"modelId":{"type":"character varying"},"id":{"type":"uuid"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"archivedAt":{"type":"timestamp with time zone"},"documents":{"type":"5"},"organization":{"type":"uuid"}}},"AgentSessionParticipantDbo":{"type":"object","properties":{"sessionId":{"type":"uuid"},"profileId":{"type":"uuid"},"role":{"type":"character varying"},"status":{"type":"character varying"},"joinedAt":{"type":"timestamp with time zone"},"lastSeenAt":{"type":"timestamp with time zone"},"excludedAt":{"type":"timestamp with time zone"},"excludedReason":{"type":"character varying"},"id":{"type":"uuid"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"archivedAt":{"type":"timestamp with time zone"},"documents":{"type":"5"},"organization":{"type":"uuid"}}},"AgentSessionReferencedItemDbo":{"type":"object","properties":{"sessionId":{"type":"uuid"},"itemId":{"type":"uuid"},"firstReferencedAt":{"type":"timestamp with time zone"},"id":{"type":"uuid"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"archivedAt":{"type":"timestamp with time zone"},"documents":{"type":"5"},"organization":{"type":"uuid"}}},"AgentRunDbo":{"type":"object","properties":{"sessionId":{"type":"uuid"},"createdByProfileId":{"type":"uuid"},"status":{"type":"character varying"},"model":{"type":"character varying"},"backgroundTaskId":{"type":"uuid"},"agentId":{"type":"uuid"},"triggerId":{"type":"uuid"},"runAsProfileId":{"type":"uuid"},"ownerInstanceId":{"type":"uuid"},"heartbeatAt":{"type":"timestamp with time zone"},"abortRequested":{"type":"bool"},"usage":{"type":"jsonb"},"errorMessage":{"type":"character varying"},"startedAt":{"type":"timestamp with time zone"},"completedAt":{"type":"timestamp with time zone"},"id":{"type":"uuid"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"archivedAt":{"type":"timestamp with time zone"},"documents":{"type":"5"},"organization":{"type":"uuid"}}},"AgentSessionEventDbo":{"type":"object","properties":{"sessionId":{"type":"uuid"},"runId":{"type":"uuid"},"sequence":{"type":"8"},"type":{"type":"character varying"},"loopEvent":{"type":"jsonb"},"message":{"type":"jsonb"},"payload":{"type":"jsonb"},"id":{"type":"uuid"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"archivedAt":{"type":"timestamp with time zone"},"documents":{"type":"5"},"organization":{"type":"uuid"}}},"AgentTriggerDbo":{"type":"object","properties":{"agentId":{"type":"uuid"},"runAsProfileId":{"type":"uuid"},"name":{"type":"character varying"},"kind":{"type":"character varying"},"enabled":{"type":"bool"},"autonomyMode":{"type":"character varying"},"sessionMode":{"type":"character varying"},"config":{"type":"jsonb"},"taskPrompt":{"type":"character varying"},"standingSessionId":{"type":"uuid"},"nextRunAt":{"type":"timestamp with time zone"},"cursor":{"type":"jsonb"},"rateLimitPerHour":{"type":"integer"},"lastFiredAt":{"type":"timestamp with time zone"},"lastRunId":{"type":"uuid"},"lastError":{"type":"character varying"},"createdByProfileId":{"type":"uuid"},"id":{"type":"uuid"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"archivedAt":{"type":"timestamp with time zone"},"documents":{"type":"5"},"organization":{"type":"uuid"}}},"AgentTriggerFireDbo":{"type":"object","properties":{"triggerId":{"type":"uuid"},"dedupKey":{"type":"character varying"},"agentRunId":{"type":"uuid"},"firedAt":{"type":"timestamp with time zone"},"outcome":{"type":"character varying"},"id":{"type":"uuid"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"archivedAt":{"type":"timestamp with time zone"},"documents":{"type":"5"},"organization":{"type":"uuid"}}},"AiProviderDbo":{"type":"object","properties":{"label":{"type":"character varying"},"baseUrl":{"type":"character varying"},"api":{"type":"character varying"},"personalAccessKey":{"type":"character varying"},"apiKeyEncrypted":{"type":"jsonb"},"status":{"type":"character varying"},"createdByProfileId":{"type":"uuid"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"id":{"type":"uuid"},"deletedAt":{"type":"timestamp with time zone"},"archivedAt":{"type":"timestamp with time zone"},"documents":{"type":"5"},"organization":{"type":"uuid"}}},"AiPersonalCredentialDbo":{"type":"object","properties":{"profileId":{"type":"uuid"},"providerKey":{"type":"character varying"},"authType":{"type":"character varying"},"status":{"type":"character varying"},"accountIdentity":{"type":"character varying"},"sealedCredentials":{"type":"jsonb"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"id":{"type":"uuid"},"deletedAt":{"type":"timestamp with time zone"},"archivedAt":{"type":"timestamp with time zone"},"documents":{"type":"5"},"organization":{"type":"uuid"}}},"AiModelDbo":{"type":"object","properties":{"providerId":{"type":"uuid"},"modelId":{"type":"character varying"},"label":{"type":"character varying"},"contextWindow":{"type":"integer"},"maxTokens":{"type":"integer"},"priceInputPerMTok":{"type":"double precision"},"priceOutputPerMTok":{"type":"double precision"},"priceCacheReadPerMTok":{"type":"double precision"},"priceCacheWritePerMTok":{"type":"double precision"},"status":{"type":"character varying"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"id":{"type":"uuid"},"deletedAt":{"type":"timestamp with time zone"},"archivedAt":{"type":"timestamp with time zone"},"documents":{"type":"5"},"organization":{"type":"uuid"}}},"AiSettingsDbo":{"type":"object","properties":{"systemCatalogEnabled":{"type":"bool"},"defaultModelId":{"type":"character varying"},"allowCustomFrontendTools":{"type":"bool"},"personalProviderAccess":{"type":"jsonb"},"updatedAt":{"type":"timestamp with time zone"},"id":{"type":"uuid"},"createdAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"archivedAt":{"type":"timestamp with time zone"},"documents":{"type":"5"},"organization":{"type":"uuid"}}},"ArtifactDbo":{"type":"object","properties":{"id":{"type":"uuid"},"title":{"type":"0"},"kind":{"type":"0"},"content":{"type":"0"},"version":{"type":"integer"},"isDeleted":{"type":"bool"},"deletedAt":{"type":"timestamp with time zone"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"organization":{"type":"uuid"},"createdBy":{"type":"uuid"}}},"CloudSystemDbo":{"type":"object","properties":{"id":{"type":"uuid"},"title":{"type":"0"},"description":{"type":"0"},"status":{"type":"0"},"isDeleted":{"type":"bool"},"deletedAt":{"type":"timestamp with time zone"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"organization":{"type":"uuid"},"createdBy":{"type":"uuid"}}},"CloudPresentationDbo":{"type":"object","properties":{"id":{"type":"uuid"},"title":{"type":"0"},"deploymentUnitId":{"type":"uuid"},"basePath":{"type":"0"},"sandboxed":{"type":"10"},"isDeleted":{"type":"bool"},"deletedAt":{"type":"timestamp with time zone"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"organization":{"type":"uuid"},"item":{"type":"4"},"system":{"type":"4"},"createdBy":{"type":"uuid"}}},"CloudServiceDbo":{"type":"object","properties":{"id":{"type":"uuid"},"title":{"type":"0"},"deploymentUnitId":{"type":"uuid"},"basePath":{"type":"0"},"sandboxed":{"type":"10"},"previewable":{"type":"10"},"isDeleted":{"type":"bool"},"deletedAt":{"type":"timestamp with time zone"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"organization":{"type":"uuid"},"item":{"type":"4"},"system":{"type":"4"},"createdBy":{"type":"uuid"}}},"CloudDeploymentUnitDbo":{"type":"object","properties":{"systemId":{"type":"uuid"},"name":{"type":"character varying"},"activeDeploymentId":{"type":"uuid"},"placement":{"type":"jsonb"},"persist":{"type":"bool"},"createdByProfileId":{"type":"uuid"},"id":{"type":"uuid"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"archivedAt":{"type":"timestamp with time zone"},"documents":{"type":"5"},"organization":{"type":"uuid"}}},"CloudReleaseDbo":{"type":"object","properties":{"unitId":{"type":"uuid"},"version":{"type":"integer"},"status":{"type":"character varying"},"manifest":{"type":"jsonb"},"bundleSha256":{"type":"character varying"},"bundleBytes":{"type":"integer"},"error":{"type":"character varying"},"createdByProfileId":{"type":"uuid"},"id":{"type":"uuid"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"archivedAt":{"type":"timestamp with time zone"},"documents":{"type":"5"},"organization":{"type":"uuid"}}},"CloudDeploymentDbo":{"type":"object","properties":{"unitId":{"type":"uuid"},"releaseId":{"type":"uuid"},"status":{"type":"character varying"},"vmId":{"type":"character varying"},"port":{"type":"integer"},"restartCount":{"type":"integer"},"error":{"type":"character varying"},"healthCheckedAt":{"type":"timestamp with time zone"},"activatedAt":{"type":"timestamp with time zone"},"stoppedAt":{"type":"timestamp with time zone"},"createdByProfileId":{"type":"uuid"},"id":{"type":"uuid"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"archivedAt":{"type":"timestamp with time zone"},"documents":{"type":"5"},"organization":{"type":"uuid"}}},"CloudEventDbo":{"type":"object","properties":{"unitId":{"type":"uuid"},"releaseId":{"type":"uuid"},"deploymentId":{"type":"uuid"},"kind":{"type":"character varying"},"message":{"type":"character varying"},"data":{"type":"jsonb"},"profileId":{"type":"uuid"},"id":{"type":"uuid"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"archivedAt":{"type":"timestamp with time zone"},"documents":{"type":"5"},"organization":{"type":"uuid"}}},"EntityDefinitionDbo":{"type":"object","properties":{"id":{"type":"uuid"},"name":{"type":"0"},"routeKey":{"type":"0"},"keyNormalized":{"type":"character varying"},"alias":{"type":"0"},"sequenceKey":{"type":"character varying"},"status":{"type":"enum"},"draftRevision":{"type":"integer"},"activeVersion":{"type":"integer"},"content":{"type":"jsonb"},"isDeleted":{"type":"bool"},"deletedAt":{"type":"timestamp with time zone"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"organization":{"type":"uuid"}}},"FileMetaDataDbo":{"type":"object","properties":{"itemType":{"type":"character varying"},"isAttached":{"type":"bool"},"meta":{"type":"jsonb"},"fileName":{"type":"character varying"},"fileSize":{"type":"integer"},"fileType":{"type":"character varying"},"ingestStatus":{"type":"character varying"},"ingestChunks":{"type":"integer"},"ingestError":{"type":"character varying"},"ingestedAt":{"type":"timestamp with time zone"},"id":{"type":"uuid"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"archivedAt":{"type":"timestamp with time zone"},"documents":{"type":"5"},"item":{"type":"uuid"},"author":{"type":"uuid"},"organization":{"type":"uuid"}}},"IntegrationConnectionDbo":{"type":"object","properties":{"ownerType":{"type":"character varying"},"profileId":{"type":"uuid"},"integrationId":{"type":"character varying"},"status":{"type":"character varying"},"grantedScopes":{"type":"jsonb"},"accountIdentity":{"type":"character varying"},"sealedCredentials":{"type":"jsonb"},"expiresAt":{"type":"timestamp with time zone"},"lastRefreshAt":{"type":"timestamp with time zone"},"reauthReason":{"type":"character varying"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"id":{"type":"uuid"},"deletedAt":{"type":"timestamp with time zone"},"archivedAt":{"type":"timestamp with time zone"},"documents":{"type":"5"},"organization":{"type":"uuid"}}},"IntegrationSettingDbo":{"type":"object","properties":{"integrationId":{"type":"character varying"},"enabled":{"type":"bool"},"global":{"type":"bool"},"sealedTenantCredentials":{"type":"jsonb"},"credentialStatus":{"type":"character varying"},"credentialReason":{"type":"character varying"},"accessMode":{"type":"character varying"},"allowedProfileIds":{"type":"jsonb"},"allowedRoles":{"type":"jsonb"},"writeProfileIds":{"type":"jsonb"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"id":{"type":"uuid"},"deletedAt":{"type":"timestamp with time zone"},"archivedAt":{"type":"timestamp with time zone"},"documents":{"type":"5"},"organization":{"type":"uuid"}}},"OrgEmbeddingConfigDbo":{"type":"object","properties":{"enabled":{"type":"bool"},"ocrEnabled":{"type":"bool"},"sttEnabled":{"type":"bool"},"provider":{"type":"character varying"},"model":{"type":"character varying"},"dimension":{"type":"integer"},"baseUrl":{"type":"character varying"},"sealedApiKey":{"type":"character varying"},"sttBaseUrl":{"type":"character varying"},"sttModel":{"type":"character varying"},"sealedSttKey":{"type":"character varying"},"sandboxAllowedHosts":{"type":"jsonb"},"id":{"type":"uuid"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"archivedAt":{"type":"timestamp with time zone"},"documents":{"type":"5"},"organization":{"type":"uuid"}}},"TelegramConnectorDbo":{"type":"object","properties":{"connectorId":{"type":"character varying"},"botId":{"type":"character varying"},"botUsername":{"type":"character varying"},"sealedBotToken":{"type":"jsonb"},"webhookSecret":{"type":"character varying"},"status":{"type":"character varying"},"webhookStatus":{"type":"character varying"},"defaultModelId":{"type":"character varying"},"defaultAgentId":{"type":"uuid"},"steerOnConcurrent":{"type":"bool"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"id":{"type":"uuid"},"deletedAt":{"type":"timestamp with time zone"},"archivedAt":{"type":"timestamp with time zone"},"documents":{"type":"5"},"organization":{"type":"uuid"}}},"TelegramLinkDbo":{"type":"object","properties":{"telegramUserId":{"type":"character varying"},"telegramUsername":{"type":"character varying"},"profileId":{"type":"uuid"},"sessionId":{"type":"uuid"},"currentOrgId":{"type":"uuid"},"modelId":{"type":"character varying"},"status":{"type":"character varying"},"linkedAt":{"type":"timestamp with time zone"},"lastSeenAt":{"type":"timestamp with time zone"},"id":{"type":"uuid"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"archivedAt":{"type":"timestamp with time zone"},"documents":{"type":"5"},"organization":{"type":"uuid"}}},"AccountDbo":{"type":"object","properties":{"id":{"type":"string","description":"Account identifier"},"subType":{"type":"0"},"name":{"type":"string","description":"Account name"},"reference":{"type":"8"},"description":{"type":"0"},"isPrivate":{"type":"0"},"isKeyAccount":{"type":"0"},"isStrategic":{"type":"0"},"industries":{"type":"0"},"type":{"type":"string","description":"Account type"},"marketCap":{"type":"number","description":"Market capitalization"},"annualSales":{"type":"3"},"employees":{"type":"0"},"offerings":{"type":"0"},"address":{"type":"0"},"website":{"type":"0"},"geography":{"type":"0"},"groupCompanies":{"type":"0"},"meta":{"type":"jsonb"},"documents":{"type":"5"},"mood":{"type":"0"},"strategicPlan":{"type":"0"},"currentPartnershipSize":{"type":"3"},"projectedPartnershipSize":{"type":"3"},"kycCompleted":{"type":"0"},"kycCompletedOn":{"type":"2"},"initialMeeting":{"type":"0"},"initialMeetingDate":{"type":"2"},"status":{"type":"string","description":"Account relationship status"},"ndaCompleted":{"type":"0"},"ndaCompletedOn":{"type":"2"},"signedAgreement":{"type":"0"},"otherSignedAgreement":{"type":"0"},"signedAgreementOn":{"type":"2"},"signedAgreementScope":{"type":"0"},"partnershipType":{"type":"0"},"otherPartnershipType":{"type":"0"},"notes":{"type":"0"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"organization":{"type":"uuid"},"parent":{"type":"4"},"owner":{"type":"4"},"kycCompletedBy":{"type":"4"},"contacts":{"type":"5"},"groups":{"type":"5"},"initialMeetingResources":{"type":"5"},"initialMeetingContacts":{"type":"5"}},"description":"Client account with relationship management and business metrics tracking.","example":{"id":"550e8400-e29b-41d4-a716-446655440034","reference":3301,"name":"Acme Corporation","description":"Large enterprise client specializing in manufacturing and logistics","type":"enterprise","industries":"Manufacturing, Logistics, Supply Chain","marketCap":2500000000,"annualSales":450000000,"employees":"5000-10000","offerings":"Manufacturing solutions, logistics services, supply chain optimization","address":"King Fahd Road, Riyadh, Saudi Arabia","website":"https://www.acmecorp.com","geography":"Middle East, North Africa","groupCompanies":"Acme Logistics, Acme Manufacturing, Acme Digital","mood":"happy","strategicPlan":"Digital transformation and regional expansion","currentPartnershipSize":1200000,"projectedPartnershipSize":2000000,"kycCompleted":true,"kycCompletedOn":"2024-12-15T14:00:00.000Z","initialMeeting":true,"initialMeetingDate":"2024-11-20T10:00:00.000Z","ndaCompleted":true,"ndaCompletedOn":"2024-12-01T16:00:00.000Z","signedAgreement":"master-service","signedAgreementOn":"2024-12-20T13:30:00.000Z","signedAgreementScope":"Digital transformation consulting and implementation","partnershipType":"strategic","status":"active","isKeyAccount":true,"isStrategic":true,"isPrivate":false,"createdAt":"2025-01-15T09:00:00.000Z","updatedAt":"2025-01-15T09:00:00.000Z","deletedAt":null}},"OperatingAssetDbo":{"type":"object","properties":{"id":{"type":"string","description":"Asset identifier"},"name":{"type":"string","description":"Asset name"},"reference":{"type":"8"},"description":{"type":"0"},"isStrategic":{"type":"0"},"isPrivate":{"type":"0"},"industries":{"type":"0"},"type":{"type":"0"},"offerings":{"type":"0"},"address":{"type":"0"},"website":{"type":"0"},"geography":{"type":"0"},"meta":{"type":"jsonb"},"documents":{"type":"5"},"notes":{"type":"0"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"organization":{"type":"uuid"},"group":{"type":"4"},"ceo":{"type":"4"},"contacts":{"type":"5"},"assetType":{"description":"Type of asset","type":"string"},"operationalStatus":{"description":"Current operational status","type":"string"},"utilizationRate":{"description":"Asset utilization percentage","type":"number"}},"description":"Physical or digital asset used in operations with maintenance tracking.","example":{"id":"550e8400-e29b-41d4-a716-446655440008","reference":701,"name":"Data Center Facility A","description":"Primary data center facility housing critical IT infrastructure","assetType":"facility","location":"Riyadh Technology District","acquisitionDate":"2024-06-01T00:00:00.000Z","acquisitionCost":2000000,"currentValue":1800000,"depreciationMethod":"straight-line","usefulLife":20,"maintenanceSchedule":"quarterly","operationalStatus":"active","utilizationRate":85,"createdAt":"2025-01-15T09:00:00.000Z","updatedAt":"2025-01-15T09:00:00.000Z","deletedAt":null}},"PartnerDbo":{"type":"object","properties":{"id":{"type":"string","description":"Partner identifier"},"name":{"type":"string","description":"Partner name"},"isStrategic":{"type":"0"},"reference":{"type":"8"},"description":{"type":"0"},"status":{"type":"0"},"isPrivate":{"type":"0"},"industries":{"type":"0"},"type":{"type":"0"},"marketCap":{"type":"3"},"annualSales":{"type":"3"},"employees":{"type":"0"},"offerings":{"type":"0"},"address":{"type":"0"},"website":{"type":"0"},"geography":{"type":"0"},"groupCompanies":{"type":"0"},"meta":{"type":"jsonb"},"documents":{"type":"5"},"strategicPlan":{"type":"0"},"currentPartnershipSize":{"type":"3"},"projectedPartnershipSize":{"type":"3"},"kycCompleted":{"type":"0"},"kycCompletedOn":{"type":"2"},"initialMeeting":{"type":"0"},"initialMeetingDate":{"type":"2"},"ndaCompleted":{"type":"0"},"ndaCompletedOn":{"type":"2"},"signedAgreement":{"type":"0"},"otherSignedAgreement":{"type":"0"},"subType":{"type":"0"},"signedAgreementOn":{"type":"2"},"signedAgreementScope":{"type":"0"},"partnershipType":{"type":"0"},"otherPartnershipType":{"type":"0"},"notes":{"type":"0"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"organization":{"type":"uuid"},"kycCompletedBy":{"type":"4"},"contacts":{"type":"5"},"groups":{"type":"5"},"initialMeetingResources":{"type":"5"},"initialMeetingContacts":{"type":"5"},"partnerType":{"description":"Type of partnership","type":"string"},"partnershipLevel":{"description":"Level of partnership","type":"string"},"relationshipStatus":{"description":"Current relationship status","type":"string"}},"description":"Strategic business partner with relationship management and collaboration tracking.","example":{"id":"550e8400-e29b-41d4-a716-446655440014","reference":1301,"name":"Global Consulting Partners","description":"Strategic consulting partner providing specialized expertise and market access","partnerType":"strategic","partnershipLevel":"platinum","relationshipStatus":"active","partnershipStartDate":"2024-03-15T00:00:00.000Z","renewalDate":"2026-03-15T00:00:00.000Z","partnershipScope":"Joint ventures, knowledge sharing, market development","keyBenefits":"Access to new markets, specialized expertise, risk sharing","performanceMetrics":{"revenue":1800000,"satisfaction":4.7,"projects":12},"contactPerson":"Ahmad Al-Rahman","contactEmail":"ahmad.alrahman@globalpartners.com","contactPhone":"+966-11-987-6543","headquarters":"Dubai, UAE","localOffice":"Riyadh, Saudi Arabia","createdAt":"2025-01-15T09:00:00.000Z","updatedAt":"2025-01-15T09:00:00.000Z","deletedAt":null}},"LevelDefinitionDbo":{"type":"object","properties":{"id":{"type":"uuid"},"scope":{"type":"0"},"name":{"type":"0"},"position":{"type":"3"},"description":{"type":"0"},"meta":{"type":"jsonb"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"organization":{"type":"uuid"}}},"ObjectiveLevelDbo":{"type":"object","properties":{"id":{"type":"string","description":"Objective level identifier"},"name":{"type":"0"},"description":{"type":"0"},"measurable":{"type":"0"},"position":{"type":"3"},"item":{"type":"uuid"},"title":{"description":"Level title","type":"string"},"levelNumber":{"description":"Hierarchical level number","type":"number"},"accountability":{"description":"Accountable role/group","type":"string"},"reportingFrequency":{"description":"Reporting frequency","type":"string"}},"description":"Hierarchical objective level defining organizational structure and accountability.","example":{"id":"550e8400-e29b-41d4-a716-446655440026","reference":2501,"title":"Strategic Level","description":"Top-level strategic objectives aligned with organizational vision","levelNumber":1,"hierarchyName":"Corporate Strategy","isActive":true,"accountability":"Executive Leadership Team","reportingFrequency":"quarterly","approvalRequired":true,"escalationLevel":"Board of Directors","reviewCycle":"annual","performanceThreshold":90,"weightInHierarchy":100,"cascadingRules":"Must cascade to operational level within 30 days","governanceModel":"Strategy Committee oversight with quarterly reviews","timeHorizon":"long-term","createdAt":"2025-01-15T09:00:00.000Z","updatedAt":"2025-01-15T09:00:00.000Z","deletedAt":null}},"PerspectiveDbo":{"type":"object","properties":{"id":{"type":"string","description":"Perspective identifier"},"name":{"type":"0"},"description":{"type":"0"},"position":{"type":"3"},"item":{"type":"uuid"},"title":{"description":"Perspective title","type":"string"},"perspectiveType":{"description":"Type of perspective","type":"string"},"weight":{"description":"Relative weight in scorecard","type":"number"},"sequence":{"description":"Display order","type":"number"}},"description":"Strategic perspective for balanced scorecard with performance dimensions.","example":{"id":"550e8400-e29b-41d4-a716-446655440030","reference":2901,"title":"Customer Perspective","description":"Focus on customer satisfaction, loyalty and value creation","perspectiveType":"customer","sequence":1,"weight":25,"color":"#FF6B6B","icon":"customer-heart","isActive":true,"description_ar":"التركيز على رضا العملاء والولاء وخلق القيمة","keyQuestions":["How do customers see us?","What value do we provide to customers?","How can we improve customer experience?"],"focusAreas":["Service Quality","Customer Satisfaction","Value Delivery","Innovation"],"typicalMetrics":["NPS Score","Customer Retention","Service Quality Index","Response Time"],"strategicThemes":["Customer Excellence","Service Innovation","Value Creation"],"createdAt":"2025-01-15T09:00:00.000Z","updatedAt":"2025-01-15T09:00:00.000Z","deletedAt":null}},"ThemeDbo":{"type":"object","properties":{"id":{"type":"string","description":"Theme identifier"},"name":{"type":"0"},"description":{"type":"string","description":"Theme description"},"weight":{"type":"3"},"position":{"type":"3"},"item":{"type":"uuid"},"title":{"description":"Theme title","type":"string"},"priority":{"description":"Theme priority level","type":"string"},"status":{"description":"Current theme status","type":"string"}},"description":"Strategic theme for grouping related initiatives and objectives.","example":{"id":"550e8400-e29b-41d4-a716-446655440007","reference":601,"title":"Digital Excellence","description":"Strategic theme focused on digital transformation and innovation","priority":"high","status":"active","objectives":"Enhance digital capabilities and improve citizen services","keyResults":"Increase digital adoption by 50%, reduce processing time by 30%","alignment":"National Digital Strategy","createdAt":"2025-01-15T09:00:00.000Z","updatedAt":"2025-01-15T09:00:00.000Z","deletedAt":null}},"CoreValueDbo":{"type":"object","properties":{"id":{"type":"string","description":"Core value identifier"},"name":{"type":"0"},"description":{"type":"0"},"position":{"type":"3"},"item":{"type":"uuid"},"title":{"description":"Core value title","type":"string"},"category":{"description":"Value category","type":"string"},"weight":{"description":"Relative importance weight","type":"number"},"isActive":{"description":"Whether the core value is active","type":"boolean"}},"description":"Organizational core value with behavioral indicators and assessment criteria.","example":{"id":"550e8400-e29b-41d4-a716-446655440015","reference":1401,"title":"Innovation Excellence","description":"Commitment to continuous innovation and creative problem-solving","category":"innovation","behavioralIndicators":["Encourages creative thinking and new ideas","Embraces calculated risks for innovation","Learns from failures and iterates quickly"],"assessmentCriteria":"Number of implemented innovations, improvement suggestions, creative solutions","weight":20,"isActive":true,"examples":"Leading digital transformation, implementing AI solutions, creating new service models","createdAt":"2025-01-15T09:00:00.000Z","updatedAt":"2025-01-15T09:00:00.000Z","deletedAt":null}},"VisionDbo":{"type":"object","properties":{"id":{"type":"string","description":"Vision identifier"},"reference":{"type":"8"},"approvedBudget":{"type":"3"},"actualCost":{"type":"3"},"expectedCost":{"type":"3"},"title":{"type":"string","description":"Vision title"},"progress":{"type":"3"},"baselineDate":{"type":"2"},"meta":{"type":"jsonb"},"documents":{"type":"5"},"completed":{"type":"0"},"status":{"type":"0"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"organization":{"type":"uuid"},"parent":{"type":"4"},"owner":{"type":"4"},"statement":{"type":"character varying"},"shortStatement":{"type":"character varying"},"description":{"type":"character varying"},"coreValues":{"type":"6"},"themes":{"type":"6"},"perspectives":{"type":"6"},"levels":{"type":"6"},"visionStatement":{"description":"Vision statement","type":"string"},"timeHorizon":{"description":"Target timeframe","type":"string"},"scope":{"description":"Vision scope","type":"string"}},"description":"Organizational vision statement with strategic direction and aspirational goals.","example":{"id":"550e8400-e29b-41d4-a716-446655440025","reference":2401,"title":"Leading Digital Government 2030","description":"To be the world's leading digital government, delivering exceptional citizen experiences","visionStatement":"Transforming government services through innovation, efficiency, and citizen-centricity","timeHorizon":"2030","scope":"organizational","themes":["Digital Excellence","Citizen Experience","Innovation","Efficiency"],"aspirations":["Top 5 globally in digital government rankings","95% citizen satisfaction with services","100% digital service delivery"],"strategicPillars":["Technology Innovation","Human Capital","Process Excellence","Partnership"],"successMetrics":["Digital adoption rate","Service delivery time","Citizen satisfaction"],"stakeholderAlignment":"Aligned with Vision 2030 and national transformation agenda","communicationPlan":"Quarterly town halls, annual vision refresh, continuous feedback","lastReview":"2024-12-15T00:00:00.000Z","nextReview":"2025-06-15T00:00:00.000Z","createdAt":"2025-01-15T09:00:00.000Z","updatedAt":"2025-01-15T09:00:00.000Z","deletedAt":null}},"ObjectiveDbo":{"type":"object","properties":{"id":{"type":"string","description":"Objective identifier"},"status":{"type":"string","description":"Current status"},"reference":{"type":"8"},"title":{"type":"string","description":"Objective title"},"description":{"type":"0"},"meta":{"type":"jsonb"},"documents":{"type":"5"},"categoryIds":{"type":"5"},"progress":{"type":"number","description":"Completion percentage"},"plannedProgress":{"type":"3"},"budget":{"type":"3"},"health":{"type":"0"},"trend":{"type":"0"},"approvedBudget":{"type":"3"},"actualCost":{"type":"3"},"expectedCost":{"type":"3"},"weight":{"type":"3"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"organization":{"type":"uuid"},"owner":{"type":"4"},"parent":{"type":"4"},"champion":{"type":"4"},"vision":{"type":"4"},"group":{"type":"4"},"level":{"type":"4"},"theme":{"type":"4"},"perspective":{"type":"4"},"levelDefinition":{"type":"4"},"objectiveType":{"description":"Type of objective","type":"string"}},"description":"Strategic objective with key results and performance tracking.","example":{"id":"550e8400-e29b-41d4-a716-446655440029","reference":2801,"title":"Improve Digital Service Delivery","description":"Enhance digital service delivery capabilities to achieve 95% online transaction rate","objectiveType":"strategic","status":"in-progress","priority":"high","startDate":"2025-01-01T00:00:00.000Z","targetDate":"2025-12-31T23:59:59.000Z","progress":25,"weight":30,"keyResults":[{"description":"Online transaction rate > 95%","target":95,"current":78},{"description":"Service satisfaction > 4.5/5","target":4.5,"current":4.1},{"description":"Response time < 24 hours","target":24,"current":36}],"successCriteria":"All key results achieved by target date","risks":["Technology constraints","User adoption challenges"],"dependencies":["Infrastructure upgrades","Staff training completion"],"alignment":"Digital transformation strategy and Vision 2030","createdAt":"2025-01-15T09:00:00.000Z","updatedAt":"2025-01-15T09:00:00.000Z","deletedAt":null}},"PlannedEventDbo":{"type":"object","properties":{"id":{"type":"string","description":"Planned event identifier."},"position":{"type":"3"},"isOverdue":{"type":"0"},"type":{"type":"string","description":"Business event type (schedule/activity/assignment/milestone/deliverable)."},"isCritical":{"type":"0"},"title":{"type":"string","description":"Displayed label in schedule and gantt views."},"notes":{"type":"0"},"expectedStartDate":{"type":"2"},"baselinedEndDate":{"type":"2"},"baselinedStartDate":{"type":"2"},"expectedEndDate":{"type":"2"},"plannedStartDate":{"type":"2"},"visibleInSchedule":{"type":"boolean","description":"When true, event is expected in schedule payload snapshots and can be deleted when omitted."},"plannedEndDate":{"type":"2"},"weight":{"type":"3"},"isFinancial":{"type":"0"},"actualProgress":{"type":"number","description":"Actual progress percentage."},"expectedProgress":{"type":"3"},"health":{"type":"0"},"plannedProgress":{"type":"number","description":"Planned progress percentage."},"actualValuesReportedOn":{"type":"2"},"totalActualCosts":{"type":"3"},"actualBudgetConsumption":{"type":"3"},"plannedBudgetConsumption":{"type":"3"},"expectedBudgetConsumption":{"type":"3"},"totalExpectedBudgetConsumption":{"type":"3"},"totalPlannedCosts":{"type":"3"},"totalExpectedCosts":{"type":"3"},"distributedBudget":{"type":"3"},"undistributedBudget":{"type":"3"},"actualStartDate":{"type":"2"},"actualEndDate":{"type":"2"},"predecessors":{"type":"array","description":"Dependency tuples. First element is predecessor event id, optionally followed by lag metadata.","items":{"type":"string"}},"meta":{"type":"jsonb"},"documents":{"type":"5"},"completedThrough":{"type":"2"},"requestedBudget":{"type":"3"},"approvedBudget":{"type":"3"},"plannedCost":{"type":"3"},"actualCost":{"type":"3"},"expectedCost":{"type":"3"},"status":{"type":"0"},"allocationDetails":{"type":"5"},"subType":{"type":"0"},"isStrategic":{"type":"0"},"plannedDate":{"type":"2"},"actualDate":{"type":"2"},"expectedDate":{"type":"2"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"group":{"type":"4"},"organization":{"type":"uuid"},"schedule":{"type":"string","description":"Owning schedule/root planned-event identifier."},"parent":{"type":"string","description":"Parent planned event identifier (tree link)."},"budgetRequestedBy":{"type":"4"},"resource":{"type":"4"},"allocatedFinancialResource":{"type":"4"},"link":{"type":"4"},"scheduleLink":{"type":"4"},"value":{"type":"double precision"},"unit":{"type":"enum"}},"description":"A task/milestone/activity row inside a schedule hierarchy. This is the main descendant mutated by /schedules/:id/update.","example":{"id":"550e8400-e29b-41d4-a716-446655440102","schedule":"550e8400-e29b-41d4-a716-446655440100","parent":"550e8400-e29b-41d4-a716-446655440101","type":"activity","title":"System Design and Architecture","predecessors":[["550e8400-e29b-41d4-a716-446655440103","2d"]],"visibleInSchedule":true,"actualProgress":65,"plannedProgress":70,"startDate":"2025-01-15T08:00:00.000Z","endDate":"2025-01-25T17:00:00.000Z","duration":8,"effort":64,"remainingWork":28,"createdAt":"2025-01-15T09:00:00.000Z","updatedAt":"2025-01-15T09:00:00.000Z"},"x-dast-entity-context":"Hierarchy, dependencies, and visibility flags create high-value consistency checks for mutation fuzzing."},"ScheduleDbo":{"type":"object","properties":{"id":{"type":"string","description":"Primary identifier. Also equals the root item identifier."},"meta":{"type":"jsonb"},"categoryType":{"type":"0"},"category":{"type":"0"},"documents":{"type":"5"},"direction":{"type":"string","description":"Scheduling direction used by engine (forward/backward)."},"health":{"type":"string","description":"Computed schedule health based on planned vs actual progress of the root planned event."},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"organization":{"type":"uuid"},"objective":{"type":"4"},"demand":{"type":"4"},"firstDayOfWeek":{"type":"integer"},"hoursPerDay":{"type":"integer"},"hoursPerWeek":{"type":"integer"},"daysPerMonth":{"type":"integer"},"defaultUnit":{"type":"enum"},"currency":{"type":"character varying"},"costLifeCycle":{"type":"jsonb"},"value":{"type":"double precision"},"unit":{"type":"enum"},"plannedEvent":{"type":"string","description":"Root planned event representing schedule roll-up values."},"schedulingSettings":{"description":"Engine-level scheduling controls used during refresh and force-refresh.","type":"object"},"financeCalendar":{"description":"Per-year/month financial distribution used by financial rollups.","type":"object"}},"description":"Top-level schedule aggregate. A schedule owns planned-event descendants and drives background recalculation jobs.","example":{"id":"550e8400-e29b-41d4-a716-446655440100","plannedEvent":"550e8400-e29b-41d4-a716-446655440101","direction":"forward","health":"on-track","schedulingSettings":{"autoLeveling":true,"criticalPathCalculation":true,"resourceOptimization":false},"financeCalendar":{"2025":{"Q1":{"budget":250000,"allocated":180000},"Q2":{"budget":300000,"allocated":120000}}},"createdAt":"2025-01-15T09:00:00.000Z","updatedAt":"2025-01-15T09:00:00.000Z"},"x-dast-entity-context":"Mutations can trigger asynchronous recomputation and pulse propagation over descendants."},"PortfolioDbo":{"type":"object","properties":{"id":{"type":"string","description":"Portfolio identifier"},"reference":{"type":"8"},"meta":{"type":"jsonb"},"documents":{"type":"5"},"description":{"type":"0"},"raisedByVIP":{"type":"0"},"priority":{"type":"0"},"phase":{"type":"0"},"step":{"type":"0"},"lifecycleStatus":{"type":"0"},"status":{"type":"string","description":"Current portfolio status"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"organization":{"type":"uuid"},"owner":{"type":"4"},"assignee":{"type":"4"},"raisedBy":{"type":"4"},"schedule":{"type":"7"},"groups":{"type":"5"},"title":{"description":"Portfolio title","type":"string"},"portfolioType":{"description":"Type of portfolio","type":"string"},"budget":{"description":"Portfolio budget","type":"number"}},"description":"Strategic portfolio containing related programs and projects with governance oversight.","example":{"id":"550e8400-e29b-41d4-a716-446655440019","reference":1801,"title":"Digital Infrastructure Portfolio","description":"Portfolio of projects focused on building digital infrastructure and capabilities","portfolioType":"strategic","status":"active","priority":"high","budget":50000000,"startDate":"2025-01-01T00:00:00.000Z","endDate":"2026-12-31T23:59:59.000Z","strategicAlignment":"Digital transformation and Vision 2030 objectives","expectedBenefits":"Enhanced digital capabilities, improved service delivery, economic growth","riskTolerance":"medium","governanceModel":"Steering committee with monthly reviews","performanceMetrics":["ROI > 15%","On-time delivery > 90%","Budget variance < 5%"],"stakeholders":["Ministry of Digital Affairs","Private sector partners","Citizens"],"createdAt":"2025-01-15T09:00:00.000Z","updatedAt":"2025-01-15T09:00:00.000Z","deletedAt":null}},"ProgramDbo":{"type":"object","properties":{"id":{"type":"string","description":"Program identifier"},"reference":{"type":"8"},"meta":{"type":"jsonb"},"documents":{"type":"5"},"priority":{"type":"0"},"phase":{"type":"0"},"step":{"type":"0"},"lifecycleStatus":{"type":"0"},"status":{"type":"string","description":"Current program status"},"benefitsRealizationPlan":{"type":"0"},"raisedByVIP":{"type":"0"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"organization":{"type":"uuid"},"portfolio":{"type":"4"},"parentProgram":{"type":"4"},"owner":{"type":"4"},"assignee":{"type":"4"},"raisedBy":{"type":"4"},"schedule":{"type":"7"},"groups":{"type":"5"},"title":{"description":"Program title","type":"string"},"programType":{"description":"Type of program","type":"string"},"budget":{"description":"Program budget","type":"number"}},"description":"Strategic program coordinating multiple related projects with shared benefits.","example":{"id":"550e8400-e29b-41d4-a716-446655440031","reference":3001,"title":"Smart Government Program","description":"Comprehensive program to transform government services through digital innovation","programType":"strategic","status":"executing","priority":"high","startDate":"2025-01-01T00:00:00.000Z","plannedEndDate":"2027-12-31T23:59:59.000Z","budget":75000000,"benefits":"Improved citizen satisfaction, operational efficiency, cost savings","scope":"Government-wide digital transformation including all citizen-facing services","governance":"Program steering committee with ministerial oversight","riskTolerance":"medium-high","dependencies":["Infrastructure readiness","Change management","Regulatory framework"],"milestones":[{"name":"Phase 1 Launch","date":"2025-06-30","status":"planned"},{"name":"Pilot Completion","date":"2025-12-31","status":"planned"}],"kpis":["Digital adoption rate","Service satisfaction","Cost per transaction"],"createdAt":"2025-01-15T09:00:00.000Z","updatedAt":"2025-01-15T09:00:00.000Z","deletedAt":null}},"VendorDbo":{"type":"object","properties":{"id":{"type":"string","description":"Vendor identifier"},"name":{"type":"string","description":"Vendor name"},"isStrategic":{"type":"0"},"reference":{"type":"8"},"subType":{"type":"0"},"description":{"type":"0"},"isPrivate":{"type":"0"},"industries":{"type":"0"},"status":{"type":"0"},"type":{"type":"0"},"marketCap":{"type":"3"},"annualSales":{"type":"3"},"employees":{"type":"0"},"offerings":{"type":"0"},"geography":{"type":"0"},"groupCompanies":{"type":"0"},"meta":{"type":"jsonb"},"documents":{"type":"5"},"strategicPlan":{"type":"0"},"currentPartnershipSize":{"type":"3"},"projectedPartnershipSize":{"type":"3"},"kycCompleted":{"type":"0"},"kycCompletedOn":{"type":"2"},"initialMeeting":{"type":"0"},"initialMeetingDate":{"type":"2"},"ndaCompleted":{"type":"0"},"ndaCompletedOn":{"type":"2"},"signedAgreement":{"type":"0"},"otherSignedAgreement":{"type":"0"},"signedAgreementOn":{"type":"2"},"signedAgreementScope":{"type":"0"},"partnershipType":{"type":"0"},"otherPartnershipType":{"type":"0"},"notes":{"type":"0"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"organization":{"type":"uuid"},"kycCompletedBy":{"type":"4"},"contacts":{"type":"5"},"groups":{"type":"5"},"initialMeetingResources":{"type":"5"},"initialMeetingContacts":{"type":"5"},"vendorType":{"description":"Type of vendor","type":"string"},"qualificationStatus":{"description":"Vendor qualification status","type":"string"},"performanceRating":{"description":"Performance rating (1-5)","type":"number"}},"description":"External vendor with qualification status and performance tracking.","example":{"id":"550e8400-e29b-41d4-a716-446655440013","reference":1201,"name":"TechSolutions Inc.","description":"Leading technology solutions provider specializing in enterprise software","vendorType":"technology","qualificationStatus":"qualified","capabilities":["software development","cloud infrastructure","cybersecurity"],"certifications":["ISO 27001","AWS Partner","Microsoft Gold Partner"],"performanceRating":4.8,"contractValue":2500000,"paymentTerms":"30 days","contactPerson":"Jane Smith","contactEmail":"jane.smith@techsolutions.com","contactPhone":"+966-11-123-4567","address":"Technology District, Riyadh, Saudi Arabia","website":"https://www.techsolutions.com","registrationNumber":"CR123456789","createdAt":"2025-01-15T09:00:00.000Z","updatedAt":"2025-01-15T09:00:00.000Z","deletedAt":null}},"ProjectDbo":{"type":"object","properties":{"id":{"type":"string","description":"Project identifier"},"reference":{"type":"integer","description":"Project reference number"},"meta":{"type":"jsonb"},"documents":{"type":"5"},"phase":{"type":"string","description":"Current project phase"},"tendering":{"type":"0"},"step":{"type":"0"},"lifecycleStatus":{"type":"0"},"priority":{"type":"0"},"status":{"type":"string","description":"Project execution status"},"businessType":{"type":"string","description":"Type of business project"},"closureComment":{"type":"0"},"regionalOffice":{"type":"0"},"location":{"type":"jsonb"},"category":{"type":"0"},"alignment":{"type":"0"},"role":{"type":"0"},"highlights":{"type":"0"},"signedAgreement":{"type":"0"},"otherSignedAgreement":{"type":"0"},"signedAgreementOn":{"type":"2"},"signedAgreementScope":{"type":"0"},"allocationDetails":{"type":"5"},"raisedByVIP":{"type":"0"},"subType":{"type":"0"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"organization":{"type":"uuid"},"parent":{"type":"4"},"source":{"type":"4"},"group":{"type":"4"},"office":{"type":"4"},"sponsor":{"type":"4"},"owner":{"type":"4"},"assignee":{"type":"4"},"raisedBy":{"type":"4"},"initiative":{"type":"4"},"schedule":{"type":"7"},"accounts":{"type":"5"},"partners":{"type":"5"},"operatingAssets":{"type":"5"},"vendors":{"type":"5"},"allocatedResources":{"type":"5"},"groups":{"type":"5"}},"description":"Project execution entity with schedule, resources, and deliverable management.","example":{"id":"550e8400-e29b-41d4-a716-446655440002","reference":101,"phase":"execution","tendering":"awarded","step":"development","lifecycleStatus":"active","priority":"medium","status":"in-progress","businessType":"development","closureComment":null,"regionalOffice":"Central Region","location":{"city":"Riyadh","coordinates":{"lat":24.7136,"lng":46.6753}},"category":"Infrastructure","alignment":"National Strategy","role":"Lead Project","highlights":"Critical infrastructure development project","signedAgreement":"construction","otherSignedAgreement":"","signedAgreementOn":"2025-01-10T10:00:00.000Z","signedAgreementScope":"Full construction and maintenance","raisedByVIP":false,"subType":"construction","createdAt":"2025-01-15T09:00:00.000Z","updatedAt":"2025-01-15T09:00:00.000Z","deletedAt":null}},"BoqItemDbo":{"type":"object","properties":{"id":{"type":"string","description":"BOQ item identifier"},"title":{"type":"0"},"reference":{"type":"8"},"description":{"type":"string","description":"Item description"},"meta":{"type":"jsonb"},"documents":{"type":"5"},"status":{"type":"0"},"stage":{"type":"0"},"quantity":{"type":"number","description":"Required quantity"},"progress":{"type":"3"},"invoicedProgress":{"type":"3"},"paidProgress":{"type":"3"},"unit":{"type":"0"},"rate":{"type":"3"},"raisedOn":{"type":"2"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"organization":{"type":"uuid"},"item":{"type":"4"},"itemCode":{"description":"Item code","type":"string"},"unitRate":{"description":"Rate per unit","type":"number"},"totalCost":{"description":"Total cost for item","type":"number"}},"description":"Bill of Quantities item with cost estimation and resource requirements.","example":{"id":"550e8400-e29b-41d4-a716-446655440018","reference":1701,"itemCode":"BOQ-2025-001","description":"Concrete foundation work including excavation and reinforcement","unit":"cubic meter","quantity":150,"unitRate":350,"totalCost":52500,"category":"construction","specifications":"Grade 30 concrete with steel reinforcement as per drawings","materialCost":40000,"laborCost":8000,"equipmentCost":4500,"overheads":15,"profit":10,"contingency":5,"escalation":3,"currency":"SAR","isActive":true,"createdAt":"2025-01-15T09:00:00.000Z","updatedAt":"2025-01-15T09:00:00.000Z","deletedAt":null}},"AcceptanceFormDbo":{"type":"object","properties":{"id":{"type":"string","description":"Acceptance form identifier"},"title":{"type":"string","description":"Acceptance form title"},"reference":{"type":"8"},"vdn":{"type":"0"},"description":{"type":"0"},"meta":{"type":"jsonb"},"boqItemDetails":{"type":"jsonb"},"additionalItemDetails":{"type":"jsonb"},"subType":{"type":"0"},"documents":{"type":"5"},"status":{"type":"string","description":"Current approval status"},"stage":{"type":"0"},"vdnDate":{"type":"2"},"raisedOn":{"type":"2"},"approvedByOwner":{"type":"jsonb"},"approvedByPmo":{"type":"jsonb"},"approvedByReviewer":{"type":"jsonb"},"approvedByApprover":{"type":"jsonb"},"rejectionEmailSent":{"type":"0"},"rejectionReason":{"type":"0"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"organization":{"type":"uuid"},"item":{"type":"4"},"partner":{"type":"4"},"vendor":{"type":"4"},"owner":{"type":"4"},"pmo":{"type":"4"},"reviewer":{"type":"4"},"approver":{"type":"4"},"boqItems":{"type":"5"},"agreements":{"type":"5"},"formType":{"description":"Type of acceptance form","type":"string"},"approvalDate":{"description":"Date of approval","type":"string","format":"date-time"}},"description":"Formal acceptance documentation for deliverables and project phases.","example":{"id":"550e8400-e29b-41d4-a716-446655440027","reference":2601,"title":"Phase 1 Deliverable Acceptance","description":"Formal acceptance of Phase 1 deliverables including system design and prototypes","formType":"deliverable","status":"approved","submissionDate":"2025-01-12T15:00:00.000Z","reviewDate":"2025-01-14T16:30:00.000Z","approvalDate":"2025-01-15T09:00:00.000Z","acceptanceCriteria":["All functional requirements met","Performance benchmarks achieved","Security requirements validated"],"testResults":"All test cases passed with 98% success rate","deviations":"Minor UI adjustments requested and completed","conditions":"Ongoing maintenance support required as per agreement","signoffRequired":true,"digitalSignature":true,"comments":"Excellent work meeting all requirements ahead of schedule","nextSteps":"Proceed to Phase 2 development","warrantyPeriod":"12 months","createdAt":"2025-01-15T09:00:00.000Z","updatedAt":"2025-01-15T09:00:00.000Z","deletedAt":null}},"InitiativeDbo":{"type":"object","properties":{"id":{"type":"string","description":"Initiative identifier"},"reference":{"type":"8"},"meta":{"type":"jsonb"},"documents":{"type":"5"},"description":{"type":"0"},"raisedByVIP":{"type":"0"},"priority":{"type":"0"},"phase":{"type":"0"},"step":{"type":"0"},"lifecycleStatus":{"type":"0"},"status":{"type":"string","description":"Current status"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"organization":{"type":"uuid"},"owner":{"type":"4"},"assignee":{"type":"4"},"raisedBy":{"type":"4"},"schedule":{"type":"7"},"groups":{"type":"5"},"title":{"description":"Initiative title","type":"string"},"initiativeType":{"description":"Type of initiative","type":"string"},"budget":{"description":"Initiative budget","type":"number"}},"description":"Strategic initiative driving organizational change with measurable outcomes.","example":{"id":"550e8400-e29b-41d4-a716-446655440016","reference":1501,"title":"Customer Experience Transformation","description":"Comprehensive initiative to enhance customer experience across all touchpoints","initiativeType":"strategic","status":"in-progress","priority":"high","startDate":"2025-01-01T00:00:00.000Z","endDate":"2025-12-31T23:59:59.000Z","budget":3000000,"expectedBenefits":"Increase customer satisfaction by 40%, reduce churn by 25%","successMetrics":["Customer NPS score > 50","Response time < 24 hours","Resolution rate > 95%"],"milestones":[{"name":"Phase 1 Complete","date":"2025-04-30","status":"planned"},{"name":"System Integration","date":"2025-08-31","status":"planned"}],"risks":["Resource constraints","Technology integration complexity"],"createdAt":"2025-01-15T09:00:00.000Z","updatedAt":"2025-01-15T09:00:00.000Z","deletedAt":null}},"OpportunityDbo":{"type":"object","properties":{"id":{"type":"string","description":"Opportunity identifier"},"reference":{"type":"8"},"name":{"type":"0"},"source":{"type":"0"},"description":{"type":"0"},"keyStakholders":{"type":"0"},"closureComment":{"type":"0"},"regionalOffice":{"type":"0"},"location":{"type":"0"},"partnerLocation":{"type":"0"},"isPPP":{"type":"0"},"plannedStartDate":{"type":"2"},"plannedEndDate":{"type":"2"},"signedAgreement":{"type":"0"},"tenderType":{"type":"0"},"otherSignedAgreement":{"type":"0"},"signedAgreementOn":{"type":"2"},"signedAgreementScope":{"type":"0"},"actualStartDate":{"type":"2"},"actualEndDate":{"type":"2"},"organizationOwnership":{"type":"3"},"partnerOwnership":{"type":"3"},"irr":{"type":"3"},"revenuePotential":{"type":"3"},"breakevenYear":{"type":"3"},"estimateBasis":{"type":"0"},"meta":{"type":"jsonb"},"documents":{"type":"5"},"raisedByVIP":{"type":"0"},"industries":{"type":"0"},"offerings":{"type":"0"},"address":{"type":"0"},"website":{"type":"0"},"lastAssessedOn":{"type":"2"},"amount":{"type":"number","description":"Potential revenue amount"},"returns":{"type":"3"},"risk":{"type":"3"},"winnability":{"type":"3"},"desirability":{"type":"3"},"deliverability":{"type":"3"},"score":{"type":"3"},"horizon":{"type":"0"},"executionType":{"type":"0"},"relationshipType":{"type":"0"},"status":{"type":"0"},"stage":{"type":"string","description":"Current opportunity stage"},"step":{"type":"0"},"lifecycleStatus":{"type":"0"},"health":{"type":"0"},"priority":{"type":"0"},"trend":{"type":"0"},"closeDate":{"type":"timestamp with time zone"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"organization":{"type":"uuid"},"parentProgram":{"type":"4"},"pmoLead":{"type":"4"},"investmentLead":{"type":"4"},"businessWinningProject":{"type":"4"},"businessExecutionProject":{"type":"4"},"commercialLead":{"type":"4"},"legalLead":{"type":"4"},"owner":{"type":"4"},"assignee":{"type":"4"},"raisedBy":{"type":"4"},"group":{"type":"4"},"office":{"type":"4"},"lastAssessedBy":{"type":"4"},"schedule":{"type":"7"},"pmoTeam":{"type":"5"},"accounts":{"type":"5"},"partners":{"type":"5"},"operatingAssets":{"type":"5"},"vendors":{"type":"5"},"investmentTeam":{"type":"5"},"commercialTeam":{"type":"5"},"legalTeam":{"type":"5"},"othersTeam":{"type":"5"},"contacts":{"type":"5"},"title":{"description":"Opportunity title","type":"string"},"likelihood":{"description":"Success probability percentage","type":"number"}},"description":"Business opportunity tracking with stage management and revenue potential.","example":{"id":"550e8400-e29b-41d4-a716-446655440005","reference":401,"title":"Smart City Platform Implementation","description":"Opportunity to implement comprehensive smart city platform","stage":"qualification","amount":5000000,"likelihood":75,"closingDate":"2025-03-15T17:00:00.000Z","nextSteps":"Schedule technical presentation with client","competitorAnalysis":"Main competitors: TechCorp, InnovateIT","valueProposition":"Integrated IoT platform with 24/7 monitoring","raisedByVIP":false,"createdAt":"2025-01-15T09:00:00.000Z","updatedAt":"2025-01-15T09:00:00.000Z","deletedAt":null}},"ProcurementDbo":{"type":"object","properties":{"id":{"type":"string","description":"Procurement identifier"},"openedAt":{"type":"timestamp with time zone"},"startedAt":{"type":"timestamp with time zone"},"onHoldAt":{"type":"timestamp with time zone"},"onHoldComment":{"type":"character varying"},"resumedAt":{"type":"timestamp with time zone"},"monitoringAt":{"type":"timestamp with time zone"},"closedAt":{"type":"timestamp with time zone"},"closureComment":{"type":"character varying"},"reopenedAt":{"type":"timestamp with time zone"},"reopeningComment":{"type":"character varying"},"reviewedAt":{"type":"timestamp with time zone"},"lifecycleTimestamps":{"type":"jsonb"},"status":{"type":"string","description":"Current procurement status"},"stage":{"type":"character varying"},"health":{"type":"0"},"isOverdue":{"type":"0"},"extra":{"type":"jsonb"},"reference":{"type":"8"},"documents":{"type":"5"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"submissionDeadline":{"type":"2"},"priority":{"type":"0"},"phase":{"type":"0"},"depthLevel":{"type":"3"},"meta":{"type":"jsonb"},"raisedByVIP":{"type":"0"},"organization":{"type":"uuid"},"closedBy":{"type":"uuid"},"reopenedBy":{"type":"uuid"},"reviewedBy":{"type":"uuid"},"parent":{"type":"4"},"owner":{"type":"4"},"group":{"type":"4"},"assignee":{"type":"4"},"raisedBy":{"type":"4"},"schedule":{"type":"7"},"title":{"description":"Procurement title","type":"string"},"procurementType":{"description":"Type of procurement","type":"string"},"estimatedValue":{"description":"Estimated procurement value","type":"number"}},"description":"Procurement process with vendor evaluation and contract management.","example":{"id":"550e8400-e29b-41d4-a716-446655440035","reference":3401,"title":"Cloud Infrastructure Services","description":"Procurement of cloud infrastructure services for government applications","procurementType":"services","category":"technology","status":"in-evaluation","method":"competitive-bidding","estimatedValue":8000000,"approvedBudget":8500000,"requestDate":"2025-01-08T09:00:00.000Z","submissionDeadline":"2025-02-15T17:00:00.000Z","evaluationPeriod":30,"contractDuration":36,"renewalOptions":2,"specifications":"High-availability cloud services with 99.9% uptime SLA","evaluationCriteria":"Technical capability 50%, Price 30%, Experience 20%","qualificationRequirements":"ISO 27001, local presence, 5+ years experience","bondRequirement":"5% of contract value","paymentTerms":"Monthly in arrears","deliverySchedule":"Phased implementation over 6 months","riskMitigation":"Service level agreements, performance bonds, regular reviews","createdAt":"2025-01-15T09:00:00.000Z","updatedAt":"2025-01-15T09:00:00.000Z","deletedAt":null}},"TenderDbo":{"type":"object","properties":{"id":{"type":"string","description":"Tender identifier"},"reference":{"type":"8"},"meta":{"type":"jsonb"},"documents":{"type":"5"},"stage":{"type":"string","description":"Current tender stage"},"step":{"type":"0"},"lifecycleStatus":{"type":"0"},"priority":{"type":"0"},"status":{"type":"0"},"businessType":{"type":"0"},"allocationDetails":{"type":"5"},"closureComment":{"type":"0"},"regionalOffice":{"type":"0"},"location":{"type":"0"},"amount":{"type":"3"},"signedAgreement":{"type":"0"},"otherSignedAgreement":{"type":"0"},"signedAgreementOn":{"type":"2"},"orderIssuedOn":{"type":"2"},"startDate":{"type":"2"},"endDate":{"type":"2"},"floatingDate":{"type":"2"},"submissionDeadline":{"type":"2"},"signedAgreementScope":{"type":"0"},"raisedByVIP":{"type":"0"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"organization":{"type":"uuid"},"parent":{"type":"4"},"group":{"type":"4"},"procurementPlan":{"type":"4"},"qualifiedVendor":{"type":"4"},"financialResource":{"type":"4"},"projectOwner":{"type":"4"},"projectAssignee":{"type":"4"},"owner":{"type":"4"},"assignee":{"type":"4"},"raisedBy":{"type":"4"},"schedule":{"type":"7"},"accounts":{"type":"5"},"allocatedResources":{"type":"5"},"partners":{"type":"5"},"operatingAssets":{"type":"5"},"vendors":{"type":"5"},"title":{"description":"Tender title","type":"string"},"tenderType":{"description":"Type of tender process","type":"string"},"estimatedValue":{"description":"Estimated contract value","type":"number"}},"description":"Procurement tender with bid management and evaluation workflow.","example":{"id":"550e8400-e29b-41d4-a716-446655440006","reference":501,"title":"National Infrastructure Development Tender","description":"Large-scale infrastructure development project tender","stage":"evaluation","tenderType":"open","estimatedValue":15000000,"submissionDeadline":"2025-02-28T23:59:59.000Z","evaluationCriteria":"Technical 60%, Financial 40%","bondRequirement":"Performance bond 10% of contract value","prequalificationRequired":true,"minimumExperience":"10 years in similar projects","createdAt":"2025-01-15T09:00:00.000Z","updatedAt":"2025-01-15T09:00:00.000Z","deletedAt":null}},"DeliverableDbo":{"type":"object","properties":{"id":{"type":"string","description":"Deliverable identifier"},"title":{"type":"string","description":"Deliverable title"},"reference":{"type":"8"},"description":{"type":"0"},"deliverableType":{"type":"string","description":"Type of deliverable"},"cardinality":{"type":"0"},"meta":{"type":"jsonb"},"documents":{"type":"5"},"inputs":{"type":"0"},"outputs":{"type":"0"},"notes":{"type":"0"},"status":{"type":"string","description":"Current deliverable status"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"organization":{"type":"uuid"},"item":{"type":"uuid"},"owner":{"type":"4"},"plannedEvent":{"type":"7"},"reviewers":{"type":"5"},"approvers":{"type":"5"},"interestedParties":{"type":"5"}},"description":"Project deliverable with approval workflow and status tracking.","example":{"id":"550e8400-e29b-41d4-a716-446655440003","reference":201,"title":"System Architecture Document","description":"Comprehensive system architecture and design specifications","deliverableType":"document","cardinality":"single","inputs":"Requirements specifications, technical constraints","outputs":"Architecture document, design diagrams","notes":"Final review scheduled for next week","status":"pending-review","createdAt":"2025-01-15T09:00:00.000Z","updatedAt":"2025-01-15T09:00:00.000Z","deletedAt":null}},"DemandDbo":{"type":"object","properties":{"id":{"type":"string","description":"Demand identifier"},"title":{"type":"string","description":"Demand title"},"alignment":{"type":"0"},"reference":{"type":"8"},"health":{"type":"0"},"description":{"type":"0"},"priority":{"type":"0"},"meta":{"type":"jsonb"},"deliverables":{"type":"jsonb"},"technicalEvaluationCriteria":{"type":"jsonb"},"documents":{"type":"5"},"amount":{"type":"3"},"allocationDetails":{"type":"5"},"categoryType":{"type":"0"},"category":{"type":"0"},"status":{"type":"string","description":"Current demand status"},"demandType":{"type":"string","description":"Type of demand"},"submitted":{"type":"0"},"executionType":{"type":"0"},"source":{"type":"0"},"stage":{"type":"0"},"raisedOn":{"type":"2"},"tenderingStartDate":{"type":"2"},"startDate":{"type":"2"},"endDate":{"type":"2"},"differentiation":{"type":"3"},"desirability":{"type":"3"},"deliverability":{"type":"3"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"organization":{"type":"uuid"},"parent":{"type":"4"},"objective":{"type":"4"},"group":{"type":"4"},"owner":{"type":"4"},"assignee":{"type":"4"},"procurementPlan":{"type":"4"},"schedule":{"type":"7"},"accounts":{"type":"5"},"partners":{"type":"5"},"operatingAssets":{"type":"5"},"vendors":{"type":"5"},"allocatedResources":{"type":"5"},"quantity":{"description":"Required quantity","type":"number"}},"description":"Resource demand request with capacity planning and allocation tracking.","example":{"id":"550e8400-e29b-41d4-a716-446655440033","reference":3201,"title":"Software Development Team Q2 2025","description":"Request for additional software development resources for Q2 project deliveries","demandType":"resource","status":"approved","priority":"high","requestDate":"2025-01-10T09:00:00.000Z","requiredDate":"2025-04-01T08:00:00.000Z","duration":90,"resourceType":"human","skillsRequired":["React/TypeScript","Node.js","Cloud architecture","DevOps"],"quantity":5,"location":"Riyadh office","budget":450000,"justification":"Critical projects require additional capacity to meet Q2 delivery commitments","businessImpact":"Delayed delivery may impact customer commitments and revenue targets","alternatives":"Outsourcing or extending timeline with associated costs and risks","approvalLevel":"department-head","allocation":"Approved 4 FTE, 1 contractor position","createdAt":"2025-01-15T09:00:00.000Z","updatedAt":"2025-01-15T09:00:00.000Z","deletedAt":null}},"KeyPerformanceIndicatorDbo":{"type":"object","properties":{"id":{"type":"string","description":"KPI identifier."},"userDefinedReference":{"type":"0"},"title":{"type":"string","description":"Business KPI title."},"reference":{"type":"8"},"currentValueFormula":{"type":"object","description":"Formula and result for actual progress/value."},"weight":{"type":"3"},"expectedValueFormula":{"type":"object","description":"Formula and result for expected progress/value."},"targetValueFormula":{"type":"jsonb"},"baselineValue":{"type":"3"},"calculationMethod":{"type":"0"},"inputMethod":{"type":"0"},"category":{"type":"0"},"formula":{"type":"0"},"notes":{"type":"0"},"tags":{"type":"jsonb"},"description":{"type":"0"},"trackingMethod":{"type":"0"},"unit":{"type":"0"},"frequency":{"type":"0"},"accumulation":{"type":"0"},"initialValueSource":{"type":"0"},"measurementEquation":{"type":"0"},"source":{"type":"0"},"justification":{"type":"0"},"kpiType":{"type":"0"},"polarity":{"type":"0"},"status":{"type":"string","description":"Workflow-like KPI state (for example not-started/in-progress)."},"currentValues":{"type":"5"},"expectedValues":{"type":"5"},"health":{"type":"string","description":"Computed health classification."},"meta":{"type":"jsonb"},"documents":{"type":"5"},"startDate":{"type":"2"},"endDate":{"type":"2"},"reviewDate":{"type":"2"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"organization":{"type":"uuid"},"group":{"type":"4"},"parent":{"type":"4"},"item":{"type":"4"},"owner":{"type":"4"},"collaborators":{"type":"5"}},"description":"KPI aggregate linked to strategic items and schedules. Canonical routes normalize this shape before index synchronization.","example":{"id":"550e8400-e29b-41d4-a716-446655440103","title":"Digital Service Adoption Rate","status":"in-progress","health":"on-track","currentValueFormula":{"formula":"(digital_transactions / total_transactions) * 100","result":78.5,"lastCalculated":"2025-01-15T09:00:00.000Z"},"expectedValueFormula":{"formula":"target_adoption_rate_by_date","result":80,"target":95,"deadline":"2025-12-31T23:59:59.000Z"},"unit":"percentage","frequency":"monthly","trend":"improving","createdAt":"2025-01-15T09:00:00.000Z","updatedAt":"2025-01-15T09:00:00.000Z"}},"ProductDbo":{"type":"object","properties":{"id":{"type":"string","description":"Product identifier"},"reference":{"type":"8"},"meta":{"type":"jsonb"},"documents":{"type":"5"},"raisedByVIP":{"type":"0"},"phase":{"type":"0"},"step":{"type":"0"},"lifecycleStatus":{"type":"0"},"priority":{"type":"0"},"status":{"type":"string","description":"Current product status"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"organization":{"type":"uuid"},"parent":{"type":"4"},"group":{"type":"4"},"owner":{"type":"4"},"assignee":{"type":"4"},"raisedBy":{"type":"4"},"schedule":{"type":"7"},"title":{"description":"Product title","type":"string"},"productType":{"description":"Type of product","type":"string"},"userBase":{"description":"Number of active users","type":"number"}},"description":"Product definition with features, roadmap and lifecycle management.","example":{"id":"550e8400-e29b-41d4-a716-446655440037","reference":3601,"title":"Citizen Services Mobile App","description":"Mobile application providing citizens access to government services","productType":"software","category":"mobile-application","status":"active","lifecycleStage":"growth","version":"2.4.0","releaseDate":"2025-01-10T12:00:00.000Z","targetMarket":"Saudi citizens and residents","userBase":1250000,"features":["Service requests","Document management","Payment gateway","Appointment booking","Status tracking"],"roadmap":[{"quarter":"Q2-2025","features":["AI chatbot","Biometric authentication"]},{"quarter":"Q3-2025","features":["Offline capabilities","Multi-language support"]}],"kpis":{"activeUsers":850000,"satisfaction":4.3,"crashes":0.1},"technicalStack":["React Native","Node.js","PostgreSQL","AWS"],"supportModel":"24/7 support with 4-hour response SLA","complianceRequirements":["GDPR","Local data residency","Accessibility standards"],"createdAt":"2025-01-15T09:00:00.000Z","updatedAt":"2025-01-15T09:00:00.000Z","deletedAt":null}},"WorkspaceDbo":{"type":"object","properties":{"id":{"type":"string","description":"Primary identifier"},"reference":{"type":"integer","description":"Organization sequence number"},"meta":{"type":"jsonb"},"startDate":{"type":"string","description":"Workspace start date","format":"date-time"},"endDate":{"type":"string","description":"Workspace end date","format":"date-time"},"documents":{"type":"5"},"priority":{"type":"string","description":"Workspace priority level"},"status":{"type":"string","description":"Current workspace status"},"subType":{"type":"0"},"title":{"type":"string","description":"Workspace title"},"notes":{"type":"0"},"stage":{"type":"0"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"organization":{"type":"uuid"},"objective":{"type":"4"},"reviewer":{"type":"4"},"group":{"type":"4"},"owner":{"type":"4"},"assignee":{"type":"4"},"raisedBy":{"type":"4"},"parent":{"type":"4"},"item":{"type":"4"},"allocatedResources":{"type":"5"}},"description":"Strategic workspace containing projects, programs and portfolios with lifecycle management.","example":{"id":"550e8400-e29b-41d4-a716-446655440001","reference":1,"title":"Digital Transformation Initiative","startDate":"2025-01-15T09:00:00.000Z","endDate":"2025-12-15T17:00:00.000Z","status":"active","priority":"high","location":"Riyadh, Saudi Arabia","category":"Digital Strategy","alignment":"Vision 2030","role":"Strategic Initiative","highlights":"Key transformation project for digital capabilities","closureComment":null,"raisedByVIP":false,"subType":"transformation","createdAt":"2025-01-15T09:00:00.000Z","updatedAt":"2025-01-15T09:00:00.000Z","deletedAt":null}},"RiskDbo":{"type":"object","properties":{"id":{"type":"string","description":"Risk identifier"},"title":{"type":"string","description":"Risk title"},"reference":{"type":"8"},"description":{"type":"0"},"meta":{"type":"jsonb"},"documents":{"type":"5"},"stage":{"type":"0"},"isOverdue":{"type":"0"},"health":{"type":"0"},"raisedByVIP":{"type":"0"},"status":{"type":"0"},"raisedOn":{"type":"2"},"probability":{"type":"string","description":"Risk probability"},"impact":{"type":"string","description":"Risk impact level"},"residualProbability":{"type":"3"},"residualImpact":{"type":"3"},"supportRequired":{"type":"0"},"bowtieDiagramDetails":{"type":"5"},"category":{"type":"0"},"impactArea":{"type":"0"},"residualCategory":{"type":"0"},"residualImpactArea":{"type":"0"},"impactDescription":{"type":"0"},"residualImpactDescription":{"type":"0"},"otherImpactedLayers":{"type":"0"},"internalControls":{"type":"0"},"internalControlsEffectiveness":{"type":"0"},"anticipatedImpactDate":{"type":"2"},"minImpactOnCost":{"type":"3"},"maxImpactOnCost":{"type":"3"},"mitigationType":{"type":"0"},"mitigationTypeJustification":{"type":"0"},"mitigationPlan":{"type":"0"},"terminationPlan":{"type":"0"},"transferPlan":{"type":"0"},"preventativePlan":{"type":"0"},"contingencyPlan":{"type":"0"},"mitigationDueDate":{"type":"2"},"actualMitigationDate":{"type":"2"},"mitigationCostEstimate":{"type":"3"},"actualMitigationCost":{"type":"3"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"organization":{"type":"uuid"},"escalatedIssue":{"type":"4"},"resolutionChangeRequest":{"type":"4"},"item":{"type":"4"},"group":{"type":"4"},"owner":{"type":"4"},"assignee":{"type":"4"},"raisedBy":{"type":"4"},"value":{"type":"double precision"},"unit":{"type":"enum"},"riskType":{"description":"Type of risk","type":"string"},"riskLevel":{"description":"Overall risk level","type":"string"}},"description":"Project or organizational risk with impact assessment and mitigation strategies.","example":{"id":"550e8400-e29b-41d4-a716-446655440017","reference":1601,"title":"Cybersecurity Threat","description":"Potential cybersecurity breach due to increased remote work and system vulnerabilities","riskType":"operational","category":"security","probability":"medium","impact":"high","riskLevel":"high","status":"active","identifiedDate":"2025-01-08T10:00:00.000Z","estimatedLoss":5000000,"mitigationStrategy":"Implement multi-factor authentication, security training, monitoring systems","contingencyPlan":"Incident response team activation, system isolation procedures, data recovery","currentMitigation":"Security patches applied, staff training in progress","reviewDate":"2025-02-15T00:00:00.000Z","riskOwner":"Chief Information Security Officer","createdAt":"2025-01-15T09:00:00.000Z","updatedAt":"2025-01-15T09:00:00.000Z","deletedAt":null}},"IssueDbo":{"type":"object","properties":{"id":{"type":"string","description":"Issue identifier"},"title":{"type":"string","description":"Issue title"},"reference":{"type":"8"},"description":{"type":"0"},"health":{"type":"0"},"raisedByVIP":{"type":"0"},"isOverdue":{"type":"0"},"meta":{"type":"jsonb"},"documents":{"type":"5"},"stage":{"type":"0"},"location":{"type":"jsonb"},"status":{"type":"string","description":"Current resolution status"},"raisedOn":{"type":"2"},"urgency":{"type":"0"},"severity":{"type":"string","description":"Issue severity level"},"category":{"type":"0"},"impactArea":{"type":"0"},"impactDescription":{"type":"0"},"otherImpactedLayers":{"type":"0"},"minImpactOnCost":{"type":"3"},"maxImpactOnCost":{"type":"3"},"resolutionPlan":{"type":"0"},"targetResolutionDate":{"type":"2"},"actualResolutionDate":{"type":"2"},"resolutionCostEstimate":{"type":"3"},"currentActualSpend":{"type":"3"},"createdAt":{"type":"timestamp with time zone"},"supportRequired":{"type":"0"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"organization":{"type":"uuid"},"item":{"type":"4"},"group":{"type":"4"},"owner":{"type":"4"},"assignee":{"type":"4"},"raisedBy":{"type":"4"},"resolutionChangeRequest":{"type":"4"},"value":{"type":"double precision"},"unit":{"type":"enum"},"issueType":{"description":"Type of issue","type":"string"}},"description":"Project issue tracking with impact assessment and resolution workflow.","example":{"id":"550e8400-e29b-41d4-a716-446655440011","reference":1001,"title":"Database Performance Degradation","description":"System experiencing slow query response times affecting user experience","issueType":"technical","severity":"high","priority":"urgent","status":"in-progress","reportedDate":"2025-01-14T15:30:00.000Z","expectedResolution":"2025-01-16T17:00:00.000Z","actualResolution":null,"impact":"User complaints increased by 300%, potential revenue loss","rootCause":"Database index fragmentation and outdated query optimization","resolution":"Rebuilding indexes and optimizing critical queries","preventiveMeasures":"Implement automated index maintenance and query monitoring","createdAt":"2025-01-15T09:00:00.000Z","updatedAt":"2025-01-15T09:00:00.000Z","deletedAt":null}},"SignedAgreementDbo":{"type":"object","properties":{"id":{"type":"string","description":"Agreement identifier"},"name":{"type":"0"},"reference":{"type":"8"},"description":{"type":"0"},"meta":{"type":"jsonb"},"documents":{"type":"5"},"exclusivityClause":{"type":"0"},"exclusivityClauseDetails":{"type":"0"},"nonCompeteClause":{"type":"0"},"nonCompeteClauseDetails":{"type":"0"},"health":{"type":"0"},"status":{"type":"string","description":"Current agreement status"},"raisedByVIP":{"type":"0"},"agreementType":{"type":"string","description":"Type of agreement"},"signedOn":{"type":"2"},"expiryDate":{"type":"2"},"scope":{"type":"0"},"raisedOn":{"type":"2"},"supportRequired":{"type":"0"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"organization":{"type":"uuid"},"item":{"type":"4"},"owner":{"type":"4"},"assignee":{"type":"4"},"raisedBy":{"type":"4"},"counterParties":{"type":"5"},"organizationLegalAdvisors":{"type":"5"},"counterPartiesLegalAdvisors":{"type":"5"},"reviewers":{"type":"5"},"approvers":{"type":"5"},"interestedParties":{"type":"5"},"title":{"description":"Agreement title","type":"string"},"contractValue":{"description":"Total contract value","type":"number"}},"description":"Executed agreement with terms, conditions and compliance tracking.","example":{"id":"550e8400-e29b-41d4-a716-446655440022","reference":2101,"title":"Software Development Services Agreement","description":"Master services agreement for software development and maintenance","agreementType":"service","status":"active","signedDate":"2025-01-10T14:00:00.000Z","effectiveDate":"2025-01-15T00:00:00.000Z","expirationDate":"2026-01-14T23:59:59.000Z","autoRenewal":true,"contractValue":2400000,"currency":"SAR","paymentTerms":"Monthly in advance","keyTerms":["24/7 support included","99.5% uptime SLA","Quarterly reviews"],"penalties":["Late delivery: 0.5% per day","SLA breach: Service credits"],"terminationClauses":["30-day notice required","Cause-based immediate termination"],"complianceStatus":"compliant","lastReviewDate":"2025-01-05T10:00:00.000Z","nextReviewDate":"2025-04-05T10:00:00.000Z","createdAt":"2025-01-15T09:00:00.000Z","updatedAt":"2025-01-15T09:00:00.000Z","deletedAt":null}},"ActionDbo":{"type":"object","properties":{"id":{"type":"string","description":"Action identifier"},"title":{"type":"string","description":"Action title"},"reference":{"type":"8"},"description":{"type":"0"},"raisedByVIP":{"type":"0"},"meta":{"type":"jsonb"},"documents":{"type":"5"},"priority":{"type":"0"},"startDate":{"type":"2"},"endDate":{"type":"2"},"expectedOutcome":{"type":"0"},"actionImpact":{"type":"0"},"progress":{"type":"number","description":"Completion percentage"},"health":{"type":"0"},"isOverdue":{"type":"0"},"status":{"type":"string","description":"Current action status"},"stage":{"type":"0"},"actualCompletionDate":{"type":"2"},"supportRequired":{"type":"0"},"subType":{"type":"0"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"organization":{"type":"uuid"},"item":{"type":"4"},"group":{"type":"4"},"owner":{"type":"4"},"assignee":{"type":"4"},"raisedBy":{"type":"4"},"actionType":{"description":"Type of action","type":"string"}},"description":"Action item with assignment, due date and progress tracking.","example":{"id":"550e8400-e29b-41d4-a716-446655440032","reference":3101,"title":"Complete Security Assessment","description":"Conduct comprehensive security assessment of new system components","actionType":"task","status":"in-progress","priority":"high","dueDate":"2025-01-25T17:00:00.000Z","estimatedEffort":16,"actualEffort":8,"progress":50,"category":"security","complexity":"medium","dependencies":["System deployment completion","Access credentials provision"],"deliverables":["Security assessment report","Risk register","Mitigation recommendations"],"successCriteria":"All security vulnerabilities identified and risk level assessed","notes":"Initial assessment shows good security posture, detailed analysis in progress","blockers":null,"escalationRequired":false,"createdAt":"2025-01-15T09:00:00.000Z","updatedAt":"2025-01-15T09:00:00.000Z","deletedAt":null}},"BidDbo":{"type":"object","properties":{"id":{"type":"string","description":"Bid identifier"},"description":{"type":"0"},"reference":{"type":"8"},"meta":{"type":"jsonb"},"submissionStatus":{"type":"string","description":"Bid submission status"},"stage":{"type":"string","description":"Current evaluation stage"},"submissionType":{"type":"0"},"envelopeType":{"type":"0"},"technicalCompliance":{"type":"0"},"commercialCompliance":{"type":"0"},"evaluationOutcome":{"type":"string","description":"Evaluation outcome"},"awardRecommendation":{"type":"0"},"approvalStatus":{"type":"0"},"documents":{"type":"5"},"submissionDate":{"type":"2"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"organization":{"type":"uuid"},"tender":{"type":"4"},"vendor":{"type":"4"},"sector":{"type":"4"},"owner":{"type":"4"},"assignee":{"type":"4"},"raisedBy":{"type":"4"},"overallScore":{"description":"Overall bid score","type":"number"}},"description":"Tender bid submission with evaluation status and compliance tracking.","example":{"id":"550e8400-e29b-41d4-a716-446655440038","reference":3701,"description":"Comprehensive bid for smart city infrastructure development project","submissionStatus":"submitted","stage":"qualification","submissionType":"initial","envelopeType":"combined","technicalCompliance":"pass","commercialCompliance":"pass","evaluationOutcome":"qualified","awardRecommendation":"yes","approvalStatus":"pending","submissionDate":"2025-01-14T16:30:00.000Z","technicalScore":87,"commercialScore":92,"overallScore":89,"bidAmount":12500000,"proposedTimeline":"18 months","keyPersonnel":["Project Manager: 10 years experience","Technical Lead: 8 years experience"],"valueProposition":"Proven track record, local expertise, innovative solutions","riskMitigation":"Comprehensive insurance, performance bonds, quality assurance","complianceDocuments":["ISO certifications","Financial statements","References"],"clarifications":["Requested technical specifications detail on data integration"],"evaluatorComments":"Strong technical proposal with competitive pricing","createdAt":"2025-01-15T09:00:00.000Z","updatedAt":"2025-01-15T09:00:00.000Z","deletedAt":null}},"CategoryDbo":{"type":"object","properties":{"id":{"type":"uuid"},"scope":{"type":"0"},"type":{"type":"0"},"name":{"type":"0"},"position":{"type":"3"},"description":{"type":"0"},"weight":{"type":"3"},"parent":{"type":"4"},"item":{"type":"4"},"meta":{"type":"jsonb"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"organization":{"type":"uuid"}}},"DashboardDbo":{"type":"object","properties":{"id":{"type":"string","description":"Dashboard identifier"},"meta":{"type":"jsonb"},"title":{"type":"string","description":"Dashboard title"},"description":{"type":"0"},"type":{"type":"0"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"updatedBy":{"type":"0"},"deletedAt":{"type":"timestamp with time zone"},"organization":{"type":"uuid"},"dashboardType":{"description":"Type of dashboard","type":"string"},"widgets":{"description":"Dashboard widgets configuration","type":"array","items":{"type":"string"}},"refreshInterval":{"description":"Auto-refresh interval in seconds","type":"number"}},"description":"Customizable dashboard with widgets and analytics for organizational metrics.","example":{"id":"550e8400-e29b-41d4-a716-446655440010","reference":901,"title":"Executive Dashboard","description":"High-level overview of organizational performance and key metrics","dashboardType":"executive","layout":"grid","refreshInterval":300,"widgets":[{"type":"kpi","title":"Project Success Rate","value":"92%","target":"95%"},{"type":"chart","title":"Monthly Revenue","chartType":"line","dataSource":"finance"}],"permissions":["view","edit"],"isPublic":false,"tags":["executive","performance","kpi"],"createdAt":"2025-01-15T09:00:00.000Z","updatedAt":"2025-01-15T09:00:00.000Z","deletedAt":null}},"DecisionDbo":{"type":"object","properties":{"id":{"type":"string","description":"Decision identifier"},"title":{"type":"string","description":"Decision title"},"reference":{"type":"8"},"description":{"type":"0"},"raisedOn":{"type":"2"},"meta":{"type":"jsonb"},"documents":{"type":"5"},"notes":{"type":"0"},"status":{"type":"string","description":"Decision status"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"organization":{"type":"uuid"},"item":{"type":"4"},"owner":{"type":"4"},"group":{"type":"4"},"decisionType":{"description":"Type of decision","type":"string"},"selectedOption":{"description":"Chosen option","type":"string"}},"description":"Strategic decision tracking with options analysis and approval workflow.","example":{"id":"550e8400-e29b-41d4-a716-446655440012","reference":1101,"title":"Cloud Migration Strategy","description":"Decision on the approach for migrating legacy systems to cloud infrastructure","decisionType":"strategic","status":"approved","decisionDate":"2025-01-12T14:00:00.000Z","implementationDeadline":"2025-06-30T23:59:59.000Z","options":[{"name":"Lift and Shift","cost":500000,"timeline":"6 months","risk":"low"},{"name":"Re-architecture","cost":1200000,"timeline":"12 months","risk":"medium"}],"selectedOption":"Re-architecture","rationale":"Long-term benefits outweigh initial investment, better scalability and performance","expectedOutcome":"Improved system performance, reduced operational costs by 30%","successCriteria":"Zero downtime migration, 99.9% uptime post-migration","createdAt":"2025-01-15T09:00:00.000Z","updatedAt":"2025-01-15T09:00:00.000Z","deletedAt":null}},"KeyAchievementDbo":{"type":"object","properties":{"id":{"type":"string","description":"Achievement identifier"},"name":{"type":"0"},"reference":{"type":"8"},"description":{"type":"0"},"meta":{"type":"jsonb"},"documents":{"type":"5"},"completedOn":{"type":"2"},"impactArea":{"type":"0"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"organization":{"type":"uuid"},"item":{"type":"4"},"group":{"type":"4"},"owner":{"type":"4"},"title":{"description":"Achievement title","type":"string"},"achievementType":{"description":"Type of achievement","type":"string"},"category":{"description":"Achievement category","type":"string"},"achievementDate":{"description":"Date of achievement","type":"string","format":"date-time"}},"description":"Significant organizational achievement with impact measurement and recognition.","example":{"id":"550e8400-e29b-41d4-a716-446655440020","reference":1901,"title":"Digital Services Adoption Milestone","description":"Achieved 80% digital adoption rate for government services ahead of schedule","achievementType":"milestone","category":"digital-transformation","achievementDate":"2025-01-10T00:00:00.000Z","impact":"Significant improvement in citizen satisfaction and service efficiency","metrics":{"adoptionRate":80,"satisfactionScore":4.6,"processingTimeReduction":65},"recognitionLevel":"organizational","benefits":["Reduced processing time","Improved citizen experience","Cost savings"],"successFactors":["Strong leadership","User-centric design","Effective communication"],"lessons":"Early user engagement and iterative feedback crucial for success","isPublic":true,"awardReceived":"Excellence in Digital Innovation Award","createdAt":"2025-01-15T09:00:00.000Z","updatedAt":"2025-01-15T09:00:00.000Z","deletedAt":null}},"LearnedLessonDbo":{"type":"object","properties":{"id":{"type":"string","description":"Lesson identifier"},"title":{"type":"string","description":"Lesson title"},"reference":{"type":"8"},"description":{"type":"string","description":"Detailed lesson description"},"meta":{"type":"jsonb"},"documents":{"type":"5"},"identifiedOn":{"type":"string","description":"When the lesson was identified","format":"date-time"},"impactDescription":{"type":"0"},"recommendedActions":{"type":"0"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"organization":{"type":"uuid"},"identifiedBy":{"type":"4"},"item":{"type":"4"},"owner":{"type":"4"}},"description":"Organizational knowledge capture from project experiences and outcomes.","example":{"id":"550e8400-e29b-41d4-a716-446655440004","reference":301,"title":"Early Stakeholder Engagement Critical","description":"Engaging stakeholders early in the project lifecycle significantly improves success rates","identifiedOn":"2025-01-10T14:30:00.000Z","impactDescription":"Reduced scope changes by 40% and improved team alignment","recommendedActions":"Schedule stakeholder workshops within first month of project initiation","isFollowed":true,"newComments":0,"createdAt":"2025-01-15T09:00:00.000Z","updatedAt":"2025-01-15T09:00:00.000Z","deletedAt":null}},"ScheduleBaselineDbo":{"type":"object","properties":{"id":{"type":"string","description":"Baseline identifier"},"meta":{"type":"jsonb"},"documents":{"type":"5"},"status":{"type":"string","description":"Baseline status"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"organization":{"type":"uuid"},"schedule":{"type":"4"},"title":{"description":"Baseline title","type":"string"},"version":{"description":"Baseline version","type":"string"},"baselineDate":{"description":"Baseline creation date","type":"string","format":"date-time"}},"description":"Schedule baseline snapshot for tracking planned vs actual progress.","example":{"id":"550e8400-e29b-41d4-a716-446655440021","reference":2001,"title":"Q1 2025 Project Baseline","description":"Approved baseline for Q1 project deliverables and milestones","baselineDate":"2025-01-01T00:00:00.000Z","version":"1.2","status":"approved","approvalDate":"2024-12-28T16:00:00.000Z","plannedStartDate":"2025-01-15T08:00:00.000Z","plannedEndDate":"2025-03-31T17:00:00.000Z","plannedDuration":75,"plannedEffort":1200,"plannedCost":850000,"milestones":[{"name":"Design Complete","date":"2025-02-15","status":"planned"},{"name":"Development Complete","date":"2025-03-15","status":"planned"}],"assumptions":["Resources available as planned","No major scope changes"],"constraints":["Budget ceiling","Regulatory approval timeline"],"createdAt":"2025-01-15T09:00:00.000Z","updatedAt":"2025-01-15T09:00:00.000Z","deletedAt":null}},"SprintDbo":{"type":"object","properties":{"id":{"type":"string","description":"Sprint identifier"},"reference":{"type":"8"},"title":{"type":"string","description":"Sprint title"},"meta":{"type":"jsonb"},"documents":{"type":"5"},"startDate":{"type":"2"},"actualProgress":{"type":"3"},"expectedProgress":{"type":"3"},"closeDate":{"type":"2"},"raisedByVIP":{"type":"0"},"createdAt":{"type":"timestamp with time zone"},"updatedAt":{"type":"timestamp with time zone"},"deletedAt":{"type":"timestamp with time zone"},"organization":{"type":"uuid"},"product":{"type":"4"},"group":{"type":"4"},"owner":{"type":"4"},"assignee":{"type":"4"},"raisedBy":{"type":"4"},"value":{"type":"double precision"},"unit":{"type":"enum"},"sprintNumber":{"description":"Sprint sequence number","type":"number"},"status":{"description":"Current sprint status","type":"string"},"plannedVelocity":{"description":"Planned story points","type":"number"}},"description":"Agile sprint with backlog items and velocity tracking.","example":{"id":"550e8400-e29b-41d4-a716-446655440036","reference":3501,"title":"Sprint 15 - User Dashboard","description":"Focus on user dashboard enhancements and performance optimization","sprintNumber":15,"status":"active","startDate":"2025-01-15T08:00:00.000Z","endDate":"2025-01-29T17:00:00.000Z","duration":14,"capacity":80,"plannedVelocity":45,"actualVelocity":null,"goal":"Complete user dashboard redesign and improve page load times by 50%","backlogItems":[{"id":"US-101","title":"User profile management","points":8,"status":"in-progress"},{"id":"US-102","title":"Dashboard analytics","points":13,"status":"planned"},{"id":"BG-201","title":"Performance optimization","points":5,"status":"completed"}],"burndownData":{"day1":45,"day2":43,"day3":40},"impediments":["Awaiting API documentation","Test environment issues"],"retrospectiveNotes":null,"teamSatisfaction":null,"velocityTrend":"stable","createdAt":"2025-01-15T09:00:00.000Z","updatedAt":"2025-01-15T09:00:00.000Z","deletedAt":null}}},"securitySchemes":{"basicAuth":{"type":"http","scheme":"basic"}}}}