@oneuptime/common 14.0.11 → 14.0.12
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/AnalyticsModels/AuditLog.ts +63 -0
- package/Models/AnalyticsModels/Log.ts +26 -3
- package/Models/AnalyticsModels/Metric.ts +28 -3
- package/Models/AnalyticsModels/MetricItemAggMV1m.ts +21 -3
- package/Models/AnalyticsModels/SloHistory.ts +6 -4
- package/Models/DatabaseModels/AutoRemediationRule.ts +1 -1
- package/Models/DatabaseModels/CodeRepository.ts +1 -1
- package/Models/DatabaseModels/Dashboard.ts +148 -0
- package/Models/DatabaseModels/DatabaseBaseModel/DatabaseBaseModel.ts +11 -0
- package/Models/DatabaseModels/DatabaseServerEndpoint.ts +1 -0
- package/Models/DatabaseModels/EnterpriseLicense.ts +2 -0
- package/Models/DatabaseModels/EnterpriseLicenseInstance.ts +1 -0
- package/Models/DatabaseModels/IncomingCallLog.ts +13 -0
- package/Models/DatabaseModels/Index.ts +6 -0
- package/Models/DatabaseModels/LlmModelPrice.ts +1 -0
- package/Models/DatabaseModels/McpOAuthClient.ts +191 -0
- package/Models/DatabaseModels/McpOAuthGrant.ts +464 -0
- package/Models/DatabaseModels/McpOAuthToken.ts +228 -0
- package/Models/DatabaseModels/Monitor.ts +157 -0
- package/Models/DatabaseModels/MonitorSecret.ts +93 -1
- package/Models/DatabaseModels/NetworkEndpoint.ts +1 -0
- package/Models/DatabaseModels/OnCallDutyPolicy.ts +155 -0
- package/Models/DatabaseModels/Project.ts +44 -101
- package/Models/DatabaseModels/StatusPage.ts +155 -0
- package/Models/DatabaseModels/TelemetrySourceMap.ts +1 -0
- package/Models/DatabaseModels/Workflow.ts +226 -7
- package/Server/API/AIAgentDataAPI.ts +1 -1
- package/Server/API/AutoRemediationAPI.ts +9 -41
- package/Server/API/CommonAPI.ts +19 -0
- package/Server/API/DashboardAPI.ts +7 -3
- package/Server/API/StatusPageAPI.ts +143 -89
- package/Server/EnvironmentConfig.ts +27 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1796800000000-FoldAiSwitchesIntoEnableAi.ts +105 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1796900000000-AddMcpOAuthTables.ts +97 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1797000000000-AddWorkflowIncomingEmailSecretKey.ts +36 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1797100000000-AddMonitorSecretAccess.ts +55 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1797200000000-AddArchiveToMoreResources.ts +167 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/Index.ts +10 -0
- package/Server/Middleware/McpDelegationAuthorization.ts +204 -0
- package/Server/Middleware/McpOAuthRateLimit.ts +287 -0
- package/Server/Middleware/ProjectAuthorization.ts +23 -2
- package/Server/Middleware/UserAuthorization.ts +12 -0
- package/Server/Services/AIService.ts +2 -2
- package/Server/Services/AnalyticsDatabaseService.ts +22 -5
- package/Server/Services/ApiKeyService.ts +31 -7
- package/Server/Services/AutoRemediationRuleEngineService.ts +15 -27
- package/Server/Services/AutoRemediationRuleService.ts +1 -1
- package/Server/Services/DashboardService.ts +7 -2
- package/Server/Services/DatabaseServerService.ts +219 -0
- package/Server/Services/DatabaseService.ts +29 -32
- package/Server/Services/InboundEmail/InboundEmailProvider.ts +44 -0
- package/Server/Services/InboundEmail/Providers/SendGridInboundProvider.ts +57 -1
- package/Server/Services/IncomingCallMissedCallNotificationService.ts +280 -0
- package/Server/Services/IncomingCallPolicyService.ts +118 -0
- package/Server/Services/Index.ts +8 -0
- package/Server/Services/KubernetesClusterAiAccessService.ts +10 -47
- package/Server/Services/KubernetesClusterService.ts +3 -3
- package/Server/Services/LogAggregationService.ts +38 -5
- package/Server/Services/McpOAuthClientService.ts +148 -0
- package/Server/Services/McpOAuthGrantService.ts +275 -0
- package/Server/Services/McpOAuthTokenService.ts +213 -0
- package/Server/Services/MetricAggregationService.ts +4 -4
- package/Server/Services/MonitorGroupService.ts +49 -28
- package/Server/Services/MonitorProbeService.ts +1 -0
- package/Server/Services/MonitorSecretService.ts +425 -0
- package/Server/Services/MonitorService.ts +15 -1
- package/Server/Services/OnCallDutyPolicyService.ts +36 -2
- package/Server/Services/ProjectService.ts +53 -24
- package/Server/Services/ResourceAiAccessService.ts +3 -14
- package/Server/Services/RunnerJobService.ts +2 -2
- package/Server/Services/RunnerService.ts +2 -2
- package/Server/Services/StatusPageService.ts +66 -8
- package/Server/Services/StatusPageSubscriberService.ts +23 -0
- package/Server/Services/TeamMemberService.ts +352 -84
- package/Server/Services/UserNotificationSettingService.ts +20 -0
- package/Server/Services/WorkflowService.ts +31 -0
- package/Server/Types/AnalyticsDatabase/ModelPermission.ts +6 -0
- package/Server/Types/Database/Permissions/Index.ts +10 -0
- package/Server/Types/Workflow/Components/BaseModel/OnTriggerBaseModel.ts +2 -0
- package/Server/Types/Workflow/Components/Conditions/IfElse.ts +36 -138
- package/Server/Types/Workflow/Components/IncomingEmail.ts +216 -0
- package/Server/Types/Workflow/Components/Index.ts +32 -18
- package/Server/Types/Workflow/Components/Schedule.ts +25 -4
- package/Server/Utils/AI/CodeFix/CodeFixReadiness.ts +1 -1
- package/Server/Utils/AI/CodeFix/CodeFixRunQueue.ts +1 -1
- package/Server/Utils/AI/CodeFix/FixRunBudget.ts +58 -50
- package/Server/Utils/AI/CodeFix/OpenPullRequestCap.ts +25 -19
- package/Server/Utils/AI/Remediation/RemediationExecutionRunner.ts +15 -68
- package/Server/Utils/AI/SRE/AlertInvestigationRunner.ts +37 -53
- package/Server/Utils/AI/SRE/FixFromIncidentTaskTrigger.ts +8 -8
- package/Server/Utils/AI/SRE/FixPerformanceTaskTrigger.ts +1 -1
- package/Server/Utils/AI/SRE/IncidentInvestigationRunner.ts +12 -19
- package/Server/Utils/AI/SRE/IncidentPostmortemRunner.ts +6 -5
- package/Server/Utils/AI/SRE/Insights/FixRouting.ts +3 -3
- package/Server/Utils/AI/SRE/Insights/InsightScanner.ts +5 -5
- package/Server/Utils/AI/SRE/Insights/Triage.ts +6 -5
- package/Server/Utils/AI/SRE/InstrumentationTaskTrigger.ts +8 -7
- package/Server/Utils/AI/SRE/InvestigationEligibility.ts +1 -1
- package/Server/Utils/AI/SRE/InvestigationQueue.ts +65 -57
- package/Server/Utils/AI/SRE/TelemetryImprovementTaskTrigger.ts +1 -1
- package/Server/Utils/AI/Toolbox/AIActionTools.ts +11 -1
- package/Server/Utils/AI/Toolbox/AIMetaTools.ts +14 -8
- package/Server/Utils/AI/Toolbox/MonitorTools.ts +21 -3
- package/Server/Utils/AI/Toolbox/OnCallTools.ts +43 -9
- package/Server/Utils/AI/Toolbox/StatusPageTools.ts +36 -7
- package/Server/Utils/AI/Toolbox/WorkflowProbeTools.ts +26 -7
- package/Server/Utils/AnalyticsDatabase/ClusterConfig.ts +3 -1
- package/Server/Utils/Express.ts +23 -0
- package/Server/Utils/IncomingCall/MissedCallNotification.ts +322 -0
- package/Server/Utils/Mcp/McpDelegationToken.ts +171 -0
- package/Server/Utils/Mcp/McpOAuthConfig.ts +191 -0
- package/Server/Utils/Mcp/McpOAuthGrantAccess.ts +303 -0
- package/Server/Utils/Mcp/McpOAuthSecret.ts +149 -0
- package/Server/Utils/Mcp/McpOAuthSignedToken.ts +225 -0
- package/Server/Utils/Mcp/McpOAuthSso.ts +274 -0
- package/Server/Utils/Monitor/MonitorPayloadRedaction.ts +43 -0
- package/Server/Utils/Monitor/MonitorResource.ts +16 -3
- package/Server/Utils/Monitor/NetworkDeviceWalkUtil.ts +5 -8
- package/Server/Utils/SessionReplay/SessionReplayBudgetMetrics.ts +3 -3
- package/Server/Utils/Slo/SloMetricUtil.ts +3 -3
- package/Server/Utils/Telemetry/DatabaseEndpointDiscovery.ts +11 -3
- package/Server/Utils/Telemetry/MessageQueueDiscovery.ts +7 -0
- package/Server/Utils/Telemetry/ServiceDependencyDiscovery.ts +171 -17
- package/Server/Utils/Workspace/MicrosoftTeams/Actions/Alert.ts +2 -0
- package/Server/Utils/Workspace/MicrosoftTeams/Actions/AlertEpisode.ts +2 -0
- package/Server/Utils/Workspace/MicrosoftTeams/Actions/Incident.ts +2 -0
- package/Server/Utils/Workspace/MicrosoftTeams/Actions/IncidentEpisode.ts +2 -0
- package/Server/Utils/Workspace/MicrosoftTeams/MicrosoftTeamsCardChoices.ts +4 -0
- package/Server/Utils/Workspace/Slack/Actions/Alert.ts +2 -0
- package/Server/Utils/Workspace/Slack/Actions/AlertEpisode.ts +2 -0
- package/Server/Utils/Workspace/Slack/Actions/Incident.ts +4 -0
- package/Server/Utils/Workspace/Slack/Actions/IncidentEpisode.ts +2 -0
- package/Tests/App/Accounts/LoginPasskey.test.tsx +27 -0
- package/Tests/App/Accounts/McpAuthorizePage.test.tsx +2034 -0
- package/Tests/App/AdvancedMenuSectionsCollapsed.test.tsx +446 -0
- package/Tests/App/Dashboard/AIFeaturesSettingsPointers.test.tsx +55 -19
- package/Tests/App/Dashboard/AIInvestigationSettingsLimits.test.tsx +451 -0
- package/Tests/App/Dashboard/AIInvestigationStage.test.ts +141 -0
- package/Tests/App/Dashboard/AiAccessModes.test.ts +261 -0
- package/Tests/App/Dashboard/AiAccessRow.test.tsx +401 -0
- package/Tests/App/Dashboard/AlertEpisodeViewFields.test.tsx +19 -6
- package/Tests/App/Dashboard/AlertsSideMenu.test.tsx +76 -33
- package/Tests/App/Dashboard/AnswerSources.test.tsx +359 -0
- package/Tests/App/Dashboard/ArchivableResourceListPages.test.tsx +655 -0
- package/Tests/App/Dashboard/ArchivedResourceBanner.test.tsx +543 -0
- package/Tests/App/Dashboard/ArchivedResourceNavigation.test.tsx +634 -0
- package/Tests/App/Dashboard/ArchivedResourceViewLayouts.test.tsx +321 -0
- package/Tests/App/Dashboard/BulkChangeStateModalSteps.test.ts +109 -0
- package/Tests/App/Dashboard/CodeProduct.test.tsx +194 -0
- package/Tests/App/Dashboard/ConversationComposer.test.tsx +439 -0
- package/Tests/App/Dashboard/CoreListEmptyStates.test.tsx +5 -3
- package/Tests/App/Dashboard/CorrelateResultSummary.test.tsx +15 -3
- package/Tests/App/Dashboard/CreateOAuthWorkflowVariableFormSteps.test.tsx +925 -0
- package/Tests/App/Dashboard/CreateOAuthWorkflowVariableModal.test.tsx +267 -20
- package/Tests/App/Dashboard/CreateWorkflowModal.test.tsx +493 -100
- package/Tests/App/Dashboard/DangerZone.test.tsx +146 -3
- package/Tests/App/Dashboard/DashboardLazyPages.test.tsx +0 -3
- package/Tests/App/Dashboard/DeleteDialogsNameTheResource.test.tsx +257 -0
- package/Tests/App/Dashboard/DeveloperDocsGuides.test.ts +458 -0
- package/Tests/App/Dashboard/DeveloperDocsLocales.test.ts +124 -0
- package/Tests/App/Dashboard/DeveloperDocsPage.test.tsx +471 -0
- package/Tests/App/Dashboard/DeveloperMenuSections.test.tsx +657 -0
- package/Tests/App/Dashboard/DisabledWarningArchived.test.tsx +196 -0
- package/Tests/App/Dashboard/DiscoveryScanEditForm.test.tsx +52 -82
- package/Tests/App/Dashboard/EnterpriseFeatureUpgrade.test.tsx +67 -0
- package/Tests/App/Dashboard/EscalationRuleReadiness.test.tsx +47 -0
- package/Tests/App/Dashboard/EventStatusPanel.test.tsx +2 -1
- package/Tests/App/Dashboard/HomeOverviewStatsFirstRun.test.tsx +19 -2
- package/Tests/App/Dashboard/IncidentAlertLinkSideMenus.test.tsx +3 -1
- package/Tests/App/Dashboard/IncidentEpisodeViewFields.test.tsx +19 -6
- package/Tests/App/Dashboard/IncidentsSideMenu.test.tsx +82 -49
- package/Tests/App/Dashboard/InventoryItemSideMenu.test.tsx +1 -0
- package/Tests/App/Dashboard/InvestigationConversation.test.tsx +1401 -43
- package/Tests/App/Dashboard/InvestigationConversationData.test.ts +452 -0
- package/Tests/App/Dashboard/InvestigationNotStarted.test.tsx +134 -1
- package/Tests/App/Dashboard/InvestigationNotice.test.tsx +300 -0
- package/Tests/App/Dashboard/InvestigationPanel.test.tsx +525 -53
- package/Tests/App/Dashboard/KubernetesClusterAiAccessSettings.test.ts +106 -30
- package/Tests/App/Dashboard/KubernetesClusterAiAgentStatus.test.ts +743 -9
- package/Tests/App/Dashboard/KubernetesClusterAiPage.test.tsx +838 -81
- package/Tests/App/Dashboard/KubernetesClusterAiPageServerParity.test.ts +958 -7
- package/Tests/App/Dashboard/McpAuthorizationResume.test.tsx +495 -0
- package/Tests/App/Dashboard/McpServerPage.test.tsx +1106 -0
- package/Tests/App/Dashboard/MessageQueueSideMenus.test.tsx +16 -4
- package/Tests/App/Dashboard/MonitorCriteriaAdvancedOptions.test.tsx +267 -0
- package/Tests/App/Dashboard/MonitorOverviewInput.test.ts +3 -0
- package/Tests/App/Dashboard/MonitorSecretsAccessForm.test.tsx +727 -0
- package/Tests/App/Dashboard/MonitorViewLayout.test.tsx +37 -0
- package/Tests/App/Dashboard/MovedRunnerSettingsRedirects.test.tsx +345 -0
- package/Tests/App/Dashboard/NavigationSearchKeywords.test.tsx +4 -1
- package/Tests/App/Dashboard/NetworkSideMenu.test.tsx +36 -4
- package/Tests/App/Dashboard/NotificationRuleFormParts.test.tsx +247 -0
- package/Tests/App/Dashboard/OAuthIdentityProviders.test.tsx +589 -0
- package/Tests/App/Dashboard/OnCallReadinessSurfaces.test.tsx +12 -1
- package/Tests/App/Dashboard/PermissionModePicker.test.tsx +316 -0
- package/Tests/App/Dashboard/ProductMenuBreadcrumbs.test.tsx +83 -39
- package/Tests/App/Dashboard/ProductOrientation.test.tsx +37 -4
- package/Tests/App/Dashboard/ProjectAISettingsPages.test.tsx +244 -76
- package/Tests/App/Dashboard/RecommendationsLoadedContext.test.tsx +57 -1
- package/Tests/App/Dashboard/ResourceAiAccessSettingsUtil.test.ts +190 -23
- package/Tests/App/Dashboard/ResourceAiAgentAttentionServerParity.test.ts +5 -11
- package/Tests/App/Dashboard/ResourceAiAgentPage.test.tsx +458 -103
- package/Tests/App/Dashboard/ResourceAiAgentStatus.test.ts +8 -4
- package/Tests/App/Dashboard/ResourceArchiveCopy.test.ts +218 -0
- package/Tests/App/Dashboard/ResourceAuditLogsSideMenus.test.tsx +16 -2
- package/Tests/App/Dashboard/RumSessionReplaySideMenu.test.tsx +1 -0
- package/Tests/App/Dashboard/RunbookRunnerRoutes.test.tsx +403 -0
- package/Tests/App/Dashboard/RunnerKubernetesAgentForm.test.tsx +26 -17
- package/Tests/App/Dashboard/RunnerNavigation.test.tsx +577 -0
- package/Tests/App/Dashboard/RunnerPagesInRunbooksFlow.test.tsx +581 -0
- package/Tests/App/Dashboard/RunnerProductSearch.test.tsx +195 -0
- package/Tests/App/Dashboard/RunnerSupersededByAiAgentNote.test.tsx +19 -6
- package/Tests/App/Dashboard/ScheduledMaintenanceSideMenu.test.tsx +2 -1
- package/Tests/App/Dashboard/SecurityEventSeverityPill.test.tsx +39 -15
- package/Tests/App/Dashboard/SloListSideMenu.test.tsx +2 -1
- package/Tests/App/Dashboard/SloNavigationWiring.test.tsx +20 -1
- package/Tests/App/Dashboard/SloViewSideMenu.test.tsx +14 -2
- package/Tests/App/Dashboard/TelemetryIngestionKeyEdit.test.tsx +107 -13
- package/Tests/App/Dashboard/UserElementEmail.test.tsx +50 -0
- package/Tests/App/Dashboard/UserSettingsEmailPreferences.test.tsx +42 -8
- package/Tests/App/Dashboard/UserSettingsNotificationSettings.test.tsx +51 -1
- package/Tests/App/Dashboard/WorkflowBuilderArchived.test.tsx +490 -0
- package/Tests/App/Dashboard/WorkflowBuilderIncomingEmailSecretKey.test.tsx +436 -0
- package/Tests/App/Dashboard/WorkflowBuilderRunDownload.test.tsx +416 -0
- package/Tests/App/Dashboard/WorkflowBuilderTurnOn.test.tsx +828 -0
- package/Tests/App/Dashboard/WorkflowBuilderWebhookSecretKey.test.tsx +499 -0
- package/Tests/App/Dashboard/WorkflowRunsLogsMenus.test.tsx +758 -0
- package/Tests/App/Dashboard/WorkflowRunsPages.test.tsx +507 -0
- package/Tests/App/Dashboard/WorkflowSettingsPage.test.tsx +172 -0
- package/Tests/App/Dashboard/WorkflowTemplatePicker.test.tsx +1425 -0
- package/Tests/App/Dashboard/WorkflowVariableCreateFormSteps.test.tsx +473 -0
- package/Tests/App/Dashboard/WorkflowVariableOAuthSettingsEditSteps.test.tsx +390 -0
- package/Tests/App/Dashboard/WorkflowVariableUtil.test.ts +357 -30
- package/Tests/App/Dashboard/WorkflowVariableView.test.tsx +49 -0
- package/Tests/App/Dashboard/WorkflowVariablesTable.test.tsx +72 -2
- package/Tests/App/Dashboard/WorkspaceNotificationRuleFormSteps.test.tsx +499 -0
- package/Tests/App/StatusPage/StatusPageResourceExplorer.test.tsx +31 -0
- package/Tests/DialogActionRules.ts +1696 -0
- package/Tests/Helpers/FormStepsScan.ts +1917 -0
- package/Tests/Helpers/ToggleUsageScan.ts +302 -0
- package/Tests/Models/AnalyticsModels/TelemetryTtlSettings.test.ts +164 -0
- package/Tests/Models/DatabaseModels/ArchivableResourceModels.test.ts +475 -0
- package/Tests/Models/DatabaseModels/IncomingCallLogWorkflow.test.ts +130 -0
- package/Tests/Models/DatabaseModels/PermissionCatalogueCoverage.test.ts +0 -1
- package/Tests/Models/DatabaseModels/WorkflowIncomingEmailSecretKeyAccessControl.test.ts +252 -0
- package/Tests/Models/DatabaseModels/WorkflowWebhookSecretKeyAccessControl.test.ts +223 -0
- package/Tests/Models/McpOAuthModels.test.ts +951 -0
- package/Tests/Server/API/AIInvestigationAPI.test.ts +6 -4
- package/Tests/Server/API/ArchivedPublicRoutes.test.ts +481 -0
- package/Tests/Server/API/AutoRemediationApproveClusterRound.test.ts +144 -105
- package/Tests/Server/API/AutoRemediationApproveEnableAiGate.test.ts +816 -0
- package/Tests/Server/API/AutoRemediationApproveKubectlRecheck.test.ts +37 -5
- package/Tests/Server/API/AutoRemediationApproveResourceRound.test.ts +68 -57
- package/Tests/Server/API/CommonAPIAuditIdentityProps.test.ts +468 -0
- package/Tests/Server/API/ResourceAiAccessAPI.test.ts +0 -4
- package/Tests/Server/API/StatusPagePublicReadsLeaveOutArchivedMonitors.test.ts +126 -0
- package/Tests/Server/Infrastructure/Postgres/AddArchiveToMoreResourcesMigration.test.ts +200 -0
- package/Tests/Server/Infrastructure/Postgres/FoldAiSwitchesIntoEnableAiMigration.test.ts +543 -0
- package/Tests/Server/Infrastructure/Postgres/FoldAiSwitchesIntoEnableAiPostgres.test.ts +862 -0
- package/Tests/Server/Middleware/McpDelegationAuthorization.test.ts +862 -0
- package/Tests/Server/Middleware/McpOAuthRateLimit.test.ts +959 -0
- package/Tests/Server/Middleware/ProjectAuthorizationApiKeyIdentity.test.ts +361 -0
- package/Tests/Server/Middleware/UserAuthorizationMcpDelegation.test.ts +568 -0
- package/Tests/Server/Services/AIServiceDailyBudget.test.ts +60 -0
- package/Tests/Server/Services/AddMcpOAuthTablesMigration.test.ts +616 -0
- package/Tests/Server/Services/AiAccessEnableAiMasterSwitch.test.ts +761 -0
- package/Tests/Server/Services/AnalyticsDatabaseServiceReadOnlyCredentialBeforeHooks.test.ts +224 -0
- package/Tests/Server/Services/ApiKeyServiceResolvedName.test.ts +307 -0
- package/Tests/Server/Services/ArchivedStatusPageAndDashboardAccess.test.ts +505 -0
- package/Tests/Server/Services/AutoRemediationClusterRuleEngine.test.ts +61 -4
- package/Tests/Server/Services/AutoRemediationCommandRuleEngine.test.ts +64 -13
- package/Tests/Server/Services/AutoRemediationEnableAiMasterSwitch.test.ts +767 -0
- package/Tests/Server/Services/AutoRemediationResourceRuleEngine.test.ts +47 -8
- package/Tests/Server/Services/AutoRemediationRuleCommandRunners.test.ts +1 -1
- package/Tests/Server/Services/AutoRemediationRuleEngineService.test.ts +48 -6
- package/Tests/Server/Services/DatabaseServerService.test.ts +420 -0
- package/Tests/Server/Services/DatabaseServerSqlPostgres.test.ts +296 -2
- package/Tests/Server/Services/DatabaseServiceReadOnlyCredentialBeforeHooks.test.ts +396 -0
- package/Tests/Server/Services/InboundEmail/SendGridInboundProviderRecipients.test.ts +172 -0
- package/Tests/Server/Services/IncomingCallMissedCallNotificationService.test.ts +690 -0
- package/Tests/Server/Services/IncomingCallPolicyFindOwners.test.ts +287 -0
- package/Tests/Server/Services/InstrumentationTaskTrigger.test.ts +4 -3
- package/Tests/Server/Services/KubernetesClusterAiAccessAgentRunnerAssignments.test.ts +1 -1
- package/Tests/Server/Services/KubernetesClusterAiAccessDeletedRunnerRemedy.test.ts +2 -4
- package/Tests/Server/Services/KubernetesClusterAiAccessGapNextSteps.test.ts +26 -13
- package/Tests/Server/Services/KubernetesClusterAiAccessService.test.ts +180 -44
- package/Tests/Server/Services/KubernetesClusterAiAccessTarget.test.ts +14 -10
- package/Tests/Server/Services/LogAggregationService.test.ts +101 -1
- package/Tests/Server/Services/McpOAuthClientService.test.ts +562 -0
- package/Tests/Server/Services/McpOAuthGrantService.test.ts +899 -0
- package/Tests/Server/Services/McpOAuthPostgres.test.ts +942 -0
- package/Tests/Server/Services/McpOAuthTokenService.test.ts +782 -0
- package/Tests/Server/Services/MonitorGroupServiceBatchedStatuses.test.ts +35 -1
- package/Tests/Server/Services/MonitorPayAsYouGoBilling.test.ts +35 -0
- package/Tests/Server/Services/MonitorSecretAccessPostgres.test.ts +883 -0
- package/Tests/Server/Services/MonitorSecretService.test.ts +1097 -0
- package/Tests/Server/Services/OnCallDutyPolicyArchive.test.ts +157 -0
- package/Tests/Server/Services/ProjectServiceNewProjectAiDefaults.test.ts +132 -82
- package/Tests/Server/Services/ResourceAiAccessService.test.ts +28 -14
- package/Tests/Server/Services/RunnerJobEnqueueKubectlAiAgent.test.ts +0 -2
- package/Tests/Server/Services/ScimPushGroupsTeamLocksEdition.test.ts +5 -0
- package/Tests/Server/Services/TeamMemberAutoAcceptInvitation.test.ts +13 -1
- package/Tests/Server/Services/TeamMemberInvitationAcceptancePostgres.test.ts +942 -0
- package/Tests/Server/Services/TeamMemberInviteRegistrationToken.test.ts +6 -1
- package/Tests/Server/Services/TeamMemberProjectInvitationAcceptance.test.ts +1256 -0
- package/Tests/Server/Services/TeamMemberSeatLimitExistingMember.test.ts +498 -0
- package/Tests/Server/Services/UserNotificationSettingIncomingCallDefaults.test.ts +190 -0
- package/Tests/Server/Services/WorkflowIncomingEmailSecretKeyPostgres.test.ts +323 -0
- package/Tests/Server/Services/WorkflowService.test.ts +188 -0
- package/Tests/Server/Types/Workflow/Components/CustomCodeScriptError.test.ts +19 -20
- package/Tests/Server/Types/Workflow/Components/IfElse.test.ts +357 -66
- package/Tests/Server/Types/Workflow/Components/IncomingEmailTrigger.test.ts +670 -0
- package/Tests/Server/Types/Workflow/Components/TriggersSkipArchivedWorkflows.test.ts +257 -0
- package/Tests/Server/Utils/AI/AIAlertGating.test.ts +317 -184
- package/Tests/Server/Utils/AI/AIIncidentGating.test.ts +47 -23
- package/Tests/Server/Utils/AI/AIInvestigationQueue.test.ts +142 -12
- package/Tests/Server/Utils/AI/AIMetaTools.test.ts +31 -0
- package/Tests/Server/Utils/AI/AlertMonitorFilters.test.ts +2 -0
- package/Tests/Server/Utils/AI/ArchivedResourcesInAITools.test.ts +622 -0
- package/Tests/Server/Utils/AI/CodeWriteTools.test.ts +30 -1
- package/Tests/Server/Utils/AI/FixFromIncidentAutoTrigger.test.ts +5 -4
- package/Tests/Server/Utils/AI/FixRunBudget.test.ts +202 -98
- package/Tests/Server/Utils/AI/Insights/InsightFixRouting.test.ts +1 -1
- package/Tests/Server/Utils/AI/Insights/InsightTriage.test.ts +1 -1
- package/Tests/Server/Utils/AI/Insights/InvestigationQueueInsightSubject.test.ts +102 -58
- package/Tests/Server/Utils/AI/InvestigationEligibility.test.ts +24 -0
- package/Tests/Server/Utils/AI/InvestigationQueueRemediationExecution.test.ts +41 -5
- package/Tests/Server/Utils/AI/OpenPullRequestCap.test.ts +62 -22
- package/Tests/Server/Utils/AI/RemediationCommandToolsLiveCluster.test.ts +14 -10
- package/Tests/Server/Utils/AI/RemediationExecutionRunner.test.ts +205 -104
- package/Tests/Server/Utils/AI/RemediationExecutionRunnerEnableAiGate.test.ts +598 -0
- package/Tests/Server/Utils/AI/RemediationExecutionRunnerProjectGates.test.ts +94 -158
- package/Tests/Server/Utils/AI/RemediationExecutionRunnerResourceMode.test.ts +48 -66
- package/Tests/Server/Utils/AI/ResourceAccess/ResourceAccessContext.test.ts +0 -4
- package/Tests/Server/Utils/AnalyticsDatabase/ClusterAwareSchema.test.ts +8 -1
- package/Tests/Server/Utils/IncomingCall/MissedCallNotification.test.ts +555 -0
- package/Tests/Server/Utils/Mcp/McpDelegationToken.test.ts +677 -0
- package/Tests/Server/Utils/Mcp/McpOAuthConfig.test.ts +549 -0
- package/Tests/Server/Utils/Mcp/McpOAuthGrantAccess.test.ts +1476 -0
- package/Tests/Server/Utils/Mcp/McpOAuthSecret.test.ts +721 -0
- package/Tests/Server/Utils/Mcp/McpOAuthSignedToken.test.ts +1042 -0
- package/Tests/Server/Utils/Mcp/McpOAuthSso.test.ts +1399 -0
- package/Tests/Server/Utils/Monitor/GeneratedInboundAddressRedaction.test.ts +109 -0
- package/Tests/Server/Utils/Monitor/MonitorPauseFlagsGuard.test.ts +237 -0
- package/Tests/Server/Utils/Monitor/MonitorResourceArchived.test.ts +165 -0
- package/Tests/Server/Utils/Telemetry/DatabaseEndpointDiscovery.test.ts +262 -0
- package/Tests/Server/Utils/Telemetry/ServiceDependencyDiscovery.test.ts +976 -77
- package/Tests/Server/Utils/Topology/TopologyConcurrencyLimiter.test.ts +94 -39
- package/Tests/Server/Utils/Workspace/ArchivedOnCallPoliciesNotOffered.test.ts +133 -0
- package/Tests/Server/Utils/Workspace/MicrosoftTeams/MicrosoftTeamsCardChoices.test.ts +10 -3
- package/Tests/Types/AI/AIWorkloadLimits.test.ts +101 -0
- package/Tests/Types/BaseDatabase/ReadOnlyCredential.test.ts +931 -0
- package/Tests/Types/Call/CallProvider.test.ts +54 -1
- package/Tests/Types/DatabaseServer/DatabaseEndpoint.test.ts +227 -1
- package/Tests/Types/IncomingCall/MissedIncomingCall.test.ts +137 -0
- package/Tests/Types/Kubernetes/KubernetesAiAgentAccessContract.test.ts +23 -0
- package/Tests/Types/Mcp/McpOAuthScope.test.ts +491 -0
- package/Tests/Types/Monitor/MonitorSecretAccess.test.ts +347 -0
- package/Tests/Types/NotificationSetting/IncomingCallMissedNotificationEvent.test.ts +77 -0
- package/Tests/Types/NotificationSetting/NotificationEmailRollupPolicy.test.ts +5 -5
- package/Tests/Types/Workflow/BaseModelComponents.test.ts +56 -50
- package/Tests/Types/Workflow/ComponentDocumentation.test.ts +1396 -0
- package/Tests/Types/Workflow/Components/BaseModelWriteSteps.test.ts +158 -0
- package/Tests/Types/Workflow/Components/JSON.test.ts +6 -2
- package/Tests/Types/Workflow/ConditionEvaluation.test.ts +793 -0
- package/Tests/Types/Workflow/DocumentationText.test.ts +169 -0
- package/Tests/Types/Workflow/IncomingEmailTrigger.test.ts +446 -0
- package/Tests/Types/Workflow/IncomingEmailTriggerDocumentation.test.ts +174 -0
- package/Tests/Types/Workflow/StepSamples.test.ts +846 -0
- package/Tests/Types/Workflow/StepTrace.test.ts +128 -0
- package/Tests/Types/Workflow/StepTraceValueSample.test.ts +205 -0
- package/Tests/Types/Workflow/SystemColumns.test.ts +114 -0
- package/Tests/Types/Workflow/Templates.test.ts +345 -0
- package/Tests/Types/Workflow/WebhookTrigger.test.ts +221 -0
- package/Tests/Types/Workflow/WorkflowEnabled.test.ts +107 -0
- package/Tests/Types/Workspace/NotificationRuleValidationHalves.test.ts +217 -0
- package/Tests/UI/Components/ActionButton/RowActionsTrigger.test.tsx +748 -0
- package/Tests/UI/Components/BasicFormModalSteps.test.tsx +113 -0
- package/Tests/UI/Components/BulkUpdateFormConfirmDetails.test.tsx +148 -0
- package/Tests/UI/Components/Button.test.tsx +52 -13
- package/Tests/UI/Components/Card.test.tsx +211 -2
- package/Tests/UI/Components/CodeEditor/CodeEditorToolbarActions.test.tsx +121 -0
- package/Tests/UI/Components/CollapsibleSection.test.tsx +152 -0
- package/Tests/UI/Components/ComponentsModal.test.tsx +555 -930
- package/Tests/UI/Components/ComponentsModalUsability.test.tsx +279 -401
- package/Tests/UI/Components/ConfirmModal.test.tsx +195 -0
- package/Tests/UI/Components/DeleteConfirmation/DeleteConfirmation.test.tsx +524 -0
- package/Tests/UI/Components/Detail/DropdownColors.test.tsx +11 -9
- package/Tests/UI/Components/Detail/EntityFields.test.tsx +10 -4
- package/Tests/UI/Components/DictionaryRenderTextValueInput.test.tsx +94 -0
- package/Tests/UI/Components/Dropdown/DropdownValueBadge.test.tsx +79 -10
- package/Tests/UI/Components/Forms/BasicFormSubmitAllSteps.test.tsx +293 -0
- package/Tests/UI/Components/Forms/FormFieldCheckboxTranslation.test.tsx +14 -12
- package/Tests/UI/Components/Forms/FormFieldCustomElementLabel.test.tsx +156 -0
- package/Tests/UI/Components/Forms/FormFieldDictionaryError.test.tsx +198 -0
- package/Tests/UI/Components/Forms/FormFieldLongText.test.tsx +200 -0
- package/Tests/UI/Components/Forms/FormFieldToggleRow.test.tsx +388 -0
- package/Tests/UI/Components/Forms/LongFormStepsGuard.test.ts +586 -0
- package/Tests/UI/Components/Forms/ModelFormFormOnlyFields.test.tsx +254 -0
- package/Tests/UI/Components/Forms/OverloadedFormStepsGuard.test.ts +505 -0
- package/Tests/UI/Components/Forms/ValidationRequiredWhen.test.ts +122 -0
- package/Tests/UI/Components/Icon.test.tsx +43 -0
- package/Tests/UI/Components/Modal.test.tsx +495 -1
- package/Tests/UI/Components/ModalSecondaryButton.test.tsx +122 -0
- package/Tests/UI/Components/ModelCardPermissionGating.test.tsx +13 -9
- package/Tests/UI/Components/ModelDelete.test.tsx +7 -0
- package/Tests/UI/Components/ModelDeleteNames.test.tsx +784 -0
- package/Tests/UI/Components/ModelTable/BaseModelTableDeleteAndEmptyStates.test.tsx +9 -2
- package/Tests/UI/Components/ModelTable/BaseModelTableDeleteConfirmation.test.tsx +4 -1
- package/Tests/UI/Components/ModelTable/BaseModelTableDeleteNames.test.tsx +573 -0
- package/Tests/UI/Components/ModelTable/BaseModelTableEmptyStateAction.test.tsx +30 -9
- package/Tests/UI/Components/ModelTable/BaseModelTableRowActions.test.tsx +6 -3
- package/Tests/UI/Components/ModelTable/CustomFieldColumns.test.tsx +20 -14
- package/Tests/UI/Components/NavBar.test.tsx +45 -0
- package/Tests/UI/Components/Pill.test.tsx +369 -50
- package/Tests/UI/Components/PillColors.test.ts +524 -0
- package/Tests/UI/Components/SideMenu.test.tsx +461 -0
- package/Tests/UI/Components/SideMenuSection.test.tsx +200 -0
- package/Tests/UI/Components/SideMenuSectionState.test.tsx +362 -0
- package/Tests/UI/Components/SteppedEditFormSave.test.tsx +499 -0
- package/Tests/UI/Components/TableRowActions.test.tsx +110 -0
- package/Tests/UI/Components/TextAreaAutoGrow.test.tsx +387 -0
- package/Tests/UI/Components/Toggle.test.tsx +846 -6
- package/Tests/UI/Components/ToggleUsageGuard.test.ts +274 -0
- package/Tests/UI/Components/Workflow/ArgumentInputTypes.test.ts +710 -0
- package/Tests/UI/Components/Workflow/ArgumentsForm.test.tsx +934 -0
- package/Tests/UI/Components/Workflow/ArgumentsFormAdvancedSettings.test.tsx +207 -0
- package/Tests/UI/Components/Workflow/BreakableCode.test.tsx +153 -0
- package/Tests/UI/Components/Workflow/ColumnEditor/AddColumnPicker.test.tsx +685 -0
- package/Tests/UI/Components/Workflow/ColumnEditor/AddColumnPickerDarkMode.test.ts +252 -0
- package/Tests/UI/Components/Workflow/ColumnEditor/ColumnControl.test.ts +207 -5
- package/Tests/UI/Components/Workflow/ColumnEditor/ColumnPickerOptions.test.ts +570 -0
- package/Tests/UI/Components/Workflow/ColumnEditor/ColumnUse.test.ts +248 -0
- package/Tests/UI/Components/Workflow/ColumnEditor/ColumnValueInputLongText.test.tsx +90 -0
- package/Tests/UI/Components/Workflow/ColumnEditor/ColumnValueInputValuePicker.test.tsx +282 -0
- package/Tests/UI/Components/Workflow/Component.test.tsx +465 -0
- package/Tests/UI/Components/Workflow/ComponentPicker/ComponentPickerDarkMode.test.ts +239 -0
- package/Tests/UI/Components/Workflow/ComponentPicker/ComponentPickerRealCatalog.test.tsx +399 -0
- package/Tests/UI/Components/Workflow/ComponentPicker/ComponentSearch.test.ts +660 -0
- package/Tests/UI/Components/Workflow/ComponentPicker/PickerCatalog.test.ts +352 -0
- package/Tests/UI/Components/Workflow/ComponentPicker/PickerFixtures.ts +240 -0
- package/Tests/UI/Components/Workflow/ComponentPortViewer.test.tsx +91 -0
- package/Tests/UI/Components/Workflow/ComponentReturnValueViewer.test.tsx +248 -0
- package/Tests/UI/Components/Workflow/ComponentSettingsDeleteConfirmation.test.tsx +245 -0
- package/Tests/UI/Components/Workflow/ComponentSettingsModal.test.tsx +1033 -0
- package/Tests/UI/Components/Workflow/ComponentSettingsModalDarkMode.test.ts +276 -0
- package/Tests/UI/Components/Workflow/ComponentSettingsModalDocumentation.test.tsx +478 -0
- package/Tests/UI/Components/Workflow/ComponentSettingsModalIncomingEmail.test.tsx +606 -0
- package/Tests/UI/Components/Workflow/ComponentSettingsModalLayout.test.tsx +478 -0
- package/Tests/UI/Components/Workflow/ComponentSettingsModalStepSamples.test.tsx +343 -0
- package/Tests/UI/Components/Workflow/ComponentSettingsModalValidity.test.tsx +223 -0
- package/Tests/UI/Components/Workflow/ComponentSettingsRunStepConfirmation.test.tsx +286 -0
- package/Tests/UI/Components/Workflow/Condition/ConditionCanvasCard.test.tsx +208 -0
- package/Tests/UI/Components/Workflow/Condition/ConditionEditor.test.tsx +906 -0
- package/Tests/UI/Components/Workflow/Condition/ConditionGraphLint.test.ts +204 -0
- package/Tests/UI/Components/Workflow/Condition/ConditionModel.test.ts +986 -0
- package/Tests/UI/Components/Workflow/CronScheduleFieldVariable.test.tsx +115 -0
- package/Tests/UI/Components/Workflow/DocumentationViewer.test.tsx +592 -0
- package/Tests/UI/Components/Workflow/GraphLintSummary.test.ts +467 -0
- package/Tests/UI/Components/Workflow/IncomingEmailTriggerPanel.test.tsx +865 -0
- package/Tests/UI/Components/Workflow/IncomingEmailTriggerPanelI18n.test.ts +164 -0
- package/Tests/UI/Components/Workflow/ModelColumnEditor.render.test.tsx +35 -19
- package/Tests/UI/Components/Workflow/ModelColumnEditorFieldLists.render.test.tsx +660 -0
- package/Tests/UI/Components/Workflow/ModelFieldPicker.test.tsx +230 -0
- package/Tests/UI/Components/Workflow/NodePlacement.test.ts +379 -1
- package/Tests/UI/Components/Workflow/StepTracePresentation.test.ts +705 -0
- package/Tests/UI/Components/Workflow/StepTraceViewer.test.tsx +1039 -35
- package/Tests/UI/Components/Workflow/StepTraceViewerDarkMode.test.ts +275 -0
- package/Tests/UI/Components/Workflow/UseRunWatch.test.tsx +131 -0
- package/Tests/UI/Components/Workflow/UseWorkflowEnabled.test.tsx +612 -0
- package/Tests/UI/Components/Workflow/ValuePicker/ArgumentControl.test.ts +80 -0
- package/Tests/UI/Components/Workflow/ValuePicker/InsertValueButton.test.tsx +114 -0
- package/Tests/UI/Components/Workflow/ValuePicker/NoPickThisValueLinks.test.ts +111 -0
- package/Tests/UI/Components/Workflow/ValuePicker/ReferenceDescription.test.ts +257 -0
- package/Tests/UI/Components/Workflow/ValuePicker/StepGraph.test.ts +271 -0
- package/Tests/UI/Components/Workflow/ValuePicker/StepSampleSource.test.ts +763 -0
- package/Tests/UI/Components/Workflow/ValuePicker/StepSampleSourceIncomingEmail.test.ts +234 -0
- package/Tests/UI/Components/Workflow/ValuePicker/StepValueSource.test.ts +366 -0
- package/Tests/UI/Components/Workflow/ValuePicker/TemplateText.test.ts +256 -0
- package/Tests/UI/Components/Workflow/ValuePicker/TemplateTextDom.test.ts +264 -0
- package/Tests/UI/Components/Workflow/ValuePicker/TemplateTextEditor.test.tsx +740 -0
- package/Tests/UI/Components/Workflow/ValuePicker/TemplateTextHistory.test.ts +139 -0
- package/Tests/UI/Components/Workflow/ValuePicker/ValuePickerContext.test.tsx +473 -0
- package/Tests/UI/Components/Workflow/ValuePicker/ValuePickerContextRefresh.test.tsx +444 -0
- package/Tests/UI/Components/Workflow/ValuePicker/ValuePickerDarkMode.test.ts +231 -0
- package/Tests/UI/Components/Workflow/ValuePicker/ValuePickerMenu.test.tsx +612 -0
- package/Tests/UI/Components/Workflow/ValuePicker/ValuePickerMenuSamples.test.tsx +784 -0
- package/Tests/UI/Components/Workflow/ValuePicker/ValuePickerPopupPosition.test.ts +113 -0
- package/Tests/UI/Components/Workflow/ValuePicker/ValuePickerTestUtils.tsx +171 -0
- package/Tests/UI/Components/Workflow/ValuePicker/ValueSingleField.test.tsx +350 -0
- package/Tests/UI/Components/Workflow/ValuePicker/ValueSuggestion.test.ts +377 -0
- package/Tests/UI/Components/Workflow/ValuePicker/ValueSuggestionSamples.test.ts +357 -0
- package/Tests/UI/Components/Workflow/ValuePicker/ValueTextField.test.tsx +430 -0
- package/Tests/UI/Components/Workflow/ValuePicker/VariableValueSource.test.ts +101 -0
- package/Tests/UI/Components/Workflow/WebhookTriggerPanel.test.tsx +833 -0
- package/Tests/UI/Components/Workflow/WebhookTriggerPanelI18n.test.ts +193 -0
- package/Tests/UI/Components/Workflow/Workflow.test.tsx +716 -86
- package/Tests/UI/Components/Workflow/WorkflowEnabledDarkMode.test.ts +178 -0
- package/Tests/UI/Components/Workflow/WorkflowEnabledI18n.test.tsx +319 -0
- package/Tests/UI/Components/Workflow/WorkflowEnabledSwitch.test.tsx +144 -0
- package/Tests/UI/Components/Workflow/WorkflowIncomingEmailSecretKey.test.ts +393 -0
- package/Tests/UI/Components/Workflow/WorkflowLogModal.test.tsx +598 -1
- package/Tests/UI/Components/Workflow/WorkflowRunExport.test.ts +750 -0
- package/Tests/UI/Components/Workflow/WorkflowRunExportActions.test.tsx +556 -0
- package/Tests/UI/Components/Workflow/WorkflowRunExportI18n.test.ts +200 -0
- package/Tests/UI/Components/Workflow/WorkflowStatusLabel.test.tsx +75 -0
- package/Tests/UI/Components/Workflow/WorkflowTurnOnModal.test.tsx +256 -0
- package/Tests/UI/Components/Workflow/WorkflowTurnedOffNotice.test.tsx +99 -0
- package/Tests/UI/Components/Workflow/WorkflowWebhookSecretKey.test.ts +422 -0
- package/Tests/UI/DeleteConfirmationNamesGuard.test.ts +643 -0
- package/Tests/UI/DialogActionRules.test.ts +716 -0
- package/Tests/UI/DialogPrimaryActionGuard.test.ts +528 -0
- package/Tests/UI/Styles/PillDarkTheme.test.tsx +177 -0
- package/Tests/UI/Styles/ToggleTheme.test.ts +685 -0
- package/Tests/UI/Utils/Breadcrumb/fixtures/RealBreadcrumbTrails.ts +17 -2
- package/Tests/UI/Utils/Breadcrumb/fixtures/RealRoutePatterns.ts +3 -2
- package/Tests/UI/Utils/McpOAuthPendingAuthorization.test.ts +825 -0
- package/Tests/UI/Utils/McpOAuthPendingAuthorizationHttps.test.ts +88 -0
- package/Tests/UI/Utils/ModelDisplayName.test.ts +450 -0
- package/Tests/UI/Utils/TranslateTemplate.test.ts +149 -0
- package/Tests/Utils/AiRemediation/KubectlWriteScopeParityCases.ts +1 -1
- package/Tests/Utils/DeveloperDocs/AiAssistantExamples.test.ts +228 -0
- package/Tests/Utils/DeveloperDocs/ApiExamples.test.ts +252 -0
- package/Tests/Utils/DeveloperDocs/Hcl.test.ts +358 -0
- package/Tests/Utils/DeveloperDocs/HclTestValue.ts +56 -0
- package/Tests/Utils/DeveloperDocs/TerraformConfig.test.ts +590 -0
- package/Tests/Utils/DeveloperDocs/TerraformMonitorSteps.test.ts +608 -0
- package/Tests/Utils/DeveloperDocs/TerraformProviderSchemaContract.test.ts +250 -0
- package/Tests/Utils/DeveloperDocs/TerraformSchema.test.ts +284 -0
- package/Tests/Utils/Email/EmailAddressList.test.ts +149 -0
- package/Tests/Utils/Monitor/IncomingEmailMonitorAddress.test.ts +131 -0
- package/Tests/Utils/Monitor/MonitorOverviewArchived.test.ts +266 -0
- package/Tests/Utils/Monitor/MonitorPauseState.test.ts +143 -0
- package/Tests/Utils/Rum/SessionIdentity.test.ts +146 -0
- package/Tests/Utils/StatusPage/ArchivedMonitorResources.test.ts +99 -0
- package/Types/AI/AIRunType.ts +7 -6
- package/Types/AI/AIWorkloadLimits.ts +82 -0
- package/Types/AnalyticsDatabase/AnalyticsTableName.ts +2 -2
- package/Types/AnalyticsDatabase/RetentionTtl.ts +57 -0
- package/Types/BaseDatabase/DatabaseCommonInteractionProps.ts +21 -0
- package/Types/BaseDatabase/DatabaseCommonInteractionPropsUtil.ts +24 -0
- package/Types/BaseDatabase/EnableWorkflowOn.ts +8 -0
- package/Types/Call/CallProvider.ts +7 -0
- package/Types/Database/TableMetadata.ts +10 -0
- package/Types/DatabaseServer/DatabaseEndpoint.ts +43 -0
- package/Types/Email/EmailTemplateType.ts +2 -0
- package/Types/Exception/ExceptionMessages.ts +1 -0
- package/Types/IncomingCall/MissedIncomingCall.ts +72 -0
- package/Types/Kubernetes/KubernetesClusterAiAccess.ts +5 -0
- package/Types/Mcp/McpOAuthClientAuthMethod.ts +17 -0
- package/Types/Mcp/McpOAuthScope.ts +180 -0
- package/Types/Mcp/McpOAuthTicket.ts +21 -0
- package/Types/Mcp/McpOAuthTokenType.ts +18 -0
- package/Types/Monitor/MonitorSecretAccess.ts +185 -0
- package/Types/NotificationSetting/NotificationEmailRollupCategory.ts +13 -2
- package/Types/NotificationSetting/NotificationEmailRollupPolicy.ts +1 -1
- package/Types/NotificationSetting/NotificationSettingEventType.ts +3 -0
- package/Types/OnCallDutyPolicy/OnCallDutyPolicyArchive.ts +19 -0
- package/Types/Permission.ts +44 -0
- package/Types/ResourceAiAgent/ResourceAiAccess.ts +7 -2
- package/Types/StatusPage/StatusPageArchive.ts +20 -0
- package/Types/Workflow/Component.ts +61 -2
- package/Types/Workflow/ComponentID.ts +1 -0
- package/Types/Workflow/Components/AI.ts +2 -4
- package/Types/Workflow/Components/API.ts +46 -26
- package/Types/Workflow/Components/BaseModel.ts +28 -37
- package/Types/Workflow/Components/Condition.ts +82 -30
- package/Types/Workflow/Components/ConditionComparison.ts +348 -0
- package/Types/Workflow/Components/ConditionEvaluation.ts +438 -0
- package/Types/Workflow/Components/Email.ts +1 -1
- package/Types/Workflow/Components/IncomingEmail.ts +140 -0
- package/Types/Workflow/Components/JSON.ts +11 -3
- package/Types/Workflow/Components/JavaScript.ts +0 -2
- package/Types/Workflow/Components/Manual.ts +2 -3
- package/Types/Workflow/Components/Schedule.ts +1 -2
- package/Types/Workflow/Components/Slack.ts +12 -4
- package/Types/Workflow/Components/Sleep.ts +4 -4
- package/Types/Workflow/Components/Webhook.ts +5 -7
- package/Types/Workflow/Components.ts +4 -2
- package/Types/Workflow/DatabaseOperation.ts +67 -0
- package/Types/Workflow/Documentation/AIDocumentation.ts +94 -0
- package/Types/Workflow/Documentation/APIDocumentation.ts +94 -0
- package/Types/Workflow/Documentation/ComponentDocumentation.ts +92 -0
- package/Types/Workflow/Documentation/DatabaseDocumentation.ts +666 -0
- package/Types/Workflow/Documentation/DocumentationContext.ts +245 -0
- package/Types/Workflow/Documentation/DocumentationLinks.ts +117 -0
- package/Types/Workflow/Documentation/DocumentationText.ts +141 -0
- package/Types/Workflow/Documentation/Index.ts +114 -0
- package/Types/Workflow/Documentation/MessagingDocumentation.ts +316 -0
- package/Types/Workflow/Documentation/ModelExamples.ts +333 -0
- package/Types/Workflow/Documentation/TriggerDocumentation.ts +217 -0
- package/Types/Workflow/Documentation/UtilityDocumentation.ts +338 -0
- package/Types/Workflow/IncomingEmailTrigger.ts +384 -0
- package/Types/Workflow/StepSamples.ts +965 -0
- package/Types/Workflow/StepTrace.ts +311 -6
- package/Types/Workflow/SystemColumns.ts +84 -0
- package/Types/Workflow/Templates.ts +279 -2
- package/Types/Workflow/WebhookTrigger.ts +87 -0
- package/Types/Workflow/WorkflowArchive.ts +45 -0
- package/Types/Workflow/WorkflowEnabled.ts +51 -0
- package/Types/Workflow/WorkflowStatus.ts +36 -0
- package/Types/Workspace/NotificationRules/NotificationRuleCondition.ts +32 -2
- package/UI/Components/ActionButton/RowActions.tsx +8 -5
- package/UI/Components/ActionCard/ActionCard.tsx +22 -2
- package/UI/Components/BulkUpdate/BulkLabelActions.tsx +1 -0
- package/UI/Components/BulkUpdate/BulkOwnerActions.tsx +1 -0
- package/UI/Components/BulkUpdate/BulkUpdateForm.tsx +6 -0
- package/UI/Components/Button/Button.tsx +19 -11
- package/UI/Components/Card/Card.tsx +64 -19
- package/UI/Components/Charts/ChartGroup/ChartGroup.tsx +1 -4
- package/UI/Components/CodeEditor/CodeEditor.tsx +69 -0
- package/UI/Components/CollapsibleSection/CollapsibleSection.tsx +19 -3
- package/UI/Components/DeleteConfirmation/DeleteConfirmationMessage.tsx +175 -0
- package/UI/Components/DeleteConfirmation/DeleteItemNames.tsx +71 -0
- package/UI/Components/DeleteConfirmation/NamedSentence.tsx +55 -0
- package/UI/Components/DeleteConfirmation/TypeToConfirmDelete.tsx +90 -0
- package/UI/Components/Dictionary/Dictionary.tsx +31 -1
- package/UI/Components/Dropdown/DropdownValueBadge.tsx +21 -13
- package/UI/Components/EditionLabel/EditionLabel.tsx +6 -1
- package/UI/Components/Error/PageError.tsx +1 -1
- package/UI/Components/EventItem/EventItem.tsx +1 -11
- package/UI/Components/FormModal/BasicFormModal.tsx +23 -0
- package/UI/Components/Forms/BasicForm.tsx +188 -78
- package/UI/Components/Forms/BasicModelForm.tsx +2 -0
- package/UI/Components/Forms/Fields/FormField.tsx +70 -5
- package/UI/Components/Forms/ModelForm.tsx +8 -0
- package/UI/Components/Forms/Steps/Step.tsx +29 -6
- package/UI/Components/Forms/Steps/Steps.tsx +10 -0
- package/UI/Components/Forms/Types/Field.ts +41 -1
- package/UI/Components/Forms/Validation.ts +18 -4
- package/UI/Components/Icon/Icon.tsx +7 -2
- package/UI/Components/Label/Label.tsx +0 -2
- package/UI/Components/LabelRule/ImportLabelRulesModal.tsx +1 -2
- package/UI/Components/Markdown.tsx/MarkdownViewer.tsx +8 -0
- package/UI/Components/Modal/ConfirmModal.tsx +39 -8
- package/UI/Components/Modal/Modal.tsx +136 -10
- package/UI/Components/Modal/ModalFooter.tsx +28 -10
- package/UI/Components/ModelDelete/ModelDelete.tsx +168 -6
- package/UI/Components/ModelFormModal/ModelFormModal.tsx +47 -9
- package/UI/Components/ModelTable/BaseModelTable.tsx +58 -91
- package/UI/Components/ModelTable/TableView.tsx +14 -2
- package/UI/Components/MonitorTemplateVariables/TemplateVariablesModal.tsx +1 -2
- package/UI/Components/Navbar/NavBar.tsx +3 -2
- package/UI/Components/Pill/Pill.tsx +53 -43
- package/UI/Components/Pill/PillColors.ts +464 -0
- package/UI/Components/RuleRun/RunRuleNowModal.tsx +6 -0
- package/UI/Components/SideMenu/SideMenu.tsx +136 -12
- package/UI/Components/SideMenu/SideMenuSection.tsx +43 -4
- package/UI/Components/SideMenu/SideMenuSectionState.ts +200 -0
- package/UI/Components/TextArea/TextArea.tsx +174 -3
- package/UI/Components/Toggle/Toggle.tsx +256 -43
- package/UI/Components/Workflow/ArgumentsForm.tsx +496 -359
- package/UI/Components/Workflow/BreakableCode.tsx +88 -0
- package/UI/Components/Workflow/ColumnEditor/AddColumnPicker.tsx +577 -0
- package/UI/Components/Workflow/ColumnEditor/ColumnConditionRow.tsx +20 -5
- package/UI/Components/Workflow/ColumnEditor/ColumnControl.ts +63 -4
- package/UI/Components/Workflow/ColumnEditor/ColumnFieldRow.tsx +21 -4
- package/UI/Components/Workflow/ColumnEditor/ColumnPickerOptions.ts +387 -0
- package/UI/Components/Workflow/ColumnEditor/ColumnUse.ts +126 -0
- package/UI/Components/Workflow/ColumnEditor/ColumnValueInput.tsx +151 -84
- package/UI/Components/Workflow/ColumnEditor/ModelQueryBuilder.tsx +13 -9
- package/UI/Components/Workflow/ColumnEditor/ModelRecordForm.tsx +36 -27
- package/UI/Components/Workflow/Component.tsx +129 -12
- package/UI/Components/Workflow/ComponentPicker/ComponentSearch.ts +1259 -0
- package/UI/Components/Workflow/ComponentPicker/PickerCatalog.ts +419 -0
- package/UI/Components/Workflow/ComponentPicker/PickerItems.tsx +300 -0
- package/UI/Components/Workflow/ComponentPortViewer.tsx +24 -60
- package/UI/Components/Workflow/ComponentPrimaryPanel.tsx +171 -0
- package/UI/Components/Workflow/ComponentReturnValueViewer.tsx +67 -88
- package/UI/Components/Workflow/ComponentSettingsModal.tsx +345 -105
- package/UI/Components/Workflow/ComponentSettingsSection.tsx +103 -0
- package/UI/Components/Workflow/ComponentsModal.tsx +958 -601
- package/UI/Components/Workflow/Condition/ConditionEditor.tsx +484 -0
- package/UI/Components/Workflow/Condition/ConditionModel.ts +785 -0
- package/UI/Components/Workflow/CronScheduleField.tsx +53 -37
- package/UI/Components/Workflow/DocumentationViewer.tsx +399 -118
- package/UI/Components/Workflow/DownloadWorkflowRun.ts +137 -0
- package/UI/Components/Workflow/GraphLint.ts +9 -1
- package/UI/Components/Workflow/GraphLintSummary.ts +142 -2
- package/UI/Components/Workflow/IncomingEmailTriggerPanel.tsx +502 -0
- package/UI/Components/Workflow/ManualTriggerPanel.tsx +41 -0
- package/UI/Components/Workflow/ModelColumnEditor.tsx +7 -10
- package/UI/Components/Workflow/ModelFieldPicker.tsx +66 -2
- package/UI/Components/Workflow/ModelSchema.ts +19 -24
- package/UI/Components/Workflow/NodePlacement.ts +235 -1
- package/UI/Components/Workflow/RunModal.tsx +1 -1
- package/UI/Components/Workflow/StepTracePresentation.ts +537 -0
- package/UI/Components/Workflow/StepTraceViewer.tsx +644 -83
- package/UI/Components/Workflow/UseRunWatch.ts +17 -0
- package/UI/Components/Workflow/UseWorkflowEnabled.ts +275 -0
- package/UI/Components/Workflow/Utils.ts +119 -103
- package/UI/Components/Workflow/ValuePicker/ArgumentControl.ts +146 -0
- package/UI/Components/Workflow/ValuePicker/DefaultValueSources.ts +148 -0
- package/UI/Components/Workflow/ValuePicker/InsertValueButton.tsx +116 -0
- package/UI/Components/Workflow/ValuePicker/ReferenceChip.tsx +162 -0
- package/UI/Components/Workflow/ValuePicker/ReferenceDescription.ts +303 -0
- package/UI/Components/Workflow/ValuePicker/StepGraph.ts +240 -0
- package/UI/Components/Workflow/ValuePicker/StepSampleSource.ts +537 -0
- package/UI/Components/Workflow/ValuePicker/StepValueSource.ts +291 -0
- package/UI/Components/Workflow/ValuePicker/TemplateText.ts +303 -0
- package/UI/Components/Workflow/ValuePicker/TemplateTextDom.ts +563 -0
- package/UI/Components/Workflow/ValuePicker/TemplateTextEditor.tsx +1233 -0
- package/UI/Components/Workflow/ValuePicker/TemplateTextHistory.ts +138 -0
- package/UI/Components/Workflow/ValuePicker/ValuePickerContext.tsx +529 -0
- package/UI/Components/Workflow/ValuePicker/ValuePickerMenu.tsx +1003 -0
- package/UI/Components/Workflow/ValuePicker/ValuePickerPopup.tsx +310 -0
- package/UI/Components/Workflow/ValuePicker/ValueSingleField.tsx +274 -0
- package/UI/Components/Workflow/ValuePicker/ValueSuggestion.ts +694 -0
- package/UI/Components/Workflow/ValuePicker/ValueTextField.tsx +334 -0
- package/UI/Components/Workflow/ValuePicker/VariableValueSource.ts +132 -0
- package/UI/Components/Workflow/WebhookTriggerPanel.tsx +522 -0
- package/UI/Components/Workflow/Workflow.tsx +381 -36
- package/UI/Components/Workflow/WorkflowEnabledCopy.ts +55 -0
- package/UI/Components/Workflow/WorkflowEnabledSwitch.tsx +44 -0
- package/UI/Components/Workflow/WorkflowIncomingEmailSecretKey.ts +156 -0
- package/UI/Components/Workflow/WorkflowLogModal.tsx +98 -17
- package/UI/Components/Workflow/WorkflowRunExport.ts +435 -0
- package/UI/Components/Workflow/WorkflowRunExportActions.tsx +242 -0
- package/UI/Components/Workflow/WorkflowStatus.tsx +25 -26
- package/UI/Components/Workflow/WorkflowTurnOnModal.tsx +119 -0
- package/UI/Components/Workflow/WorkflowTurnedOffNotice.tsx +91 -0
- package/UI/Components/Workflow/WorkflowWebhookSecretKey.ts +184 -0
- package/UI/Styles/Theme.css +74 -3
- package/UI/Utils/McpOAuthPendingAuthorization.ts +132 -0
- package/UI/Utils/ModelDisplayName.ts +294 -0
- package/UI/Utils/TranslateTemplate.ts +123 -0
- package/Utils/DeveloperDocs/AiAssistantExamples.ts +383 -0
- package/Utils/DeveloperDocs/ApiExamples.ts +355 -0
- package/Utils/DeveloperDocs/ExampleValues.ts +111 -0
- package/Utils/DeveloperDocs/Hcl.ts +697 -0
- package/Utils/DeveloperDocs/TerraformConfig.ts +805 -0
- package/Utils/DeveloperDocs/TerraformMonitorSteps.ts +583 -0
- package/Utils/DeveloperDocs/TerraformSchema.ts +565 -0
- package/Utils/DeveloperDocs/TerraformValues.ts +375 -0
- package/Utils/Email/EmailAddressList.ts +165 -0
- package/Utils/ModelImportExport.ts +17 -0
- package/Utils/Monitor/IncomingEmailMonitorAddress.ts +73 -4
- package/Utils/Monitor/MonitorOverviewPresentationUtil.ts +27 -1
- package/Utils/Monitor/MonitorPauseState.ts +90 -0
- package/Utils/Rum/SessionIdentity.ts +88 -0
- package/Utils/StatusPage/ArchivedMonitorResources.ts +38 -0
- package/build/dist/Models/AnalyticsModels/AuditLog.js +56 -0
- package/build/dist/Models/AnalyticsModels/AuditLog.js.map +1 -1
- package/build/dist/Models/AnalyticsModels/Log.js +26 -2
- package/build/dist/Models/AnalyticsModels/Log.js.map +1 -1
- package/build/dist/Models/AnalyticsModels/Metric.js +28 -2
- package/build/dist/Models/AnalyticsModels/Metric.js.map +1 -1
- package/build/dist/Models/AnalyticsModels/MetricItemAggMV1m.js +21 -2
- package/build/dist/Models/AnalyticsModels/MetricItemAggMV1m.js.map +1 -1
- package/build/dist/Models/AnalyticsModels/SloHistory.js +6 -4
- package/build/dist/Models/AnalyticsModels/SloHistory.js.map +1 -1
- package/build/dist/Models/DatabaseModels/AutoRemediationRule.js +1 -1
- package/build/dist/Models/DatabaseModels/AutoRemediationRule.js.map +1 -1
- package/build/dist/Models/DatabaseModels/CodeRepository.js +1 -1
- package/build/dist/Models/DatabaseModels/CodeRepository.js.map +1 -1
- package/build/dist/Models/DatabaseModels/Dashboard.js +151 -1
- package/build/dist/Models/DatabaseModels/Dashboard.js.map +1 -1
- package/build/dist/Models/DatabaseModels/DatabaseBaseModel/DatabaseBaseModel.js +8 -0
- package/build/dist/Models/DatabaseModels/DatabaseBaseModel/DatabaseBaseModel.js.map +1 -1
- package/build/dist/Models/DatabaseModels/DatabaseServerEndpoint.js +1 -0
- package/build/dist/Models/DatabaseModels/DatabaseServerEndpoint.js.map +1 -1
- package/build/dist/Models/DatabaseModels/EnterpriseLicense.js +2 -0
- package/build/dist/Models/DatabaseModels/EnterpriseLicense.js.map +1 -1
- package/build/dist/Models/DatabaseModels/EnterpriseLicenseInstance.js +1 -0
- package/build/dist/Models/DatabaseModels/EnterpriseLicenseInstance.js.map +1 -1
- package/build/dist/Models/DatabaseModels/IncomingCallLog.js +15 -1
- package/build/dist/Models/DatabaseModels/IncomingCallLog.js.map +1 -1
- package/build/dist/Models/DatabaseModels/Index.js +6 -0
- package/build/dist/Models/DatabaseModels/Index.js.map +1 -1
- package/build/dist/Models/DatabaseModels/LlmModelPrice.js +1 -0
- package/build/dist/Models/DatabaseModels/LlmModelPrice.js.map +1 -1
- package/build/dist/Models/DatabaseModels/McpOAuthClient.js +215 -0
- package/build/dist/Models/DatabaseModels/McpOAuthClient.js.map +1 -0
- package/build/dist/Models/DatabaseModels/McpOAuthGrant.js +494 -0
- package/build/dist/Models/DatabaseModels/McpOAuthGrant.js.map +1 -0
- package/build/dist/Models/DatabaseModels/McpOAuthToken.js +256 -0
- package/build/dist/Models/DatabaseModels/McpOAuthToken.js.map +1 -0
- package/build/dist/Models/DatabaseModels/Monitor.js +160 -1
- package/build/dist/Models/DatabaseModels/Monitor.js.map +1 -1
- package/build/dist/Models/DatabaseModels/MonitorSecret.js +89 -1
- package/build/dist/Models/DatabaseModels/MonitorSecret.js.map +1 -1
- package/build/dist/Models/DatabaseModels/NetworkEndpoint.js +1 -0
- package/build/dist/Models/DatabaseModels/NetworkEndpoint.js.map +1 -1
- package/build/dist/Models/DatabaseModels/OnCallDutyPolicy.js +158 -1
- package/build/dist/Models/DatabaseModels/OnCallDutyPolicy.js.map +1 -1
- package/build/dist/Models/DatabaseModels/Project.js +42 -102
- package/build/dist/Models/DatabaseModels/Project.js.map +1 -1
- package/build/dist/Models/DatabaseModels/StatusPage.js +158 -1
- package/build/dist/Models/DatabaseModels/StatusPage.js.map +1 -1
- package/build/dist/Models/DatabaseModels/TelemetrySourceMap.js +1 -0
- package/build/dist/Models/DatabaseModels/TelemetrySourceMap.js.map +1 -1
- package/build/dist/Models/DatabaseModels/Workflow.js +230 -8
- package/build/dist/Models/DatabaseModels/Workflow.js.map +1 -1
- package/build/dist/Server/API/AIAgentDataAPI.js +1 -1
- package/build/dist/Server/API/AIAgentDataAPI.js.map +1 -1
- package/build/dist/Server/API/AutoRemediationAPI.js +9 -31
- package/build/dist/Server/API/AutoRemediationAPI.js.map +1 -1
- package/build/dist/Server/API/CommonAPI.js +15 -0
- package/build/dist/Server/API/CommonAPI.js.map +1 -1
- package/build/dist/Server/API/DashboardAPI.js +7 -3
- package/build/dist/Server/API/DashboardAPI.js.map +1 -1
- package/build/dist/Server/API/StatusPageAPI.js +54 -13
- package/build/dist/Server/API/StatusPageAPI.js.map +1 -1
- package/build/dist/Server/EnvironmentConfig.js +23 -0
- package/build/dist/Server/EnvironmentConfig.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1796800000000-FoldAiSwitchesIntoEnableAi.js +79 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1796800000000-FoldAiSwitchesIntoEnableAi.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1796900000000-AddMcpOAuthTables.js +50 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1796900000000-AddMcpOAuthTables.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1797000000000-AddWorkflowIncomingEmailSecretKey.js +25 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1797000000000-AddWorkflowIncomingEmailSecretKey.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1797100000000-AddMonitorSecretAccess.js +32 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1797100000000-AddMonitorSecretAccess.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1797200000000-AddArchiveToMoreResources.js +76 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1797200000000-AddArchiveToMoreResources.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js +10 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js.map +1 -1
- package/build/dist/Server/Middleware/McpDelegationAuthorization.js +138 -0
- package/build/dist/Server/Middleware/McpDelegationAuthorization.js.map +1 -0
- package/build/dist/Server/Middleware/McpOAuthRateLimit.js +191 -0
- package/build/dist/Server/Middleware/McpOAuthRateLimit.js.map +1 -0
- package/build/dist/Server/Middleware/ProjectAuthorization.js +20 -1
- package/build/dist/Server/Middleware/ProjectAuthorization.js.map +1 -1
- package/build/dist/Server/Middleware/UserAuthorization.js +11 -0
- package/build/dist/Server/Middleware/UserAuthorization.js.map +1 -1
- package/build/dist/Server/Services/AIService.js +2 -2
- package/build/dist/Server/Services/AIService.js.map +1 -1
- package/build/dist/Server/Services/AnalyticsDatabaseService.js +15 -5
- package/build/dist/Server/Services/AnalyticsDatabaseService.js.map +1 -1
- package/build/dist/Server/Services/ApiKeyService.js +11 -8
- package/build/dist/Server/Services/ApiKeyService.js.map +1 -1
- package/build/dist/Server/Services/AutoRemediationRuleEngineService.js +19 -27
- package/build/dist/Server/Services/AutoRemediationRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/AutoRemediationRuleService.js +1 -1
- package/build/dist/Server/Services/AutoRemediationRuleService.js.map +1 -1
- package/build/dist/Server/Services/DashboardService.js +7 -2
- package/build/dist/Server/Services/DashboardService.js.map +1 -1
- package/build/dist/Server/Services/DatabaseServerService.js +161 -1
- package/build/dist/Server/Services/DatabaseServerService.js.map +1 -1
- package/build/dist/Server/Services/DatabaseService.js +28 -17
- package/build/dist/Server/Services/DatabaseService.js.map +1 -1
- package/build/dist/Server/Services/InboundEmail/InboundEmailProvider.js +17 -0
- package/build/dist/Server/Services/InboundEmail/InboundEmailProvider.js.map +1 -1
- package/build/dist/Server/Services/InboundEmail/Providers/SendGridInboundProvider.js +45 -5
- package/build/dist/Server/Services/InboundEmail/Providers/SendGridInboundProvider.js.map +1 -1
- package/build/dist/Server/Services/IncomingCallMissedCallNotificationService.js +227 -0
- package/build/dist/Server/Services/IncomingCallMissedCallNotificationService.js.map +1 -0
- package/build/dist/Server/Services/IncomingCallPolicyService.js +97 -0
- package/build/dist/Server/Services/IncomingCallPolicyService.js.map +1 -1
- package/build/dist/Server/Services/Index.js +8 -0
- package/build/dist/Server/Services/Index.js.map +1 -1
- package/build/dist/Server/Services/KubernetesClusterAiAccessService.js +5 -36
- package/build/dist/Server/Services/KubernetesClusterAiAccessService.js.map +1 -1
- package/build/dist/Server/Services/KubernetesClusterService.js +3 -3
- package/build/dist/Server/Services/KubernetesClusterService.js.map +1 -1
- package/build/dist/Server/Services/LogAggregationService.js +31 -5
- package/build/dist/Server/Services/LogAggregationService.js.map +1 -1
- package/build/dist/Server/Services/McpOAuthClientService.js +134 -0
- package/build/dist/Server/Services/McpOAuthClientService.js.map +1 -0
- package/build/dist/Server/Services/McpOAuthGrantService.js +256 -0
- package/build/dist/Server/Services/McpOAuthGrantService.js.map +1 -0
- package/build/dist/Server/Services/McpOAuthTokenService.js +175 -0
- package/build/dist/Server/Services/McpOAuthTokenService.js.map +1 -0
- package/build/dist/Server/Services/MetricAggregationService.js +4 -4
- package/build/dist/Server/Services/MonitorGroupService.js +20 -5
- package/build/dist/Server/Services/MonitorGroupService.js.map +1 -1
- package/build/dist/Server/Services/MonitorProbeService.js +1 -0
- package/build/dist/Server/Services/MonitorProbeService.js.map +1 -1
- package/build/dist/Server/Services/MonitorSecretService.js +346 -0
- package/build/dist/Server/Services/MonitorSecretService.js.map +1 -1
- package/build/dist/Server/Services/MonitorService.js +15 -1
- package/build/dist/Server/Services/MonitorService.js.map +1 -1
- package/build/dist/Server/Services/OnCallDutyPolicyService.js +29 -2
- package/build/dist/Server/Services/OnCallDutyPolicyService.js.map +1 -1
- package/build/dist/Server/Services/ProjectService.js +26 -15
- package/build/dist/Server/Services/ProjectService.js.map +1 -1
- package/build/dist/Server/Services/ResourceAiAccessService.js +0 -9
- package/build/dist/Server/Services/ResourceAiAccessService.js.map +1 -1
- package/build/dist/Server/Services/RunnerJobService.js +2 -2
- package/build/dist/Server/Services/RunnerJobService.js.map +1 -1
- package/build/dist/Server/Services/RunnerService.js +2 -2
- package/build/dist/Server/Services/RunnerService.js.map +1 -1
- package/build/dist/Server/Services/StatusPageService.js +59 -2
- package/build/dist/Server/Services/StatusPageService.js.map +1 -1
- package/build/dist/Server/Services/StatusPageSubscriberService.js +17 -0
- package/build/dist/Server/Services/StatusPageSubscriberService.js.map +1 -1
- package/build/dist/Server/Services/TeamMemberService.js +306 -72
- package/build/dist/Server/Services/TeamMemberService.js.map +1 -1
- package/build/dist/Server/Services/UserNotificationSettingService.js +18 -0
- package/build/dist/Server/Services/UserNotificationSettingService.js.map +1 -1
- package/build/dist/Server/Services/WorkflowService.js +27 -0
- package/build/dist/Server/Services/WorkflowService.js.map +1 -1
- package/build/dist/Server/Types/AnalyticsDatabase/ModelPermission.js +3 -0
- package/build/dist/Server/Types/AnalyticsDatabase/ModelPermission.js.map +1 -1
- package/build/dist/Server/Types/Database/Permissions/Index.js +5 -0
- package/build/dist/Server/Types/Database/Permissions/Index.js.map +1 -1
- package/build/dist/Server/Types/Workflow/Components/BaseModel/OnTriggerBaseModel.js +2 -0
- package/build/dist/Server/Types/Workflow/Components/BaseModel/OnTriggerBaseModel.js.map +1 -1
- package/build/dist/Server/Types/Workflow/Components/Conditions/IfElse.js +28 -106
- package/build/dist/Server/Types/Workflow/Components/Conditions/IfElse.js.map +1 -1
- package/build/dist/Server/Types/Workflow/Components/IncomingEmail.js +166 -0
- package/build/dist/Server/Types/Workflow/Components/IncomingEmail.js.map +1 -0
- package/build/dist/Server/Types/Workflow/Components/Index.js +16 -6
- package/build/dist/Server/Types/Workflow/Components/Index.js.map +1 -1
- package/build/dist/Server/Types/Workflow/Components/Schedule.js +20 -4
- package/build/dist/Server/Types/Workflow/Components/Schedule.js.map +1 -1
- package/build/dist/Server/Utils/AI/CodeFix/CodeFixReadiness.js +1 -1
- package/build/dist/Server/Utils/AI/CodeFix/CodeFixRunQueue.js +1 -1
- package/build/dist/Server/Utils/AI/CodeFix/FixRunBudget.js +43 -57
- package/build/dist/Server/Utils/AI/CodeFix/FixRunBudget.js.map +1 -1
- package/build/dist/Server/Utils/AI/CodeFix/OpenPullRequestCap.js +17 -28
- package/build/dist/Server/Utils/AI/CodeFix/OpenPullRequestCap.js.map +1 -1
- package/build/dist/Server/Utils/AI/Remediation/RemediationExecutionRunner.js +18 -50
- package/build/dist/Server/Utils/AI/Remediation/RemediationExecutionRunner.js.map +1 -1
- package/build/dist/Server/Utils/AI/SRE/AlertInvestigationRunner.js +27 -52
- package/build/dist/Server/Utils/AI/SRE/AlertInvestigationRunner.js.map +1 -1
- package/build/dist/Server/Utils/AI/SRE/FixFromIncidentTaskTrigger.js +4 -4
- package/build/dist/Server/Utils/AI/SRE/FixFromIncidentTaskTrigger.js.map +1 -1
- package/build/dist/Server/Utils/AI/SRE/FixPerformanceTaskTrigger.js +1 -1
- package/build/dist/Server/Utils/AI/SRE/FixPerformanceTaskTrigger.js.map +1 -1
- package/build/dist/Server/Utils/AI/SRE/IncidentInvestigationRunner.js +8 -24
- package/build/dist/Server/Utils/AI/SRE/IncidentInvestigationRunner.js.map +1 -1
- package/build/dist/Server/Utils/AI/SRE/IncidentPostmortemRunner.js +6 -5
- package/build/dist/Server/Utils/AI/SRE/IncidentPostmortemRunner.js.map +1 -1
- package/build/dist/Server/Utils/AI/SRE/Insights/FixRouting.js +2 -2
- package/build/dist/Server/Utils/AI/SRE/Insights/InsightScanner.js +5 -5
- package/build/dist/Server/Utils/AI/SRE/Insights/Triage.js +4 -3
- package/build/dist/Server/Utils/AI/SRE/Insights/Triage.js.map +1 -1
- package/build/dist/Server/Utils/AI/SRE/InstrumentationTaskTrigger.js +4 -4
- package/build/dist/Server/Utils/AI/SRE/InstrumentationTaskTrigger.js.map +1 -1
- package/build/dist/Server/Utils/AI/SRE/InvestigationEligibility.js +1 -1
- package/build/dist/Server/Utils/AI/SRE/InvestigationEligibility.js.map +1 -1
- package/build/dist/Server/Utils/AI/SRE/InvestigationQueue.js +52 -45
- package/build/dist/Server/Utils/AI/SRE/InvestigationQueue.js.map +1 -1
- package/build/dist/Server/Utils/AI/SRE/TelemetryImprovementTaskTrigger.js +1 -1
- package/build/dist/Server/Utils/AI/SRE/TelemetryImprovementTaskTrigger.js.map +1 -1
- package/build/dist/Server/Utils/AI/Toolbox/AIActionTools.js +9 -1
- package/build/dist/Server/Utils/AI/Toolbox/AIActionTools.js.map +1 -1
- package/build/dist/Server/Utils/AI/Toolbox/AIMetaTools.js +13 -8
- package/build/dist/Server/Utils/AI/Toolbox/AIMetaTools.js.map +1 -1
- package/build/dist/Server/Utils/AI/Toolbox/MonitorTools.js +18 -3
- package/build/dist/Server/Utils/AI/Toolbox/MonitorTools.js.map +1 -1
- package/build/dist/Server/Utils/AI/Toolbox/OnCallTools.js +45 -14
- package/build/dist/Server/Utils/AI/Toolbox/OnCallTools.js.map +1 -1
- package/build/dist/Server/Utils/AI/Toolbox/StatusPageTools.js +31 -7
- package/build/dist/Server/Utils/AI/Toolbox/StatusPageTools.js.map +1 -1
- package/build/dist/Server/Utils/AI/Toolbox/WorkflowProbeTools.js +22 -7
- package/build/dist/Server/Utils/AI/Toolbox/WorkflowProbeTools.js.map +1 -1
- package/build/dist/Server/Utils/AnalyticsDatabase/ClusterConfig.js +3 -1
- package/build/dist/Server/Utils/AnalyticsDatabase/ClusterConfig.js.map +1 -1
- package/build/dist/Server/Utils/Express.js.map +1 -1
- package/build/dist/Server/Utils/IncomingCall/MissedCallNotification.js +204 -0
- package/build/dist/Server/Utils/IncomingCall/MissedCallNotification.js.map +1 -0
- package/build/dist/Server/Utils/Mcp/McpDelegationToken.js +92 -0
- package/build/dist/Server/Utils/Mcp/McpDelegationToken.js.map +1 -0
- package/build/dist/Server/Utils/Mcp/McpOAuthConfig.js +159 -0
- package/build/dist/Server/Utils/Mcp/McpOAuthConfig.js.map +1 -0
- package/build/dist/Server/Utils/Mcp/McpOAuthGrantAccess.js +204 -0
- package/build/dist/Server/Utils/Mcp/McpOAuthGrantAccess.js.map +1 -0
- package/build/dist/Server/Utils/Mcp/McpOAuthSecret.js +118 -0
- package/build/dist/Server/Utils/Mcp/McpOAuthSecret.js.map +1 -0
- package/build/dist/Server/Utils/Mcp/McpOAuthSignedToken.js +126 -0
- package/build/dist/Server/Utils/Mcp/McpOAuthSignedToken.js.map +1 -0
- package/build/dist/Server/Utils/Mcp/McpOAuthSso.js +159 -0
- package/build/dist/Server/Utils/Mcp/McpOAuthSso.js.map +1 -0
- package/build/dist/Server/Utils/Monitor/MonitorPayloadRedaction.js +25 -0
- package/build/dist/Server/Utils/Monitor/MonitorPayloadRedaction.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorResource.js +16 -18
- package/build/dist/Server/Utils/Monitor/MonitorResource.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/NetworkDeviceWalkUtil.js +3 -11
- package/build/dist/Server/Utils/Monitor/NetworkDeviceWalkUtil.js.map +1 -1
- package/build/dist/Server/Utils/SessionReplay/SessionReplayBudgetMetrics.js +3 -3
- package/build/dist/Server/Utils/Slo/SloMetricUtil.js +3 -3
- package/build/dist/Server/Utils/Telemetry/DatabaseEndpointDiscovery.js +11 -4
- package/build/dist/Server/Utils/Telemetry/DatabaseEndpointDiscovery.js.map +1 -1
- package/build/dist/Server/Utils/Telemetry/MessageQueueDiscovery.js +7 -0
- package/build/dist/Server/Utils/Telemetry/MessageQueueDiscovery.js.map +1 -1
- package/build/dist/Server/Utils/Telemetry/ServiceDependencyDiscovery.js +133 -16
- package/build/dist/Server/Utils/Telemetry/ServiceDependencyDiscovery.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/Actions/Alert.js +2 -0
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/Actions/Alert.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/Actions/AlertEpisode.js +2 -0
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/Actions/AlertEpisode.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/Actions/Incident.js +2 -0
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/Actions/Incident.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/Actions/IncidentEpisode.js +2 -0
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/Actions/IncidentEpisode.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/MicrosoftTeamsCardChoices.js +4 -0
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/MicrosoftTeamsCardChoices.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/Slack/Actions/Alert.js +2 -0
- package/build/dist/Server/Utils/Workspace/Slack/Actions/Alert.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/Slack/Actions/AlertEpisode.js +2 -0
- package/build/dist/Server/Utils/Workspace/Slack/Actions/AlertEpisode.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/Slack/Actions/Incident.js +4 -0
- package/build/dist/Server/Utils/Workspace/Slack/Actions/Incident.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/Slack/Actions/IncidentEpisode.js +2 -0
- package/build/dist/Server/Utils/Workspace/Slack/Actions/IncidentEpisode.js.map +1 -1
- package/build/dist/Types/AI/AIRunType.js +7 -6
- package/build/dist/Types/AI/AIRunType.js.map +1 -1
- package/build/dist/Types/AI/AIWorkloadLimits.js +59 -0
- package/build/dist/Types/AI/AIWorkloadLimits.js.map +1 -0
- package/build/dist/Types/AnalyticsDatabase/AnalyticsTableName.js +2 -2
- package/build/dist/Types/AnalyticsDatabase/RetentionTtl.js +55 -0
- package/build/dist/Types/AnalyticsDatabase/RetentionTtl.js.map +1 -0
- package/build/dist/Types/BaseDatabase/DatabaseCommonInteractionPropsUtil.js +17 -0
- package/build/dist/Types/BaseDatabase/DatabaseCommonInteractionPropsUtil.js.map +1 -1
- package/build/dist/Types/Database/TableMetadata.js +3 -0
- package/build/dist/Types/Database/TableMetadata.js.map +1 -1
- package/build/dist/Types/DatabaseServer/DatabaseEndpoint.js +36 -0
- package/build/dist/Types/DatabaseServer/DatabaseEndpoint.js.map +1 -1
- package/build/dist/Types/Email/EmailTemplateType.js +1 -0
- package/build/dist/Types/Email/EmailTemplateType.js.map +1 -1
- package/build/dist/Types/Exception/ExceptionMessages.js +1 -0
- package/build/dist/Types/Exception/ExceptionMessages.js.map +1 -1
- package/build/dist/Types/IncomingCall/MissedIncomingCall.js +61 -0
- package/build/dist/Types/IncomingCall/MissedIncomingCall.js.map +1 -0
- package/build/dist/Types/Kubernetes/KubernetesClusterAiAccess.js.map +1 -1
- package/build/dist/Types/Mcp/McpOAuthClientAuthMethod.js +18 -0
- package/build/dist/Types/Mcp/McpOAuthClientAuthMethod.js.map +1 -0
- package/build/dist/Types/Mcp/McpOAuthScope.js +140 -0
- package/build/dist/Types/Mcp/McpOAuthScope.js.map +1 -0
- package/build/dist/Types/Mcp/McpOAuthTicket.js +20 -0
- package/build/dist/Types/Mcp/McpOAuthTicket.js.map +1 -0
- package/build/dist/Types/Mcp/McpOAuthTokenType.js +17 -0
- package/build/dist/Types/Mcp/McpOAuthTokenType.js.map +1 -0
- package/build/dist/Types/Monitor/MonitorSecretAccess.js +111 -0
- package/build/dist/Types/Monitor/MonitorSecretAccess.js.map +1 -0
- package/build/dist/Types/NotificationSetting/NotificationEmailRollupCategory.js +11 -2
- package/build/dist/Types/NotificationSetting/NotificationEmailRollupCategory.js.map +1 -1
- package/build/dist/Types/NotificationSetting/NotificationEmailRollupPolicy.js +1 -1
- package/build/dist/Types/NotificationSetting/NotificationSettingEventType.js +2 -0
- package/build/dist/Types/NotificationSetting/NotificationSettingEventType.js.map +1 -1
- package/build/dist/Types/OnCallDutyPolicy/OnCallDutyPolicyArchive.js +16 -0
- package/build/dist/Types/OnCallDutyPolicy/OnCallDutyPolicyArchive.js.map +1 -0
- package/build/dist/Types/Permission.js +40 -0
- package/build/dist/Types/Permission.js.map +1 -1
- package/build/dist/Types/ResourceAiAgent/ResourceAiAccess.js.map +1 -1
- package/build/dist/Types/StatusPage/StatusPageArchive.js +16 -0
- package/build/dist/Types/StatusPage/StatusPageArchive.js.map +1 -0
- package/build/dist/Types/Workflow/Component.js +19 -0
- package/build/dist/Types/Workflow/Component.js.map +1 -1
- package/build/dist/Types/Workflow/ComponentID.js +1 -0
- package/build/dist/Types/Workflow/ComponentID.js.map +1 -1
- package/build/dist/Types/Workflow/Components/AI.js +2 -4
- package/build/dist/Types/Workflow/Components/AI.js.map +1 -1
- package/build/dist/Types/Workflow/Components/API.js +26 -26
- package/build/dist/Types/Workflow/Components/API.js.map +1 -1
- package/build/dist/Types/Workflow/Components/BaseModel.js +22 -28
- package/build/dist/Types/Workflow/Components/BaseModel.js.map +1 -1
- package/build/dist/Types/Workflow/Components/Condition.js +70 -29
- package/build/dist/Types/Workflow/Components/Condition.js.map +1 -1
- package/build/dist/Types/Workflow/Components/ConditionComparison.js +256 -0
- package/build/dist/Types/Workflow/Components/ConditionComparison.js.map +1 -0
- package/build/dist/Types/Workflow/Components/ConditionEvaluation.js +279 -0
- package/build/dist/Types/Workflow/Components/ConditionEvaluation.js.map +1 -0
- package/build/dist/Types/Workflow/Components/Email.js +1 -1
- package/build/dist/Types/Workflow/Components/Email.js.map +1 -1
- package/build/dist/Types/Workflow/Components/IncomingEmail.js +129 -0
- package/build/dist/Types/Workflow/Components/IncomingEmail.js.map +1 -0
- package/build/dist/Types/Workflow/Components/JSON.js +10 -3
- package/build/dist/Types/Workflow/Components/JSON.js.map +1 -1
- package/build/dist/Types/Workflow/Components/JavaScript.js +0 -2
- package/build/dist/Types/Workflow/Components/JavaScript.js.map +1 -1
- package/build/dist/Types/Workflow/Components/Manual.js +2 -2
- package/build/dist/Types/Workflow/Components/Manual.js.map +1 -1
- package/build/dist/Types/Workflow/Components/Schedule.js +1 -1
- package/build/dist/Types/Workflow/Components/Schedule.js.map +1 -1
- package/build/dist/Types/Workflow/Components/Slack.js +11 -3
- package/build/dist/Types/Workflow/Components/Slack.js.map +1 -1
- package/build/dist/Types/Workflow/Components/Sleep.js +4 -4
- package/build/dist/Types/Workflow/Components/Sleep.js.map +1 -1
- package/build/dist/Types/Workflow/Components/Webhook.js +4 -6
- package/build/dist/Types/Workflow/Components/Webhook.js.map +1 -1
- package/build/dist/Types/Workflow/Components.js +4 -2
- package/build/dist/Types/Workflow/Components.js.map +1 -1
- package/build/dist/Types/Workflow/DatabaseOperation.js +50 -0
- package/build/dist/Types/Workflow/DatabaseOperation.js.map +1 -0
- package/build/dist/Types/Workflow/Documentation/AIDocumentation.js +78 -0
- package/build/dist/Types/Workflow/Documentation/AIDocumentation.js.map +1 -0
- package/build/dist/Types/Workflow/Documentation/APIDocumentation.js +69 -0
- package/build/dist/Types/Workflow/Documentation/APIDocumentation.js.map +1 -0
- package/build/dist/Types/Workflow/Documentation/ComponentDocumentation.js +44 -0
- package/build/dist/Types/Workflow/Documentation/ComponentDocumentation.js.map +1 -0
- package/build/dist/Types/Workflow/Documentation/DatabaseDocumentation.js +488 -0
- package/build/dist/Types/Workflow/Documentation/DatabaseDocumentation.js.map +1 -0
- package/build/dist/Types/Workflow/Documentation/DocumentationContext.js +139 -0
- package/build/dist/Types/Workflow/Documentation/DocumentationContext.js.map +1 -0
- package/build/dist/Types/Workflow/Documentation/DocumentationLinks.js +62 -0
- package/build/dist/Types/Workflow/Documentation/DocumentationLinks.js.map +1 -0
- package/build/dist/Types/Workflow/Documentation/DocumentationText.js +104 -0
- package/build/dist/Types/Workflow/Documentation/DocumentationText.js.map +1 -0
- package/build/dist/Types/Workflow/Documentation/Index.js +58 -0
- package/build/dist/Types/Workflow/Documentation/Index.js.map +1 -0
- package/build/dist/Types/Workflow/Documentation/MessagingDocumentation.js +247 -0
- package/build/dist/Types/Workflow/Documentation/MessagingDocumentation.js.map +1 -0
- package/build/dist/Types/Workflow/Documentation/ModelExamples.js +210 -0
- package/build/dist/Types/Workflow/Documentation/ModelExamples.js.map +1 -0
- package/build/dist/Types/Workflow/Documentation/TriggerDocumentation.js +184 -0
- package/build/dist/Types/Workflow/Documentation/TriggerDocumentation.js.map +1 -0
- package/build/dist/Types/Workflow/Documentation/UtilityDocumentation.js +290 -0
- package/build/dist/Types/Workflow/Documentation/UtilityDocumentation.js.map +1 -0
- package/build/dist/Types/Workflow/IncomingEmailTrigger.js +275 -0
- package/build/dist/Types/Workflow/IncomingEmailTrigger.js.map +1 -0
- package/build/dist/Types/Workflow/StepSamples.js +601 -0
- package/build/dist/Types/Workflow/StepSamples.js.map +1 -0
- package/build/dist/Types/Workflow/StepTrace.js +135 -4
- package/build/dist/Types/Workflow/StepTrace.js.map +1 -1
- package/build/dist/Types/Workflow/SystemColumns.js +65 -0
- package/build/dist/Types/Workflow/SystemColumns.js.map +1 -0
- package/build/dist/Types/Workflow/Templates.js +178 -2
- package/build/dist/Types/Workflow/Templates.js.map +1 -1
- package/build/dist/Types/Workflow/WebhookTrigger.js +55 -0
- package/build/dist/Types/Workflow/WebhookTrigger.js.map +1 -0
- package/build/dist/Types/Workflow/WorkflowArchive.js +29 -0
- package/build/dist/Types/Workflow/WorkflowArchive.js.map +1 -0
- package/build/dist/Types/Workflow/WorkflowEnabled.js +39 -0
- package/build/dist/Types/Workflow/WorkflowEnabled.js.map +1 -0
- package/build/dist/Types/Workflow/WorkflowStatus.js +24 -0
- package/build/dist/Types/Workflow/WorkflowStatus.js.map +1 -1
- package/build/dist/Types/Workspace/NotificationRules/NotificationRuleCondition.js +23 -3
- package/build/dist/Types/Workspace/NotificationRules/NotificationRuleCondition.js.map +1 -1
- package/build/dist/UI/Components/ActionButton/RowActions.js +8 -5
- package/build/dist/UI/Components/ActionButton/RowActions.js.map +1 -1
- package/build/dist/UI/Components/ActionCard/ActionCard.js +20 -2
- package/build/dist/UI/Components/ActionCard/ActionCard.js.map +1 -1
- package/build/dist/UI/Components/BulkUpdate/BulkLabelActions.js +1 -1
- package/build/dist/UI/Components/BulkUpdate/BulkLabelActions.js.map +1 -1
- package/build/dist/UI/Components/BulkUpdate/BulkOwnerActions.js +1 -1
- package/build/dist/UI/Components/BulkUpdate/BulkOwnerActions.js.map +1 -1
- package/build/dist/UI/Components/BulkUpdate/BulkUpdateForm.js +2 -0
- package/build/dist/UI/Components/BulkUpdate/BulkUpdateForm.js.map +1 -1
- package/build/dist/UI/Components/Button/Button.js +19 -11
- package/build/dist/UI/Components/Button/Button.js.map +1 -1
- package/build/dist/UI/Components/Card/Card.js +23 -3
- package/build/dist/UI/Components/Card/Card.js.map +1 -1
- package/build/dist/UI/Components/Charts/ChartGroup/ChartGroup.js +1 -3
- package/build/dist/UI/Components/Charts/ChartGroup/ChartGroup.js.map +1 -1
- package/build/dist/UI/Components/CodeEditor/CodeEditor.js +37 -0
- package/build/dist/UI/Components/CodeEditor/CodeEditor.js.map +1 -1
- package/build/dist/UI/Components/CollapsibleSection/CollapsibleSection.js +7 -3
- package/build/dist/UI/Components/CollapsibleSection/CollapsibleSection.js.map +1 -1
- package/build/dist/UI/Components/DeleteConfirmation/DeleteConfirmationMessage.js +97 -0
- package/build/dist/UI/Components/DeleteConfirmation/DeleteConfirmationMessage.js.map +1 -0
- package/build/dist/UI/Components/DeleteConfirmation/DeleteItemNames.js +34 -0
- package/build/dist/UI/Components/DeleteConfirmation/DeleteItemNames.js.map +1 -0
- package/build/dist/UI/Components/DeleteConfirmation/NamedSentence.js +11 -0
- package/build/dist/UI/Components/DeleteConfirmation/NamedSentence.js.map +1 -0
- package/build/dist/UI/Components/DeleteConfirmation/TypeToConfirmDelete.js +44 -0
- package/build/dist/UI/Components/DeleteConfirmation/TypeToConfirmDelete.js.map +1 -0
- package/build/dist/UI/Components/Dictionary/Dictionary.js +17 -1
- package/build/dist/UI/Components/Dictionary/Dictionary.js.map +1 -1
- package/build/dist/UI/Components/Dropdown/DropdownValueBadge.js +12 -10
- package/build/dist/UI/Components/Dropdown/DropdownValueBadge.js.map +1 -1
- package/build/dist/UI/Components/EditionLabel/EditionLabel.js +1 -1
- package/build/dist/UI/Components/EditionLabel/EditionLabel.js.map +1 -1
- package/build/dist/UI/Components/Error/PageError.js +1 -1
- package/build/dist/UI/Components/Error/PageError.js.map +1 -1
- package/build/dist/UI/Components/EventItem/EventItem.js +1 -4
- package/build/dist/UI/Components/EventItem/EventItem.js.map +1 -1
- package/build/dist/UI/Components/FormModal/BasicFormModal.js +17 -3
- package/build/dist/UI/Components/FormModal/BasicFormModal.js.map +1 -1
- package/build/dist/UI/Components/Forms/BasicForm.js +115 -54
- package/build/dist/UI/Components/Forms/BasicForm.js.map +1 -1
- package/build/dist/UI/Components/Forms/BasicModelForm.js +1 -1
- package/build/dist/UI/Components/Forms/BasicModelForm.js.map +1 -1
- package/build/dist/UI/Components/Forms/Fields/FormField.js +40 -9
- package/build/dist/UI/Components/Forms/Fields/FormField.js.map +1 -1
- package/build/dist/UI/Components/Forms/ModelForm.js +5 -1
- package/build/dist/UI/Components/Forms/ModelForm.js.map +1 -1
- package/build/dist/UI/Components/Forms/Steps/Step.js +16 -5
- package/build/dist/UI/Components/Forms/Steps/Step.js.map +1 -1
- package/build/dist/UI/Components/Forms/Steps/Steps.js +3 -1
- package/build/dist/UI/Components/Forms/Steps/Steps.js.map +1 -1
- package/build/dist/UI/Components/Forms/Types/Field.js.map +1 -1
- package/build/dist/UI/Components/Forms/Validation.js +13 -4
- package/build/dist/UI/Components/Forms/Validation.js.map +1 -1
- package/build/dist/UI/Components/Icon/Icon.js +7 -2
- package/build/dist/UI/Components/Icon/Icon.js.map +1 -1
- package/build/dist/UI/Components/Label/Label.js +0 -2
- package/build/dist/UI/Components/Label/Label.js.map +1 -1
- package/build/dist/UI/Components/LabelRule/ImportLabelRulesModal.js +1 -1
- package/build/dist/UI/Components/LabelRule/ImportLabelRulesModal.js.map +1 -1
- package/build/dist/UI/Components/Markdown.tsx/MarkdownViewer.js +8 -0
- package/build/dist/UI/Components/Markdown.tsx/MarkdownViewer.js.map +1 -1
- package/build/dist/UI/Components/Modal/ConfirmModal.js +22 -3
- package/build/dist/UI/Components/Modal/ConfirmModal.js.map +1 -1
- package/build/dist/UI/Components/Modal/Modal.js +76 -9
- package/build/dist/UI/Components/Modal/Modal.js.map +1 -1
- package/build/dist/UI/Components/Modal/ModalFooter.js +22 -6
- package/build/dist/UI/Components/Modal/ModalFooter.js.map +1 -1
- package/build/dist/UI/Components/ModelDelete/ModelDelete.js +84 -7
- package/build/dist/UI/Components/ModelDelete/ModelDelete.js.map +1 -1
- package/build/dist/UI/Components/ModelFormModal/ModelFormModal.js +38 -13
- package/build/dist/UI/Components/ModelFormModal/ModelFormModal.js.map +1 -1
- package/build/dist/UI/Components/ModelTable/BaseModelTable.js +41 -69
- package/build/dist/UI/Components/ModelTable/BaseModelTable.js.map +1 -1
- package/build/dist/UI/Components/ModelTable/TableView.js +13 -1
- package/build/dist/UI/Components/ModelTable/TableView.js.map +1 -1
- package/build/dist/UI/Components/MonitorTemplateVariables/TemplateVariablesModal.js +1 -1
- package/build/dist/UI/Components/MonitorTemplateVariables/TemplateVariablesModal.js.map +1 -1
- package/build/dist/UI/Components/Navbar/NavBar.js +3 -2
- package/build/dist/UI/Components/Navbar/NavBar.js.map +1 -1
- package/build/dist/UI/Components/Pill/Pill.js +25 -22
- package/build/dist/UI/Components/Pill/Pill.js.map +1 -1
- package/build/dist/UI/Components/Pill/PillColors.js +297 -0
- package/build/dist/UI/Components/Pill/PillColors.js.map +1 -0
- package/build/dist/UI/Components/RuleRun/RunRuleNowModal.js +7 -1
- package/build/dist/UI/Components/RuleRun/RunRuleNowModal.js.map +1 -1
- package/build/dist/UI/Components/SideMenu/SideMenu.js +81 -9
- package/build/dist/UI/Components/SideMenu/SideMenu.js.map +1 -1
- package/build/dist/UI/Components/SideMenu/SideMenuSection.js +21 -4
- package/build/dist/UI/Components/SideMenu/SideMenuSection.js.map +1 -1
- package/build/dist/UI/Components/SideMenu/SideMenuSectionState.js +150 -0
- package/build/dist/UI/Components/SideMenu/SideMenuSectionState.js.map +1 -0
- package/build/dist/UI/Components/TextArea/TextArea.js +122 -4
- package/build/dist/UI/Components/TextArea/TextArea.js.map +1 -1
- package/build/dist/UI/Components/Toggle/Toggle.js +115 -22
- package/build/dist/UI/Components/Toggle/Toggle.js.map +1 -1
- package/build/dist/UI/Components/Workflow/ArgumentsForm.js +272 -257
- package/build/dist/UI/Components/Workflow/ArgumentsForm.js.map +1 -1
- package/build/dist/UI/Components/Workflow/BreakableCode.js +33 -0
- package/build/dist/UI/Components/Workflow/BreakableCode.js.map +1 -0
- package/build/dist/UI/Components/Workflow/ColumnEditor/AddColumnPicker.js +293 -0
- package/build/dist/UI/Components/Workflow/ColumnEditor/AddColumnPicker.js.map +1 -0
- package/build/dist/UI/Components/Workflow/ColumnEditor/ColumnConditionRow.js +17 -2
- package/build/dist/UI/Components/Workflow/ColumnEditor/ColumnConditionRow.js.map +1 -1
- package/build/dist/UI/Components/Workflow/ColumnEditor/ColumnControl.js +42 -4
- package/build/dist/UI/Components/Workflow/ColumnEditor/ColumnControl.js.map +1 -1
- package/build/dist/UI/Components/Workflow/ColumnEditor/ColumnFieldRow.js +9 -4
- package/build/dist/UI/Components/Workflow/ColumnEditor/ColumnFieldRow.js.map +1 -1
- package/build/dist/UI/Components/Workflow/ColumnEditor/ColumnPickerOptions.js +252 -0
- package/build/dist/UI/Components/Workflow/ColumnEditor/ColumnPickerOptions.js.map +1 -0
- package/build/dist/UI/Components/Workflow/ColumnEditor/ColumnUse.js +88 -0
- package/build/dist/UI/Components/Workflow/ColumnEditor/ColumnUse.js.map +1 -0
- package/build/dist/UI/Components/Workflow/ColumnEditor/ColumnValueInput.js +79 -44
- package/build/dist/UI/Components/Workflow/ColumnEditor/ColumnValueInput.js.map +1 -1
- package/build/dist/UI/Components/Workflow/ColumnEditor/ModelQueryBuilder.js +13 -8
- package/build/dist/UI/Components/Workflow/ColumnEditor/ModelQueryBuilder.js.map +1 -1
- package/build/dist/UI/Components/Workflow/ColumnEditor/ModelRecordForm.js +19 -21
- package/build/dist/UI/Components/Workflow/ColumnEditor/ModelRecordForm.js.map +1 -1
- package/build/dist/UI/Components/Workflow/Component.js +74 -8
- package/build/dist/UI/Components/Workflow/Component.js.map +1 -1
- package/build/dist/UI/Components/Workflow/ComponentPicker/ComponentSearch.js +864 -0
- package/build/dist/UI/Components/Workflow/ComponentPicker/ComponentSearch.js.map +1 -0
- package/build/dist/UI/Components/Workflow/ComponentPicker/PickerCatalog.js +254 -0
- package/build/dist/UI/Components/Workflow/ComponentPicker/PickerCatalog.js.map +1 -0
- package/build/dist/UI/Components/Workflow/ComponentPicker/PickerItems.js +105 -0
- package/build/dist/UI/Components/Workflow/ComponentPicker/PickerItems.js.map +1 -0
- package/build/dist/UI/Components/Workflow/ComponentPortViewer.js +15 -45
- package/build/dist/UI/Components/Workflow/ComponentPortViewer.js.map +1 -1
- package/build/dist/UI/Components/Workflow/ComponentPrimaryPanel.js +88 -0
- package/build/dist/UI/Components/Workflow/ComponentPrimaryPanel.js.map +1 -0
- package/build/dist/UI/Components/Workflow/ComponentReturnValueViewer.js +24 -57
- package/build/dist/UI/Components/Workflow/ComponentReturnValueViewer.js.map +1 -1
- package/build/dist/UI/Components/Workflow/ComponentSettingsModal.js +196 -55
- package/build/dist/UI/Components/Workflow/ComponentSettingsModal.js.map +1 -1
- package/build/dist/UI/Components/Workflow/ComponentSettingsSection.js +34 -0
- package/build/dist/UI/Components/Workflow/ComponentSettingsSection.js.map +1 -0
- package/build/dist/UI/Components/Workflow/ComponentsModal.js +523 -329
- package/build/dist/UI/Components/Workflow/ComponentsModal.js.map +1 -1
- package/build/dist/UI/Components/Workflow/Condition/ConditionEditor.js +199 -0
- package/build/dist/UI/Components/Workflow/Condition/ConditionEditor.js.map +1 -0
- package/build/dist/UI/Components/Workflow/Condition/ConditionModel.js +458 -0
- package/build/dist/UI/Components/Workflow/Condition/ConditionModel.js.map +1 -0
- package/build/dist/UI/Components/Workflow/CronScheduleField.js +25 -19
- package/build/dist/UI/Components/Workflow/CronScheduleField.js.map +1 -1
- package/build/dist/UI/Components/Workflow/DocumentationViewer.js +107 -61
- package/build/dist/UI/Components/Workflow/DocumentationViewer.js.map +1 -1
- package/build/dist/UI/Components/Workflow/DownloadWorkflowRun.js +78 -0
- package/build/dist/UI/Components/Workflow/DownloadWorkflowRun.js.map +1 -0
- package/build/dist/UI/Components/Workflow/GraphLint.js +7 -2
- package/build/dist/UI/Components/Workflow/GraphLint.js.map +1 -1
- package/build/dist/UI/Components/Workflow/GraphLintSummary.js +59 -1
- package/build/dist/UI/Components/Workflow/GraphLintSummary.js.map +1 -1
- package/build/dist/UI/Components/Workflow/IncomingEmailTriggerPanel.js +215 -0
- package/build/dist/UI/Components/Workflow/IncomingEmailTriggerPanel.js.map +1 -0
- package/build/dist/UI/Components/Workflow/ManualTriggerPanel.js +27 -0
- package/build/dist/UI/Components/Workflow/ManualTriggerPanel.js.map +1 -0
- package/build/dist/UI/Components/Workflow/ModelColumnEditor.js +5 -1
- package/build/dist/UI/Components/Workflow/ModelColumnEditor.js.map +1 -1
- package/build/dist/UI/Components/Workflow/ModelFieldPicker.js +44 -2
- package/build/dist/UI/Components/Workflow/ModelFieldPicker.js.map +1 -1
- package/build/dist/UI/Components/Workflow/ModelSchema.js +7 -8
- package/build/dist/UI/Components/Workflow/ModelSchema.js.map +1 -1
- package/build/dist/UI/Components/Workflow/NodePlacement.js +123 -1
- package/build/dist/UI/Components/Workflow/NodePlacement.js.map +1 -1
- package/build/dist/UI/Components/Workflow/RunModal.js +1 -1
- package/build/dist/UI/Components/Workflow/StepTracePresentation.js +318 -0
- package/build/dist/UI/Components/Workflow/StepTracePresentation.js.map +1 -0
- package/build/dist/UI/Components/Workflow/StepTraceViewer.js +282 -42
- package/build/dist/UI/Components/Workflow/StepTraceViewer.js.map +1 -1
- package/build/dist/UI/Components/Workflow/UseRunWatch.js +4 -0
- package/build/dist/UI/Components/Workflow/UseRunWatch.js.map +1 -1
- package/build/dist/UI/Components/Workflow/UseWorkflowEnabled.js +171 -0
- package/build/dist/UI/Components/Workflow/UseWorkflowEnabled.js.map +1 -0
- package/build/dist/UI/Components/Workflow/Utils.js +95 -88
- package/build/dist/UI/Components/Workflow/Utils.js.map +1 -1
- package/build/dist/UI/Components/Workflow/ValuePicker/ArgumentControl.js +113 -0
- package/build/dist/UI/Components/Workflow/ValuePicker/ArgumentControl.js.map +1 -0
- package/build/dist/UI/Components/Workflow/ValuePicker/DefaultValueSources.js +95 -0
- package/build/dist/UI/Components/Workflow/ValuePicker/DefaultValueSources.js.map +1 -0
- package/build/dist/UI/Components/Workflow/ValuePicker/InsertValueButton.js +46 -0
- package/build/dist/UI/Components/Workflow/ValuePicker/InsertValueButton.js.map +1 -0
- package/build/dist/UI/Components/Workflow/ValuePicker/ReferenceChip.js +88 -0
- package/build/dist/UI/Components/Workflow/ValuePicker/ReferenceChip.js.map +1 -0
- package/build/dist/UI/Components/Workflow/ValuePicker/ReferenceDescription.js +187 -0
- package/build/dist/UI/Components/Workflow/ValuePicker/ReferenceDescription.js.map +1 -0
- package/build/dist/UI/Components/Workflow/ValuePicker/StepGraph.js +147 -0
- package/build/dist/UI/Components/Workflow/ValuePicker/StepGraph.js.map +1 -0
- package/build/dist/UI/Components/Workflow/ValuePicker/StepSampleSource.js +345 -0
- package/build/dist/UI/Components/Workflow/ValuePicker/StepSampleSource.js.map +1 -0
- package/build/dist/UI/Components/Workflow/ValuePicker/StepValueSource.js +181 -0
- package/build/dist/UI/Components/Workflow/ValuePicker/StepValueSource.js.map +1 -0
- package/build/dist/UI/Components/Workflow/ValuePicker/TemplateText.js +172 -0
- package/build/dist/UI/Components/Workflow/ValuePicker/TemplateText.js.map +1 -0
- package/build/dist/UI/Components/Workflow/ValuePicker/TemplateTextDom.js +342 -0
- package/build/dist/UI/Components/Workflow/ValuePicker/TemplateTextDom.js.map +1 -0
- package/build/dist/UI/Components/Workflow/ValuePicker/TemplateTextEditor.js +701 -0
- package/build/dist/UI/Components/Workflow/ValuePicker/TemplateTextEditor.js.map +1 -0
- package/build/dist/UI/Components/Workflow/ValuePicker/TemplateTextHistory.js +104 -0
- package/build/dist/UI/Components/Workflow/ValuePicker/TemplateTextHistory.js.map +1 -0
- package/build/dist/UI/Components/Workflow/ValuePicker/ValuePickerContext.js +319 -0
- package/build/dist/UI/Components/Workflow/ValuePicker/ValuePickerContext.js.map +1 -0
- package/build/dist/UI/Components/Workflow/ValuePicker/ValuePickerMenu.js +502 -0
- package/build/dist/UI/Components/Workflow/ValuePicker/ValuePickerMenu.js.map +1 -0
- package/build/dist/UI/Components/Workflow/ValuePicker/ValuePickerPopup.js +176 -0
- package/build/dist/UI/Components/Workflow/ValuePicker/ValuePickerPopup.js.map +1 -0
- package/build/dist/UI/Components/Workflow/ValuePicker/ValueSingleField.js +111 -0
- package/build/dist/UI/Components/Workflow/ValuePicker/ValueSingleField.js.map +1 -0
- package/build/dist/UI/Components/Workflow/ValuePicker/ValueSuggestion.js +356 -0
- package/build/dist/UI/Components/Workflow/ValuePicker/ValueSuggestion.js.map +1 -0
- package/build/dist/UI/Components/Workflow/ValuePicker/ValueTextField.js +168 -0
- package/build/dist/UI/Components/Workflow/ValuePicker/ValueTextField.js.map +1 -0
- package/build/dist/UI/Components/Workflow/ValuePicker/VariableValueSource.js +80 -0
- package/build/dist/UI/Components/Workflow/ValuePicker/VariableValueSource.js.map +1 -0
- package/build/dist/UI/Components/Workflow/WebhookTriggerPanel.js +225 -0
- package/build/dist/UI/Components/Workflow/WebhookTriggerPanel.js.map +1 -0
- package/build/dist/UI/Components/Workflow/Workflow.js +256 -39
- package/build/dist/UI/Components/Workflow/Workflow.js.map +1 -1
- package/build/dist/UI/Components/Workflow/WorkflowEnabledCopy.js +33 -0
- package/build/dist/UI/Components/Workflow/WorkflowEnabledCopy.js.map +1 -0
- package/build/dist/UI/Components/Workflow/WorkflowEnabledSwitch.js +18 -0
- package/build/dist/UI/Components/Workflow/WorkflowEnabledSwitch.js.map +1 -0
- package/build/dist/UI/Components/Workflow/WorkflowIncomingEmailSecretKey.js +97 -0
- package/build/dist/UI/Components/Workflow/WorkflowIncomingEmailSecretKey.js.map +1 -0
- package/build/dist/UI/Components/Workflow/WorkflowLogModal.js +41 -7
- package/build/dist/UI/Components/Workflow/WorkflowLogModal.js.map +1 -1
- package/build/dist/UI/Components/Workflow/WorkflowRunExport.js +258 -0
- package/build/dist/UI/Components/Workflow/WorkflowRunExport.js.map +1 -0
- package/build/dist/UI/Components/Workflow/WorkflowRunExportActions.js +124 -0
- package/build/dist/UI/Components/Workflow/WorkflowRunExportActions.js.map +1 -0
- package/build/dist/UI/Components/Workflow/WorkflowStatus.js +16 -23
- package/build/dist/UI/Components/Workflow/WorkflowStatus.js.map +1 -1
- package/build/dist/UI/Components/Workflow/WorkflowTurnOnModal.js +60 -0
- package/build/dist/UI/Components/Workflow/WorkflowTurnOnModal.js.map +1 -0
- package/build/dist/UI/Components/Workflow/WorkflowTurnedOffNotice.js +34 -0
- package/build/dist/UI/Components/Workflow/WorkflowTurnedOffNotice.js.map +1 -0
- package/build/dist/UI/Components/Workflow/WorkflowWebhookSecretKey.js +112 -0
- package/build/dist/UI/Components/Workflow/WorkflowWebhookSecretKey.js.map +1 -0
- package/build/dist/UI/Utils/McpOAuthPendingAuthorization.js +111 -0
- package/build/dist/UI/Utils/McpOAuthPendingAuthorization.js.map +1 -0
- package/build/dist/UI/Utils/ModelDisplayName.js +197 -0
- package/build/dist/UI/Utils/ModelDisplayName.js.map +1 -0
- package/build/dist/UI/Utils/TranslateTemplate.js +63 -0
- package/build/dist/UI/Utils/TranslateTemplate.js.map +1 -0
- package/build/dist/Utils/DeveloperDocs/AiAssistantExamples.js +278 -0
- package/build/dist/Utils/DeveloperDocs/AiAssistantExamples.js.map +1 -0
- package/build/dist/Utils/DeveloperDocs/ApiExamples.js +225 -0
- package/build/dist/Utils/DeveloperDocs/ApiExamples.js.map +1 -0
- package/build/dist/Utils/DeveloperDocs/ExampleValues.js +90 -0
- package/build/dist/Utils/DeveloperDocs/ExampleValues.js.map +1 -0
- package/build/dist/Utils/DeveloperDocs/Hcl.js +449 -0
- package/build/dist/Utils/DeveloperDocs/Hcl.js.map +1 -0
- package/build/dist/Utils/DeveloperDocs/TerraformConfig.js +503 -0
- package/build/dist/Utils/DeveloperDocs/TerraformConfig.js.map +1 -0
- package/build/dist/Utils/DeveloperDocs/TerraformMonitorSteps.js +332 -0
- package/build/dist/Utils/DeveloperDocs/TerraformMonitorSteps.js.map +1 -0
- package/build/dist/Utils/DeveloperDocs/TerraformSchema.js +420 -0
- package/build/dist/Utils/DeveloperDocs/TerraformSchema.js.map +1 -0
- package/build/dist/Utils/DeveloperDocs/TerraformValues.js +280 -0
- package/build/dist/Utils/DeveloperDocs/TerraformValues.js.map +1 -0
- package/build/dist/Utils/Email/EmailAddressList.js +132 -0
- package/build/dist/Utils/Email/EmailAddressList.js.map +1 -0
- package/build/dist/Utils/ModelImportExport.js +15 -0
- package/build/dist/Utils/ModelImportExport.js.map +1 -1
- package/build/dist/Utils/Monitor/IncomingEmailMonitorAddress.js +54 -3
- package/build/dist/Utils/Monitor/IncomingEmailMonitorAddress.js.map +1 -1
- package/build/dist/Utils/Monitor/MonitorOverviewPresentationUtil.js +19 -1
- package/build/dist/Utils/Monitor/MonitorOverviewPresentationUtil.js.map +1 -1
- package/build/dist/Utils/Monitor/MonitorPauseState.js +66 -0
- package/build/dist/Utils/Monitor/MonitorPauseState.js.map +1 -0
- package/build/dist/Utils/Rum/SessionIdentity.js +73 -0
- package/build/dist/Utils/Rum/SessionIdentity.js.map +1 -1
- package/build/dist/Utils/StatusPage/ArchivedMonitorResources.js +31 -0
- package/build/dist/Utils/StatusPage/ArchivedMonitorResources.js.map +1 -0
- package/package.json +1 -1
- package/test-setup.sh +15 -1
- package/UI/Components/Workflow/ColumnEditor/AddColumnDropdown.tsx +0 -177
- package/UI/Components/Workflow/ComponentValuePickerModal.tsx +0 -325
- package/UI/Components/Workflow/VariableModal.tsx +0 -59
- package/build/dist/UI/Components/Workflow/ColumnEditor/AddColumnDropdown.js +0 -86
- package/build/dist/UI/Components/Workflow/ColumnEditor/AddColumnDropdown.js.map +0 -1
- package/build/dist/UI/Components/Workflow/ComponentValuePickerModal.js +0 -144
- package/build/dist/UI/Components/Workflow/ComponentValuePickerModal.js.map +0 -1
- package/build/dist/UI/Components/Workflow/VariableModal.js +0 -31
- package/build/dist/UI/Components/Workflow/VariableModal.js.map +0 -1
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
import { ONEUPTIME_API_KEY_ENVIRONMENT_VARIABLE, toSentenceCaseName, } from "./ExampleValues";
|
|
2
|
+
import { getTerraformTypeName } from "./TerraformSchema";
|
|
3
|
+
/*
|
|
4
|
+
* The MCP server's tool-name rule (MCP/Tools/SchemaConverter.ts
|
|
5
|
+
* sanitizeToolName): "On-Call Policy" -> on_call_policy.
|
|
6
|
+
*/
|
|
7
|
+
export function sanitizeMcpToolName(name) {
|
|
8
|
+
return name
|
|
9
|
+
.replace(/([a-z])([A-Z])/g, "$1_$2")
|
|
10
|
+
.toLowerCase()
|
|
11
|
+
.replace(/[^a-z0-9]/g, "_")
|
|
12
|
+
.replace(/_+/g, "_")
|
|
13
|
+
.replace(/^_|_$/g, "");
|
|
14
|
+
}
|
|
15
|
+
// Whether the MCP server has tools for this model.
|
|
16
|
+
export function hasMcpTools(modelType) {
|
|
17
|
+
const model = new modelType();
|
|
18
|
+
return Boolean(model.enableMCP && model.tableName && model.crudApiPath);
|
|
19
|
+
}
|
|
20
|
+
// The MCP server's tools for a model, or null when it has none.
|
|
21
|
+
export function getMcpToolNames(modelType) {
|
|
22
|
+
if (!hasMcpTools(modelType)) {
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
const model = new modelType();
|
|
26
|
+
const singularName = model.singularName || model.tableName || "";
|
|
27
|
+
const pluralName = model.pluralName || `${singularName}s`;
|
|
28
|
+
const singular = sanitizeMcpToolName(singularName);
|
|
29
|
+
const plural = sanitizeMcpToolName(pluralName);
|
|
30
|
+
return {
|
|
31
|
+
create: `create_${singular}`,
|
|
32
|
+
get: `get_${singular}`,
|
|
33
|
+
list: `list_${plural}`,
|
|
34
|
+
update: `update_${singular}`,
|
|
35
|
+
delete: `delete_${singular}`,
|
|
36
|
+
count: `count_${plural}`,
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
// `https://oneuptime.com/mcp`.
|
|
40
|
+
export function getMcpServerUrl(oneuptimeUrl) {
|
|
41
|
+
return `${oneuptimeUrl.replace(/\/+$/, "")}/mcp`;
|
|
42
|
+
}
|
|
43
|
+
const FENCE = "```";
|
|
44
|
+
function codeBlock(language, code) {
|
|
45
|
+
return `${FENCE}${language}\n${code}\n${FENCE}`;
|
|
46
|
+
}
|
|
47
|
+
/*
|
|
48
|
+
* Connecting each common MCP client by signing in: the server URL is all a
|
|
49
|
+
* client needs; it opens OneUptime to sign in the first time.
|
|
50
|
+
*/
|
|
51
|
+
export function getMcpClientSetups(mcpUrl) {
|
|
52
|
+
return [
|
|
53
|
+
{
|
|
54
|
+
label: "Claude Code",
|
|
55
|
+
markdown: [
|
|
56
|
+
"Add the server, then run `/mcp` inside Claude Code and choose **oneuptime** to sign in:",
|
|
57
|
+
"",
|
|
58
|
+
codeBlock("bash", `claude mcp add --transport http oneuptime ${mcpUrl}`),
|
|
59
|
+
].join("\n"),
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
label: "Claude",
|
|
63
|
+
markdown: [
|
|
64
|
+
"In Claude (web or desktop), open **Customize → Connectors**, choose **Add custom connector** and enter this URL. Claude asks you to sign in to OneUptime the first time it needs your data.",
|
|
65
|
+
"",
|
|
66
|
+
codeBlock("text", mcpUrl),
|
|
67
|
+
].join("\n"),
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
label: "VS Code",
|
|
71
|
+
markdown: [
|
|
72
|
+
"Add this to `.vscode/mcp.json`. VS Code opens OneUptime for you to sign in when the server starts:",
|
|
73
|
+
"",
|
|
74
|
+
codeBlock("json", JSON.stringify({ servers: { oneuptime: { type: "http", url: mcpUrl } } }, null, 2)),
|
|
75
|
+
].join("\n"),
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
label: "Cursor",
|
|
79
|
+
markdown: [
|
|
80
|
+
"Add this to `~/.cursor/mcp.json` (or `.cursor/mcp.json` in a project):",
|
|
81
|
+
"",
|
|
82
|
+
codeBlock("json", JSON.stringify({ mcpServers: { oneuptime: { url: mcpUrl } } }, null, 2)),
|
|
83
|
+
].join("\n"),
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
label: "Other assistants",
|
|
87
|
+
markdown: [
|
|
88
|
+
"Any assistant that supports remote MCP servers works the same way: give it this URL, and sign in to OneUptime when it asks.",
|
|
89
|
+
"",
|
|
90
|
+
codeBlock("text", mcpUrl),
|
|
91
|
+
].join("\n"),
|
|
92
|
+
},
|
|
93
|
+
];
|
|
94
|
+
}
|
|
95
|
+
/*
|
|
96
|
+
* Connecting an agent that runs on its own (a scheduled job, a CI step),
|
|
97
|
+
* where nobody is there to sign in: an API key in a header.
|
|
98
|
+
*/
|
|
99
|
+
export function getMcpApiKeySetupMarkdown(mcpUrl) {
|
|
100
|
+
return [
|
|
101
|
+
`Give the agent a project API key in the \`x-api-key\` header. With Claude Code, for example, read it from the \`${ONEUPTIME_API_KEY_ENVIRONMENT_VARIABLE}\` environment variable:`,
|
|
102
|
+
"",
|
|
103
|
+
codeBlock("bash", `claude mcp add --transport http oneuptime ${mcpUrl} --header "x-api-key: $${ONEUPTIME_API_KEY_ENVIRONMENT_VARIABLE}"`),
|
|
104
|
+
"",
|
|
105
|
+
"Create the key with only the permissions the agent needs. Never give an agent a master API key.",
|
|
106
|
+
].join("\n");
|
|
107
|
+
}
|
|
108
|
+
// `the workflow "Send weekly report" (ID 6e4f...)`.
|
|
109
|
+
export function describeResourceForPrompt(context) {
|
|
110
|
+
const noun = toSentenceCaseName(context.singularName);
|
|
111
|
+
if (context.displayName && context.id) {
|
|
112
|
+
return `the ${noun} "${context.displayName}" (ID ${context.id})`;
|
|
113
|
+
}
|
|
114
|
+
if (context.id) {
|
|
115
|
+
return `the ${noun} with ID ${context.id}`;
|
|
116
|
+
}
|
|
117
|
+
return `the ${noun}`;
|
|
118
|
+
}
|
|
119
|
+
/*
|
|
120
|
+
* Prompts for the resources the MCP server has tools for, by table. Each one
|
|
121
|
+
* asks only for what those tools can do: the timelines, notes and
|
|
122
|
+
* acknowledge/resolve tools exist for incidents and alerts, announcements
|
|
123
|
+
* for status pages, and so on.
|
|
124
|
+
*/
|
|
125
|
+
const MCP_PROMPTS_BY_TABLE = {
|
|
126
|
+
Monitor: {
|
|
127
|
+
resource: (resource) => {
|
|
128
|
+
return [
|
|
129
|
+
`Is ${resource} up right now? Show me its status changes from the last 7 days.`,
|
|
130
|
+
`List the incidents ${resource} opened in the last 30 days and how long each took to resolve.`,
|
|
131
|
+
`Update the description of ${resource} to say what it checks and who to call when it is down.`,
|
|
132
|
+
];
|
|
133
|
+
},
|
|
134
|
+
collection: [
|
|
135
|
+
"Which of my monitors are not operational right now?",
|
|
136
|
+
"List my monitors that have no labels.",
|
|
137
|
+
"Create a website monitor for https://example.com that checks it every 5 minutes.",
|
|
138
|
+
],
|
|
139
|
+
},
|
|
140
|
+
Incident: {
|
|
141
|
+
resource: (resource) => {
|
|
142
|
+
return [
|
|
143
|
+
`Summarize ${resource}: what happened, its timeline and where it stands now.`,
|
|
144
|
+
`Acknowledge ${resource} and add an internal note that I am looking into it.`,
|
|
145
|
+
`Draft a public status page update for ${resource}, show it to me, and post it once I approve.`,
|
|
146
|
+
];
|
|
147
|
+
},
|
|
148
|
+
collection: [
|
|
149
|
+
"Show me the incidents that are not resolved yet, most severe first.",
|
|
150
|
+
"How many incidents did we have in the last 30 days, by severity?",
|
|
151
|
+
"Which monitors caused the most incidents this month?",
|
|
152
|
+
],
|
|
153
|
+
},
|
|
154
|
+
Alert: {
|
|
155
|
+
resource: (resource) => {
|
|
156
|
+
return [
|
|
157
|
+
`Summarize ${resource} and its timeline.`,
|
|
158
|
+
`Acknowledge ${resource} and add an internal note that I am looking into it.`,
|
|
159
|
+
`Resolve ${resource} with a note on what fixed it.`,
|
|
160
|
+
];
|
|
161
|
+
},
|
|
162
|
+
collection: [
|
|
163
|
+
"Which alerts are open right now?",
|
|
164
|
+
"How many alerts fired in the last 7 days, by severity?",
|
|
165
|
+
"Acknowledge every open alert and add a note that I am on it.",
|
|
166
|
+
],
|
|
167
|
+
},
|
|
168
|
+
ScheduledMaintenance: {
|
|
169
|
+
resource: (resource) => {
|
|
170
|
+
return [
|
|
171
|
+
`When does ${resource} start and end, and what does it affect?`,
|
|
172
|
+
`What state is ${resource} in, and when did that change?`,
|
|
173
|
+
`Move ${resource} one hour later.`,
|
|
174
|
+
];
|
|
175
|
+
},
|
|
176
|
+
collection: [
|
|
177
|
+
"What maintenance is scheduled for the next 7 days?",
|
|
178
|
+
'Schedule maintenance called "Database upgrade" for next Saturday from 02:00 to 04:00 UTC.',
|
|
179
|
+
],
|
|
180
|
+
},
|
|
181
|
+
StatusPage: {
|
|
182
|
+
resource: (resource) => {
|
|
183
|
+
return [
|
|
184
|
+
`Show me how ${resource} is set up: is it public, and how can people subscribe?`,
|
|
185
|
+
`Post an announcement on ${resource} saying we are investigating slow logins.`,
|
|
186
|
+
`List the announcements on ${resource} from the last 30 days.`,
|
|
187
|
+
];
|
|
188
|
+
},
|
|
189
|
+
collection: [
|
|
190
|
+
"List my status pages and say which ones are public.",
|
|
191
|
+
"Post an announcement on every public status page about maintenance this Saturday.",
|
|
192
|
+
],
|
|
193
|
+
},
|
|
194
|
+
StatusPageAnnouncement: {
|
|
195
|
+
resource: (resource) => {
|
|
196
|
+
return [
|
|
197
|
+
`Show me ${resource} and the status pages it is on.`,
|
|
198
|
+
`End ${resource} now.`,
|
|
199
|
+
];
|
|
200
|
+
},
|
|
201
|
+
collection: [
|
|
202
|
+
"List the announcements that are showing on my status pages right now.",
|
|
203
|
+
"Post an announcement on every public status page about maintenance this Saturday.",
|
|
204
|
+
],
|
|
205
|
+
},
|
|
206
|
+
Team: {
|
|
207
|
+
resource: (resource) => {
|
|
208
|
+
return [
|
|
209
|
+
`Show me ${resource} and what it is for.`,
|
|
210
|
+
`Update the description of ${resource} to say what the team owns.`,
|
|
211
|
+
];
|
|
212
|
+
},
|
|
213
|
+
collection: [
|
|
214
|
+
"List the teams in this project.",
|
|
215
|
+
'Create a team called "Platform".',
|
|
216
|
+
],
|
|
217
|
+
},
|
|
218
|
+
OnCallDutyPolicy: {
|
|
219
|
+
resource: (resource) => {
|
|
220
|
+
return [
|
|
221
|
+
`Show me ${resource} and how it is set up.`,
|
|
222
|
+
`List the incidents from the last 7 days that ${resource} was paged for.`,
|
|
223
|
+
];
|
|
224
|
+
},
|
|
225
|
+
collection: [
|
|
226
|
+
"List my on-call policies.",
|
|
227
|
+
"Which on-call policies have no labels?",
|
|
228
|
+
],
|
|
229
|
+
},
|
|
230
|
+
};
|
|
231
|
+
/*
|
|
232
|
+
* Prompts to start from. With MCP tools for the model, they ask the
|
|
233
|
+
* assistant to use OneUptime directly. Without, they are written for an
|
|
234
|
+
* assistant that can run commands (Claude Code, Cursor, GitHub Copilot):
|
|
235
|
+
* they point it at the API reference and the API key in the environment,
|
|
236
|
+
* and one asks for Terraform instead.
|
|
237
|
+
*/
|
|
238
|
+
export function getAssistantPrompts(context) {
|
|
239
|
+
const plural = toSentenceCaseName(context.pluralName);
|
|
240
|
+
const noun = toSentenceCaseName(context.singularName);
|
|
241
|
+
const terraformType = getTerraformTypeName(context.modelType);
|
|
242
|
+
const isResource = Boolean(context.id);
|
|
243
|
+
const resource = describeResourceForPrompt(context);
|
|
244
|
+
if (hasMcpTools(context.modelType)) {
|
|
245
|
+
const tableName = new context.modelType().tableName || "";
|
|
246
|
+
const curated = MCP_PROMPTS_BY_TABLE[tableName];
|
|
247
|
+
if (curated) {
|
|
248
|
+
return isResource ? curated.resource(resource) : [...curated.collection];
|
|
249
|
+
}
|
|
250
|
+
if (isResource) {
|
|
251
|
+
return [
|
|
252
|
+
`Show me ${resource} in OneUptime and summarize how it is set up.`,
|
|
253
|
+
`Update the description of ${resource} so it explains what it is for and who owns it.`,
|
|
254
|
+
];
|
|
255
|
+
}
|
|
256
|
+
return [
|
|
257
|
+
`List my ${plural} in OneUptime.`,
|
|
258
|
+
`Create a ${noun} in OneUptime called "Example ${noun}" and show me what you set.`,
|
|
259
|
+
];
|
|
260
|
+
}
|
|
261
|
+
const apiNote = `Use the OneUptime REST API (reference: ${context.apiReferenceUrl}) with the API key in the ${ONEUPTIME_API_KEY_ENVIRONMENT_VARIABLE} environment variable.`;
|
|
262
|
+
const prompts = isResource
|
|
263
|
+
? [
|
|
264
|
+
`Show me ${resource} and explain what it does. ${apiNote}`,
|
|
265
|
+
`Update the description of ${resource} so it explains what it is for. ${apiNote}`,
|
|
266
|
+
]
|
|
267
|
+
: [
|
|
268
|
+
`List my ${plural} and summarize them in a table. ${apiNote}`,
|
|
269
|
+
`Create a ${noun} called "Example ${noun}" and show me what you set. ${apiNote}`,
|
|
270
|
+
];
|
|
271
|
+
if (terraformType) {
|
|
272
|
+
prompts.push(isResource
|
|
273
|
+
? `Write Terraform for ${resource} with the oneuptime/oneuptime provider (resource ${terraformType}), with an import block so Terraform adopts the existing one.`
|
|
274
|
+
: `Write Terraform with the oneuptime/oneuptime provider to manage my ${plural} (resource ${terraformType}), and import blocks for the ones I already have.`);
|
|
275
|
+
}
|
|
276
|
+
return prompts;
|
|
277
|
+
}
|
|
278
|
+
//# sourceMappingURL=AiAssistantExamples.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AiAssistantExamples.js","sourceRoot":"","sources":["../../../../Utils/DeveloperDocs/AiAssistantExamples.ts"],"names":[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,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;QAC3E,CAAC;QAED,IAAI,UAAU,EAAE,CAAC;YACf,OAAO;gBACL,WAAW,QAAQ,+CAA+C;gBAClE,6BAA6B,QAAQ,iDAAiD;aACvF,CAAC;QACJ,CAAC;QAED,OAAO;YACL,WAAW,MAAM,gBAAgB;YACjC,YAAY,IAAI,iCAAiC,IAAI,6BAA6B;SACnF,CAAC;IACJ,CAAC;IAED,MAAM,OAAO,GAAW,0CAA0C,OAAO,CAAC,eAAe,6BAA6B,sCAAsC,wBAAwB,CAAC;IAErL,MAAM,OAAO,GAAkB,UAAU;QACvC,CAAC,CAAC;YACE,WAAW,QAAQ,8BAA8B,OAAO,EAAE;YAC1D,6BAA6B,QAAQ,mCAAmC,OAAO,EAAE;SAClF;QACH,CAAC,CAAC;YACE,WAAW,MAAM,mCAAmC,OAAO,EAAE;YAC7D,YAAY,IAAI,oBAAoB,IAAI,+BAA+B,OAAO,EAAE;SACjF,CAAC;IAEN,IAAI,aAAa,EAAE,CAAC;QAClB,OAAO,CAAC,IAAI,CACV,UAAU;YACR,CAAC,CAAC,uBAAuB,QAAQ,oDAAoD,aAAa,+DAA+D;YACjK,CAAC,CAAC,sEAAsE,MAAM,cAAc,aAAa,mDAAmD,CAC/J,CAAC;IACJ,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
import { getNameColumn, getTerraformAttributes, getTerraformModelOperations, isModelInPublicApi, TerraformValueKind, } from "./TerraformSchema";
|
|
2
|
+
import { getExampleJsonValue, ONEUPTIME_API_KEY_ENVIRONMENT_VARIABLE, } from "./ExampleValues";
|
|
3
|
+
// How many fields a read example asks for, besides the id.
|
|
4
|
+
const MAX_READ_EXAMPLE_FIELDS = 6;
|
|
5
|
+
// Characters a POSIX shell leaves alone in an unquoted word.
|
|
6
|
+
const SHELL_SAFE_WORD = /^[A-Za-z0-9._:@%+,/=-]+$/;
|
|
7
|
+
/*
|
|
8
|
+
* One shell word that reaches the command exactly as written: bare when made
|
|
9
|
+
* only of characters the shell leaves alone, otherwise single-quoted (a `'`
|
|
10
|
+
* inside closes the quote, adds an escaped quote and opens it again). A
|
|
11
|
+
* resource named "Bob's API" can therefore not end the quoted JSON early.
|
|
12
|
+
*/
|
|
13
|
+
export function shellQuote(value) {
|
|
14
|
+
return SHELL_SAFE_WORD.test(value)
|
|
15
|
+
? value
|
|
16
|
+
: `'${value.split("'").join("'\\''")}'`;
|
|
17
|
+
}
|
|
18
|
+
/*
|
|
19
|
+
* `https://oneuptime.com/api`: the API's base URL, from the dashboard's
|
|
20
|
+
* origin.
|
|
21
|
+
*/
|
|
22
|
+
export function getApiBaseUrl(oneuptimeUrl) {
|
|
23
|
+
return `${oneuptimeUrl.replace(/\/+$/, "")}/api`;
|
|
24
|
+
}
|
|
25
|
+
// `/workflow`, the model's path under the API.
|
|
26
|
+
export function getModelApiPath(modelType) {
|
|
27
|
+
var _a;
|
|
28
|
+
const model = new modelType();
|
|
29
|
+
const path = (_a = model.crudApiPath) === null || _a === void 0 ? void 0 : _a.toString();
|
|
30
|
+
return path ? `/${path.replace(/^\/+/, "")}` : null;
|
|
31
|
+
}
|
|
32
|
+
/*
|
|
33
|
+
* A curl command for one request: the API key from the environment, and
|
|
34
|
+
* the JSON body pretty-printed inside single quotes.
|
|
35
|
+
*/
|
|
36
|
+
export function getCurlCommand(data) {
|
|
37
|
+
const lines = [
|
|
38
|
+
`curl -X ${data.method} ${shellQuote(data.url)}`,
|
|
39
|
+
`-H "ApiKey: $${ONEUPTIME_API_KEY_ENVIRONMENT_VARIABLE}"`,
|
|
40
|
+
];
|
|
41
|
+
if (data.body) {
|
|
42
|
+
lines.push(`-H "Content-Type: application/json"`);
|
|
43
|
+
lines.push(`-d ${shellQuote(JSON.stringify(data.body, null, 2))}`);
|
|
44
|
+
}
|
|
45
|
+
return lines.join(" \\\n ");
|
|
46
|
+
}
|
|
47
|
+
function example(data) {
|
|
48
|
+
return {
|
|
49
|
+
method: data.method,
|
|
50
|
+
url: data.url,
|
|
51
|
+
body: data.body,
|
|
52
|
+
curl: getCurlCommand(data),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function isReadableExampleField(descriptor) {
|
|
56
|
+
return (!descriptor.secretKind &&
|
|
57
|
+
!descriptor.isServerManaged &&
|
|
58
|
+
(descriptor.kind === TerraformValueKind.String ||
|
|
59
|
+
descriptor.kind === TerraformValueKind.Number ||
|
|
60
|
+
descriptor.kind === TerraformValueKind.Bool ||
|
|
61
|
+
descriptor.kind === TerraformValueKind.DateTime));
|
|
62
|
+
}
|
|
63
|
+
/*
|
|
64
|
+
* The `select` of a read example: the name, then the first few plain fields
|
|
65
|
+
* the model declares (no secrets, no large JSON).
|
|
66
|
+
*/
|
|
67
|
+
export function getExampleSelect(modelType) {
|
|
68
|
+
const select = { _id: true };
|
|
69
|
+
const nameColumn = getNameColumn(modelType);
|
|
70
|
+
if (nameColumn) {
|
|
71
|
+
select[nameColumn] = true;
|
|
72
|
+
}
|
|
73
|
+
for (const descriptor of getTerraformAttributes(modelType)) {
|
|
74
|
+
if (Object.keys(select).length > MAX_READ_EXAMPLE_FIELDS) {
|
|
75
|
+
break;
|
|
76
|
+
}
|
|
77
|
+
if (isReadableExampleField(descriptor)) {
|
|
78
|
+
select[descriptor.columnName] = true;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return select;
|
|
82
|
+
}
|
|
83
|
+
/*
|
|
84
|
+
* The `data` of a change example: a new description when the resource has
|
|
85
|
+
* one, otherwise a new name.
|
|
86
|
+
*/
|
|
87
|
+
function getExampleUpdateData(data) {
|
|
88
|
+
const attributes = getTerraformAttributes(data.modelType).filter((descriptor) => {
|
|
89
|
+
return descriptor.inUpdateSchema;
|
|
90
|
+
});
|
|
91
|
+
const hasColumn = (columnName) => {
|
|
92
|
+
return attributes.some((descriptor) => {
|
|
93
|
+
return descriptor.columnName === columnName;
|
|
94
|
+
});
|
|
95
|
+
};
|
|
96
|
+
if (hasColumn("description")) {
|
|
97
|
+
return { description: "Updated with the OneUptime API" };
|
|
98
|
+
}
|
|
99
|
+
const nameColumn = getNameColumn(data.modelType);
|
|
100
|
+
if (nameColumn && hasColumn(nameColumn)) {
|
|
101
|
+
return {
|
|
102
|
+
[nameColumn]: data.displayName
|
|
103
|
+
? `${data.displayName} (renamed)`
|
|
104
|
+
: "New name",
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
return null;
|
|
108
|
+
}
|
|
109
|
+
/*
|
|
110
|
+
* The `data` of a create example: every field the API requires, with
|
|
111
|
+
* example values, plus the description.
|
|
112
|
+
*/
|
|
113
|
+
export function getExampleCreateData(data) {
|
|
114
|
+
var _a;
|
|
115
|
+
const nameColumn = getNameColumn(data.modelType);
|
|
116
|
+
const createData = {};
|
|
117
|
+
for (const descriptor of getTerraformAttributes(data.modelType)) {
|
|
118
|
+
if (!descriptor.inCreateSchema) {
|
|
119
|
+
continue;
|
|
120
|
+
}
|
|
121
|
+
const isNameColumn = descriptor.columnName === nameColumn;
|
|
122
|
+
const isDescription = descriptor.columnName === "description";
|
|
123
|
+
if (!descriptor.isRequired && !isNameColumn && !isDescription) {
|
|
124
|
+
continue;
|
|
125
|
+
}
|
|
126
|
+
if (descriptor.kind === TerraformValueKind.Unsupported) {
|
|
127
|
+
continue;
|
|
128
|
+
}
|
|
129
|
+
const exampleValue = (_a = data.exampleValues) === null || _a === void 0 ? void 0 : _a[descriptor.columnName];
|
|
130
|
+
if (exampleValue !== undefined) {
|
|
131
|
+
createData[descriptor.columnName] = exampleValue;
|
|
132
|
+
}
|
|
133
|
+
else if (isDescription) {
|
|
134
|
+
createData[descriptor.columnName] = "Created with the OneUptime API";
|
|
135
|
+
}
|
|
136
|
+
else {
|
|
137
|
+
createData[descriptor.columnName] = getExampleJsonValue({
|
|
138
|
+
descriptor,
|
|
139
|
+
singularName: data.singularName,
|
|
140
|
+
isNameColumn,
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
// The name first, as people read it.
|
|
145
|
+
if (nameColumn && nameColumn in createData) {
|
|
146
|
+
return Object.assign({ [nameColumn]: createData[nameColumn] }, createData);
|
|
147
|
+
}
|
|
148
|
+
return createData;
|
|
149
|
+
}
|
|
150
|
+
// Read, change and delete examples for one resource.
|
|
151
|
+
export function getResourceApiExamples(data) {
|
|
152
|
+
const path = getModelApiPath(data.modelType);
|
|
153
|
+
if (!path || !isModelInPublicApi(data.modelType)) {
|
|
154
|
+
return { read: null, update: null, delete: null };
|
|
155
|
+
}
|
|
156
|
+
const operations = getTerraformModelOperations(data.modelType);
|
|
157
|
+
const itemUrl = `${data.apiBaseUrl}${path}/${data.id}`;
|
|
158
|
+
const updateData = operations.canUpdate
|
|
159
|
+
? getExampleUpdateData({
|
|
160
|
+
modelType: data.modelType,
|
|
161
|
+
displayName: data.displayName || null,
|
|
162
|
+
})
|
|
163
|
+
: null;
|
|
164
|
+
return {
|
|
165
|
+
read: operations.canRead
|
|
166
|
+
? example({
|
|
167
|
+
method: "POST",
|
|
168
|
+
url: `${itemUrl}/get-item`,
|
|
169
|
+
body: { select: getExampleSelect(data.modelType) },
|
|
170
|
+
})
|
|
171
|
+
: null,
|
|
172
|
+
update: updateData
|
|
173
|
+
? example({ method: "PUT", url: itemUrl, body: { data: updateData } })
|
|
174
|
+
: null,
|
|
175
|
+
delete: operations.canDelete
|
|
176
|
+
? example({ method: "DELETE", url: itemUrl })
|
|
177
|
+
: null,
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
// List, count and create examples for a resource type.
|
|
181
|
+
export function getCollectionApiExamples(data) {
|
|
182
|
+
const path = getModelApiPath(data.modelType);
|
|
183
|
+
if (!path || !isModelInPublicApi(data.modelType)) {
|
|
184
|
+
return { list: null, count: null, create: null };
|
|
185
|
+
}
|
|
186
|
+
const operations = getTerraformModelOperations(data.modelType);
|
|
187
|
+
const collectionUrl = `${data.apiBaseUrl}${path}`;
|
|
188
|
+
const createData = getExampleCreateData({
|
|
189
|
+
modelType: data.modelType,
|
|
190
|
+
singularName: data.singularName,
|
|
191
|
+
exampleValues: data.exampleValues,
|
|
192
|
+
});
|
|
193
|
+
return {
|
|
194
|
+
list: operations.canRead
|
|
195
|
+
? example({
|
|
196
|
+
method: "POST",
|
|
197
|
+
url: `${collectionUrl}/get-list?skip=0&limit=10`,
|
|
198
|
+
body: {
|
|
199
|
+
select: getExampleSelect(data.modelType),
|
|
200
|
+
sort: { createdAt: "DESC" },
|
|
201
|
+
},
|
|
202
|
+
})
|
|
203
|
+
: null,
|
|
204
|
+
count: operations.canRead
|
|
205
|
+
? example({
|
|
206
|
+
method: "POST",
|
|
207
|
+
url: `${collectionUrl}/count`,
|
|
208
|
+
body: { query: {} },
|
|
209
|
+
})
|
|
210
|
+
: null,
|
|
211
|
+
create: operations.canCreate && Object.keys(createData).length > 0
|
|
212
|
+
? example({
|
|
213
|
+
method: "POST",
|
|
214
|
+
url: collectionUrl,
|
|
215
|
+
body: { data: createData },
|
|
216
|
+
})
|
|
217
|
+
: null,
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
// The API reference page for a model: `https://oneuptime.com/reference/workflow`.
|
|
221
|
+
export function getApiReferenceUrl(data) {
|
|
222
|
+
const model = new data.modelType();
|
|
223
|
+
return `${data.oneuptimeUrl.replace(/\/+$/, "")}/reference/${model.getAPIDocumentationPath()}`;
|
|
224
|
+
}
|
|
225
|
+
//# sourceMappingURL=ApiExamples.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApiExamples.js","sourceRoot":"","sources":["../../../../Utils/DeveloperDocs/ApiExamples.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,aAAa,EACb,sBAAsB,EACtB,2BAA2B,EAC3B,kBAAkB,EAGlB,kBAAkB,GACnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,m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AC;AACJ,CAAC;AAED,kFAAkF;AAClF,MAAM,UAAU,kBAAkB,CAAC,IAGlC;IACC,MAAM,KAAK,GAAsB,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;IAEtD,OAAO,GAAG,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,cAAc,KAAK,CAAC,uBAAuB,EAAE,EAAE,CAAC;AACjG,CAAC"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { TerraformValueKind, } from "./TerraformSchema";
|
|
2
|
+
/*
|
|
3
|
+
* What the Developer pages' examples share: where the API key comes from,
|
|
4
|
+
* and the example values a new resource is started from.
|
|
5
|
+
*/
|
|
6
|
+
/*
|
|
7
|
+
* The environment variable every example reads the API key from. It is the
|
|
8
|
+
* one the Terraform provider reads, so a single `export` serves the
|
|
9
|
+
* Terraform, API and AI pages alike, and no key is ever written into a
|
|
10
|
+
* command or a configuration.
|
|
11
|
+
*/
|
|
12
|
+
export const ONEUPTIME_API_KEY_ENVIRONMENT_VARIABLE = "ONEUPTIME_API_KEY";
|
|
13
|
+
/*
|
|
14
|
+
* Product and technology names that keep their capital in a sentence:
|
|
15
|
+
* "Kubernetes cluster", not "kubernetes cluster".
|
|
16
|
+
*/
|
|
17
|
+
const PROPER_NOUNS = [
|
|
18
|
+
"Docker",
|
|
19
|
+
"Swarm",
|
|
20
|
+
"Kubernetes",
|
|
21
|
+
"Podman",
|
|
22
|
+
"Proxmox",
|
|
23
|
+
"Ceph",
|
|
24
|
+
"VMware",
|
|
25
|
+
"OneUptime",
|
|
26
|
+
];
|
|
27
|
+
// A word written the ordinary way: a capital, then lower case ("Policy", "On").
|
|
28
|
+
const TITLE_CASE_WORD = /^[A-Z][a-z0-9']*$/;
|
|
29
|
+
/*
|
|
30
|
+
* A resource's name for use inside a sentence: "Status Page" -> "status
|
|
31
|
+
* page", "On-Call Policy" -> "on-call policy", while acronyms and names keep
|
|
32
|
+
* their capitals: "AI insight", "SLOs", "IoT fleet", "Kubernetes cluster",
|
|
33
|
+
* "vCenter".
|
|
34
|
+
*/
|
|
35
|
+
export function toSentenceCaseName(name) {
|
|
36
|
+
return name
|
|
37
|
+
.split(" ")
|
|
38
|
+
.map((word) => {
|
|
39
|
+
return word
|
|
40
|
+
.split("-")
|
|
41
|
+
.map((part) => {
|
|
42
|
+
return TITLE_CASE_WORD.test(part) && !PROPER_NOUNS.includes(part)
|
|
43
|
+
? part.toLowerCase()
|
|
44
|
+
: part;
|
|
45
|
+
})
|
|
46
|
+
.join("-");
|
|
47
|
+
})
|
|
48
|
+
.join(" ");
|
|
49
|
+
}
|
|
50
|
+
// `export ONEUPTIME_API_KEY="your-api-key"`.
|
|
51
|
+
export function getApiKeyExportCommand() {
|
|
52
|
+
return `export ${ONEUPTIME_API_KEY_ENVIRONMENT_VARIABLE}="your-api-key"`;
|
|
53
|
+
}
|
|
54
|
+
/*
|
|
55
|
+
* An example value for a field a new resource must have: "My workflow" for
|
|
56
|
+
* its name, the field's default or documented example when it has one, and
|
|
57
|
+
* a placeholder to replace otherwise ("<incident severity id>").
|
|
58
|
+
*/
|
|
59
|
+
export function getExampleJsonValue(data) {
|
|
60
|
+
const { descriptor } = data;
|
|
61
|
+
if (data.isNameColumn) {
|
|
62
|
+
return `My ${toSentenceCaseName(data.singularName)}`;
|
|
63
|
+
}
|
|
64
|
+
if (descriptor.defaultValue !== undefined) {
|
|
65
|
+
return descriptor.defaultValue;
|
|
66
|
+
}
|
|
67
|
+
switch (descriptor.kind) {
|
|
68
|
+
case TerraformValueKind.Number:
|
|
69
|
+
return typeof descriptor.example === "number" ? descriptor.example : 1;
|
|
70
|
+
case TerraformValueKind.Bool:
|
|
71
|
+
return true;
|
|
72
|
+
case TerraformValueKind.DateTime:
|
|
73
|
+
return "2030-01-01T00:00:00.000Z";
|
|
74
|
+
case TerraformValueKind.IdSet:
|
|
75
|
+
case TerraformValueKind.StringSet:
|
|
76
|
+
return [];
|
|
77
|
+
case TerraformValueKind.Json:
|
|
78
|
+
return {};
|
|
79
|
+
default:
|
|
80
|
+
break;
|
|
81
|
+
}
|
|
82
|
+
if (descriptor.columnName.endsWith("Id")) {
|
|
83
|
+
return `<${descriptor.title.replace(/\s*ID$/i, "").toLowerCase()} id>`;
|
|
84
|
+
}
|
|
85
|
+
if (typeof descriptor.example === "string" && descriptor.example.length > 0) {
|
|
86
|
+
return descriptor.example;
|
|
87
|
+
}
|
|
88
|
+
return `<${descriptor.title.toLowerCase()}>`;
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=ExampleValues.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExampleValues.js","sourceRoot":"","sources":["../../../../Utils/DeveloperDocs/ExampleValues.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,kBAAkB,GACnB,MAAM,mBAAmB,CAAC;AAE3B;;;GAGG;AAEH;;;;;GAKG;AACH,MAAM,CAAC,MAAM,sCAAsC,GACjD,mBAAmB,CAAC;AAEtB;;;GAGG;AACH,MAAM,YAAY,GAA0B;IAC1C,QAAQ;IACR,OAAO;IACP,YAAY;IACZ,QAAQ;IACR,SAAS;IACT,MAAM;IACN,QAAQ;IACR,WAAW;CACZ,CAAC;AAEF,gFAAgF;AAChF,MAAM,eAAe,GAAW,mBAAmB,CAAC;AAEpD;;;;;GAKG;AACH,MAAM,UAAU,kBAAkB,CAAC,IAAY;IAC7C,OAAO,IAAI;SACR,KAAK,CAAC,GAAG,CAAC;SACV,GAAG,CAAC,CAAC,IAAY,EAAU,EAAE;QAC5B,OAAO,IAAI;aACR,KAAK,CAAC,GAAG,CAAC;aACV,GAAG,CAAC,CAAC,IAAY,EAAU,EAAE;YAC5B,OAAO,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,IAAI,CAAC;gBAC/D,CAAC,CAAC,IAAI,CAAC,WAAW,EAAE;gBACpB,CAAC,CAAC,IAAI,CAAC;QACX,CAAC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