@oneuptime/common 7.0.3840 → 7.0.3864
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Models/DatabaseModels/Index.ts +3 -0
- package/Models/DatabaseModels/Monitor.ts +20 -0
- package/Models/DatabaseModels/MonitorFeed.ts +520 -0
- package/Server/API/BaseAPI.ts +8 -0
- package/Server/API/BaseAnalyticsAPI.ts +9 -0
- package/Server/API/CommonAPI.ts +2 -0
- package/Server/API/SlackAPI.ts +14 -0
- package/Server/API/StatusAPI.ts +172 -127
- package/Server/API/StatusPageAPI.ts +7 -0
- package/Server/DatabaseConfig.ts +8 -0
- package/Server/Infrastructure/ClickhouseDatabase.ts +4 -0
- package/Server/Infrastructure/GlobalCache.ts +8 -0
- package/Server/Infrastructure/LocalCache.ts +11 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1717605043663-InitialMigration.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1717678334852-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1717839110671-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1717849921874-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1717955235341-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1718037833516-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1718100824584-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1718101665865-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1718119926223-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1718124277321-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1718126316684-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1718188920011-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1718203144945-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1718285877004-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1718618155447-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1718711669847-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1718879960254-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1719227548476-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1719228104620-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1719247426296-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1719348009053-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1719827175832-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1719831213463-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1719838746775-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1719915433542-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1720024126646-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1720532068612-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1720538999941-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1720785305192-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1720805596648-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1720806196274-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1720812937067-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1721075917289-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1721152139648-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1721159743714-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1721754545771-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1721779190475-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1722031205897-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1722543640526-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1722892318363-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1723825511054-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1723828588502-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1724078044172-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1724610006927-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1724613666632-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1724659071843-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1725291476867-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1725357719072-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1725360199561-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1725379949648-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1725551629492-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1725556630384-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1725618842598-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1725880508430-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1725881099935-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1725881475134-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1725884177663-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1725898621366-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1725900315712-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1725901024444-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1725975175669-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1725976810107-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1726831037585-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1727101782315-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1727102156072-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1727102331367-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1727103023745-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1727104469670-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1727192530019-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1727193130193-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1727193702212-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1727194211048-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1727194579925-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1727894983857-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1727906598804-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1728472625805-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1729682875503-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1730117995642-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1730209089495-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1730223198692-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1731433043136-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1731433309124-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1731435267537-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1731435514287-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1732553444010-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1734435866602-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1736364478985-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1736364957990-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1736365532085-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1736675947746-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1736703138918-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1736780194077-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1736780194078-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1736787495707-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1736787985322-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1736788706141-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1736856662868-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1737141420441-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1737713529424-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1737715240684-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1737997557974-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1739209832500-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1739210586538-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1739217257089-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1739282331053-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1739374537088-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1739569321582-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1740164199817-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1740419151825-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1740430229844-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1740597525803-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1740598793630-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1741031019972-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1741209339971-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1741904597606-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1741908200702-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1741955609393-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1741955752685-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1741957080431-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1741959216297-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1742302093234-MigrationName.ts +60 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1742305668133-MigrationName.ts +17 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/Index.ts +4 -0
- package/Server/Infrastructure/PostgresDatabase.ts +11 -0
- package/Server/Infrastructure/Queue.ts +6 -0
- package/Server/Infrastructure/QueueWorker.ts +3 -0
- package/Server/Infrastructure/Redis.ts +7 -0
- package/Server/Infrastructure/Semaphore.ts +3 -0
- package/Server/Infrastructure/SocketIO.ts +3 -0
- package/Server/Infrastructure/Status.ts +3 -0
- package/Server/Middleware/BearerTokenAuthorization.ts +2 -0
- package/Server/Middleware/ClusterKeyAuthorization.ts +4 -0
- package/Server/Middleware/CodeRepositoryAuthorization.ts +2 -0
- package/Server/Middleware/NotificationMiddleware.ts +3 -0
- package/Server/Middleware/ProjectAuthorization.ts +6 -0
- package/Server/Middleware/SlackAuthorization.ts +2 -0
- package/Server/Middleware/TelemetryIngest.ts +2 -0
- package/Server/Middleware/UserAuthorization.ts +8 -0
- package/Server/Services/AccessTokenService.ts +7 -0
- package/Server/Services/AlertFeedService.ts +29 -75
- package/Server/Services/AlertInternalNoteService.ts +4 -0
- package/Server/Services/AlertOwnerTeamService.ts +4 -0
- package/Server/Services/AlertOwnerUserService.ts +4 -0
- package/Server/Services/AlertService.ts +24 -2
- package/Server/Services/AlertSeverityService.ts +5 -1
- package/Server/Services/AlertStateService.ts +9 -0
- package/Server/Services/AlertStateTimelineService.ts +6 -0
- package/Server/Services/AnalyticsDatabaseService.ts +17 -0
- package/Server/Services/ApiKeyPermissionService.ts +3 -1
- package/Server/Services/ApiKeyService.ts +2 -1
- package/Server/Services/BillingInvoiceService.ts +3 -0
- package/Server/Services/BillingPaymentMethodService.ts +3 -0
- package/Server/Services/BillingService.ts +25 -0
- package/Server/Services/CallService.ts +2 -0
- package/Server/Services/CopilotActionTypePriorityService.ts +2 -1
- package/Server/Services/CopilotCodeRepositoryService.ts +3 -1
- package/Server/Services/DashboardService.ts +2 -1
- package/Server/Services/DatabaseService.ts +17 -0
- package/Server/Services/DomainService.ts +3 -1
- package/Server/Services/FileService.ts +4 -1
- package/Server/Services/IncidentFeedService.ts +33 -76
- package/Server/Services/IncidentInternalNoteService.ts +4 -0
- package/Server/Services/IncidentOwnerTeamService.ts +4 -0
- package/Server/Services/IncidentOwnerUserService.ts +4 -0
- package/Server/Services/IncidentPublicNoteService.ts +5 -0
- package/Server/Services/IncidentService.ts +25 -1
- package/Server/Services/IncidentSeverityService.ts +5 -1
- package/Server/Services/IncidentStateService.ts +9 -0
- package/Server/Services/IncidentStateTimelineService.ts +6 -0
- package/Server/Services/IncidentTemplateService.ts +3 -0
- package/Server/Services/Index.ts +3 -0
- package/Server/Services/LabelService.ts +2 -1
- package/Server/Services/MailService.ts +2 -0
- package/Server/Services/MonitorFeedService.ts +150 -0
- package/Server/Services/MonitorGroupService.ts +4 -0
- package/Server/Services/MonitorOwnerTeamService.ts +165 -0
- package/Server/Services/MonitorOwnerUserService.ts +158 -0
- package/Server/Services/MonitorService.ts +247 -0
- package/Server/Services/MonitorStatusService.ts +5 -0
- package/Server/Services/MonitorStatusTimelineService.ts +66 -0
- package/Server/Services/NotificationService.ts +3 -0
- package/Server/Services/OnCallDutyPolicyEscalationRuleService.ts +12 -0
- package/Server/Services/OnCallDutyPolicyExecutionLogService.ts +4 -0
- package/Server/Services/OnCallDutyPolicyExecutionLogTimelineService.ts +4 -0
- package/Server/Services/OnCallDutyPolicyScheduleLayerService.ts +3 -0
- package/Server/Services/OnCallDutyPolicyScheduleLayerUserService.ts +5 -0
- package/Server/Services/OnCallDutyPolicyScheduleService.ts +2 -0
- package/Server/Services/OnCallDutyPolicyService.ts +3 -0
- package/Server/Services/OnCallDutyPolicyUserOverrideService.ts +3 -0
- package/Server/Services/OpenTelemetryIngestService.ts +4 -0
- package/Server/Services/ProbeService.ts +7 -0
- package/Server/Services/ProjectService.ts +15 -0
- package/Server/Services/ProjectUserService.ts +2 -0
- package/Server/Services/ScheduledMaintenanceFeedService.ts +29 -80
- package/Server/Services/ScheduledMaintenanceInternalNoteService.ts +4 -0
- package/Server/Services/ScheduledMaintenanceOwnerTeamService.ts +4 -0
- package/Server/Services/ScheduledMaintenanceOwnerUserService.ts +4 -0
- package/Server/Services/ScheduledMaintenancePublicNoteService.ts +5 -0
- package/Server/Services/ScheduledMaintenanceService.ts +29 -2
- package/Server/Services/ScheduledMaintenanceStateService.ts +8 -0
- package/Server/Services/ScheduledMaintenanceStateTimelineService.ts +7 -0
- package/Server/Services/ScheduledMaintenanceTemplateService.ts +5 -0
- package/Server/Services/ServiceCatalogDependencyService.ts +2 -0
- package/Server/Services/ServiceCatalogMonitorService.ts +2 -0
- package/Server/Services/ServiceCatalogService.ts +2 -0
- package/Server/Services/ServiceCatalogTelemetryServiceService.ts +2 -0
- package/Server/Services/ShortLinkService.ts +5 -0
- package/Server/Services/SmsService.ts +2 -0
- package/Server/Services/StatusPageCertificateService.ts +4 -0
- package/Server/Services/StatusPageDomainService.ts +14 -0
- package/Server/Services/StatusPageFooterLinkService.ts +5 -0
- package/Server/Services/StatusPageGroupService.ts +5 -0
- package/Server/Services/StatusPageHeaderLinkService.ts +5 -0
- package/Server/Services/StatusPageHistoryChartBarColorRuleService.ts +5 -0
- package/Server/Services/StatusPagePrivateUserService.ts +3 -0
- package/Server/Services/StatusPageResourceService.ts +5 -0
- package/Server/Services/StatusPageService.ts +17 -0
- package/Server/Services/StatusPageSubscriberService.ts +7 -0
- package/Server/Services/TeamMemberService.ts +11 -0
- package/Server/Services/TeamPermissionService.ts +7 -0
- package/Server/Services/TeamService.ts +3 -0
- package/Server/Services/TelemetryAttributeService.ts +3 -0
- package/Server/Services/TelemetryIngestionKeyService.ts +2 -0
- package/Server/Services/TelemetryServiceService.ts +3 -0
- package/Server/Services/TelemetryUsageBillingService.ts +3 -0
- package/Server/Services/UserCallService.ts +5 -0
- package/Server/Services/UserEmailService.ts +5 -0
- package/Server/Services/UserNotificationRuleService.ts +14 -0
- package/Server/Services/UserNotificationSettingService.ts +5 -0
- package/Server/Services/UserOnCallLogService.ts +4 -0
- package/Server/Services/UserOnCallLogTimelineService.ts +2 -0
- package/Server/Services/UserService.ts +8 -0
- package/Server/Services/UserSmsService.ts +5 -0
- package/Server/Services/UserTwoFactorAuthService.ts +3 -0
- package/Server/Services/WorkflowService.ts +2 -0
- package/Server/Services/WorkspaceNotificationRuleService.ts +146 -32
- package/Server/Services/WorkspaceProjectAuthTokenService.ts +5 -0
- package/Server/Services/WorkspaceSettingService.ts +3 -0
- package/Server/Services/WorkspaceUserAuthTokenService.ts +4 -0
- package/Server/Types/AnalyticsDatabase/AggregateBy.ts +2 -0
- package/Server/Types/AnalyticsDatabase/ModelPermission.ts +6 -0
- package/Server/Types/AnalyticsDatabase/QueryHelper.ts +5 -0
- package/Server/Types/Billing/MeteredPlan/ActiveMonitoringMeteredPlan.ts +3 -0
- package/Server/Types/Billing/MeteredPlan/AllMeteredPlans.ts +2 -0
- package/Server/Types/Billing/MeteredPlan/ServerMeteredPlan.ts +2 -0
- package/Server/Types/Billing/MeteredPlan/TelemetryMeteredPlan.ts +3 -0
- package/Server/Types/Database/Permissions/AccessControlPermission.ts +6 -0
- package/Server/Types/Database/Permissions/BasePermission.ts +2 -0
- package/Server/Types/Database/Permissions/BillingPermission.ts +2 -0
- package/Server/Types/Database/Permissions/ColumnPermission.ts +6 -0
- package/Server/Types/Database/Permissions/CreatePermission.ts +3 -0
- package/Server/Types/Database/Permissions/DeletePermission.ts +3 -0
- package/Server/Types/Database/Permissions/Index.ts +7 -0
- package/Server/Types/Database/Permissions/PermissionsUtil.ts +2 -0
- package/Server/Types/Database/Permissions/PublicPermission.ts +3 -0
- package/Server/Types/Database/Permissions/QueryPermission.ts +3 -0
- package/Server/Types/Database/Permissions/ReadPermission.ts +3 -0
- package/Server/Types/Database/Permissions/SelectPermission.ts +2 -0
- package/Server/Types/Database/Permissions/TablePermission.ts +4 -0
- package/Server/Types/Database/Permissions/TenantPermission.ts +2 -0
- package/Server/Types/Database/Permissions/UpdatePermission.ts +3 -0
- package/Server/Types/Database/Permissions/UserPermission.ts +2 -0
- package/Server/Types/Database/QueryHelper.ts +25 -0
- package/Server/Types/Database/QueryUtil.ts +2 -0
- package/Server/Types/Database/SelectUtil.ts +2 -0
- package/Server/Types/Domain.ts +2 -0
- package/Server/Types/Markdown.ts +2 -0
- package/Server/Types/Workflow/ComponentCode.ts +2 -0
- package/Server/Types/Workflow/Components/API/Delete.ts +2 -0
- package/Server/Types/Workflow/Components/API/Get.ts +2 -0
- package/Server/Types/Workflow/Components/API/Patch.ts +2 -0
- package/Server/Types/Workflow/Components/API/Post.ts +2 -0
- package/Server/Types/Workflow/Components/API/Put.ts +2 -0
- package/Server/Types/Workflow/Components/API/Utils.ts +3 -0
- package/Server/Types/Workflow/Components/BaseModel/CreateManyBaseModel.ts +2 -0
- package/Server/Types/Workflow/Components/BaseModel/CreateOneBaseModel.ts +2 -0
- package/Server/Types/Workflow/Components/BaseModel/DeleteOneBaseModel.ts +2 -0
- package/Server/Types/Workflow/Components/BaseModel/FindManyBaseModel.ts +2 -0
- package/Server/Types/Workflow/Components/BaseModel/FindOneBaseModel.ts +2 -0
- package/Server/Types/Workflow/Components/BaseModel/OnTriggerBaseModel.ts +4 -0
- package/Server/Types/Workflow/Components/BaseModel/UpdateManyBaseModel.ts +2 -0
- package/Server/Types/Workflow/Components/BaseModel/UpdateOneBaseModel.ts +2 -0
- package/Server/Types/Workflow/Components/Conditions/IfElse.ts +2 -0
- package/Server/Types/Workflow/Components/Email.ts +2 -0
- package/Server/Types/Workflow/Components/JSON/JsonToText.ts +2 -0
- package/Server/Types/Workflow/Components/JSON/MergeJson.ts +2 -0
- package/Server/Types/Workflow/Components/JSON/TextToJson.ts +2 -0
- package/Server/Types/Workflow/Components/JavaScript.ts +2 -0
- package/Server/Types/Workflow/Components/Log.ts +2 -0
- package/Server/Types/Workflow/Components/MicrosoftTeams/SendMessageToChannel.ts +2 -0
- package/Server/Types/Workflow/Components/Schedule.ts +4 -0
- package/Server/Types/Workflow/Components/Slack/SendMessageToChannel.ts +2 -0
- package/Server/Types/Workflow/Components/Webhook.ts +4 -0
- package/Server/Types/Workflow/TriggerCode.ts +5 -0
- package/Server/Utils/APIKey/AccessPermission.ts +5 -0
- package/Server/Utils/Airtable.ts +5 -0
- package/Server/Utils/AnalyticsDatabase/StatementGenerator.ts +2 -0
- package/Server/Utils/Browser.ts +6 -0
- package/Server/Utils/CodeRepository/CodeRepository.ts +23 -0
- package/Server/Utils/CodeRepository/GitHub/GitHub.ts +6 -0
- package/Server/Utils/CodeRepository/HostedCodeRepository/HostedCodeRepository.ts +5 -0
- package/Server/Utils/Cookie.ts +12 -0
- package/Server/Utils/CronTab.ts +2 -0
- package/Server/Utils/Encryption.ts +3 -0
- package/Server/Utils/Execute.ts +2 -0
- package/Server/Utils/Express.ts +6 -0
- package/Server/Utils/Greenlock/Greenlock.ts +251 -303
- package/Server/Utils/JsonWebToken.ts +6 -0
- package/Server/Utils/LocalFile.ts +13 -0
- package/Server/Utils/Monitor/Criteria/APIRequestCriteria.ts +2 -0
- package/Server/Utils/Monitor/Criteria/CompareCriteria.ts +16 -0
- package/Server/Utils/Monitor/Criteria/CustomCodeMonitorCriteria.ts +2 -0
- package/Server/Utils/Monitor/Criteria/EvaluateOverTime.ts +2 -0
- package/Server/Utils/Monitor/Criteria/IncomingRequestCriteria.ts +2 -0
- package/Server/Utils/Monitor/Criteria/LogMonitorCriteria.ts +2 -0
- package/Server/Utils/Monitor/Criteria/MetricMonitorCriteria.ts +2 -0
- package/Server/Utils/Monitor/Criteria/SSLMonitorCriteria.ts +2 -0
- package/Server/Utils/Monitor/Criteria/ServerMonitorCriteria.ts +2 -0
- package/Server/Utils/Monitor/Criteria/SyntheticMonitor.ts +2 -0
- package/Server/Utils/Monitor/Criteria/TraceMonitorCriteria.ts +2 -0
- package/Server/Utils/Monitor/MonitorAlert.ts +3 -0
- package/Server/Utils/Monitor/MonitorIncident.ts +3 -0
- package/Server/Utils/Monitor/MonitorResource.ts +3 -0
- package/Server/Utils/Monitor/MonitorStatusTimeline.ts +2 -0
- package/Server/Utils/Realtime.ts +8 -0
- package/Server/Utils/Response.ts +17 -0
- package/Server/Utils/Stream.ts +3 -0
- package/Server/Utils/Telemetry/CaptureSpan.ts +116 -0
- package/Server/Utils/Telemetry/Telemetry.ts +3 -0
- package/Server/Utils/Telemetry.ts +6 -0
- package/Server/Utils/TwoFactorAuth.ts +6 -0
- package/Server/Utils/UserPermission/UserPermission.ts +4 -0
- package/Server/Utils/VM/VMAPI.ts +5 -0
- package/Server/Utils/VM/VMRunner.ts +2 -0
- package/Server/Utils/Workspace/MicrosoftTeams/Messages/Alert.ts +2 -0
- package/Server/Utils/Workspace/MicrosoftTeams/Messages/Incident.ts +2 -0
- package/Server/Utils/Workspace/MicrosoftTeams/Messages/ScheduledMaintenance.ts +2 -0
- package/Server/Utils/Workspace/Slack/Actions/ActionTypes.ts +3 -0
- package/Server/Utils/Workspace/Slack/Actions/Alert.ts +11 -0
- package/Server/Utils/Workspace/Slack/Actions/Auth.ts +2 -0
- package/Server/Utils/Workspace/Slack/Actions/Incident.ts +13 -0
- package/Server/Utils/Workspace/Slack/Actions/Monitor.ts +48 -0
- package/Server/Utils/Workspace/Slack/Actions/ScheduledMaintenance.ts +11 -0
- package/Server/Utils/Workspace/Slack/Messages/Alert.ts +2 -0
- package/Server/Utils/Workspace/Slack/Messages/Incident.ts +2 -0
- package/Server/Utils/Workspace/Slack/Messages/Monitor.ts +60 -0
- package/Server/Utils/Workspace/Slack/Messages/ScheduledMaintenance.ts +2 -0
- package/Server/Utils/Workspace/Slack/Slack.ts +33 -3
- package/Server/Utils/Workspace/Workspace.ts +20 -3
- package/Server/Utils/Workspace/WorkspaceBase.ts +33 -1
- package/Server/Utils/Workspace/WorkspaceMessages/Alert.ts +3 -0
- package/Server/Utils/Workspace/WorkspaceMessages/Incident.ts +3 -0
- package/Server/Utils/Workspace/WorkspaceMessages/Monitor.ts +71 -0
- package/Server/Utils/Workspace/WorkspaceMessages/ScheduledMaintenance.ts +3 -0
- package/Types/Permission.ts +38 -0
- package/Types/Workspace/NotificationRules/EventType.ts +1 -1
- package/Types/Workspace/NotificationRules/NotificationRuleCondition.ts +8 -1
- package/Types/Workspace/NotificationRules/NotificationRuleTypes/MonitorNotificationRule.ts +6 -0
- package/UI/Utils/{Telemetry.ts → Telemetry/Telemetry.ts} +1 -1
- package/build/dist/Models/DatabaseModels/Index.js +2 -0
- package/build/dist/Models/DatabaseModels/Index.js.map +1 -1
- package/build/dist/Models/DatabaseModels/Monitor.js +20 -0
- package/build/dist/Models/DatabaseModels/Monitor.js.map +1 -1
- package/build/dist/Models/DatabaseModels/MonitorFeed.js +544 -0
- package/build/dist/Models/DatabaseModels/MonitorFeed.js.map +1 -0
- package/build/dist/Server/API/BaseAPI.js +52 -0
- package/build/dist/Server/API/BaseAPI.js.map +1 -1
- package/build/dist/Server/API/BaseAnalyticsAPI.js +58 -0
- package/build/dist/Server/API/BaseAnalyticsAPI.js.map +1 -1
- package/build/dist/Server/API/CommonAPI.js +16 -0
- package/build/dist/Server/API/CommonAPI.js.map +1 -1
- package/build/dist/Server/API/SlackAPI.js +11 -0
- package/build/dist/Server/API/SlackAPI.js.map +1 -1
- package/build/dist/Server/API/StatusAPI.js +146 -97
- package/build/dist/Server/API/StatusAPI.js.map +1 -1
- package/build/dist/Server/API/StatusPageAPI.js +46 -0
- package/build/dist/Server/API/StatusPageAPI.js.map +1 -1
- package/build/dist/Server/DatabaseConfig.js +52 -0
- package/build/dist/Server/DatabaseConfig.js.map +1 -1
- package/build/dist/Server/Infrastructure/ClickhouseDatabase.js +28 -0
- package/build/dist/Server/Infrastructure/ClickhouseDatabase.js.map +1 -1
- package/build/dist/Server/Infrastructure/GlobalCache.js +52 -0
- package/build/dist/Server/Infrastructure/GlobalCache.js.map +1 -1
- package/build/dist/Server/Infrastructure/LocalCache.js +72 -0
- package/build/dist/Server/Infrastructure/LocalCache.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1717605043663-InitialMigration.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1717605043663-InitialMigration.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1717678334852-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1717678334852-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1717839110671-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1717839110671-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1717849921874-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1717849921874-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1717955235341-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1717955235341-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718037833516-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718037833516-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718100824584-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718100824584-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718101665865-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718101665865-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718119926223-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718119926223-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718124277321-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718124277321-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718126316684-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718126316684-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718188920011-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718188920011-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718203144945-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718203144945-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718285877004-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718285877004-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718618155447-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718618155447-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718711669847-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718711669847-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718879960254-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718879960254-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1719227548476-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1719227548476-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1719228104620-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1719228104620-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1719247426296-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1719247426296-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1719348009053-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1719348009053-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1719827175832-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1719827175832-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1719831213463-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1719831213463-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1719838746775-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1719838746775-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1719915433542-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1719915433542-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1720024126646-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1720024126646-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1720532068612-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1720532068612-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1720538999941-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1720538999941-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1720785305192-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1720785305192-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1720805596648-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1720805596648-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1720806196274-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1720806196274-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1720812937067-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1720812937067-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1721075917289-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1721075917289-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1721152139648-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1721152139648-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1721159743714-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1721159743714-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1721754545771-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1721754545771-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1721779190475-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1721779190475-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1722031205897-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1722031205897-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1722543640526-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1722543640526-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1722892318363-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1722892318363-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1723825511054-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1723825511054-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1723828588502-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1723828588502-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1724078044172-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1724078044172-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1724610006927-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1724610006927-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1724613666632-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1724613666632-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1724659071843-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1724659071843-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725291476867-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725291476867-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725357719072-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725357719072-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725360199561-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725360199561-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725379949648-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725379949648-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725551629492-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725551629492-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725556630384-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725556630384-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725618842598-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725618842598-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725880508430-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725880508430-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725881099935-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725881099935-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725881475134-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725881475134-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725884177663-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725884177663-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725898621366-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725898621366-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725900315712-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725900315712-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725901024444-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725901024444-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725975175669-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725975175669-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725976810107-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725976810107-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1726831037585-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1726831037585-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1727101782315-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1727101782315-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1727102156072-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1727102156072-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1727102331367-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1727102331367-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1727103023745-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1727103023745-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1727104469670-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1727104469670-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1727192530019-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1727192530019-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1727193130193-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1727193130193-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1727193702212-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1727193702212-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1727194211048-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1727194211048-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1727194579925-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1727194579925-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1727894983857-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1727894983857-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1727906598804-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1727906598804-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1728472625805-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1728472625805-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1729682875503-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1729682875503-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1730117995642-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1730117995642-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1730209089495-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1730209089495-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1730223198692-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1730223198692-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1731433043136-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1731433043136-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1731433309124-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1731433309124-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1731435267537-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1731435267537-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1731435514287-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1731435514287-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1732553444010-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1732553444010-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1734435866602-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1734435866602-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1736364478985-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1736364478985-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1736364957990-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1736364957990-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1736365532085-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1736365532085-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1736675947746-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1736675947746-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1736703138918-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1736703138918-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1736780194077-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1736780194077-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1736780194078-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1736780194078-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1736787495707-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1736787495707-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1736787985322-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1736787985322-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1736788706141-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1736788706141-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1736856662868-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1736856662868-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1737141420441-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1737141420441-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1737713529424-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1737713529424-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1737715240684-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1737715240684-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1737997557974-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1737997557974-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1739209832500-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1739209832500-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1739210586538-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1739210586538-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1739217257089-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1739217257089-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1739282331053-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1739282331053-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1739374537088-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1739374537088-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1739569321582-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1739569321582-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1740164199817-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1740164199817-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1740419151825-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1740419151825-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1740430229844-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1740430229844-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1740597525803-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1740597525803-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1740598793630-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1740598793630-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1741031019972-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1741031019972-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1741209339971-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1741209339971-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1741904597606-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1741904597606-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1741908200702-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1741908200702-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1741955609393-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1741955609393-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1741955752685-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1741955752685-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1741957080431-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1741957080431-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1741959216297-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1741959216297-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1742302093234-MigrationName.js +48 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1742302093234-MigrationName.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1742305668133-MigrationName.js +12 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1742305668133-MigrationName.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js +4 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js.map +1 -1
- package/build/dist/Server/Infrastructure/PostgresDatabase.js +70 -0
- package/build/dist/Server/Infrastructure/PostgresDatabase.js.map +1 -1
- package/build/dist/Server/Infrastructure/Queue.js +40 -0
- package/build/dist/Server/Infrastructure/Queue.js.map +1 -1
- package/build/dist/Server/Infrastructure/QueueWorker.js +23 -0
- package/build/dist/Server/Infrastructure/QueueWorker.js.map +1 -1
- package/build/dist/Server/Infrastructure/Redis.js +46 -0
- package/build/dist/Server/Infrastructure/Redis.js.map +1 -1
- package/build/dist/Server/Infrastructure/Semaphore.js +22 -0
- package/build/dist/Server/Infrastructure/Semaphore.js.map +1 -1
- package/build/dist/Server/Infrastructure/SocketIO.js +22 -0
- package/build/dist/Server/Infrastructure/SocketIO.js.map +1 -1
- package/build/dist/Server/Infrastructure/Status.js +22 -0
- package/build/dist/Server/Infrastructure/Status.js.map +1 -1
- package/build/dist/Server/Middleware/BearerTokenAuthorization.js +16 -0
- package/build/dist/Server/Middleware/BearerTokenAuthorization.js.map +1 -1
- package/build/dist/Server/Middleware/ClusterKeyAuthorization.js +28 -0
- package/build/dist/Server/Middleware/ClusterKeyAuthorization.js.map +1 -1
- package/build/dist/Server/Middleware/CodeRepositoryAuthorization.js +16 -0
- package/build/dist/Server/Middleware/CodeRepositoryAuthorization.js.map +1 -1
- package/build/dist/Server/Middleware/NotificationMiddleware.js +22 -0
- package/build/dist/Server/Middleware/NotificationMiddleware.js.map +1 -1
- package/build/dist/Server/Middleware/ProjectAuthorization.js +40 -0
- package/build/dist/Server/Middleware/ProjectAuthorization.js.map +1 -1
- package/build/dist/Server/Middleware/SlackAuthorization.js +16 -0
- package/build/dist/Server/Middleware/SlackAuthorization.js.map +1 -1
- package/build/dist/Server/Middleware/TelemetryIngest.js +16 -0
- package/build/dist/Server/Middleware/TelemetryIngest.js.map +1 -1
- package/build/dist/Server/Middleware/UserAuthorization.js +53 -0
- package/build/dist/Server/Middleware/UserAuthorization.js.map +1 -1
- package/build/dist/Server/Services/AccessTokenService.js +49 -0
- package/build/dist/Server/Services/AccessTokenService.js.map +1 -1
- package/build/dist/Server/Services/AlertFeedService.js +37 -47
- package/build/dist/Server/Services/AlertFeedService.js.map +1 -1
- package/build/dist/Server/Services/AlertInternalNoteService.js +28 -0
- package/build/dist/Server/Services/AlertInternalNoteService.js.map +1 -1
- package/build/dist/Server/Services/AlertOwnerTeamService.js +28 -0
- package/build/dist/Server/Services/AlertOwnerTeamService.js.map +1 -1
- package/build/dist/Server/Services/AlertOwnerUserService.js +28 -0
- package/build/dist/Server/Services/AlertOwnerUserService.js.map +1 -1
- package/build/dist/Server/Services/AlertService.js +130 -2
- package/build/dist/Server/Services/AlertService.js.map +1 -1
- package/build/dist/Server/Services/AlertSeverityService.js +34 -0
- package/build/dist/Server/Services/AlertSeverityService.js.map +1 -1
- package/build/dist/Server/Services/AlertStateService.js +59 -0
- package/build/dist/Server/Services/AlertStateService.js.map +1 -1
- package/build/dist/Server/Services/AlertStateTimelineService.js +40 -0
- package/build/dist/Server/Services/AlertStateTimelineService.js.map +1 -1
- package/build/dist/Server/Services/AnalyticsDatabaseService.js +108 -0
- package/build/dist/Server/Services/AnalyticsDatabaseService.js.map +1 -1
- package/build/dist/Server/Services/ApiKeyPermissionService.js +22 -0
- package/build/dist/Server/Services/ApiKeyPermissionService.js.map +1 -1
- package/build/dist/Server/Services/ApiKeyService.js +16 -0
- package/build/dist/Server/Services/ApiKeyService.js.map +1 -1
- package/build/dist/Server/Services/BillingInvoiceService.js +22 -0
- package/build/dist/Server/Services/BillingInvoiceService.js.map +1 -1
- package/build/dist/Server/Services/BillingPaymentMethodService.js +22 -0
- package/build/dist/Server/Services/BillingPaymentMethodService.js.map +1 -1
- package/build/dist/Server/Services/BillingService.js +155 -0
- package/build/dist/Server/Services/BillingService.js.map +1 -1
- package/build/dist/Server/Services/CallService.js +16 -0
- package/build/dist/Server/Services/CallService.js.map +1 -1
- package/build/dist/Server/Services/CopilotActionTypePriorityService.js +16 -0
- package/build/dist/Server/Services/CopilotActionTypePriorityService.js.map +1 -1
- package/build/dist/Server/Services/CopilotCodeRepositoryService.js +22 -0
- package/build/dist/Server/Services/CopilotCodeRepositoryService.js.map +1 -1
- package/build/dist/Server/Services/DashboardService.js +16 -0
- package/build/dist/Server/Services/DashboardService.js.map +1 -1
- package/build/dist/Server/Services/DatabaseService.js +108 -0
- package/build/dist/Server/Services/DatabaseService.js.map +1 -1
- package/build/dist/Server/Services/DomainService.js +22 -0
- package/build/dist/Server/Services/DomainService.js.map +1 -1
- package/build/dist/Server/Services/FileService.js +28 -0
- package/build/dist/Server/Services/FileService.js.map +1 -1
- package/build/dist/Server/Services/IncidentFeedService.js +39 -48
- package/build/dist/Server/Services/IncidentFeedService.js.map +1 -1
- package/build/dist/Server/Services/IncidentInternalNoteService.js +28 -0
- package/build/dist/Server/Services/IncidentInternalNoteService.js.map +1 -1
- package/build/dist/Server/Services/IncidentOwnerTeamService.js +28 -0
- package/build/dist/Server/Services/IncidentOwnerTeamService.js.map +1 -1
- package/build/dist/Server/Services/IncidentOwnerUserService.js +28 -0
- package/build/dist/Server/Services/IncidentOwnerUserService.js.map +1 -1
- package/build/dist/Server/Services/IncidentPublicNoteService.js +34 -0
- package/build/dist/Server/Services/IncidentPublicNoteService.js.map +1 -1
- package/build/dist/Server/Services/IncidentService.js +142 -1
- package/build/dist/Server/Services/IncidentService.js.map +1 -1
- package/build/dist/Server/Services/IncidentSeverityService.js +34 -0
- package/build/dist/Server/Services/IncidentSeverityService.js.map +1 -1
- package/build/dist/Server/Services/IncidentStateService.js +59 -0
- package/build/dist/Server/Services/IncidentStateService.js.map +1 -1
- package/build/dist/Server/Services/IncidentStateTimelineService.js +40 -0
- package/build/dist/Server/Services/IncidentStateTimelineService.js.map +1 -1
- package/build/dist/Server/Services/IncidentTemplateService.js +25 -0
- package/build/dist/Server/Services/IncidentTemplateService.js.map +1 -1
- package/build/dist/Server/Services/Index.js +2 -0
- package/build/dist/Server/Services/Index.js.map +1 -1
- package/build/dist/Server/Services/LabelService.js +16 -0
- package/build/dist/Server/Services/LabelService.js.map +1 -1
- package/build/dist/Server/Services/MailService.js +16 -0
- package/build/dist/Server/Services/MailService.js.map +1 -1
- package/build/dist/Server/Services/MonitorFeedService.js +117 -0
- package/build/dist/Server/Services/MonitorFeedService.js.map +1 -0
- package/build/dist/Server/Services/MonitorGroupService.js +30 -0
- package/build/dist/Server/Services/MonitorGroupService.js.map +1 -1
- package/build/dist/Server/Services/MonitorOwnerTeamService.js +152 -0
- package/build/dist/Server/Services/MonitorOwnerTeamService.js.map +1 -1
- package/build/dist/Server/Services/MonitorOwnerUserService.js +145 -0
- package/build/dist/Server/Services/MonitorOwnerUserService.js.map +1 -1
- package/build/dist/Server/Services/MonitorService.js +308 -0
- package/build/dist/Server/Services/MonitorService.js.map +1 -1
- package/build/dist/Server/Services/MonitorStatusService.js +34 -0
- package/build/dist/Server/Services/MonitorStatusService.js.map +1 -1
- package/build/dist/Server/Services/MonitorStatusTimelineService.js +85 -0
- package/build/dist/Server/Services/MonitorStatusTimelineService.js.map +1 -1
- package/build/dist/Server/Services/NotificationService.js +23 -0
- package/build/dist/Server/Services/NotificationService.js.map +1 -1
- package/build/dist/Server/Services/OnCallDutyPolicyEscalationRuleService.js +91 -0
- package/build/dist/Server/Services/OnCallDutyPolicyEscalationRuleService.js.map +1 -1
- package/build/dist/Server/Services/OnCallDutyPolicyExecutionLogService.js +28 -0
- package/build/dist/Server/Services/OnCallDutyPolicyExecutionLogService.js.map +1 -1
- package/build/dist/Server/Services/OnCallDutyPolicyExecutionLogTimelineService.js +28 -0
- package/build/dist/Server/Services/OnCallDutyPolicyExecutionLogTimelineService.js.map +1 -1
- package/build/dist/Server/Services/OnCallDutyPolicyScheduleLayerService.js +22 -0
- package/build/dist/Server/Services/OnCallDutyPolicyScheduleLayerService.js.map +1 -1
- package/build/dist/Server/Services/OnCallDutyPolicyScheduleLayerUserService.js +34 -0
- package/build/dist/Server/Services/OnCallDutyPolicyScheduleLayerUserService.js.map +1 -1
- package/build/dist/Server/Services/OnCallDutyPolicyScheduleService.js +16 -0
- package/build/dist/Server/Services/OnCallDutyPolicyScheduleService.js.map +1 -1
- package/build/dist/Server/Services/OnCallDutyPolicyService.js +24 -0
- package/build/dist/Server/Services/OnCallDutyPolicyService.js.map +1 -1
- package/build/dist/Server/Services/OnCallDutyPolicyUserOverrideService.js +22 -0
- package/build/dist/Server/Services/OnCallDutyPolicyUserOverrideService.js.map +1 -1
- package/build/dist/Server/Services/OpenTelemetryIngestService.js +28 -0
- package/build/dist/Server/Services/OpenTelemetryIngestService.js.map +1 -1
- package/build/dist/Server/Services/ProbeService.js +47 -0
- package/build/dist/Server/Services/ProbeService.js.map +1 -1
- package/build/dist/Server/Services/ProjectService.js +94 -0
- package/build/dist/Server/Services/ProjectService.js.map +1 -1
- package/build/dist/Server/Services/ProjectUserService.js +16 -0
- package/build/dist/Server/Services/ProjectUserService.js.map +1 -1
- package/build/dist/Server/Services/ScheduledMaintenanceFeedService.js +37 -47
- package/build/dist/Server/Services/ScheduledMaintenanceFeedService.js.map +1 -1
- package/build/dist/Server/Services/ScheduledMaintenanceInternalNoteService.js +28 -0
- package/build/dist/Server/Services/ScheduledMaintenanceInternalNoteService.js.map +1 -1
- package/build/dist/Server/Services/ScheduledMaintenanceOwnerTeamService.js +28 -0
- package/build/dist/Server/Services/ScheduledMaintenanceOwnerTeamService.js.map +1 -1
- package/build/dist/Server/Services/ScheduledMaintenanceOwnerUserService.js +28 -0
- package/build/dist/Server/Services/ScheduledMaintenanceOwnerUserService.js.map +1 -1
- package/build/dist/Server/Services/ScheduledMaintenancePublicNoteService.js +34 -0
- package/build/dist/Server/Services/ScheduledMaintenancePublicNoteService.js.map +1 -1
- package/build/dist/Server/Services/ScheduledMaintenanceService.js +139 -2
- package/build/dist/Server/Services/ScheduledMaintenanceService.js.map +1 -1
- package/build/dist/Server/Services/ScheduledMaintenanceStateService.js +52 -0
- package/build/dist/Server/Services/ScheduledMaintenanceStateService.js.map +1 -1
- package/build/dist/Server/Services/ScheduledMaintenanceStateTimelineService.js +47 -0
- package/build/dist/Server/Services/ScheduledMaintenanceStateTimelineService.js.map +1 -1
- package/build/dist/Server/Services/ScheduledMaintenanceTemplateService.js +37 -0
- package/build/dist/Server/Services/ScheduledMaintenanceTemplateService.js.map +1 -1
- package/build/dist/Server/Services/ServiceCatalogDependencyService.js +16 -0
- package/build/dist/Server/Services/ServiceCatalogDependencyService.js.map +1 -1
- package/build/dist/Server/Services/ServiceCatalogMonitorService.js +16 -0
- package/build/dist/Server/Services/ServiceCatalogMonitorService.js.map +1 -1
- package/build/dist/Server/Services/ServiceCatalogService.js +16 -0
- package/build/dist/Server/Services/ServiceCatalogService.js.map +1 -1
- package/build/dist/Server/Services/ServiceCatalogTelemetryServiceService.js +16 -0
- package/build/dist/Server/Services/ServiceCatalogTelemetryServiceService.js.map +1 -1
- package/build/dist/Server/Services/ShortLinkService.js +34 -0
- package/build/dist/Server/Services/ShortLinkService.js.map +1 -1
- package/build/dist/Server/Services/SmsService.js +16 -0
- package/build/dist/Server/Services/SmsService.js.map +1 -1
- package/build/dist/Server/Services/StatusPageCertificateService.js +28 -0
- package/build/dist/Server/Services/StatusPageCertificateService.js.map +1 -1
- package/build/dist/Server/Services/StatusPageDomainService.js +88 -0
- package/build/dist/Server/Services/StatusPageDomainService.js.map +1 -1
- package/build/dist/Server/Services/StatusPageFooterLinkService.js +34 -0
- package/build/dist/Server/Services/StatusPageFooterLinkService.js.map +1 -1
- package/build/dist/Server/Services/StatusPageGroupService.js +34 -0
- package/build/dist/Server/Services/StatusPageGroupService.js.map +1 -1
- package/build/dist/Server/Services/StatusPageHeaderLinkService.js +34 -0
- package/build/dist/Server/Services/StatusPageHeaderLinkService.js.map +1 -1
- package/build/dist/Server/Services/StatusPageHistoryChartBarColorRuleService.js +34 -0
- package/build/dist/Server/Services/StatusPageHistoryChartBarColorRuleService.js.map +1 -1
- package/build/dist/Server/Services/StatusPagePrivateUserService.js +22 -0
- package/build/dist/Server/Services/StatusPagePrivateUserService.js.map +1 -1
- package/build/dist/Server/Services/StatusPageResourceService.js +34 -0
- package/build/dist/Server/Services/StatusPageResourceService.js.map +1 -1
- package/build/dist/Server/Services/StatusPageService.js +110 -0
- package/build/dist/Server/Services/StatusPageService.js.map +1 -1
- package/build/dist/Server/Services/StatusPageSubscriberService.js +47 -0
- package/build/dist/Server/Services/StatusPageSubscriberService.js.map +1 -1
- package/build/dist/Server/Services/TeamMemberService.js +71 -0
- package/build/dist/Server/Services/TeamMemberService.js.map +1 -1
- package/build/dist/Server/Services/TeamPermissionService.js +46 -0
- package/build/dist/Server/Services/TeamPermissionService.js.map +1 -1
- package/build/dist/Server/Services/TeamService.js +22 -0
- package/build/dist/Server/Services/TeamService.js.map +1 -1
- package/build/dist/Server/Services/TelemetryAttributeService.js +22 -0
- package/build/dist/Server/Services/TelemetryAttributeService.js.map +1 -1
- package/build/dist/Server/Services/TelemetryIngestionKeyService.js +16 -0
- package/build/dist/Server/Services/TelemetryIngestionKeyService.js.map +1 -1
- package/build/dist/Server/Services/TelemetryServiceService.js +22 -0
- package/build/dist/Server/Services/TelemetryServiceService.js.map +1 -1
- package/build/dist/Server/Services/TelemetryUsageBillingService.js +22 -0
- package/build/dist/Server/Services/TelemetryUsageBillingService.js.map +1 -1
- package/build/dist/Server/Services/UserCallService.js +35 -0
- package/build/dist/Server/Services/UserCallService.js.map +1 -1
- package/build/dist/Server/Services/UserEmailService.js +35 -0
- package/build/dist/Server/Services/UserEmailService.js.map +1 -1
- package/build/dist/Server/Services/UserNotificationRuleService.js +107 -0
- package/build/dist/Server/Services/UserNotificationRuleService.js.map +1 -1
- package/build/dist/Server/Services/UserNotificationSettingService.js +37 -0
- package/build/dist/Server/Services/UserNotificationSettingService.js.map +1 -1
- package/build/dist/Server/Services/UserOnCallLogService.js +28 -0
- package/build/dist/Server/Services/UserOnCallLogService.js.map +1 -1
- package/build/dist/Server/Services/UserOnCallLogTimelineService.js +16 -0
- package/build/dist/Server/Services/UserOnCallLogTimelineService.js.map +1 -1
- package/build/dist/Server/Services/UserService.js +54 -0
- package/build/dist/Server/Services/UserService.js.map +1 -1
- package/build/dist/Server/Services/UserSmsService.js +35 -0
- package/build/dist/Server/Services/UserSmsService.js.map +1 -1
- package/build/dist/Server/Services/UserTwoFactorAuthService.js +22 -0
- package/build/dist/Server/Services/UserTwoFactorAuthService.js.map +1 -1
- package/build/dist/Server/Services/WorkflowService.js +16 -0
- package/build/dist/Server/Services/WorkflowService.js.map +1 -1
- package/build/dist/Server/Services/WorkspaceNotificationRuleService.js +179 -21
- package/build/dist/Server/Services/WorkspaceNotificationRuleService.js.map +1 -1
- package/build/dist/Server/Services/WorkspaceProjectAuthTokenService.js +34 -0
- package/build/dist/Server/Services/WorkspaceProjectAuthTokenService.js.map +1 -1
- package/build/dist/Server/Services/WorkspaceSettingService.js +22 -0
- package/build/dist/Server/Services/WorkspaceSettingService.js.map +1 -1
- package/build/dist/Server/Services/WorkspaceUserAuthTokenService.js +28 -0
- package/build/dist/Server/Services/WorkspaceUserAuthTokenService.js.map +1 -1
- package/build/dist/Server/Types/AnalyticsDatabase/AggregateBy.js +16 -0
- package/build/dist/Server/Types/AnalyticsDatabase/AggregateBy.js.map +1 -1
- package/build/dist/Server/Types/AnalyticsDatabase/ModelPermission.js +41 -0
- package/build/dist/Server/Types/AnalyticsDatabase/ModelPermission.js.map +1 -1
- package/build/dist/Server/Types/AnalyticsDatabase/QueryHelper.js +35 -0
- package/build/dist/Server/Types/AnalyticsDatabase/QueryHelper.js.map +1 -1
- package/build/dist/Server/Types/Billing/MeteredPlan/ActiveMonitoringMeteredPlan.js +23 -0
- package/build/dist/Server/Types/Billing/MeteredPlan/ActiveMonitoringMeteredPlan.js.map +1 -1
- package/build/dist/Server/Types/Billing/MeteredPlan/AllMeteredPlans.js +17 -0
- package/build/dist/Server/Types/Billing/MeteredPlan/AllMeteredPlans.js.map +1 -1
- package/build/dist/Server/Types/Billing/MeteredPlan/ServerMeteredPlan.js +17 -0
- package/build/dist/Server/Types/Billing/MeteredPlan/ServerMeteredPlan.js.map +1 -1
- package/build/dist/Server/Types/Billing/MeteredPlan/TelemetryMeteredPlan.js +24 -0
- package/build/dist/Server/Types/Billing/MeteredPlan/TelemetryMeteredPlan.js.map +1 -1
- package/build/dist/Server/Types/Database/Permissions/AccessControlPermission.js +40 -0
- package/build/dist/Server/Types/Database/Permissions/AccessControlPermission.js.map +1 -1
- package/build/dist/Server/Types/Database/Permissions/BasePermission.js +17 -0
- package/build/dist/Server/Types/Database/Permissions/BasePermission.js.map +1 -1
- package/build/dist/Server/Types/Database/Permissions/BillingPermission.js +16 -0
- package/build/dist/Server/Types/Database/Permissions/BillingPermission.js.map +1 -1
- package/build/dist/Server/Types/Database/Permissions/ColumnPermission.js +29 -0
- package/build/dist/Server/Types/Database/Permissions/ColumnPermission.js.map +1 -1
- package/build/dist/Server/Types/Database/Permissions/CreatePermission.js +23 -0
- package/build/dist/Server/Types/Database/Permissions/CreatePermission.js.map +1 -1
- package/build/dist/Server/Types/Database/Permissions/DeletePermission.js +22 -0
- package/build/dist/Server/Types/Database/Permissions/DeletePermission.js.map +1 -1
- package/build/dist/Server/Types/Database/Permissions/Index.js +47 -0
- package/build/dist/Server/Types/Database/Permissions/Index.js.map +1 -1
- package/build/dist/Server/Types/Database/Permissions/PermissionsUtil.js +16 -0
- package/build/dist/Server/Types/Database/Permissions/PermissionsUtil.js.map +1 -1
- package/build/dist/Server/Types/Database/Permissions/PublicPermission.js +23 -0
- package/build/dist/Server/Types/Database/Permissions/PublicPermission.js.map +1 -1
- package/build/dist/Server/Types/Database/Permissions/QueryPermission.js +22 -0
- package/build/dist/Server/Types/Database/Permissions/QueryPermission.js.map +1 -1
- package/build/dist/Server/Types/Database/Permissions/ReadPermission.js +22 -0
- package/build/dist/Server/Types/Database/Permissions/ReadPermission.js.map +1 -1
- package/build/dist/Server/Types/Database/Permissions/SelectPermission.js +16 -0
- package/build/dist/Server/Types/Database/Permissions/SelectPermission.js.map +1 -1
- package/build/dist/Server/Types/Database/Permissions/TablePermission.js +28 -0
- package/build/dist/Server/Types/Database/Permissions/TablePermission.js.map +1 -1
- package/build/dist/Server/Types/Database/Permissions/TenantPermission.js +17 -0
- package/build/dist/Server/Types/Database/Permissions/TenantPermission.js.map +1 -1
- package/build/dist/Server/Types/Database/Permissions/UpdatePermission.js +22 -0
- package/build/dist/Server/Types/Database/Permissions/UpdatePermission.js.map +1 -1
- package/build/dist/Server/Types/Database/Permissions/UserPermission.js +16 -0
- package/build/dist/Server/Types/Database/Permissions/UserPermission.js.map +1 -1
- package/build/dist/Server/Types/Database/QueryHelper.js +155 -0
- package/build/dist/Server/Types/Database/QueryHelper.js.map +1 -1
- package/build/dist/Server/Types/Database/QueryUtil.js +16 -0
- package/build/dist/Server/Types/Database/QueryUtil.js.map +1 -1
- package/build/dist/Server/Types/Database/SelectUtil.js +16 -0
- package/build/dist/Server/Types/Database/SelectUtil.js.map +1 -1
- package/build/dist/Server/Types/Domain.js +16 -0
- package/build/dist/Server/Types/Domain.js.map +1 -1
- package/build/dist/Server/Types/Markdown.js +16 -0
- package/build/dist/Server/Types/Markdown.js.map +1 -1
- package/build/dist/Server/Types/Workflow/ComponentCode.js +16 -0
- package/build/dist/Server/Types/Workflow/ComponentCode.js.map +1 -1
- package/build/dist/Server/Types/Workflow/Components/API/Delete.js +16 -0
- package/build/dist/Server/Types/Workflow/Components/API/Delete.js.map +1 -1
- package/build/dist/Server/Types/Workflow/Components/API/Get.js +16 -0
- package/build/dist/Server/Types/Workflow/Components/API/Get.js.map +1 -1
- package/build/dist/Server/Types/Workflow/Components/API/Patch.js +16 -0
- package/build/dist/Server/Types/Workflow/Components/API/Patch.js.map +1 -1
- package/build/dist/Server/Types/Workflow/Components/API/Post.js +16 -0
- package/build/dist/Server/Types/Workflow/Components/API/Post.js.map +1 -1
- package/build/dist/Server/Types/Workflow/Components/API/Put.js +16 -0
- package/build/dist/Server/Types/Workflow/Components/API/Put.js.map +1 -1
- package/build/dist/Server/Types/Workflow/Components/API/Utils.js +22 -0
- package/build/dist/Server/Types/Workflow/Components/API/Utils.js.map +1 -1
- package/build/dist/Server/Types/Workflow/Components/BaseModel/CreateManyBaseModel.js +16 -0
- package/build/dist/Server/Types/Workflow/Components/BaseModel/CreateManyBaseModel.js.map +1 -1
- package/build/dist/Server/Types/Workflow/Components/BaseModel/CreateOneBaseModel.js +16 -0
- package/build/dist/Server/Types/Workflow/Components/BaseModel/CreateOneBaseModel.js.map +1 -1
- package/build/dist/Server/Types/Workflow/Components/BaseModel/DeleteOneBaseModel.js +16 -0
- package/build/dist/Server/Types/Workflow/Components/BaseModel/DeleteOneBaseModel.js.map +1 -1
- package/build/dist/Server/Types/Workflow/Components/BaseModel/FindManyBaseModel.js +16 -0
- package/build/dist/Server/Types/Workflow/Components/BaseModel/FindManyBaseModel.js.map +1 -1
- package/build/dist/Server/Types/Workflow/Components/BaseModel/FindOneBaseModel.js +16 -0
- package/build/dist/Server/Types/Workflow/Components/BaseModel/FindOneBaseModel.js.map +1 -1
- package/build/dist/Server/Types/Workflow/Components/BaseModel/OnTriggerBaseModel.js +28 -0
- package/build/dist/Server/Types/Workflow/Components/BaseModel/OnTriggerBaseModel.js.map +1 -1
- package/build/dist/Server/Types/Workflow/Components/BaseModel/UpdateManyBaseModel.js +16 -0
- package/build/dist/Server/Types/Workflow/Components/BaseModel/UpdateManyBaseModel.js.map +1 -1
- package/build/dist/Server/Types/Workflow/Components/BaseModel/UpdateOneBaseModel.js +16 -0
- package/build/dist/Server/Types/Workflow/Components/BaseModel/UpdateOneBaseModel.js.map +1 -1
- package/build/dist/Server/Types/Workflow/Components/Conditions/IfElse.js +16 -0
- package/build/dist/Server/Types/Workflow/Components/Conditions/IfElse.js.map +1 -1
- package/build/dist/Server/Types/Workflow/Components/Email.js +16 -0
- package/build/dist/Server/Types/Workflow/Components/Email.js.map +1 -1
- package/build/dist/Server/Types/Workflow/Components/JSON/JsonToText.js +16 -0
- package/build/dist/Server/Types/Workflow/Components/JSON/JsonToText.js.map +1 -1
- package/build/dist/Server/Types/Workflow/Components/JSON/MergeJson.js +16 -0
- package/build/dist/Server/Types/Workflow/Components/JSON/MergeJson.js.map +1 -1
- package/build/dist/Server/Types/Workflow/Components/JSON/TextToJson.js +16 -0
- package/build/dist/Server/Types/Workflow/Components/JSON/TextToJson.js.map +1 -1
- package/build/dist/Server/Types/Workflow/Components/JavaScript.js +16 -0
- package/build/dist/Server/Types/Workflow/Components/JavaScript.js.map +1 -1
- package/build/dist/Server/Types/Workflow/Components/Log.js +16 -0
- package/build/dist/Server/Types/Workflow/Components/Log.js.map +1 -1
- package/build/dist/Server/Types/Workflow/Components/MicrosoftTeams/SendMessageToChannel.js +16 -0
- package/build/dist/Server/Types/Workflow/Components/MicrosoftTeams/SendMessageToChannel.js.map +1 -1
- package/build/dist/Server/Types/Workflow/Components/Schedule.js +28 -0
- package/build/dist/Server/Types/Workflow/Components/Schedule.js.map +1 -1
- package/build/dist/Server/Types/Workflow/Components/Slack/SendMessageToChannel.js +16 -0
- package/build/dist/Server/Types/Workflow/Components/Slack/SendMessageToChannel.js.map +1 -1
- package/build/dist/Server/Types/Workflow/Components/Webhook.js +28 -0
- package/build/dist/Server/Types/Workflow/Components/Webhook.js.map +1 -1
- package/build/dist/Server/Types/Workflow/TriggerCode.js +34 -0
- package/build/dist/Server/Types/Workflow/TriggerCode.js.map +1 -1
- package/build/dist/Server/Utils/APIKey/AccessPermission.js +36 -0
- package/build/dist/Server/Utils/APIKey/AccessPermission.js.map +1 -1
- package/build/dist/Server/Utils/Airtable.js +35 -0
- package/build/dist/Server/Utils/Airtable.js.map +1 -1
- package/build/dist/Server/Utils/AnalyticsDatabase/StatementGenerator.js +16 -0
- package/build/dist/Server/Utils/AnalyticsDatabase/StatementGenerator.js.map +1 -1
- package/build/dist/Server/Utils/Browser.js +40 -0
- package/build/dist/Server/Utils/Browser.js.map +1 -1
- package/build/dist/Server/Utils/CodeRepository/CodeRepository.js +142 -0
- package/build/dist/Server/Utils/CodeRepository/CodeRepository.js.map +1 -1
- package/build/dist/Server/Utils/CodeRepository/GitHub/GitHub.js +40 -0
- package/build/dist/Server/Utils/CodeRepository/GitHub/GitHub.js.map +1 -1
- package/build/dist/Server/Utils/CodeRepository/HostedCodeRepository/HostedCodeRepository.js +34 -0
- package/build/dist/Server/Utils/CodeRepository/HostedCodeRepository/HostedCodeRepository.js.map +1 -1
- package/build/dist/Server/Utils/Cookie.js +77 -0
- package/build/dist/Server/Utils/Cookie.js.map +1 -1
- package/build/dist/Server/Utils/CronTab.js +16 -0
- package/build/dist/Server/Utils/CronTab.js.map +1 -1
- package/build/dist/Server/Utils/Encryption.js +22 -0
- package/build/dist/Server/Utils/Encryption.js.map +1 -1
- package/build/dist/Server/Utils/Execute.js +16 -0
- package/build/dist/Server/Utils/Execute.js.map +1 -1
- package/build/dist/Server/Utils/Express.js +42 -1
- package/build/dist/Server/Utils/Express.js.map +1 -1
- package/build/dist/Server/Utils/Greenlock/Greenlock.js +218 -232
- package/build/dist/Server/Utils/Greenlock/Greenlock.js.map +1 -1
- package/build/dist/Server/Utils/JsonWebToken.js +40 -0
- package/build/dist/Server/Utils/JsonWebToken.js.map +1 -1
- package/build/dist/Server/Utils/LocalFile.js +82 -0
- package/build/dist/Server/Utils/LocalFile.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/Criteria/APIRequestCriteria.js +16 -0
- package/build/dist/Server/Utils/Monitor/Criteria/APIRequestCriteria.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/Criteria/CompareCriteria.js +100 -0
- package/build/dist/Server/Utils/Monitor/Criteria/CompareCriteria.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/Criteria/CustomCodeMonitorCriteria.js +16 -0
- package/build/dist/Server/Utils/Monitor/Criteria/CustomCodeMonitorCriteria.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/Criteria/EvaluateOverTime.js +16 -0
- package/build/dist/Server/Utils/Monitor/Criteria/EvaluateOverTime.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/Criteria/IncomingRequestCriteria.js +16 -0
- package/build/dist/Server/Utils/Monitor/Criteria/IncomingRequestCriteria.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/Criteria/LogMonitorCriteria.js +16 -0
- package/build/dist/Server/Utils/Monitor/Criteria/LogMonitorCriteria.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/Criteria/MetricMonitorCriteria.js +16 -0
- package/build/dist/Server/Utils/Monitor/Criteria/MetricMonitorCriteria.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/Criteria/SSLMonitorCriteria.js +16 -0
- package/build/dist/Server/Utils/Monitor/Criteria/SSLMonitorCriteria.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/Criteria/ServerMonitorCriteria.js +16 -0
- package/build/dist/Server/Utils/Monitor/Criteria/ServerMonitorCriteria.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/Criteria/SyntheticMonitor.js +16 -0
- package/build/dist/Server/Utils/Monitor/Criteria/SyntheticMonitor.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/Criteria/TraceMonitorCriteria.js +16 -0
- package/build/dist/Server/Utils/Monitor/Criteria/TraceMonitorCriteria.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorAlert.js +22 -0
- package/build/dist/Server/Utils/Monitor/MonitorAlert.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorIncident.js +22 -0
- package/build/dist/Server/Utils/Monitor/MonitorIncident.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorResource.js +22 -0
- package/build/dist/Server/Utils/Monitor/MonitorResource.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorStatusTimeline.js +16 -0
- package/build/dist/Server/Utils/Monitor/MonitorStatusTimeline.js.map +1 -1
- package/build/dist/Server/Utils/Realtime.js +52 -0
- package/build/dist/Server/Utils/Realtime.js.map +1 -1
- package/build/dist/Server/Utils/Response.js +109 -0
- package/build/dist/Server/Utils/Response.js.map +1 -1
- package/build/dist/Server/Utils/Stream.js +23 -0
- package/build/dist/Server/Utils/Stream.js.map +1 -1
- package/build/dist/Server/Utils/Telemetry/CaptureSpan.js +84 -0
- package/build/dist/Server/Utils/Telemetry/CaptureSpan.js.map +1 -0
- package/build/dist/Server/Utils/Telemetry/Telemetry.js +22 -0
- package/build/dist/Server/Utils/Telemetry/Telemetry.js.map +1 -1
- package/build/dist/Server/Utils/Telemetry.js.map +1 -1
- package/build/dist/Server/Utils/TwoFactorAuth.js +40 -0
- package/build/dist/Server/Utils/TwoFactorAuth.js.map +1 -1
- package/build/dist/Server/Utils/UserPermission/UserPermission.js +30 -0
- package/build/dist/Server/Utils/UserPermission/UserPermission.js.map +1 -1
- package/build/dist/Server/Utils/VM/VMAPI.js +34 -0
- package/build/dist/Server/Utils/VM/VMAPI.js.map +1 -1
- package/build/dist/Server/Utils/VM/VMRunner.js +16 -0
- package/build/dist/Server/Utils/VM/VMRunner.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/Messages/Alert.js +16 -0
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/Messages/Alert.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/Messages/Incident.js +16 -0
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/Messages/Incident.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/Messages/ScheduledMaintenance.js +16 -0
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/Messages/ScheduledMaintenance.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/Slack/Actions/ActionTypes.js +2 -0
- package/build/dist/Server/Utils/Workspace/Slack/Actions/ActionTypes.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/Slack/Actions/Alert.js +70 -0
- package/build/dist/Server/Utils/Workspace/Slack/Actions/Alert.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/Slack/Actions/Auth.js +16 -0
- package/build/dist/Server/Utils/Workspace/Slack/Actions/Auth.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/Slack/Actions/Incident.js +82 -0
- package/build/dist/Server/Utils/Workspace/Slack/Actions/Incident.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/Slack/Actions/Monitor.js +50 -0
- package/build/dist/Server/Utils/Workspace/Slack/Actions/Monitor.js.map +1 -0
- package/build/dist/Server/Utils/Workspace/Slack/Actions/ScheduledMaintenance.js +70 -0
- package/build/dist/Server/Utils/Workspace/Slack/Actions/ScheduledMaintenance.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/Slack/Messages/Alert.js +16 -0
- package/build/dist/Server/Utils/Workspace/Slack/Messages/Alert.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/Slack/Messages/Incident.js +16 -0
- package/build/dist/Server/Utils/Workspace/Slack/Messages/Incident.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/Slack/Messages/Monitor.js +53 -0
- package/build/dist/Server/Utils/Workspace/Slack/Messages/Monitor.js.map +1 -0
- package/build/dist/Server/Utils/Workspace/Slack/Messages/ScheduledMaintenance.js +16 -0
- package/build/dist/Server/Utils/Workspace/Slack/Messages/ScheduledMaintenance.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/Slack/Slack.js +186 -2
- package/build/dist/Server/Utils/Workspace/Slack/Slack.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/Workspace.js +53 -0
- package/build/dist/Server/Utils/Workspace/Workspace.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/WorkspaceBase.js +196 -0
- package/build/dist/Server/Utils/Workspace/WorkspaceBase.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/WorkspaceMessages/Alert.js +22 -0
- package/build/dist/Server/Utils/Workspace/WorkspaceMessages/Alert.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/WorkspaceMessages/Incident.js +22 -0
- package/build/dist/Server/Utils/Workspace/WorkspaceMessages/Incident.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/WorkspaceMessages/Monitor.js +69 -0
- package/build/dist/Server/Utils/Workspace/WorkspaceMessages/Monitor.js.map +1 -0
- package/build/dist/Server/Utils/Workspace/WorkspaceMessages/ScheduledMaintenance.js +22 -0
- package/build/dist/Server/Utils/Workspace/WorkspaceMessages/ScheduledMaintenance.js.map +1 -1
- package/build/dist/Types/Permission.js +32 -0
- package/build/dist/Types/Permission.js.map +1 -1
- package/build/dist/Types/Workspace/NotificationRules/EventType.js +1 -1
- package/build/dist/Types/Workspace/NotificationRules/EventType.js.map +1 -1
- package/build/dist/Types/Workspace/NotificationRules/NotificationRuleCondition.js +7 -1
- package/build/dist/Types/Workspace/NotificationRules/NotificationRuleCondition.js.map +1 -1
- package/build/dist/Types/Workspace/NotificationRules/NotificationRuleTypes/MonitorNotificationRule.js +2 -0
- package/build/dist/Types/Workspace/NotificationRules/NotificationRuleTypes/MonitorNotificationRule.js.map +1 -0
- package/build/dist/UI/Utils/{Telemetry.js → Telemetry/Telemetry.js} +1 -1
- package/build/dist/UI/Utils/Telemetry/Telemetry.js.map +1 -0
- package/package.json +2 -2
- package/Types/Workspace/NotificationRules/NotificationRuleTypes/MonitorStatusNotificationRule.ts +0 -7
- package/build/dist/Types/Workspace/NotificationRules/NotificationRuleTypes/MonitorStatusNotificationRule.js +0 -2
- package/build/dist/Types/Workspace/NotificationRules/NotificationRuleTypes/MonitorStatusNotificationRule.js.map +0 -1
- package/build/dist/UI/Utils/Telemetry.js.map +0 -1
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
1
10
|
import { LetsEncryptAccountKey, LetsEncryptNotificationEmail, } from "../../../Server/EnvironmentConfig";
|
|
2
11
|
import AcmeCertificateService from "../../Services/AcmeCertificateService";
|
|
3
12
|
import AcmeChallengeService from "../../Services/AcmeChallengeService";
|
|
@@ -13,262 +22,239 @@ import Text from "Common/Types/Text";
|
|
|
13
22
|
import AcmeCertificate from "Common/Models/DatabaseModels/AcmeCertificate";
|
|
14
23
|
import AcmeChallenge from "Common/Models/DatabaseModels/AcmeChallenge";
|
|
15
24
|
import acme from "acme-client";
|
|
16
|
-
import
|
|
25
|
+
import CaptureSpan from "../Telemetry/CaptureSpan";
|
|
17
26
|
export default class GreenlockUtil {
|
|
18
27
|
static async renewAllCertsWhichAreExpiringSoon(data) {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
28
|
+
try {
|
|
29
|
+
logger.debug("Renewing all certificates");
|
|
30
|
+
// get all certificates which are expiring soon
|
|
31
|
+
const certificates = await AcmeCertificateService.findBy({
|
|
32
|
+
query: {
|
|
33
|
+
expiresAt: QueryHelper.lessThanEqualTo(OneUptimeDate.addRemoveDays(OneUptimeDate.getCurrentDate(), 40)),
|
|
34
|
+
},
|
|
35
|
+
limit: LIMIT_MAX,
|
|
36
|
+
skip: 0,
|
|
37
|
+
select: {
|
|
38
|
+
domain: true,
|
|
39
|
+
},
|
|
40
|
+
sort: {
|
|
41
|
+
expiresAt: SortOrder.Ascending,
|
|
42
|
+
},
|
|
43
|
+
props: {
|
|
44
|
+
isRoot: true,
|
|
45
|
+
},
|
|
46
|
+
});
|
|
47
|
+
logger.debug(`Found ${certificates.length} certificates which are expiring soon`);
|
|
48
|
+
// order certificate for each domain
|
|
49
|
+
for (const certificate of certificates) {
|
|
50
|
+
if (!certificate.domain) {
|
|
51
|
+
continue;
|
|
52
|
+
}
|
|
53
|
+
logger.debug(`Renewing certificate for domain: ${certificate.domain}`);
|
|
22
54
|
try {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
},
|
|
40
|
-
});
|
|
41
|
-
logger.debug(`Found ${certificates.length} certificates which are expiring soon`);
|
|
42
|
-
// order certificate for each domain
|
|
43
|
-
for (const certificate of certificates) {
|
|
44
|
-
if (!certificate.domain) {
|
|
45
|
-
continue;
|
|
46
|
-
}
|
|
47
|
-
logger.debug(`Renewing certificate for domain: ${certificate.domain}`);
|
|
48
|
-
try {
|
|
49
|
-
//validate cname
|
|
50
|
-
const isValidCname = await data.validateCname(certificate.domain);
|
|
51
|
-
if (!isValidCname) {
|
|
52
|
-
logger.debug(`CNAME is not valid for domain: ${certificate.domain}`);
|
|
53
|
-
// if cname is not valid then remove the domain
|
|
54
|
-
await GreenlockUtil.removeDomain(certificate.domain);
|
|
55
|
-
await data.notifyDomainRemoved(certificate.domain);
|
|
56
|
-
logger.error(`Cname is not valid for domain: ${certificate.domain}`);
|
|
57
|
-
}
|
|
58
|
-
else {
|
|
59
|
-
logger.debug(`CNAME is valid for domain: ${certificate.domain}`);
|
|
60
|
-
await GreenlockUtil.orderCert({
|
|
61
|
-
domain: certificate.domain,
|
|
62
|
-
validateCname: data.validateCname,
|
|
63
|
-
});
|
|
64
|
-
logger.debug(`Certificate renewed for domain: ${certificate.domain}`);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
catch (e) {
|
|
68
|
-
logger.error(`Error renewing certificate for domain: ${certificate.domain}`);
|
|
69
|
-
logger.error(e);
|
|
70
|
-
}
|
|
55
|
+
//validate cname
|
|
56
|
+
const isValidCname = await data.validateCname(certificate.domain);
|
|
57
|
+
if (!isValidCname) {
|
|
58
|
+
logger.debug(`CNAME is not valid for domain: ${certificate.domain}`);
|
|
59
|
+
// if cname is not valid then remove the domain
|
|
60
|
+
await GreenlockUtil.removeDomain(certificate.domain);
|
|
61
|
+
await data.notifyDomainRemoved(certificate.domain);
|
|
62
|
+
logger.error(`Cname is not valid for domain: ${certificate.domain}`);
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
logger.debug(`CNAME is valid for domain: ${certificate.domain}`);
|
|
66
|
+
await GreenlockUtil.orderCert({
|
|
67
|
+
domain: certificate.domain,
|
|
68
|
+
validateCname: data.validateCname,
|
|
69
|
+
});
|
|
70
|
+
logger.debug(`Certificate renewed for domain: ${certificate.domain}`);
|
|
71
71
|
}
|
|
72
|
-
Telemetry.endSpan(span);
|
|
73
72
|
}
|
|
74
73
|
catch (e) {
|
|
75
|
-
logger.error(
|
|
74
|
+
logger.error(`Error renewing certificate for domain: ${certificate.domain}`);
|
|
76
75
|
logger.error(e);
|
|
77
|
-
// record exception
|
|
78
|
-
Telemetry.recordExceptionMarkSpanAsErrorAndEndSpan({
|
|
79
|
-
span,
|
|
80
|
-
exception: e,
|
|
81
|
-
});
|
|
82
|
-
throw e;
|
|
83
76
|
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
catch (e) {
|
|
80
|
+
logger.error("Error renewing all certificates");
|
|
81
|
+
logger.error(e);
|
|
82
|
+
throw e;
|
|
83
|
+
}
|
|
86
84
|
}
|
|
87
85
|
static async removeDomain(domain) {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
86
|
+
try {
|
|
87
|
+
// remove certificate for this domain.
|
|
88
|
+
await AcmeCertificateService.deleteBy({
|
|
89
|
+
query: {
|
|
92
90
|
domain: domain,
|
|
93
91
|
},
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
isRoot: true,
|
|
106
|
-
},
|
|
107
|
-
});
|
|
108
|
-
Telemetry.endSpan(span);
|
|
109
|
-
}
|
|
110
|
-
catch (err) {
|
|
111
|
-
logger.error(`Error removing domain: ${domain}`);
|
|
112
|
-
Telemetry.recordExceptionMarkSpanAsErrorAndEndSpan({
|
|
113
|
-
span,
|
|
114
|
-
exception: err,
|
|
115
|
-
});
|
|
116
|
-
throw err;
|
|
117
|
-
}
|
|
118
|
-
},
|
|
119
|
-
});
|
|
92
|
+
limit: 1,
|
|
93
|
+
skip: 0,
|
|
94
|
+
props: {
|
|
95
|
+
isRoot: true,
|
|
96
|
+
},
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
catch (err) {
|
|
100
|
+
logger.error(`Error removing domain: ${domain}`);
|
|
101
|
+
throw err;
|
|
102
|
+
}
|
|
120
103
|
}
|
|
121
104
|
static async orderCert(data) {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
if (challenge.type === "http-01") {
|
|
168
|
-
logger.debug(`Creating challenge for domain: ${authz.identifier.value}`);
|
|
169
|
-
const acmeChallenge = new AcmeChallenge();
|
|
170
|
-
acmeChallenge.challenge = keyAuthorization;
|
|
171
|
-
acmeChallenge.token = challenge.token;
|
|
172
|
-
acmeChallenge.domain = authz.identifier.value;
|
|
173
|
-
await AcmeChallengeService.create({
|
|
174
|
-
data: acmeChallenge,
|
|
175
|
-
props: {
|
|
176
|
-
isRoot: true,
|
|
177
|
-
},
|
|
178
|
-
});
|
|
179
|
-
logger.debug(`Challenge created for domain: ${authz.identifier.value}`);
|
|
180
|
-
}
|
|
181
|
-
},
|
|
182
|
-
challengeRemoveFn: async (authz, challenge) => {
|
|
183
|
-
// Clean up challenge here
|
|
184
|
-
logger.debug(`Removing challenge for domain: ${authz.identifier.value}`);
|
|
185
|
-
if (challenge.type === "http-01") {
|
|
186
|
-
await AcmeChallengeService.deleteBy({
|
|
187
|
-
query: {
|
|
188
|
-
domain: authz.identifier.value,
|
|
189
|
-
},
|
|
190
|
-
limit: 1,
|
|
191
|
-
skip: 0,
|
|
192
|
-
props: {
|
|
193
|
-
isRoot: true,
|
|
194
|
-
},
|
|
195
|
-
});
|
|
196
|
-
}
|
|
197
|
-
logger.debug(`Challenge removed for domain: ${authz.identifier.value}`);
|
|
198
|
-
},
|
|
199
|
-
});
|
|
200
|
-
logger.debug(`Certificate ordered for domain: ${domain}`);
|
|
201
|
-
// get expires at date from certificate
|
|
202
|
-
const cert = acme.crypto.readCertificateInfo(certificate);
|
|
203
|
-
const issuedAt = cert.notBefore;
|
|
204
|
-
const expiresAt = cert.notAfter;
|
|
205
|
-
logger.debug(`Certificate expires at: ${expiresAt}`);
|
|
206
|
-
logger.debug(`Certificate issued at: ${issuedAt}`);
|
|
207
|
-
// check if the certificate is already in the database.
|
|
208
|
-
const existingCertificate = await AcmeCertificateService.findOneBy({
|
|
209
|
-
query: {
|
|
210
|
-
domain: domain,
|
|
211
|
-
},
|
|
212
|
-
select: {
|
|
213
|
-
_id: true,
|
|
214
|
-
},
|
|
215
|
-
props: {
|
|
216
|
-
isRoot: true,
|
|
217
|
-
},
|
|
218
|
-
});
|
|
219
|
-
if (existingCertificate) {
|
|
220
|
-
logger.debug(`Updating certificate for domain: ${domain}`);
|
|
221
|
-
// update the certificate
|
|
222
|
-
await AcmeCertificateService.updateBy({
|
|
223
|
-
query: {
|
|
224
|
-
domain: domain,
|
|
225
|
-
},
|
|
226
|
-
limit: 1,
|
|
227
|
-
skip: 0,
|
|
228
|
-
data: {
|
|
229
|
-
certificate: certificate.toString(),
|
|
230
|
-
certificateKey: certificateKey.toString(),
|
|
231
|
-
issuedAt: issuedAt,
|
|
232
|
-
expiresAt: expiresAt,
|
|
233
|
-
},
|
|
105
|
+
try {
|
|
106
|
+
logger.debug(`GreenlockUtil - Ordering certificate for domain: ${data.domain}`);
|
|
107
|
+
let { domain } = data;
|
|
108
|
+
domain = domain.trim().toLowerCase();
|
|
109
|
+
const acmeAccountKeyInBase64 = LetsEncryptAccountKey;
|
|
110
|
+
if (!acmeAccountKeyInBase64) {
|
|
111
|
+
throw new ServerException("No lets encrypt account key found in environment variables. Please add one.");
|
|
112
|
+
}
|
|
113
|
+
let acmeAccountKey = Buffer.from(acmeAccountKeyInBase64, "base64").toString();
|
|
114
|
+
acmeAccountKey = Text.replaceAll(acmeAccountKey, "\\n", "\n");
|
|
115
|
+
//validate cname
|
|
116
|
+
logger.debug(`Validating cname for domain: ${domain}`);
|
|
117
|
+
const isValidCname = await data.validateCname(domain);
|
|
118
|
+
if (!isValidCname) {
|
|
119
|
+
logger.debug(`CNAME is not valid for domain: ${domain}`);
|
|
120
|
+
logger.debug(`Removing domain: ${domain}`);
|
|
121
|
+
await GreenlockUtil.removeDomain(domain);
|
|
122
|
+
logger.error(`Cname is not valid for domain: ${domain}`);
|
|
123
|
+
throw new BadDataException("Cname is not valid for domain " + domain);
|
|
124
|
+
}
|
|
125
|
+
logger.debug(`Cname is valid for domain: ${domain}`);
|
|
126
|
+
const client = new acme.Client({
|
|
127
|
+
directoryUrl: acme.directory.letsencrypt.production,
|
|
128
|
+
accountKey: acmeAccountKey,
|
|
129
|
+
});
|
|
130
|
+
const [certificateKey, certificateRequest] = await acme.crypto.createCsr({
|
|
131
|
+
commonName: domain,
|
|
132
|
+
});
|
|
133
|
+
logger.debug(`Ordering certificate for domain: ${domain}`);
|
|
134
|
+
const certificate = await client.auto({
|
|
135
|
+
csr: certificateRequest,
|
|
136
|
+
email: LetsEncryptNotificationEmail.toString(),
|
|
137
|
+
termsOfServiceAgreed: true,
|
|
138
|
+
challengePriority: ["http-01"], // only http-01 challenge is supported by oneuptime
|
|
139
|
+
challengeCreateFn: async (authz, challenge, keyAuthorization) => {
|
|
140
|
+
// Satisfy challenge here
|
|
141
|
+
/* http-01 */
|
|
142
|
+
if (challenge.type === "http-01") {
|
|
143
|
+
logger.debug(`Creating challenge for domain: ${authz.identifier.value}`);
|
|
144
|
+
const acmeChallenge = new AcmeChallenge();
|
|
145
|
+
acmeChallenge.challenge = keyAuthorization;
|
|
146
|
+
acmeChallenge.token = challenge.token;
|
|
147
|
+
acmeChallenge.domain = authz.identifier.value;
|
|
148
|
+
await AcmeChallengeService.create({
|
|
149
|
+
data: acmeChallenge,
|
|
234
150
|
props: {
|
|
235
151
|
isRoot: true,
|
|
236
152
|
},
|
|
237
153
|
});
|
|
238
|
-
logger.debug(`
|
|
154
|
+
logger.debug(`Challenge created for domain: ${authz.identifier.value}`);
|
|
239
155
|
}
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
156
|
+
},
|
|
157
|
+
challengeRemoveFn: async (authz, challenge) => {
|
|
158
|
+
// Clean up challenge here
|
|
159
|
+
logger.debug(`Removing challenge for domain: ${authz.identifier.value}`);
|
|
160
|
+
if (challenge.type === "http-01") {
|
|
161
|
+
await AcmeChallengeService.deleteBy({
|
|
162
|
+
query: {
|
|
163
|
+
domain: authz.identifier.value,
|
|
164
|
+
},
|
|
165
|
+
limit: 1,
|
|
166
|
+
skip: 0,
|
|
251
167
|
props: {
|
|
252
168
|
isRoot: true,
|
|
253
169
|
},
|
|
254
170
|
});
|
|
255
|
-
logger.debug(`Certificate created for domain: ${domain}`);
|
|
256
171
|
}
|
|
257
|
-
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
172
|
+
logger.debug(`Challenge removed for domain: ${authz.identifier.value}`);
|
|
173
|
+
},
|
|
174
|
+
});
|
|
175
|
+
logger.debug(`Certificate ordered for domain: ${domain}`);
|
|
176
|
+
// get expires at date from certificate
|
|
177
|
+
const cert = acme.crypto.readCertificateInfo(certificate);
|
|
178
|
+
const issuedAt = cert.notBefore;
|
|
179
|
+
const expiresAt = cert.notAfter;
|
|
180
|
+
logger.debug(`Certificate expires at: ${expiresAt}`);
|
|
181
|
+
logger.debug(`Certificate issued at: ${issuedAt}`);
|
|
182
|
+
// check if the certificate is already in the database.
|
|
183
|
+
const existingCertificate = await AcmeCertificateService.findOneBy({
|
|
184
|
+
query: {
|
|
185
|
+
domain: domain,
|
|
186
|
+
},
|
|
187
|
+
select: {
|
|
188
|
+
_id: true,
|
|
189
|
+
},
|
|
190
|
+
props: {
|
|
191
|
+
isRoot: true,
|
|
192
|
+
},
|
|
193
|
+
});
|
|
194
|
+
if (existingCertificate) {
|
|
195
|
+
logger.debug(`Updating certificate for domain: ${domain}`);
|
|
196
|
+
// update the certificate
|
|
197
|
+
await AcmeCertificateService.updateBy({
|
|
198
|
+
query: {
|
|
199
|
+
domain: domain,
|
|
200
|
+
},
|
|
201
|
+
limit: 1,
|
|
202
|
+
skip: 0,
|
|
203
|
+
data: {
|
|
204
|
+
certificate: certificate.toString(),
|
|
205
|
+
certificateKey: certificateKey.toString(),
|
|
206
|
+
issuedAt: issuedAt,
|
|
207
|
+
expiresAt: expiresAt,
|
|
208
|
+
},
|
|
209
|
+
props: {
|
|
210
|
+
isRoot: true,
|
|
211
|
+
},
|
|
212
|
+
});
|
|
213
|
+
logger.debug(`Certificate updated for domain: ${domain}`);
|
|
214
|
+
}
|
|
215
|
+
else {
|
|
216
|
+
logger.debug(`Creating certificate for domain: ${domain}`);
|
|
217
|
+
// create the certificate
|
|
218
|
+
const acmeCertificate = new AcmeCertificate();
|
|
219
|
+
acmeCertificate.domain = domain;
|
|
220
|
+
acmeCertificate.certificate = certificate.toString();
|
|
221
|
+
acmeCertificate.certificateKey = certificateKey.toString();
|
|
222
|
+
acmeCertificate.issuedAt = issuedAt;
|
|
223
|
+
acmeCertificate.expiresAt = expiresAt;
|
|
224
|
+
await AcmeCertificateService.create({
|
|
225
|
+
data: acmeCertificate,
|
|
226
|
+
props: {
|
|
227
|
+
isRoot: true,
|
|
228
|
+
},
|
|
229
|
+
});
|
|
230
|
+
logger.debug(`Certificate created for domain: ${domain}`);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
catch (e) {
|
|
234
|
+
logger.error(`Error ordering certificate for domain: ${data.domain}`);
|
|
235
|
+
if (e instanceof Exception) {
|
|
236
|
+
throw e;
|
|
237
|
+
}
|
|
238
|
+
throw new ServerException(`Unable to order certificate for ${data.domain}. Please contact support at support@oneuptime.com for more information.`);
|
|
239
|
+
}
|
|
272
240
|
}
|
|
273
241
|
}
|
|
242
|
+
__decorate([
|
|
243
|
+
CaptureSpan(),
|
|
244
|
+
__metadata("design:type", Function),
|
|
245
|
+
__metadata("design:paramtypes", [Object]),
|
|
246
|
+
__metadata("design:returntype", Promise)
|
|
247
|
+
], GreenlockUtil, "renewAllCertsWhichAreExpiringSoon", null);
|
|
248
|
+
__decorate([
|
|
249
|
+
CaptureSpan(),
|
|
250
|
+
__metadata("design:type", Function),
|
|
251
|
+
__metadata("design:paramtypes", [String]),
|
|
252
|
+
__metadata("design:returntype", Promise)
|
|
253
|
+
], GreenlockUtil, "removeDomain", null);
|
|
254
|
+
__decorate([
|
|
255
|
+
CaptureSpan(),
|
|
256
|
+
__metadata("design:type", Function),
|
|
257
|
+
__metadata("design:paramtypes", [Object]),
|
|
258
|
+
__metadata("design:returntype", Promise)
|
|
259
|
+
], GreenlockUtil, "orderCert", null);
|
|
274
260
|
//# sourceMappingURL=Greenlock.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Greenlock.js","sourceRoot":"","sources":["../../../../../Server/Utils/Greenlock/Greenlock.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,4BAA4B,GAC7B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,sBAAsB,MAAM,uCAAuC,CAAC;AAC3E,OAAO,oBAAoB,MAAM,qCAAqC,CAAC;AACvE,OAAO,WAAW,MAAM,kCAAkC,CAAC;AAC3D,OAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,OAAO,S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AS,EAAE,CAAC;gBAC3B,MAAM,CAAC,CAAC;YACV,CAAC;YAED,MAAM,IAAI,eAAe,CACvB,mCAAmC,IAAI,CAAC,MAAM,yEAAyE,CACxH,CAAC;QACJ,CAAC;IACH,CAAC;CACF;AArTqB;IADnB,WAAW,EAAE;;;;4DAyFb;AAGmB;IADnB,WAAW,EAAE;;;;uCAkBb;AAGmB;IADnB,WAAW,EAAE;;;;oCAsMb"}
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
1
10
|
import { EncryptionSecret } from "../EnvironmentConfig";
|
|
2
11
|
import Email from "Common/Types/Email";
|
|
3
12
|
import BadDataException from "Common/Types/Exception/BadDataException";
|
|
@@ -7,6 +16,7 @@ import ObjectID from "Common/Types/ObjectID";
|
|
|
7
16
|
import StatusPagePrivateUser from "Common/Models/DatabaseModels/StatusPagePrivateUser";
|
|
8
17
|
import User from "Common/Models/DatabaseModels/User";
|
|
9
18
|
import jwt from "jsonwebtoken";
|
|
19
|
+
import CaptureSpan from "./Telemetry/CaptureSpan";
|
|
10
20
|
class JSONWebToken {
|
|
11
21
|
static signUserLoginToken(data) {
|
|
12
22
|
return JSONWebToken.sign({
|
|
@@ -82,5 +92,35 @@ class JSONWebToken {
|
|
|
82
92
|
}
|
|
83
93
|
}
|
|
84
94
|
}
|
|
95
|
+
__decorate([
|
|
96
|
+
CaptureSpan(),
|
|
97
|
+
__metadata("design:type", Function),
|
|
98
|
+
__metadata("design:paramtypes", [Object]),
|
|
99
|
+
__metadata("design:returntype", String)
|
|
100
|
+
], JSONWebToken, "signUserLoginToken", null);
|
|
101
|
+
__decorate([
|
|
102
|
+
CaptureSpan(),
|
|
103
|
+
__metadata("design:type", Function),
|
|
104
|
+
__metadata("design:paramtypes", [Object]),
|
|
105
|
+
__metadata("design:returntype", String)
|
|
106
|
+
], JSONWebToken, "sign", null);
|
|
107
|
+
__decorate([
|
|
108
|
+
CaptureSpan(),
|
|
109
|
+
__metadata("design:type", Function),
|
|
110
|
+
__metadata("design:paramtypes", [Object, Number]),
|
|
111
|
+
__metadata("design:returntype", String)
|
|
112
|
+
], JSONWebToken, "signJsonPayload", null);
|
|
113
|
+
__decorate([
|
|
114
|
+
CaptureSpan(),
|
|
115
|
+
__metadata("design:type", Function),
|
|
116
|
+
__metadata("design:paramtypes", [String]),
|
|
117
|
+
__metadata("design:returntype", Object)
|
|
118
|
+
], JSONWebToken, "decodeJsonPayload", null);
|
|
119
|
+
__decorate([
|
|
120
|
+
CaptureSpan(),
|
|
121
|
+
__metadata("design:type", Function),
|
|
122
|
+
__metadata("design:paramtypes", [String]),
|
|
123
|
+
__metadata("design:returntype", Object)
|
|
124
|
+
], JSONWebToken, "decode", null);
|
|
85
125
|
export default JSONWebToken;
|
|
86
126
|
//# sourceMappingURL=JsonWebToken.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JsonWebToken.js","sourceRoot":"","sources":["../../../../Server/Utils/JsonWebToken.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,KAAK,MAAM,oBAAoB,CAAC;AACvC,OAAO,gBAAgB,MAAM,yCAAyC,CAAC;AAEvE,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