@oneuptime/common 17.1.0 → 17.2.0
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/AnalyticsBaseModel/AnalyticsBaseModel.d.mts +2 -1
- package/Models/AnalyticsModels/AnalyticsBaseModel/AnalyticsBaseModel.d.ts +2 -1
- package/Models/AnalyticsModels/AnalyticsBaseModel/AnalyticsBaseModel.js +33 -1
- package/Models/AnalyticsModels/AuditLog.d.mts +6 -6
- package/Models/AnalyticsModels/AuditLog.d.ts +6 -6
- package/Models/AnalyticsModels/AuditLog.js +31 -23
- package/Models/AnalyticsModels/ExceptionInstance.d.mts +2 -0
- package/Models/AnalyticsModels/ExceptionInstance.d.ts +2 -0
- package/Models/AnalyticsModels/ExceptionInstance.js +27 -0
- package/Models/AnalyticsModels/KubernetesCostAllocation.d.mts +4 -0
- package/Models/AnalyticsModels/KubernetesCostAllocation.d.ts +4 -0
- package/Models/AnalyticsModels/KubernetesCostAllocation.js +57 -1
- package/Models/AnalyticsModels/RumProductAnalyticsSession.js +15 -8
- package/Models/AnalyticsModels/SecurityAddressVault.d.mts +16 -0
- package/Models/AnalyticsModels/SecurityAddressVault.d.ts +16 -0
- package/Models/AnalyticsModels/SecurityAddressVault.js +179 -0
- package/Models/AnalyticsModels/SecurityAddressVault.mjs +3 -0
- package/Models/AnalyticsModels/SecurityEvent.d.mts +2 -0
- package/Models/AnalyticsModels/SecurityEvent.d.ts +2 -0
- package/Models/AnalyticsModels/SecurityEvent.js +28 -0
- package/Models/AnalyticsModels/SecurityEvent.mjs +2 -0
- package/Models/DatabaseModels/AIAgent.js +2 -0
- package/Models/DatabaseModels/AIAgentTaskPullRequest.js +2 -0
- package/Models/DatabaseModels/Alert.js +6 -0
- package/Models/DatabaseModels/AlertEpisode.js +16 -0
- package/Models/DatabaseModels/AlertEpisodeInternalNote.js +2 -0
- package/Models/DatabaseModels/AlertEpisodeMember.js +3 -0
- package/Models/DatabaseModels/AlertEpisodeStateTimeline.js +2 -0
- package/Models/DatabaseModels/AlertInternalNote.js +2 -0
- package/Models/DatabaseModels/AlertStateTimeline.js +2 -0
- package/Models/DatabaseModels/ApiKeyPermission.js +5 -1
- package/Models/DatabaseModels/CephCluster.js +16 -0
- package/Models/DatabaseModels/CloudAccount.js +19 -0
- package/Models/DatabaseModels/CloudConnection.js +30 -1
- package/Models/DatabaseModels/CloudResource.js +25 -1
- package/Models/DatabaseModels/Dashboard.d.mts +2 -0
- package/Models/DatabaseModels/Dashboard.d.ts +2 -0
- package/Models/DatabaseModels/Dashboard.js +112 -0
- package/Models/DatabaseModels/DashboardOidc.d.mts +28 -0
- package/Models/DatabaseModels/DashboardOidc.d.ts +28 -0
- package/Models/DatabaseModels/DashboardOidc.js +737 -0
- package/Models/DatabaseModels/DashboardOidc.mjs +2 -0
- package/Models/DatabaseModels/DashboardPrivateUser.d.mts +25 -0
- package/Models/DatabaseModels/DashboardPrivateUser.d.ts +25 -0
- package/Models/DatabaseModels/DashboardPrivateUser.js +503 -0
- package/Models/DatabaseModels/DashboardPrivateUser.mjs +2 -0
- package/Models/DatabaseModels/DashboardPrivateUserSession.d.mts +30 -0
- package/Models/DatabaseModels/DashboardPrivateUserSession.d.ts +30 -0
- package/Models/DatabaseModels/DashboardPrivateUserSession.js +514 -0
- package/Models/DatabaseModels/DashboardPrivateUserSession.mjs +2 -0
- package/Models/DatabaseModels/DashboardSso.d.mts +28 -0
- package/Models/DatabaseModels/DashboardSso.d.ts +28 -0
- package/Models/DatabaseModels/DashboardSso.js +679 -0
- package/Models/DatabaseModels/DashboardSso.mjs +2 -0
- package/Models/DatabaseModels/DataAsset.js +4 -1
- package/Models/DatabaseModels/DataPipeline.js +12 -0
- package/Models/DatabaseModels/DataSecurityComplianceSetting.d.mts +3 -0
- package/Models/DatabaseModels/DataSecurityComplianceSetting.d.ts +3 -0
- package/Models/DatabaseModels/DataSecurityComplianceSetting.js +85 -6
- package/Models/DatabaseModels/DataSecurityIssue.js +4 -0
- package/Models/DatabaseModels/DataSecurityScan.js +22 -0
- package/Models/DatabaseModels/DataStore.js +70 -4
- package/Models/DatabaseModels/DatabaseServer.js +7 -0
- package/Models/DatabaseModels/DatabaseServerEndpoint.js +3 -0
- package/Models/DatabaseModels/DeviceManagementConnection.js +17 -12
- package/Models/DatabaseModels/DockerHost.js +13 -0
- package/Models/DatabaseModels/DockerSwarmCluster.js +16 -0
- package/Models/DatabaseModels/Domain.js +29 -1
- package/Models/DatabaseModels/Form.d.mts +2 -0
- package/Models/DatabaseModels/Form.d.ts +2 -0
- package/Models/DatabaseModels/Form.js +64 -0
- package/Models/DatabaseModels/FormOidc.d.mts +28 -0
- package/Models/DatabaseModels/FormOidc.d.ts +28 -0
- package/Models/DatabaseModels/FormOidc.js +735 -0
- package/Models/DatabaseModels/FormOidc.mjs +2 -0
- package/Models/DatabaseModels/FormPrivateUser.d.mts +25 -0
- package/Models/DatabaseModels/FormPrivateUser.d.ts +25 -0
- package/Models/DatabaseModels/FormPrivateUser.js +503 -0
- package/Models/DatabaseModels/FormPrivateUser.mjs +2 -0
- package/Models/DatabaseModels/FormPrivateUserSession.d.mts +30 -0
- package/Models/DatabaseModels/FormPrivateUserSession.d.ts +30 -0
- package/Models/DatabaseModels/FormPrivateUserSession.js +514 -0
- package/Models/DatabaseModels/FormPrivateUserSession.mjs +2 -0
- package/Models/DatabaseModels/FormSso.d.mts +28 -0
- package/Models/DatabaseModels/FormSso.d.ts +28 -0
- package/Models/DatabaseModels/FormSso.js +677 -0
- package/Models/DatabaseModels/FormSso.mjs +2 -0
- package/Models/DatabaseModels/GuidedSetupRun.d.mts +15 -0
- package/Models/DatabaseModels/GuidedSetupRun.d.ts +15 -0
- package/Models/DatabaseModels/GuidedSetupRun.js +254 -0
- package/Models/DatabaseModels/GuidedSetupRun.mjs +2 -0
- package/Models/DatabaseModels/Host.js +22 -0
- package/Models/DatabaseModels/HostLogSession.d.mts +1 -0
- package/Models/DatabaseModels/HostLogSession.d.ts +1 -0
- package/Models/DatabaseModels/HostLogSession.js +21 -0
- package/Models/DatabaseModels/Incident.js +8 -0
- package/Models/DatabaseModels/IncidentEpisode.js +16 -0
- package/Models/DatabaseModels/IncidentEpisodeInternalNote.js +2 -0
- package/Models/DatabaseModels/IncidentEpisodeMember.js +3 -0
- package/Models/DatabaseModels/IncidentEpisodePublicNote.js +2 -0
- package/Models/DatabaseModels/IncidentEpisodeRoleMember.js +23 -2
- package/Models/DatabaseModels/IncidentEpisodeStateTimeline.js +2 -0
- package/Models/DatabaseModels/IncidentInternalNote.js +2 -0
- package/Models/DatabaseModels/IncidentMember.js +25 -2
- package/Models/DatabaseModels/IncidentPublicNote.js +2 -0
- package/Models/DatabaseModels/IncidentSla.js +18 -1
- package/Models/DatabaseModels/IncidentStateTimeline.js +2 -0
- package/Models/DatabaseModels/IncomingCallLogItem.js +6 -0
- package/Models/DatabaseModels/IncomingCallPolicy.js +2 -0
- package/Models/DatabaseModels/Index.js +30 -0
- package/Models/DatabaseModels/InventoryItem.d.mts +4 -0
- package/Models/DatabaseModels/InventoryItem.d.ts +4 -0
- package/Models/DatabaseModels/InventoryItem.js +97 -0
- package/Models/DatabaseModels/InventoryItemRelationship.js +6 -0
- package/Models/DatabaseModels/IoTFleet.js +7 -0
- package/Models/DatabaseModels/KubernetesCluster.d.mts +3 -0
- package/Models/DatabaseModels/KubernetesCluster.d.ts +3 -0
- package/Models/DatabaseModels/KubernetesCluster.js +79 -0
- package/Models/DatabaseModels/ManagedDevice.d.mts +2 -0
- package/Models/DatabaseModels/ManagedDevice.d.ts +2 -0
- package/Models/DatabaseModels/ManagedDevice.js +34 -8
- package/Models/DatabaseModels/MessageQueue.js +6 -0
- package/Models/DatabaseModels/MetricType.js +6 -0
- package/Models/DatabaseModels/Monitor.d.mts +2 -0
- package/Models/DatabaseModels/Monitor.d.ts +2 -0
- package/Models/DatabaseModels/Monitor.js +81 -1
- package/Models/DatabaseModels/MonitorProbe.js +3 -0
- package/Models/DatabaseModels/MonitorStatusTimeline.js +2 -0
- package/Models/DatabaseModels/NetworkDevice.js +34 -0
- package/Models/DatabaseModels/NetworkDeviceDiscoveryScan.d.mts +8 -0
- package/Models/DatabaseModels/NetworkDeviceDiscoveryScan.d.ts +8 -0
- package/Models/DatabaseModels/NetworkDeviceDiscoveryScan.js +1 -1
- package/Models/DatabaseModels/NetworkEndpoint.js +3 -0
- package/Models/DatabaseModels/NetworkSite.d.mts +2 -0
- package/Models/DatabaseModels/NetworkSite.d.ts +2 -0
- package/Models/DatabaseModels/NetworkSite.js +67 -0
- package/Models/DatabaseModels/NetworkSiteOwnerTeam.d.mts +18 -0
- package/Models/DatabaseModels/NetworkSiteOwnerTeam.d.ts +18 -0
- package/Models/DatabaseModels/NetworkSiteOwnerTeam.js +478 -0
- package/Models/DatabaseModels/NetworkSiteOwnerTeam.mjs +2 -0
- package/Models/DatabaseModels/NetworkSiteOwnerUser.d.mts +17 -0
- package/Models/DatabaseModels/NetworkSiteOwnerUser.d.ts +17 -0
- package/Models/DatabaseModels/NetworkSiteOwnerUser.js +477 -0
- package/Models/DatabaseModels/NetworkSiteOwnerUser.mjs +2 -0
- package/Models/DatabaseModels/NetworkSiteStatusTimeline.js +2 -0
- package/Models/DatabaseModels/OnCallDutyPolicy.js +2 -0
- package/Models/DatabaseModels/OnCallDutyPolicyEscalationRuleSchedule.js +22 -0
- package/Models/DatabaseModels/OnCallDutyPolicyEscalationRuleTeam.js +14 -0
- package/Models/DatabaseModels/OnCallDutyPolicyEscalationRuleUser.js +17 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +9 -0
- package/Models/DatabaseModels/OnCallDutyPolicySchedule.js +2 -0
- package/Models/DatabaseModels/OnCallDutyPolicyTimeLog.js +2 -0
- package/Models/DatabaseModels/OpenStackCloud.js +25 -0
- package/Models/DatabaseModels/PodmanHost.js +13 -0
- package/Models/DatabaseModels/Probe.d.mts +1 -0
- package/Models/DatabaseModels/Probe.d.ts +1 -0
- package/Models/DatabaseModels/Probe.js +35 -0
- package/Models/DatabaseModels/Project.d.mts +1 -0
- package/Models/DatabaseModels/Project.d.ts +1 -0
- package/Models/DatabaseModels/Project.js +52 -2
- package/Models/DatabaseModels/ProjectSCIM.js +3 -0
- package/Models/DatabaseModels/ProjectSmtpConfig.d.mts +3 -0
- package/Models/DatabaseModels/ProjectSmtpConfig.d.ts +3 -0
- package/Models/DatabaseModels/ProjectSmtpConfig.js +89 -0
- package/Models/DatabaseModels/ProxmoxCluster.js +13 -0
- package/Models/DatabaseModels/ProxmoxResource.d.mts +5 -0
- package/Models/DatabaseModels/ProxmoxResource.d.ts +5 -0
- package/Models/DatabaseModels/ProxmoxResource.js +112 -0
- package/Models/DatabaseModels/ResourceAiAgent.js +38 -20
- package/Models/DatabaseModels/RumApplication.js +2 -0
- package/Models/DatabaseModels/Runbook.js +3 -1
- package/Models/DatabaseModels/RunbookExecution.js +6 -0
- package/Models/DatabaseModels/Runner.js +3 -0
- package/Models/DatabaseModels/ScheduledMaintenance.js +5 -0
- package/Models/DatabaseModels/ScheduledMaintenancePublicNote.js +2 -0
- package/Models/DatabaseModels/ScheduledMaintenanceStateTimeline.js +2 -0
- package/Models/DatabaseModels/ScheduledMaintenanceTemplate.d.mts +2 -0
- package/Models/DatabaseModels/ScheduledMaintenanceTemplate.d.ts +2 -0
- package/Models/DatabaseModels/ScheduledMaintenanceTemplate.js +56 -0
- package/Models/DatabaseModels/SecurityBlock.d.mts +28 -0
- package/Models/DatabaseModels/SecurityBlock.d.ts +28 -0
- package/Models/DatabaseModels/SecurityBlock.js +529 -0
- package/Models/DatabaseModels/SecurityBlock.mjs +2 -0
- package/Models/DatabaseModels/SecurityBlockEnforcement.d.mts +22 -0
- package/Models/DatabaseModels/SecurityBlockEnforcement.d.ts +22 -0
- package/Models/DatabaseModels/SecurityBlockEnforcement.js +368 -0
- package/Models/DatabaseModels/SecurityBlockEnforcement.mjs +2 -0
- package/Models/DatabaseModels/SecurityCase.js +29 -0
- package/Models/DatabaseModels/SecurityEventConnection.js +18 -0
- package/Models/DatabaseModels/SecurityPlaybookRun.js +15 -0
- package/Models/DatabaseModels/SecurityProtectedEntity.js +10 -8
- package/Models/DatabaseModels/ServerlessFunction.js +2 -0
- package/Models/DatabaseModels/Service.js +2 -0
- package/Models/DatabaseModels/ServiceLevelObjective.js +3 -0
- package/Models/DatabaseModels/StatusPage.js +3 -0
- package/Models/DatabaseModels/StatusPageSCIM.js +3 -0
- package/Models/DatabaseModels/StatusPageSubscriber.js +4 -0
- package/Models/DatabaseModels/StorageArray.js +25 -0
- package/Models/DatabaseModels/TeamMember.d.mts +2 -0
- package/Models/DatabaseModels/TeamMember.d.ts +2 -0
- package/Models/DatabaseModels/TeamMember.js +47 -0
- package/Models/DatabaseModels/TeamPermission.js +5 -1
- package/Models/DatabaseModels/TelemetryDsym.d.mts +19 -0
- package/Models/DatabaseModels/TelemetryDsym.d.ts +19 -0
- package/Models/DatabaseModels/TelemetryDsym.js +545 -0
- package/Models/DatabaseModels/TelemetryDsym.mjs +2 -0
- package/Models/DatabaseModels/TelemetryException.js +24 -0
- package/Models/DatabaseModels/TelemetryIngestionKey.js +3 -0
- package/Models/DatabaseModels/TelemetryIngestionTeamLabelBudget.d.mts +22 -0
- package/Models/DatabaseModels/TelemetryIngestionTeamLabelBudget.d.ts +22 -0
- package/Models/DatabaseModels/TelemetryIngestionTeamLabelBudget.js +385 -0
- package/Models/DatabaseModels/TelemetryIngestionTeamLabelBudget.mjs +2 -0
- package/Models/DatabaseModels/TelemetrySourceMap.js +2 -0
- package/Models/DatabaseModels/TelemetryUsageBilling.js +7 -5
- package/Models/DatabaseModels/ThreatIntelFeed.js +31 -0
- package/Models/DatabaseModels/User.d.mts +1 -0
- package/Models/DatabaseModels/User.d.ts +1 -0
- package/Models/DatabaseModels/User.js +27 -0
- package/Models/DatabaseModels/UserProjectSsoConsent.js +6 -4
- package/Models/DatabaseModels/VMwareVCenter.js +16 -0
- package/Models/DatabaseModels/Workflow.js +2 -0
- package/Models/DatabaseModels/WorkspaceNotificationSummary.js +3 -0
- package/Models/DatabaseModels/WorkspaceUserGroup.js +4 -0
- package/Server/Services/DatabaseService.d.mts +33 -1
- package/Server/Services/DatabaseService.d.ts +33 -1
- package/Server/Types/Database/CreateBy.d.mts +1 -0
- package/Server/Types/Database/CreateBy.d.ts +1 -0
- package/Server/Types/Database/UpdateByID.d.mts +2 -0
- package/Server/Types/Database/UpdateByID.d.ts +2 -0
- package/Server/Types/Database/UpdateOneBy.d.mts +2 -0
- package/Server/Types/Database/UpdateOneBy.d.ts +2 -0
- package/Server/Utils/Database/ListEntries.d.mts +45 -0
- package/Server/Utils/Database/ListEntries.d.ts +45 -0
- package/Types/AI/AIActionWords.d.mts +22 -0
- package/Types/AI/AIActionWords.d.ts +22 -0
- package/Types/AI/AIActionWords.js +43 -1
- package/Types/AI/AIActionWords.mjs +1 -0
- package/Types/AI/AIChatPageContext.d.mts +20 -1
- package/Types/AI/AIChatPageContext.d.ts +20 -1
- package/Types/AI/AIChatPageContext.js +83 -2
- package/Types/AI/AISetupActions.d.mts +1 -0
- package/Types/AI/AISetupActions.d.ts +1 -0
- package/Types/AI/AISetupActions.js +37 -7
- package/Types/AI/AISetupActions.mjs +1 -0
- package/Types/AI/AskAiAnswers.d.mts +23 -0
- package/Types/AI/AskAiAnswers.d.ts +23 -0
- package/Types/AI/AskAiAnswers.js +150 -0
- package/Types/AI/AskAiAnswers.mjs +9 -0
- package/Types/AI/AskAiDocsTools.d.mts +4 -0
- package/Types/AI/AskAiDocsTools.d.ts +4 -0
- package/Types/AI/AskAiDocsTools.js +25 -0
- package/Types/AI/AskAiDocsTools.mjs +5 -0
- package/Types/AI/AskAiRatings.js +2 -5
- package/Types/AI/AskAiRecordPages.d.mts +33 -0
- package/Types/AI/AskAiRecordPages.d.ts +33 -0
- package/Types/AI/AskAiRecordPages.js +58 -0
- package/Types/AI/AskAiRecordPages.mjs +5 -0
- package/Types/API/FieldsLeftOut.d.mts +8 -0
- package/Types/API/FieldsLeftOut.d.ts +8 -0
- package/Types/API/FieldsLeftOut.js +98 -0
- package/Types/API/FieldsLeftOut.mjs +3 -0
- package/Types/API/Route.js +18 -6
- package/Types/Accounts/EmailAddressChangedEmail.d.mts +35 -0
- package/Types/Accounts/EmailAddressChangedEmail.d.ts +35 -0
- package/Types/Accounts/EmailAddressChangedEmail.js +201 -0
- package/Types/Accounts/EmailAddressChangedEmail.mjs +10 -0
- package/Types/Accounts/InvitationSsoSignIn.d.mts +8 -0
- package/Types/Accounts/InvitationSsoSignIn.d.ts +8 -0
- package/Types/Accounts/InvitationSsoSignIn.js +55 -0
- package/Types/Accounts/InvitationSsoSignIn.mjs +5 -0
- package/Types/Accounts/Reauthentication.d.mts +99 -0
- package/Types/Accounts/Reauthentication.d.ts +99 -0
- package/Types/Accounts/Reauthentication.js +341 -0
- package/Types/Accounts/Reauthentication.mjs +21 -0
- package/Types/Accounts/RememberedSsoProvider.d.mts +17 -0
- package/Types/Accounts/RememberedSsoProvider.d.ts +17 -0
- package/Types/Accounts/RememberedSsoProvider.js +114 -0
- package/Types/Accounts/RememberedSsoProvider.mjs +3 -0
- package/Types/Accounts/SignUpInvitation.d.mts +1 -0
- package/Types/Accounts/SignUpInvitation.d.ts +1 -0
- package/Types/Accounts/SignUpInvitation.js +14 -1
- package/Types/Accounts/SignUpInvitation.mjs +1 -0
- package/Types/Accounts/SsoSignInLinks.d.mts +20 -0
- package/Types/Accounts/SsoSignInLinks.d.ts +20 -0
- package/Types/Accounts/SsoSignInLinks.js +97 -0
- package/Types/Accounts/SsoSignInLinks.mjs +6 -0
- package/Types/Analytics/ProductEvent.d.mts +1 -0
- package/Types/Analytics/ProductEvent.d.ts +1 -0
- package/Types/Analytics/ProductEvent.js +20 -3
- package/Types/AnalyticsDatabase/AnalyticsTableName.d.mts +1 -0
- package/Types/AnalyticsDatabase/AnalyticsTableName.d.ts +1 -0
- package/Types/AnalyticsDatabase/AnalyticsTableName.js +8 -0
- package/Types/AuditLog/AuditLogCoverage.js +2 -0
- package/Types/AuditLog/AuditLogSessionEvent.js +1 -0
- package/Types/AuditLog/Export/AuditLogExportRecord.d.mts +4 -4
- package/Types/AuditLog/Export/AuditLogExportRecord.d.ts +4 -4
- package/Types/AuditLog/Export/AuditLogExportRecord.js +3 -3
- package/Types/BaseDatabase/DatabaseCommonInteractionProps.d.mts +1 -0
- package/Types/BaseDatabase/DatabaseCommonInteractionProps.d.ts +1 -0
- package/Types/Billing/PayAsYouGoPricing.d.mts +5 -0
- package/Types/Billing/PayAsYouGoPricing.d.ts +5 -0
- package/Types/Billing/PayAsYouGoPricing.js +24 -6
- package/Types/Billing/PayAsYouGoPricing.mjs +1 -0
- package/Types/Cloud/AppServiceSiteActivity.d.mts +55 -0
- package/Types/Cloud/AppServiceSiteActivity.d.ts +55 -0
- package/Types/Cloud/AppServiceSiteActivity.js +321 -0
- package/Types/Cloud/AppServiceSiteActivity.mjs +16 -0
- package/Types/Cloud/AwsDocumentedMetricUnits.d.mts +6 -0
- package/Types/Cloud/AwsDocumentedMetricUnits.d.ts +6 -0
- package/Types/Cloud/AwsDocumentedMetricUnits.js +1603 -0
- package/Types/Cloud/AwsDocumentedMetricUnits.mjs +3 -0
- package/Types/Cloud/AwsMetricUnits.d.mts +1 -0
- package/Types/Cloud/AwsMetricUnits.d.ts +1 -0
- package/Types/Cloud/AwsMetricUnits.js +38 -0
- package/Types/Cloud/AwsMetricUnits.mjs +2 -0
- package/Types/Cloud/AwsRoleArn.d.mts +2 -0
- package/Types/Cloud/AwsRoleArn.d.ts +2 -0
- package/Types/Cloud/AwsRoleArn.js +58 -0
- package/Types/Cloud/AwsRoleArn.mjs +3 -0
- package/Types/Cloud/CloudAddedMetricReaders.d.mts +43 -0
- package/Types/Cloud/CloudAddedMetricReaders.d.ts +43 -0
- package/Types/Cloud/CloudAddedMetricReaders.js +202 -0
- package/Types/Cloud/CloudAddedMetricReaders.mjs +5 -0
- package/Types/Cloud/CloudAddedMetrics.d.mts +14 -0
- package/Types/Cloud/CloudAddedMetrics.d.ts +14 -0
- package/Types/Cloud/CloudAddedMetrics.js +204 -3
- package/Types/Cloud/CloudAddedMetrics.mjs +7 -0
- package/Types/Cloud/CloudCost.d.mts +4 -1
- package/Types/Cloud/CloudCost.d.ts +4 -1
- package/Types/Cloud/CloudCost.js +15 -1
- package/Types/Cloud/CloudKeyMetrics.d.mts +15 -0
- package/Types/Cloud/CloudKeyMetrics.d.ts +15 -0
- package/Types/Cloud/CloudKeyMetrics.js +115 -7
- package/Types/Cloud/CloudKeyMetrics.mjs +5 -0
- package/Types/Cloud/CloudLogGroups.js +4 -4
- package/Types/Cloud/CloudPublishedMetrics.d.mts +11 -0
- package/Types/Cloud/CloudPublishedMetrics.d.ts +11 -0
- package/Types/Cloud/CloudPublishedMetrics.js +50 -0
- package/Types/Cloud/CloudPublishedMetrics.mjs +1 -0
- package/Types/Cloud/CloudResourceHealth.d.mts +2 -0
- package/Types/Cloud/CloudResourceHealth.d.ts +2 -0
- package/Types/Cloud/CloudResourceHealth.js +37 -5
- package/Types/Cloud/CloudResourceHealth.mjs +2 -0
- package/Types/Cloud/CloudResourceMetricCollection.d.mts +41 -0
- package/Types/Cloud/CloudResourceMetricCollection.d.ts +41 -0
- package/Types/Cloud/CloudResourceMetricCollection.js +167 -0
- package/Types/Cloud/CloudResourceMetricCollection.mjs +9 -0
- package/Types/Cloud/CloudUnreportedKeyMetrics.d.mts +35 -1
- package/Types/Cloud/CloudUnreportedKeyMetrics.d.ts +35 -1
- package/Types/Cloud/CloudUnreportedKeyMetrics.js +202 -13
- package/Types/Cloud/CloudUnreportedKeyMetrics.mjs +5 -0
- package/Types/CloudConnection/AwsRoleExternalIdRefusal.d.mts +9 -0
- package/Types/CloudConnection/AwsRoleExternalIdRefusal.d.ts +9 -0
- package/Types/CloudConnection/AwsRoleExternalIdRefusal.js +70 -0
- package/Types/CloudConnection/AwsRoleExternalIdRefusal.mjs +6 -0
- package/Types/CloudConnection/AwsRoleSignInFailures.d.mts +15 -0
- package/Types/CloudConnection/AwsRoleSignInFailures.d.ts +15 -0
- package/Types/CloudConnection/AwsRoleSignInFailures.js +27 -0
- package/Types/CloudConnection/AwsRoleSignInFailures.mjs +3 -0
- package/Types/CloudConnection/CloudConnectionCatalog.d.mts +1 -0
- package/Types/CloudConnection/CloudConnectionCatalog.d.ts +1 -0
- package/Types/CloudConnection/CloudConnectionCatalog.js +6 -3
- package/Types/CloudConnection/CloudConnectionCost.d.mts +5 -0
- package/Types/CloudConnection/CloudConnectionCost.d.ts +5 -0
- package/Types/CloudConnection/CloudConnectionCost.js +25 -3
- package/Types/CloudConnection/CloudConnectionCost.mjs +1 -0
- package/Types/CloudConnection/CloudConnectionPaste.d.mts +2 -1
- package/Types/CloudConnection/CloudConnectionPaste.d.ts +2 -1
- package/Types/CloudConnection/CloudConnectionPaste.js +4 -42
- package/Types/CloudConnection/CloudConnectionSetupCommands.d.mts +23 -0
- package/Types/CloudConnection/CloudConnectionSetupCommands.d.ts +23 -0
- package/Types/CloudConnection/CloudConnectionSetupCommands.js +96 -8
- package/Types/CloudConnection/CloudConnectionSetupCommands.mjs +7 -0
- package/Types/CloudConnection/CloudStreamAzure.d.mts +16 -0
- package/Types/CloudConnection/CloudStreamAzure.d.ts +16 -0
- package/Types/CloudConnection/CloudStreamAzure.js +245 -41
- package/Types/CloudConnection/CloudStreamAzure.mjs +12 -0
- package/Types/CookieName.d.mts +7 -1
- package/Types/CookieName.d.ts +7 -1
- package/Types/CookieName.js +18 -0
- package/Types/Dashboard/DashboardAccess.d.mts +6 -1
- package/Types/Dashboard/DashboardAccess.d.ts +6 -1
- package/Types/Dashboard/DashboardAccess.js +79 -19
- package/Types/Dashboard/DashboardAccess.mjs +2 -0
- package/Types/Dashboard/DashboardComponents/DashboardDataSourceChartComponent.d.mts +1 -0
- package/Types/Dashboard/DashboardComponents/DashboardDataSourceChartComponent.d.ts +1 -0
- package/Types/Dashboard/DashboardPrivateUserSignIn.d.mts +27 -0
- package/Types/Dashboard/DashboardPrivateUserSignIn.d.ts +27 -0
- package/Types/Dashboard/DashboardPrivateUserSignIn.js +56 -0
- package/Types/Dashboard/DashboardPrivateUserSignIn.mjs +10 -0
- package/Types/Dashboard/PublicDashboardPromQL.d.mts +1 -0
- package/Types/Dashboard/PublicDashboardPromQL.d.ts +1 -0
- package/Types/Dashboard/PublicDashboardPromQL.js +13 -0
- package/Types/Dashboard/PublicDashboardPromQL.mjs +2 -0
- package/Types/Dashboard/PublicDashboardServedSettings.d.mts +3 -1
- package/Types/Dashboard/PublicDashboardServedSettings.d.ts +3 -1
- package/Types/Dashboard/PublicDashboardServedSettings.js +98 -10
- package/Types/DataSecurity/CustomDataTypeId.d.mts +3 -0
- package/Types/DataSecurity/CustomDataTypeId.d.ts +3 -0
- package/Types/DataSecurity/CustomDataTypeId.js +22 -0
- package/Types/DataSecurity/CustomDataTypeId.mjs +4 -0
- package/Types/DataSecurity/DataSecurityAiFeatures.d.mts +27 -0
- package/Types/DataSecurity/DataSecurityAiFeatures.d.ts +27 -0
- package/Types/DataSecurity/DataSecurityAiFeatures.js +153 -0
- package/Types/DataSecurity/DataSecurityAiFeatures.mjs +8 -0
- package/Types/DataSecurity/DataSecurityApiTypes.d.mts +52 -0
- package/Types/DataSecurity/DataSecurityApiTypes.d.ts +52 -0
- package/Types/DataSecurity/DataSecurityApiTypes.js +17 -2
- package/Types/DataSecurity/DataSecurityApiTypes.mjs +1 -0
- package/Types/DataSecurity/DataSecurityCheckCatalog.js +5 -8
- package/Types/DataSecurity/DataTypeNamer.d.mts +15 -0
- package/Types/DataSecurity/DataTypeNamer.d.ts +15 -0
- package/Types/DataSecurity/DataTypeNamer.js +148 -0
- package/Types/DataSecurity/DataTypeNamer.mjs +4 -0
- package/Types/DataSource/ProjectMetricsDataSource.d.mts +4 -0
- package/Types/DataSource/ProjectMetricsDataSource.d.ts +4 -0
- package/Types/DataSource/ProjectMetricsDataSource.js +27 -0
- package/Types/DataSource/ProjectMetricsDataSource.mjs +3 -0
- package/Types/Database/AccessControl/ColumnAccessControl.js +36 -2
- package/Types/Database/AccessControl/PermissionScopeNarrowing.js +109 -4
- package/Types/Database/AccessControl/TableAccessControl.js +39 -11
- package/Types/Database/ListChanges.d.mts +21 -0
- package/Types/Database/ListChanges.d.ts +21 -0
- package/Types/Database/ListChanges.js +198 -0
- package/Types/Database/ListChanges.mjs +4 -0
- package/Types/Database/RelationReaders.d.mts +5 -0
- package/Types/Database/RelationReaders.d.ts +5 -0
- package/Types/Database/RelationReaders.js +44 -0
- package/Types/Database/RelationReaders.mjs +2 -0
- package/Types/Database/RelationReadersUtil.d.mts +29 -0
- package/Types/Database/RelationReadersUtil.d.ts +29 -0
- package/Types/Database/RelationReadersUtil.js +178 -0
- package/Types/Database/RelationReadersUtil.mjs +2 -0
- package/Types/Database/ServerOwned.d.mts +6 -0
- package/Types/Database/ServerOwned.d.ts +6 -0
- package/Types/Database/ServerOwned.js +76 -0
- package/Types/Database/ServerOwned.mjs +2 -0
- package/Types/Database/SharedNameMarks.d.mts +39 -0
- package/Types/Database/SharedNameMarks.d.ts +39 -0
- package/Types/Database/SharedNameMarks.js +208 -0
- package/Types/Database/SharedNameMarks.mjs +11 -0
- package/Types/Database/SharedNames.d.mts +1 -0
- package/Types/Database/SharedNames.d.ts +1 -0
- package/Types/Database/SharedNames.js +10 -8
- package/Types/Database/TableColumn.d.mts +4 -0
- package/Types/Database/TableColumn.d.ts +4 -0
- package/Types/Date.d.mts +41 -1
- package/Types/Date.d.ts +41 -1
- package/Types/Date.js +377 -155
- package/Types/DateLanguage.d.mts +18 -2
- package/Types/DateLanguage.d.ts +18 -2
- package/Types/DateLanguage.js +311 -49
- package/Types/DateLanguage.mjs +6 -1
- package/Types/DeviceManagement/DeviceManagementConnectionReading.d.mts +50 -0
- package/Types/DeviceManagement/DeviceManagementConnectionReading.d.ts +50 -0
- package/Types/DeviceManagement/DeviceManagementConnectionReading.js +192 -0
- package/Types/DeviceManagement/DeviceManagementConnectionReading.mjs +12 -0
- package/Types/DeviceManagement/DeviceManagementConnectionSettings.d.mts +73 -1
- package/Types/DeviceManagement/DeviceManagementConnectionSettings.d.ts +73 -1
- package/Types/DeviceManagement/DeviceManagementConnectionSettings.js +814 -15
- package/Types/DeviceManagement/DeviceManagementConnectionSettings.mjs +52 -0
- package/Types/DeviceManagement/DeviceManagementProvider.d.mts +6 -1
- package/Types/DeviceManagement/DeviceManagementProvider.d.ts +6 -1
- package/Types/DeviceManagement/DeviceManagementProvider.js +48 -5
- package/Types/DeviceManagement/DeviceManagementProvider.mjs +2 -0
- package/Types/DeviceManagement/ManagedDeviceAlertScope.d.mts +19 -0
- package/Types/DeviceManagement/ManagedDeviceAlertScope.d.ts +19 -0
- package/Types/DeviceManagement/ManagedDeviceAlertScope.js +150 -0
- package/Types/DeviceManagement/ManagedDeviceAlertScope.mjs +6 -0
- package/Types/DeviceManagement/ManagedDeviceCheckIn.d.mts +64 -1
- package/Types/DeviceManagement/ManagedDeviceCheckIn.d.ts +64 -1
- package/Types/DeviceManagement/ManagedDeviceCheckIn.js +325 -8
- package/Types/DeviceManagement/ManagedDeviceCheckIn.mjs +24 -0
- package/Types/DeviceManagement/ManagedDeviceIdentity.d.mts +23 -0
- package/Types/DeviceManagement/ManagedDeviceIdentity.d.ts +23 -0
- package/Types/DeviceManagement/ManagedDeviceIdentity.js +127 -7
- package/Types/DeviceManagement/ManagedDeviceIdentity.mjs +8 -0
- package/Types/DeviceManagement/ManagedDevicePlatform.d.mts +20 -0
- package/Types/DeviceManagement/ManagedDevicePlatform.d.ts +20 -0
- package/Types/DeviceManagement/ManagedDevicePlatform.js +143 -0
- package/Types/DeviceManagement/ManagedDevicePlatform.mjs +9 -0
- package/Types/DeviceManagement/ManagedDeviceStatus.d.mts +17 -0
- package/Types/DeviceManagement/ManagedDeviceStatus.d.ts +17 -0
- package/Types/DeviceManagement/ManagedDeviceStatus.js +72 -7
- package/Types/DeviceManagement/ManagedDeviceStatus.mjs +4 -0
- package/Types/Email/AmazonSesRoleExternalId.d.mts +5 -0
- package/Types/Email/AmazonSesRoleExternalId.d.ts +5 -0
- package/Types/Email/AmazonSesRoleExternalId.js +50 -0
- package/Types/Email/AmazonSesRoleExternalId.mjs +3 -0
- package/Types/Email/AmazonSesRoleSetup.d.mts +8 -0
- package/Types/Email/AmazonSesRoleSetup.d.ts +8 -0
- package/Types/Email/AmazonSesRoleSetup.js +60 -0
- package/Types/Email/AmazonSesRoleSetup.mjs +3 -0
- package/Types/Email/AmazonSesRoleWords.d.mts +11 -0
- package/Types/Email/AmazonSesRoleWords.d.ts +11 -0
- package/Types/Email/AmazonSesRoleWords.js +75 -0
- package/Types/Email/AmazonSesRoleWords.mjs +11 -0
- package/Types/Email/EmailMessage.d.mts +1 -0
- package/Types/Email/EmailMessage.d.ts +1 -0
- package/Types/Email/EmailServer.d.mts +2 -0
- package/Types/Email/EmailServer.d.ts +2 -0
- package/Types/Email/EmailTemplateType.d.mts +7 -0
- package/Types/Email/EmailTemplateType.d.ts +7 -0
- package/Types/Email/EmailTemplateType.js +33 -0
- package/Types/Email/ProjectAmazonSesAuthenticationType.d.mts +28 -0
- package/Types/Email/ProjectAmazonSesAuthenticationType.d.ts +28 -0
- package/Types/Email/ProjectAmazonSesAuthenticationType.js +47 -0
- package/Types/Email/ProjectAmazonSesAuthenticationType.mjs +4 -0
- package/Types/Email/ServerAwsIdentity.d.mts +19 -0
- package/Types/Email/ServerAwsIdentity.d.ts +19 -0
- package/Types/Email/ServerAwsIdentity.js +75 -0
- package/Types/Email/ServerAwsIdentity.mjs +4 -0
- package/Types/Events/Recurring.d.mts +52 -8
- package/Types/Events/Recurring.d.ts +52 -8
- package/Types/Events/Recurring.js +117 -58
- package/Types/Exception/BadDataExceptionWithDetails.d.mts +1 -0
- package/Types/Exception/BadDataExceptionWithDetails.d.ts +1 -0
- package/Types/Exception/BadDataExceptionWithDetails.js +18 -5
- package/Types/Exception/BadDataExceptionWithDetails.mjs +1 -0
- package/Types/Exception/NameTakenException.d.mts +13 -0
- package/Types/Exception/NameTakenException.d.ts +13 -0
- package/Types/Exception/NameTakenException.js +81 -0
- package/Types/Exception/NameTakenException.mjs +7 -0
- package/Types/Exception/ReauthenticationRequiredException.d.mts +7 -0
- package/Types/Exception/ReauthenticationRequiredException.d.ts +7 -0
- package/Types/Exception/ReauthenticationRequiredException.js +60 -0
- package/Types/Exception/ReauthenticationRequiredException.mjs +2 -0
- package/Types/Exception/ValueTakenException.d.mts +15 -0
- package/Types/Exception/ValueTakenException.d.ts +15 -0
- package/Types/Exception/ValueTakenException.js +79 -0
- package/Types/Exception/ValueTakenException.mjs +7 -0
- package/Types/Form/FormIpAllowlist.d.mts +2 -1
- package/Types/Form/FormIpAllowlist.d.ts +2 -1
- package/Types/Form/FormIpAllowlist.js +3 -19
- package/Types/Form/FormPrivateUserSignIn.d.mts +21 -0
- package/Types/Form/FormPrivateUserSignIn.d.ts +21 -0
- package/Types/Form/FormPrivateUserSignIn.js +73 -0
- package/Types/Form/FormPrivateUserSignIn.mjs +13 -0
- package/Types/GuidedSetup/GuidedSetupRun.d.mts +74 -0
- package/Types/GuidedSetup/GuidedSetupRun.d.ts +74 -0
- package/Types/GuidedSetup/GuidedSetupRun.js +358 -0
- package/Types/GuidedSetup/GuidedSetupRun.mjs +17 -0
- package/Types/Host/AndroidAgentPermissions.d.mts +17 -0
- package/Types/Host/AndroidAgentPermissions.d.ts +17 -0
- package/Types/Host/AndroidAgentPermissions.js +92 -0
- package/Types/Host/AndroidAgentPermissions.mjs +7 -0
- package/Types/Host/AndroidSecurityPatch.d.mts +13 -0
- package/Types/Host/AndroidSecurityPatch.d.ts +13 -0
- package/Types/Host/AndroidSecurityPatch.js +114 -0
- package/Types/Host/AndroidSecurityPatch.mjs +5 -0
- package/Types/Host/HostLogSession.d.mts +3 -0
- package/Types/Host/HostLogSession.d.ts +3 -0
- package/Types/Host/HostLogSession.js +17 -1
- package/Types/Host/HostLogSession.mjs +3 -0
- package/Types/HostCollector/HostCollectorRoutes.d.mts +1 -0
- package/Types/HostCollector/HostCollectorRoutes.d.ts +1 -0
- package/Types/HostCollector/HostCollectorRoutes.js +9 -0
- package/Types/HostCollector/HostCollectorRoutes.mjs +2 -0
- package/Types/Icon/IconProp.d.mts +1 -0
- package/Types/Icon/IconProp.d.ts +1 -0
- package/Types/Icon/IconProp.js +1 -0
- package/Types/JsonWebTokenPurpose.d.mts +5 -1
- package/Types/JsonWebTokenPurpose.d.ts +5 -1
- package/Types/JsonWebTokenPurpose.js +38 -0
- package/Types/Kubernetes/Compliance/CisKubernetesBenchmark.d.mts +3 -1
- package/Types/Kubernetes/Compliance/CisKubernetesBenchmark.d.ts +3 -1
- package/Types/Kubernetes/Compliance/CisKubernetesBenchmark.js +6 -1
- package/Types/Kubernetes/Compliance/CisKubernetesBenchmark.mjs +2 -0
- package/Types/Kubernetes/Compliance/KubernetesAgentWorkloads.d.mts +22 -0
- package/Types/Kubernetes/Compliance/KubernetesAgentWorkloads.d.ts +22 -0
- package/Types/Kubernetes/Compliance/KubernetesAgentWorkloads.js +105 -0
- package/Types/Kubernetes/Compliance/KubernetesAgentWorkloads.mjs +7 -0
- package/Types/Kubernetes/Compliance/KubernetesComplianceApiTypes.d.mts +31 -0
- package/Types/Kubernetes/Compliance/KubernetesComplianceApiTypes.d.ts +31 -0
- package/Types/Kubernetes/Compliance/KubernetesComplianceCatalog.d.mts +6 -0
- package/Types/Kubernetes/Compliance/KubernetesComplianceCatalog.d.ts +6 -0
- package/Types/Kubernetes/Compliance/KubernetesComplianceCatalog.js +55 -4
- package/Types/Kubernetes/Compliance/KubernetesComplianceCatalog.mjs +2 -0
- package/Types/Kubernetes/Compliance/KubernetesComplianceFinding.d.mts +8 -1
- package/Types/Kubernetes/Compliance/KubernetesComplianceFinding.d.ts +8 -1
- package/Types/Kubernetes/Compliance/KubernetesComplianceFramework.d.mts +9 -1
- package/Types/Kubernetes/Compliance/KubernetesComplianceFramework.d.ts +9 -1
- package/Types/Kubernetes/Compliance/KubernetesComplianceFramework.js +92 -6
- package/Types/Kubernetes/Compliance/KubernetesComplianceFramework.mjs +7 -0
- package/Types/Kubernetes/Compliance/KubernetesComplianceScoring.d.mts +20 -4
- package/Types/Kubernetes/Compliance/KubernetesComplianceScoring.d.ts +20 -4
- package/Types/Kubernetes/Compliance/KubernetesComplianceScoring.js +424 -58
- package/Types/Kubernetes/Compliance/KubernetesComplianceScoring.mjs +1 -0
- package/Types/Kubernetes/Compliance/KubernetesComplianceSnapshot.d.mts +19 -0
- package/Types/Kubernetes/Compliance/KubernetesComplianceSnapshot.d.ts +19 -0
- package/Types/Kubernetes/Compliance/KubernetesComplianceSnapshot.js +22 -0
- package/Types/Kubernetes/Compliance/KubernetesComplianceSnapshot.mjs +1 -0
- package/Types/Kubernetes/Compliance/KubernetesComplianceSummary.d.mts +52 -0
- package/Types/Kubernetes/Compliance/KubernetesComplianceSummary.d.ts +52 -0
- package/Types/Kubernetes/Compliance/KubernetesComplianceSummary.js +243 -0
- package/Types/Kubernetes/Compliance/KubernetesComplianceSummary.mjs +12 -0
- package/Types/Kubernetes/Compliance/KubernetesNodeBenchmarkCatalog.d.mts +29 -0
- package/Types/Kubernetes/Compliance/KubernetesNodeBenchmarkCatalog.d.ts +29 -0
- package/Types/Kubernetes/Compliance/KubernetesNodeBenchmarkCatalog.js +444 -0
- package/Types/Kubernetes/Compliance/KubernetesNodeBenchmarkCatalog.mjs +7 -0
- package/Types/Kubernetes/Compliance/KubernetesNodeBenchmarkScoring.d.mts +22 -0
- package/Types/Kubernetes/Compliance/KubernetesNodeBenchmarkScoring.d.ts +22 -0
- package/Types/Kubernetes/Compliance/KubernetesNodeBenchmarkScoring.js +157 -0
- package/Types/Kubernetes/Compliance/KubernetesNodeBenchmarkScoring.mjs +7 -0
- package/Types/Kubernetes/Compliance/KubernetesRbac.d.mts +6 -0
- package/Types/Kubernetes/Compliance/KubernetesRbac.d.ts +6 -0
- package/Types/Kubernetes/Compliance/KubernetesRbac.js +24 -2
- package/Types/Kubernetes/Compliance/KubernetesRbac.mjs +3 -0
- package/Types/Kubernetes/Compliance/NsaCisaHardening.d.mts +56 -0
- package/Types/Kubernetes/Compliance/NsaCisaHardening.d.ts +56 -0
- package/Types/Kubernetes/Compliance/NsaCisaHardening.js +594 -0
- package/Types/Kubernetes/Compliance/NsaCisaHardening.mjs +14 -0
- package/Types/Kubernetes/KubernetesCostCorrection.d.mts +26 -0
- package/Types/Kubernetes/KubernetesCostCorrection.d.ts +26 -0
- package/Types/Kubernetes/KubernetesCostCorrection.js +42 -0
- package/Types/Kubernetes/KubernetesCostCorrection.mjs +3 -0
- package/Types/Kubernetes/KubernetesCostIngest.d.mts +1 -0
- package/Types/Kubernetes/KubernetesCostIngest.d.ts +1 -0
- package/Types/Kubernetes/KubernetesCostPricing.d.mts +8 -0
- package/Types/Kubernetes/KubernetesCostPricing.d.ts +8 -0
- package/Types/Kubernetes/KubernetesCostPricing.js +33 -3
- package/Types/Kubernetes/KubernetesCostPricing.mjs +2 -0
- package/Types/Kubernetes/KubernetesInventoryExtractor.js +9 -0
- package/Types/Kubernetes/KubernetesNodeBenchmark.d.mts +46 -0
- package/Types/Kubernetes/KubernetesNodeBenchmark.d.ts +46 -0
- package/Types/Kubernetes/KubernetesNodeBenchmark.js +321 -0
- package/Types/Kubernetes/KubernetesNodeBenchmark.mjs +23 -0
- package/Types/Kubernetes/KubernetesObjectParser.d.mts +24 -0
- package/Types/Kubernetes/KubernetesObjectParser.d.ts +24 -0
- package/Types/Kubernetes/KubernetesObjectParser.js +153 -4
- package/Types/Kubernetes/KubernetesObjectParser.mjs +4 -0
- package/Types/Kubernetes/KubernetesPodSecurity.d.mts +2 -0
- package/Types/Kubernetes/KubernetesPodSecurity.d.ts +2 -0
- package/Types/Kubernetes/KubernetesPodSecurity.js +10 -0
- package/Types/Kubernetes/KubernetesStorageHealth.d.mts +4 -0
- package/Types/Kubernetes/KubernetesStorageHealth.d.ts +4 -0
- package/Types/Kubernetes/KubernetesStorageHealth.js +76 -16
- package/Types/Kubernetes/KubernetesStorageHealth.mjs +4 -0
- package/Types/Kubernetes/OpenShiftObjectParser.d.mts +2 -0
- package/Types/Kubernetes/OpenShiftObjectParser.d.ts +2 -0
- package/Types/Kubernetes/OpenShiftObjectParser.js +6 -0
- package/Types/Log/LogAnalyticsAggregation.d.mts +9 -0
- package/Types/Log/LogAnalyticsAggregation.d.ts +9 -0
- package/Types/Log/LogAnalyticsAggregation.js +63 -0
- package/Types/Log/LogAnalyticsAggregation.mjs +8 -0
- package/Types/MeaningKeys.js +14 -0
- package/Types/MessageQueue/MessagingTelemetryResolver.js +4 -2
- package/Types/Metrics/MetricOutputReaders.d.mts +31 -0
- package/Types/Metrics/MetricOutputReaders.d.ts +31 -0
- package/Types/Metrics/MetricOutputReaders.js +179 -0
- package/Types/Metrics/MetricOutputReaders.mjs +7 -0
- package/Types/Monitor/CloudAlertTemplates.d.mts +23 -0
- package/Types/Monitor/CloudAlertTemplates.d.ts +23 -0
- package/Types/Monitor/CloudAlertTemplates.js +260 -2
- package/Types/Monitor/CloudAlertTemplates.mjs +7 -0
- package/Types/Monitor/CriteriaFilter.d.mts +2 -0
- package/Types/Monitor/CriteriaFilter.d.ts +2 -0
- package/Types/Monitor/CriteriaFilter.js +10 -0
- package/Types/Monitor/CriteriaFilterTerms.js +2 -0
- package/Types/Monitor/ExceptionMonitor/ExceptionMonitorEvaluation.d.mts +7 -0
- package/Types/Monitor/ExceptionMonitor/ExceptionMonitorEvaluation.d.ts +7 -0
- package/Types/Monitor/ExceptionMonitor/ExceptionMonitorEvaluation.js +53 -9
- package/Types/Monitor/ExceptionMonitor/ExceptionMonitorEvaluation.mjs +3 -0
- package/Types/Monitor/ExceptionMonitor/ExceptionMonitorResponse.d.mts +3 -0
- package/Types/Monitor/ExceptionMonitor/ExceptionMonitorResponse.d.ts +3 -0
- package/Types/Monitor/HostAlertTemplates.d.mts +2 -0
- package/Types/Monitor/HostAlertTemplates.d.ts +2 -0
- package/Types/Monitor/HostAlertTemplates.js +75 -7
- package/Types/Monitor/HostAlertTemplates.mjs +1 -0
- package/Types/Monitor/KubernetesAlertTemplates.js +124 -22
- package/Types/Monitor/KubernetesMetricCatalog.js +29 -1
- package/Types/Monitor/ManagedDeviceAlertTemplates.d.mts +43 -1
- package/Types/Monitor/ManagedDeviceAlertTemplates.d.ts +43 -1
- package/Types/Monitor/ManagedDeviceAlertTemplates.js +1054 -68
- package/Types/Monitor/ManagedDeviceAlertTemplates.mjs +15 -0
- package/Types/Monitor/MonitorStep.d.mts +1 -0
- package/Types/Monitor/MonitorStep.d.ts +1 -0
- package/Types/Monitor/MonitorStep.js +31 -0
- package/Types/Monitor/MonitorStepMetricMonitor.d.mts +13 -0
- package/Types/Monitor/MonitorStepMetricMonitor.d.ts +13 -0
- package/Types/Monitor/MonitorStepMetricMonitor.js +103 -1
- package/Types/Monitor/MonitorStepMetricMonitor.mjs +3 -0
- package/Types/Monitor/Recommendation/MonitorRecommendationCatalog.d.mts +1 -0
- package/Types/Monitor/Recommendation/MonitorRecommendationCatalog.d.ts +1 -0
- package/Types/Monitor/Recommendation/MonitorRecommendationCatalog.js +106 -38
- package/Types/Monitor/Recommendation/MonitorRecommendationCatalog.mjs +1 -0
- package/Types/Monitor/Recommendation/MonitorRecommendationTypes.d.mts +6 -0
- package/Types/Monitor/Recommendation/MonitorRecommendationTypes.d.ts +6 -0
- package/Types/Monitor/Recommendation/MonitorRecommendationTypes.js +1 -1
- package/Types/Monitor/Recommendation/MonitorRecommendationUtil.d.mts +2 -0
- package/Types/Monitor/Recommendation/MonitorRecommendationUtil.d.ts +2 -0
- package/Types/Monitor/Recommendation/MonitorRecommendationUtil.js +48 -16
- package/Types/Monitor/Recommendation/RecommendationCriteriaBuilder.d.mts +2 -1
- package/Types/Monitor/Recommendation/RecommendationCriteriaBuilder.d.ts +2 -1
- package/Types/Monitor/Recommendation/RecommendationCriteriaBuilder.js +4 -3
- package/Types/Monitor/RumAlertTemplates.d.mts +2 -0
- package/Types/Monitor/RumAlertTemplates.d.ts +2 -0
- package/Types/Monitor/RumAlertTemplates.js +80 -14
- package/Types/Monitor/RumAlertTemplates.mjs +2 -0
- package/Types/Monitor/SeriesContext/SeriesDebugHints.d.mts +8 -0
- package/Types/Monitor/SeriesContext/SeriesDebugHints.d.ts +8 -0
- package/Types/Monitor/SeriesContext/SeriesDebugHints.js +150 -16
- package/Types/Monitor/SeriesContext/SeriesLabelDisplay.d.mts +15 -11
- package/Types/Monitor/SeriesContext/SeriesLabelDisplay.d.ts +15 -11
- package/Types/Monitor/SeriesContext/SeriesLabelDisplay.js +86 -5
- package/Types/Monitor/TelemetryAlertRule.d.mts +1 -0
- package/Types/Monitor/TelemetryAlertRule.d.ts +1 -0
- package/Types/Monitor/TelemetryAlertRule.js +10 -3
- package/Types/Monitor/TraceMonitor/TraceMonitorGroupResult.d.mts +1 -0
- package/Types/Monitor/TraceMonitor/TraceMonitorGroupResult.d.ts +1 -0
- package/Types/NetworkController/NetworkControllerDeviceAdd.d.mts +13 -2
- package/Types/NetworkController/NetworkControllerDeviceAdd.d.ts +13 -2
- package/Types/NetworkController/NetworkControllerDeviceAdd.js +119 -18
- package/Types/NetworkController/NetworkControllerDeviceAdd.mjs +4 -1
- package/Types/NetworkDevice/NetworkDeviceTieSource.d.mts +10 -0
- package/Types/NetworkDevice/NetworkDeviceTieSource.d.ts +10 -0
- package/Types/NetworkDevice/NetworkDeviceTieSource.js +54 -0
- package/Types/NetworkDevice/NetworkDeviceTieSource.mjs +4 -0
- package/Types/ObservabilityImport/ObservabilityImport.d.mts +114 -0
- package/Types/ObservabilityImport/ObservabilityImport.d.ts +114 -0
- package/Types/ObservabilityImport/ObservabilityImport.js +105 -0
- package/Types/ObservabilityImport/ObservabilityImport.mjs +10 -0
- package/Types/OnCallDutyPolicy/EscalationRuleResponderOnce.d.mts +20 -0
- package/Types/OnCallDutyPolicy/EscalationRuleResponderOnce.d.ts +20 -0
- package/Types/OnCallDutyPolicy/EscalationRuleResponderOnce.js +79 -0
- package/Types/OnCallDutyPolicy/EscalationRuleResponderOnce.mjs +7 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.d.mts +4 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.d.ts +4 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.js +20 -1
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.mjs +2 -0
- package/Types/OnCallDutyPolicy/ScheduleTimeline.d.mts +1 -0
- package/Types/OnCallDutyPolicy/ScheduleTimeline.d.ts +1 -0
- package/Types/OnCallDutyPolicy/ScheduleTimeline.js +2 -0
- package/Types/OnCallDutyPolicy/ScheduleTimelineLayout.d.mts +0 -3
- package/Types/OnCallDutyPolicy/ScheduleTimelineLayout.d.ts +0 -3
- package/Types/OnCallDutyPolicy/ScheduleTimelineLayout.js +36 -21
- package/Types/PacketCapture/PacketCapturePermissions.js +24 -12
- package/Types/Permission.d.mts +125 -1
- package/Types/Permission.d.ts +125 -1
- package/Types/Permission.js +744 -5
- package/Types/Permission.mjs +1 -0
- package/Types/Probe/ProbeApiIngestResponse.d.mts +1 -0
- package/Types/Probe/ProbeApiIngestResponse.d.ts +1 -0
- package/Types/Probe/ProbeKeyHeaders.d.mts +17 -0
- package/Types/Probe/ProbeKeyHeaders.d.ts +17 -0
- package/Types/Probe/ProbeKeyHeaders.js +74 -0
- package/Types/Probe/ProbeKeyHeaders.mjs +4 -0
- package/Types/Product/ProductLevels.d.mts +54 -0
- package/Types/Product/ProductLevels.d.ts +54 -0
- package/Types/Product/ProductLevels.js +502 -0
- package/Types/Product/ProductLevels.mjs +20 -0
- package/Types/Product/ProductRecordTables.d.mts +0 -1
- package/Types/Product/ProductRecordTables.d.ts +0 -1
- package/Types/Product/ProductRecordTables.js +25 -167
- package/Types/Product/ProductRecordTables.mjs +0 -1
- package/Types/Product/TablesOfNoProduct.d.mts +1 -0
- package/Types/Product/TablesOfNoProduct.d.ts +1 -0
- package/Types/Product/TablesOfNoProduct.js +187 -0
- package/Types/Product/TablesOfNoProduct.mjs +2 -0
- package/Types/ProviderLogo/AllProviderLogoMarks.js +2 -0
- package/Types/ProviderLogo/Marks/crossplane.d.mts +3 -0
- package/Types/ProviderLogo/Marks/crossplane.d.ts +3 -0
- package/Types/ProviderLogo/Marks/crossplane.js +22 -0
- package/Types/ProviderLogo/Marks/crossplane.mjs +2 -0
- package/Types/ProviderLogo/ProviderLogo.d.mts +1 -0
- package/Types/ProviderLogo/ProviderLogo.d.ts +1 -0
- package/Types/ProviderLogo/ProviderLogo.js +2 -0
- package/Types/ProviderLogo/ProviderLogoMarks.js +1 -0
- package/Types/RecordAccess/RecordAccess.d.mts +50 -0
- package/Types/RecordAccess/RecordAccess.d.ts +50 -0
- package/Types/RecordAccess/RecordAccess.js +290 -0
- package/Types/RecordAccess/RecordAccess.mjs +6 -0
- package/Types/Rum/MobileAppTelemetry.d.mts +5 -0
- package/Types/Rum/MobileAppTelemetry.d.ts +5 -0
- package/Types/Rum/MobileAppTelemetry.js +71 -14
- package/Types/Rum/MobileAppTelemetry.mjs +5 -0
- package/Types/Runbook/HttpStepCertificates.d.mts +30 -0
- package/Types/Runbook/HttpStepCertificates.d.ts +30 -0
- package/Types/Runbook/HttpStepCertificates.js +166 -0
- package/Types/Runbook/HttpStepCertificates.mjs +18 -0
- package/Types/Runbook/RunbookStep.d.mts +2 -0
- package/Types/Runbook/RunbookStep.d.ts +2 -0
- package/Types/SSO/MobileSsoHandOff.d.mts +17 -0
- package/Types/SSO/MobileSsoHandOff.d.ts +17 -0
- package/Types/SSO/MobileSsoHandOff.js +39 -0
- package/Types/SSO/MobileSsoHandOff.mjs +6 -0
- package/Types/ScheduledMaintenance/MaintenanceTemplateSchedule.d.mts +50 -0
- package/Types/ScheduledMaintenance/MaintenanceTemplateSchedule.d.ts +50 -0
- package/Types/ScheduledMaintenance/MaintenanceTemplateSchedule.js +269 -0
- package/Types/ScheduledMaintenance/MaintenanceTemplateSchedule.mjs +2 -0
- package/Types/SecurityBlocklist/SecurityBlock.d.mts +130 -0
- package/Types/SecurityBlocklist/SecurityBlock.d.ts +130 -0
- package/Types/SecurityBlocklist/SecurityBlock.js +428 -0
- package/Types/SecurityBlocklist/SecurityBlock.mjs +40 -0
- package/Types/SecurityBlocklist/SecurityBlockEnforcement.d.mts +40 -0
- package/Types/SecurityBlocklist/SecurityBlockEnforcement.d.ts +40 -0
- package/Types/SecurityBlocklist/SecurityBlockEnforcement.js +153 -0
- package/Types/SecurityBlocklist/SecurityBlockEnforcement.mjs +11 -0
- package/Types/SecurityBlocklist/SecurityProtectedAddress.d.mts +50 -0
- package/Types/SecurityBlocklist/SecurityProtectedAddress.d.ts +50 -0
- package/Types/SecurityBlocklist/SecurityProtectedAddress.js +248 -0
- package/Types/SecurityBlocklist/SecurityProtectedAddress.mjs +16 -0
- package/Types/SecurityCase/SecurityCaseMatches.js +4 -1
- package/Types/SecurityCase/SecurityConnection.d.mts +7 -0
- package/Types/SecurityCase/SecurityConnection.d.ts +7 -0
- package/Types/SecurityCase/SecurityConnection.js +10 -1
- package/Types/SecurityCase/SecurityConnection.mjs +3 -0
- package/Types/SecurityCase/SecurityDetectionText.d.mts +3 -0
- package/Types/SecurityCase/SecurityDetectionText.d.ts +3 -0
- package/Types/SecurityCase/SecurityDetectionText.js +37 -0
- package/Types/SecurityCase/SecurityDetectionText.mjs +4 -0
- package/Types/SecurityEvent/DetectionFindingConstants.d.mts +2 -0
- package/Types/SecurityEvent/DetectionFindingConstants.d.ts +2 -0
- package/Types/SecurityEvent/DetectionFindingConstants.js +29 -7
- package/Types/SecurityEvent/DetectionFindingConstants.mjs +2 -0
- package/Types/SecurityEvent/NormalizedSecurityEvent.d.mts +1 -0
- package/Types/SecurityEvent/NormalizedSecurityEvent.d.ts +1 -0
- package/Types/SecurityEvent/SecurityAttackCampaign.d.mts +2 -0
- package/Types/SecurityEvent/SecurityAttackCampaign.d.ts +2 -0
- package/Types/SecurityEvent/SecurityAttackCampaign.js +13 -0
- package/Types/SecurityEvent/SecurityAttackCampaign.mjs +1 -0
- package/Types/SecurityEvent/SecurityEventRequestOutcome.d.mts +5 -0
- package/Types/SecurityEvent/SecurityEventRequestOutcome.d.ts +5 -0
- package/Types/SecurityEvent/SecurityEventRequestOutcome.js +12 -0
- package/Types/SecurityEvent/SecurityLogFormat.d.mts +1 -0
- package/Types/SecurityEvent/SecurityLogFormat.d.ts +1 -0
- package/Types/SecurityEvent/SecurityLogFormat.js +10 -0
- package/Types/SecurityPlaybook/SecurityProtectedEntity.d.mts +2 -0
- package/Types/SecurityPlaybook/SecurityProtectedEntity.d.ts +2 -0
- package/Types/SecurityPlaybook/SecurityProtectedEntity.js +56 -15
- package/Types/SecurityPlaybook/SecurityProtectedEntity.mjs +2 -0
- package/Types/ServiceLevelObjective/SliType.js +3 -2
- package/Types/StatusPage/PrivateUserEmailAddressChangedEmail.d.mts +21 -0
- package/Types/StatusPage/PrivateUserEmailAddressChangedEmail.d.ts +21 -0
- package/Types/StatusPage/PrivateUserEmailAddressChangedEmail.js +98 -0
- package/Types/StatusPage/PrivateUserEmailAddressChangedEmail.mjs +5 -0
- package/Types/Team/CustomRole.js +6 -1
- package/Types/Team/InvitationEmailWords.d.mts +13 -0
- package/Types/Team/InvitationEmailWords.d.ts +13 -0
- package/Types/Team/InvitationEmailWords.js +78 -0
- package/Types/Team/InvitationEmailWords.mjs +4 -0
- package/Types/Telemetry/CompatibleIngest.d.mts +9 -0
- package/Types/Telemetry/CompatibleIngest.d.ts +9 -0
- package/Types/Telemetry/CompatibleIngest.js +80 -2
- package/Types/Telemetry/CompatibleIngest.mjs +9 -0
- package/Types/Telemetry/ExceptionSource.d.mts +10 -0
- package/Types/Telemetry/ExceptionSource.d.ts +10 -0
- package/Types/Telemetry/ExceptionSource.js +66 -0
- package/Types/Telemetry/ExceptionSource.mjs +7 -0
- package/Types/Telemetry/ScrubHashTokenFormat.d.mts +6 -0
- package/Types/Telemetry/ScrubHashTokenFormat.d.ts +6 -0
- package/Types/Telemetry/ScrubHashTokenFormat.js +36 -0
- package/Types/Telemetry/ScrubHashTokenFormat.mjs +7 -0
- package/Types/Telemetry/ScrubRule.d.mts +5 -0
- package/Types/Telemetry/ScrubRule.d.ts +5 -0
- package/Types/Telemetry/ScrubRule.js +44 -0
- package/Types/Telemetry/ScrubRule.mjs +1 -0
- package/Types/Telemetry/TelemetryIngestRefusal.js +19 -1
- package/Types/Telemetry/TelemetryIngestSurface.d.mts +1 -0
- package/Types/Telemetry/TelemetryIngestSurface.d.ts +1 -0
- package/Types/Telemetry/TelemetryIngestSurface.js +6 -0
- package/Types/Telemetry/TelemetryIngestionBudget.d.mts +21 -2
- package/Types/Telemetry/TelemetryIngestionBudget.d.ts +21 -2
- package/Types/Telemetry/TelemetryIngestionBudget.js +130 -2
- package/Types/Telemetry/TelemetryIngestionBudget.mjs +5 -0
- package/Types/Telemetry/TelemetryIngestionBudgetMetricType.js +6 -4
- package/Types/Telemetry/TelemetryUsage.js +1 -1
- package/Types/Telemetry/TelemetryUsageMetricType.d.mts +4 -0
- package/Types/Telemetry/TelemetryUsageMetricType.d.ts +4 -0
- package/Types/Telemetry/TelemetryUsageMetricType.js +36 -0
- package/Types/Telemetry/TelemetryUsageMetricType.mjs +2 -0
- package/Types/ToolImport/ToolImportPlan.d.mts +1 -0
- package/Types/ToolImport/ToolImportPlan.d.ts +1 -0
- package/Types/UsedBy/UsedBy.d.mts +1 -0
- package/Types/UsedBy/UsedBy.d.ts +1 -0
- package/Types/UsedBy/UsedBy.js +2 -0
- package/Types/UsedBy/UsedByServerProducts.js +1 -0
- package/Types/UserSession/SessionEndCause.d.mts +1 -0
- package/Types/UserSession/SessionEndCause.d.ts +1 -0
- package/Types/UserSession/SessionEndCause.js +10 -2
- package/Types/UserSession/SessionSignIn.d.mts +10 -0
- package/Types/UserSession/SessionSignIn.d.ts +10 -0
- package/Types/UserSession/SessionSignIn.js +51 -1
- package/Types/UserSession/SessionSignIn.mjs +2 -0
- package/Types/Workflow/Templates.d.mts +18 -0
- package/Types/Workflow/Templates.d.ts +18 -0
- package/Types/Workflow/Templates.js +194 -2
- package/Types/Workflow/Templates.mjs +1 -0
- package/Types/Workflow/WorkflowRunAs.d.mts +3 -3
- package/Types/Workflow/WorkflowRunAs.d.ts +3 -3
- package/Types/Workflow/WorkflowRunAs.js +6 -6
- package/UI/Components/Dropdown/Dropdown.d.mts +2 -0
- package/UI/Components/Dropdown/Dropdown.d.ts +2 -0
- package/UI/Utils/SharedNameOptions.d.mts +5 -0
- package/UI/Utils/SharedNameOptions.d.ts +5 -0
- package/UI/Utils/TranslateTemplate.d.mts +8 -0
- package/UI/Utils/TranslateTemplate.d.ts +8 -0
- package/Utils/API.d.mts +3 -0
- package/Utils/API.d.ts +3 -0
- package/Utils/API.js +48 -1
- package/Utils/CronScheduleText.js +21 -13
- package/Utils/Dashboard/ClockWidgetFormat.js +20 -3
- package/Utils/Dashboard/Components/DashboardChartComponent.js +7 -1
- package/Utils/Dashboard/Components/DashboardDataSourceChartComponent.js +12 -1
- package/Utils/Dashboard/Components/DashboardDataSourceGaugeComponent.js +3 -1
- package/Utils/Dashboard/Components/DashboardDataSourceTableComponent.js +3 -1
- package/Utils/Dashboard/Components/DashboardDataSourceValueComponent.js +3 -1
- package/Utils/Dashboard/DashboardWidgetLink.d.mts +8 -0
- package/Utils/Dashboard/DashboardWidgetLink.d.ts +8 -0
- package/Utils/Dashboard/DashboardWidgetLink.js +80 -0
- package/Utils/Dashboard/DashboardWidgetLink.mjs +7 -0
- package/Utils/DataSecurity/CustomDataTypeDetector.d.mts +2 -3
- package/Utils/DataSecurity/CustomDataTypeDetector.d.ts +2 -3
- package/Utils/DataSecurity/CustomDataTypeDetector.js +5 -10
- package/Utils/DataSecurity/Detectors/ContactDetectors.d.mts +3 -0
- package/Utils/DataSecurity/Detectors/ContactDetectors.d.ts +3 -0
- package/Utils/DataSecurity/Detectors/ContactDetectors.js +70 -38
- package/Utils/DataSecurity/Detectors/ContactDetectors.mjs +3 -0
- package/Utils/DataSource/DataSourceQueryText.d.mts +10 -0
- package/Utils/DataSource/DataSourceQueryText.d.ts +10 -0
- package/Utils/DataSource/DataSourceQueryText.js +287 -23
- package/Utils/DataSource/DataSourceTableRows.d.mts +7 -0
- package/Utils/DataSource/DataSourceTableRows.d.ts +7 -0
- package/Utils/DataSource/DataSourceTableRows.js +64 -0
- package/Utils/DataSource/DataSourceTableRows.mjs +3 -0
- package/Utils/DataSource/DataSourceWidgetQueries.d.mts +21 -0
- package/Utils/DataSource/DataSourceWidgetQueries.d.ts +21 -0
- package/Utils/DataSource/DataSourceWidgetQueries.js +145 -0
- package/Utils/DataSource/DataSourceWidgetQueries.mjs +3 -0
- package/Utils/DeveloperDocs/CliCommands.d.mts +1 -0
- package/Utils/DeveloperDocs/CliCommands.d.ts +1 -0
- package/Utils/DeveloperDocs/CliCommands.js +26 -0
- package/Utils/DeveloperDocs/CliCommands.mjs +1 -0
- package/Utils/DeveloperDocs/CliExamples.d.mts +6 -0
- package/Utils/DeveloperDocs/CliExamples.d.ts +6 -0
- package/Utils/DeveloperDocs/CliExamples.js +43 -0
- package/Utils/DeveloperDocs/CliExamples.mjs +2 -0
- package/Utils/DeveloperDocs/ClientResourceNames.js +6 -1
- package/Utils/DeveloperDocs/CrossplaneConfig.d.mts +74 -0
- package/Utils/DeveloperDocs/CrossplaneConfig.d.ts +74 -0
- package/Utils/DeveloperDocs/CrossplaneConfig.js +846 -0
- package/Utils/DeveloperDocs/CrossplaneConfig.mjs +21 -0
- package/Utils/DeveloperDocs/CrossplaneNames.d.mts +21 -0
- package/Utils/DeveloperDocs/CrossplaneNames.d.ts +21 -0
- package/Utils/DeveloperDocs/CrossplaneNames.js +334 -0
- package/Utils/DeveloperDocs/CrossplaneNames.mjs +15 -0
- package/Utils/DeveloperDocs/CrossplaneSchema.d.mts +20 -0
- package/Utils/DeveloperDocs/CrossplaneSchema.d.ts +20 -0
- package/Utils/DeveloperDocs/CrossplaneSchema.js +170 -0
- package/Utils/DeveloperDocs/CrossplaneSchema.mjs +9 -0
- package/Utils/DeveloperDocs/DeleteChoices.d.mts +5 -0
- package/Utils/DeveloperDocs/DeleteChoices.d.ts +5 -0
- package/Utils/DeveloperDocs/DeleteChoices.js +36 -0
- package/Utils/DeveloperDocs/DeleteChoices.mjs +2 -0
- package/Utils/DeveloperDocs/ExampleBuilder.d.mts +1 -1
- package/Utils/DeveloperDocs/ExampleBuilder.d.ts +1 -1
- package/Utils/DeveloperDocs/ExampleBuilder.js +9 -9
- package/Utils/DeveloperDocs/PageLookups.d.mts +2 -1
- package/Utils/DeveloperDocs/PageLookups.d.ts +2 -1
- package/Utils/DeveloperDocs/PageLookups.js +19 -5
- package/Utils/DeveloperDocs/ResourceProfiles.js +92 -10
- package/Utils/DeveloperDocs/TerraformConfig.d.mts +26 -3
- package/Utils/DeveloperDocs/TerraformConfig.d.ts +26 -3
- package/Utils/DeveloperDocs/TerraformConfig.js +70 -34
- package/Utils/DeveloperDocs/TerraformConfig.mjs +1 -0
- package/Utils/DeveloperDocs/TerraformSchema.d.mts +6 -1
- package/Utils/DeveloperDocs/TerraformSchema.d.ts +6 -1
- package/Utils/DeveloperDocs/TerraformSchema.js +60 -38
- package/Utils/DeveloperDocs/TerraformSchema.mjs +1 -0
- package/Utils/DeveloperDocs/Yaml.d.mts +50 -0
- package/Utils/DeveloperDocs/Yaml.d.ts +50 -0
- package/Utils/DeveloperDocs/Yaml.js +410 -0
- package/Utils/DeveloperDocs/Yaml.mjs +7 -0
- package/Utils/Host/AndroidAgentLogSessions.d.mts +1 -0
- package/Utils/Host/AndroidAgentLogSessions.d.ts +1 -0
- package/Utils/Host/AndroidAgentLogSessions.js +8 -1
- package/Utils/Host/AndroidAgentRedactor.d.mts +11 -0
- package/Utils/Host/AndroidAgentRedactor.d.ts +11 -0
- package/Utils/Host/AndroidAgentRedactor.js +129 -0
- package/Utils/Host/AndroidAgentRedactor.mjs +8 -0
- package/Utils/Host/HostLogSessionFile.d.mts +56 -0
- package/Utils/Host/HostLogSessionFile.d.ts +56 -0
- package/Utils/Host/HostLogSessionFile.js +245 -0
- package/Utils/Host/HostLogSessionFile.mjs +6 -0
- package/Utils/Host/HostLogSessionNote.d.mts +11 -0
- package/Utils/Host/HostLogSessionNote.d.ts +11 -0
- package/Utils/Host/HostLogSessionNote.js +80 -0
- package/Utils/Host/HostLogSessionNote.mjs +4 -0
- package/Utils/HostCollector/HostCollectorJournaldOperators.d.mts +14 -0
- package/Utils/HostCollector/HostCollectorJournaldOperators.d.ts +14 -0
- package/Utils/HostCollector/HostCollectorJournaldOperators.js +313 -0
- package/Utils/HostCollector/HostCollectorJournaldOperators.mjs +5 -0
- package/Utils/Incident/IncidentSlaStart.d.mts +31 -0
- package/Utils/Incident/IncidentSlaStart.d.ts +31 -0
- package/Utils/Incident/IncidentSlaStart.js +99 -0
- package/Utils/Incident/IncidentSlaStart.mjs +3 -0
- package/Utils/Incident/WhoOpenedItRootCause.js +15 -18
- package/Utils/IpCanonicalUtil.d.mts +2 -0
- package/Utils/IpCanonicalUtil.d.ts +2 -0
- package/Utils/IpCanonicalUtil.js +35 -0
- package/Utils/JsonElementCount.d.mts +54 -0
- package/Utils/JsonElementCount.d.ts +54 -0
- package/Utils/JsonElementCount.js +322 -0
- package/Utils/JsonElementCount.mjs +6 -0
- package/Utils/LogQL/LogQLAst.d.mts +125 -0
- package/Utils/LogQL/LogQLAst.d.ts +125 -0
- package/Utils/LogQL/LogQLAst.js +83 -0
- package/Utils/LogQL/LogQLAst.mjs +9 -0
- package/Utils/LogQL/LogQLEngine.d.mts +114 -0
- package/Utils/LogQL/LogQLEngine.d.ts +114 -0
- package/Utils/LogQL/LogQLEngine.js +716 -0
- package/Utils/LogQL/LogQLEngine.mjs +16 -0
- package/Utils/LogQL/LogQLLabels.d.mts +31 -0
- package/Utils/LogQL/LogQLLabels.d.ts +31 -0
- package/Utils/LogQL/LogQLLabels.js +131 -0
- package/Utils/LogQL/LogQLLabels.mjs +11 -0
- package/Utils/LogQL/LogQLParser.d.mts +2 -0
- package/Utils/LogQL/LogQLParser.d.ts +2 -0
- package/Utils/LogQL/LogQLParser.js +1207 -0
- package/Utils/LogQL/LogQLParser.mjs +2 -0
- package/Utils/LogQL/LogQLPipeline.d.mts +28 -0
- package/Utils/LogQL/LogQLPipeline.d.ts +28 -0
- package/Utils/LogQL/LogQLPipeline.js +441 -0
- package/Utils/LogQL/LogQLPipeline.mjs +7 -0
- package/Utils/LogQL/LogQLValues.d.mts +2 -0
- package/Utils/LogQL/LogQLValues.d.ts +2 -0
- package/Utils/LogQL/LogQLValues.js +101 -0
- package/Utils/LogQL/LogQLValues.mjs +3 -0
- package/Utils/Markdown/FeedLead.js +2 -0
- package/Utils/Metrics/MetricFormulaEvaluator.d.mts +13 -8
- package/Utils/Metrics/MetricFormulaEvaluator.d.ts +13 -8
- package/Utils/Metrics/MetricFormulaEvaluator.js +139 -3
- package/Utils/Metrics/MetricQueryOverlay.d.mts +20 -0
- package/Utils/Metrics/MetricQueryOverlay.d.ts +20 -0
- package/Utils/Metrics/MetricQueryOverlay.js +136 -12
- package/Utils/Metrics/MetricQueryOverlay.mjs +1 -0
- package/Utils/Metrics/MetricSeriesFingerprint.d.mts +6 -0
- package/Utils/Metrics/MetricSeriesFingerprint.d.ts +6 -0
- package/Utils/Metrics/MetricSeriesFingerprint.js +81 -0
- package/Utils/Metrics/RetiredCloudMetricChartMoves.d.mts +2 -1
- package/Utils/Metrics/RetiredCloudMetricChartMoves.d.ts +2 -1
- package/Utils/Metrics/RetiredCloudMetricChartMoves.js +17 -0
- package/Utils/Metrics/RetiredCloudMetricChartMoves.mjs +1 -0
- package/Utils/Metrics/RetiredCloudMetricMoves.d.mts +1 -0
- package/Utils/Metrics/RetiredCloudMetricMoves.d.ts +1 -0
- package/Utils/Metrics/RetiredCloudMetricMoves.js +9 -3
- package/Utils/Metrics/RetiredCloudMetricMoves.mjs +1 -0
- package/Utils/ModelImportExport.js +57 -44
- package/Utils/Monitor/MetricTelemetrySnapshot.d.mts +1 -0
- package/Utils/Monitor/MetricTelemetrySnapshot.d.ts +1 -0
- package/Utils/Monitor/MetricTelemetrySnapshot.js +16 -0
- package/Utils/Monitor/MonitorLogSummaryUtil.js +18 -0
- package/Utils/Monitor/MonitorStepMetricQueries.d.mts +1 -0
- package/Utils/Monitor/MonitorStepMetricQueries.d.ts +1 -0
- package/Utils/Monitor/MonitorStepMetricQueries.js +24 -4
- package/Utils/Monitor/MonitorUptimeSummaryUtil.js +7 -7
- package/Utils/Monitor/RecordRootCauseWording.d.mts +12 -0
- package/Utils/Monitor/RecordRootCauseWording.d.ts +12 -0
- package/Utils/Monitor/RecordRootCauseWording.js +53 -0
- package/Utils/Monitor/RecordRootCauseWording.mjs +2 -0
- package/Utils/Monitor/StateChangeFeedCause.d.mts +8 -0
- package/Utils/Monitor/StateChangeFeedCause.d.ts +8 -0
- package/Utils/Monitor/StateChangeFeedCause.js +74 -0
- package/Utils/Monitor/StateChangeFeedCause.mjs +3 -0
- package/Utils/Monitor/StatusChangeCauseWording.js +24 -4
- package/Utils/Monitor/StatusChangeNotes.d.mts +39 -0
- package/Utils/Monitor/StatusChangeNotes.d.ts +39 -0
- package/Utils/Monitor/StatusChangeNotes.js +688 -98
- package/Utils/Monitor/StatusChangeNotes.mjs +24 -0
- package/Utils/Monitor/StoredCheckEvidence.d.mts +6 -0
- package/Utils/Monitor/StoredCheckEvidence.d.ts +6 -0
- package/Utils/Monitor/StoredCheckEvidence.js +9 -1
- package/Utils/Monitor/StoredCheckEvidence.mjs +1 -0
- package/Utils/NetworkDevice/DeviceAddressScope.d.mts +23 -0
- package/Utils/NetworkDevice/DeviceAddressScope.d.ts +23 -0
- package/Utils/NetworkDevice/DeviceAddressScope.js +96 -11
- package/Utils/NetworkDevice/DeviceAddressScope.mjs +4 -0
- package/Utils/NetworkDevice/MonitorTieAfterProbes.d.mts +21 -0
- package/Utils/NetworkDevice/MonitorTieAfterProbes.d.ts +21 -0
- package/Utils/NetworkDevice/MonitorTieAfterProbes.js +33 -0
- package/Utils/NetworkDevice/MonitorTieAfterProbes.mjs +2 -0
- package/Utils/NetworkDevice/UntiedDeviceMonitor.d.mts +26 -0
- package/Utils/NetworkDevice/UntiedDeviceMonitor.d.ts +26 -0
- package/Utils/NetworkDevice/UntiedDeviceMonitor.js +137 -0
- package/Utils/NetworkDevice/UntiedDeviceMonitor.mjs +4 -0
- package/Utils/NetworkDiscovery/DiscoveredHostRegistration.d.mts +15 -0
- package/Utils/NetworkDiscovery/DiscoveredHostRegistration.d.ts +15 -0
- package/Utils/NetworkDiscovery/DiscoveredHostRegistration.js +118 -0
- package/Utils/NetworkDiscovery/DiscoveredHostRegistration.mjs +6 -0
- package/Utils/NetworkTraffic/NetworkAddressBlock.d.mts +2 -0
- package/Utils/NetworkTraffic/NetworkAddressBlock.d.ts +2 -0
- package/Utils/NetworkTraffic/NetworkAddressBlock.js +25 -0
- package/Utils/ObservabilityImport/AlertImportCommon.d.mts +33 -0
- package/Utils/ObservabilityImport/AlertImportCommon.d.ts +33 -0
- package/Utils/ObservabilityImport/AlertImportCommon.js +198 -0
- package/Utils/ObservabilityImport/AlertImportCommon.mjs +12 -0
- package/Utils/ObservabilityImport/AlertImportMonitorBuilder.d.mts +20 -0
- package/Utils/ObservabilityImport/AlertImportMonitorBuilder.d.ts +20 -0
- package/Utils/ObservabilityImport/AlertImportMonitorBuilder.js +138 -0
- package/Utils/ObservabilityImport/AlertImportMonitorBuilder.mjs +3 -0
- package/Utils/ObservabilityImport/Datadog/DatadogDashboard.d.mts +18 -0
- package/Utils/ObservabilityImport/Datadog/DatadogDashboard.d.ts +18 -0
- package/Utils/ObservabilityImport/Datadog/DatadogDashboard.js +657 -0
- package/Utils/ObservabilityImport/Datadog/DatadogDashboard.mjs +12 -0
- package/Utils/ObservabilityImport/Datadog/DatadogMonitors.d.mts +23 -0
- package/Utils/ObservabilityImport/Datadog/DatadogMonitors.d.ts +23 -0
- package/Utils/ObservabilityImport/Datadog/DatadogMonitors.js +369 -0
- package/Utils/ObservabilityImport/Datadog/DatadogMonitors.mjs +13 -0
- package/Utils/ObservabilityImport/Datadog/DatadogPromQL.d.mts +42 -0
- package/Utils/ObservabilityImport/Datadog/DatadogPromQL.d.ts +42 -0
- package/Utils/ObservabilityImport/Datadog/DatadogPromQL.js +818 -0
- package/Utils/ObservabilityImport/Datadog/DatadogPromQL.mjs +24 -0
- package/Utils/ObservabilityImport/Datadog/DatadogQueryParser.d.mts +88 -0
- package/Utils/ObservabilityImport/Datadog/DatadogQueryParser.d.ts +88 -0
- package/Utils/ObservabilityImport/Datadog/DatadogQueryParser.js +584 -0
- package/Utils/ObservabilityImport/Datadog/DatadogQueryParser.mjs +7 -0
- package/Utils/ObservabilityImport/Grafana/GrafanaAlertRules.d.mts +14 -0
- package/Utils/ObservabilityImport/Grafana/GrafanaAlertRules.d.ts +14 -0
- package/Utils/ObservabilityImport/Grafana/GrafanaAlertRules.js +431 -0
- package/Utils/ObservabilityImport/Grafana/GrafanaAlertRules.mjs +11 -0
- package/Utils/ObservabilityImport/Grafana/GrafanaDashboard.d.mts +42 -0
- package/Utils/ObservabilityImport/Grafana/GrafanaDashboard.d.ts +42 -0
- package/Utils/ObservabilityImport/Grafana/GrafanaDashboard.js +1349 -0
- package/Utils/ObservabilityImport/Grafana/GrafanaDashboard.mjs +39 -0
- package/Utils/ObservabilityImport/Grafana/GrafanaLoki.d.mts +29 -0
- package/Utils/ObservabilityImport/Grafana/GrafanaLoki.d.ts +29 -0
- package/Utils/ObservabilityImport/Grafana/GrafanaLoki.js +361 -0
- package/Utils/ObservabilityImport/Grafana/GrafanaLoki.mjs +13 -0
- package/Utils/ObservabilityImport/Grafana/GrafanaUnits.d.mts +31 -0
- package/Utils/ObservabilityImport/Grafana/GrafanaUnits.d.ts +31 -0
- package/Utils/ObservabilityImport/Grafana/GrafanaUnits.js +340 -0
- package/Utils/ObservabilityImport/Grafana/GrafanaUnits.mjs +10 -0
- package/Utils/ObservabilityImport/ImportLayout.d.mts +20 -0
- package/Utils/ObservabilityImport/ImportLayout.d.ts +20 -0
- package/Utils/ObservabilityImport/ImportLayout.js +71 -0
- package/Utils/ObservabilityImport/ImportLayout.mjs +6 -0
- package/Utils/ObservabilityImport/ImportSource.d.mts +37 -0
- package/Utils/ObservabilityImport/ImportSource.d.ts +37 -0
- package/Utils/ObservabilityImport/ImportSource.js +285 -0
- package/Utils/ObservabilityImport/ImportSource.mjs +16 -0
- package/Utils/ObservabilityImport/ImportValues.d.mts +11 -0
- package/Utils/ObservabilityImport/ImportValues.d.ts +11 -0
- package/Utils/ObservabilityImport/ImportValues.js +102 -0
- package/Utils/ObservabilityImport/ImportValues.mjs +11 -0
- package/Utils/ObservabilityImport/ImportWidgets.d.mts +48 -0
- package/Utils/ObservabilityImport/ImportWidgets.d.ts +48 -0
- package/Utils/ObservabilityImport/ImportWidgets.js +164 -0
- package/Utils/ObservabilityImport/ImportWidgets.mjs +9 -0
- package/Utils/ObservabilityImport/ObservabilityImport.d.mts +16 -0
- package/Utils/ObservabilityImport/ObservabilityImport.d.ts +16 -0
- package/Utils/ObservabilityImport/ObservabilityImport.js +102 -0
- package/Utils/ObservabilityImport/ObservabilityImport.mjs +6 -0
- package/Utils/ObservabilityImport/PromQLImportQuery.d.mts +31 -0
- package/Utils/ObservabilityImport/PromQLImportQuery.d.ts +31 -0
- package/Utils/ObservabilityImport/PromQLImportQuery.js +263 -0
- package/Utils/ObservabilityImport/PromQLImportQuery.mjs +13 -0
- package/Utils/ObservabilityImport/Prometheus/PrometheusRules.d.mts +12 -0
- package/Utils/ObservabilityImport/Prometheus/PrometheusRules.d.ts +12 -0
- package/Utils/ObservabilityImport/Prometheus/PrometheusRules.js +239 -0
- package/Utils/ObservabilityImport/Prometheus/PrometheusRules.mjs +9 -0
- package/Utils/PrivateKeyBlocks.d.mts +6 -0
- package/Utils/PrivateKeyBlocks.d.ts +6 -0
- package/Utils/PrivateKeyBlocks.js +24 -9
- package/Utils/PrivateKeyBlocks.mjs +1 -0
- package/Utils/PromQL/PromQLGrafanaMacros.d.mts +25 -0
- package/Utils/PromQL/PromQLGrafanaMacros.d.ts +25 -0
- package/Utils/PromQL/PromQLGrafanaMacros.js +116 -0
- package/Utils/PromQL/PromQLGrafanaMacros.mjs +8 -0
- package/Utils/PromQL/PromQLMetricNames.d.mts +47 -1
- package/Utils/PromQL/PromQLMetricNames.d.ts +47 -1
- package/Utils/PromQL/PromQLMetricNames.js +390 -16
- package/Utils/PromQL/PromQLMetricNames.mjs +11 -0
- package/Utils/PromQL/PromQLMonitorExpression.d.mts +21 -0
- package/Utils/PromQL/PromQLMonitorExpression.d.ts +21 -0
- package/Utils/PromQL/PromQLMonitorExpression.js +168 -0
- package/Utils/PromQL/PromQLMonitorExpression.mjs +7 -0
- package/Utils/PromQL/PromQLMonitorSeries.d.mts +9 -0
- package/Utils/PromQL/PromQLMonitorSeries.d.ts +9 -0
- package/Utils/PromQL/PromQLMonitorSeries.js +87 -0
- package/Utils/PromQL/PromQLMonitorSeries.mjs +5 -0
- package/Utils/Proxmox/ProxmoxGuestPowerTask.d.mts +46 -0
- package/Utils/Proxmox/ProxmoxGuestPowerTask.d.ts +46 -0
- package/Utils/Proxmox/ProxmoxGuestPowerTask.js +240 -0
- package/Utils/Proxmox/ProxmoxGuestPowerTask.mjs +17 -0
- package/Utils/Schema/ModelSchema.d.mts +7 -0
- package/Utils/Schema/ModelSchema.d.ts +7 -0
- package/Utils/Schema/ModelSchema.js +128 -16
- package/Utils/SecurityCase/SecurityConnectionMatch.d.mts +16 -1
- package/Utils/SecurityCase/SecurityConnectionMatch.d.ts +16 -1
- package/Utils/SecurityCase/SecurityConnectionMatch.js +241 -21
- package/Utils/SecurityCase/SecurityConnectionMatch.mjs +9 -0
- package/Utils/SecurityEvent/LogParsers/AzureActivityLogParser.d.mts +3 -0
- package/Utils/SecurityEvent/LogParsers/AzureActivityLogParser.d.ts +3 -0
- package/Utils/SecurityEvent/LogParsers/AzureActivityLogParser.js +97 -4
- package/Utils/SecurityEvent/LogParsers/AzureActivityLogParser.mjs +3 -0
- package/Utils/SecurityEvent/LogParsers/AzureResourceLogParser.d.mts +50 -0
- package/Utils/SecurityEvent/LogParsers/AzureResourceLogParser.d.ts +50 -0
- package/Utils/SecurityEvent/LogParsers/AzureResourceLogParser.js +1121 -0
- package/Utils/SecurityEvent/LogParsers/AzureResourceLogParser.mjs +29 -0
- package/Utils/SecurityEvent/LogParsers/CloudAuditResources.d.mts +1 -0
- package/Utils/SecurityEvent/LogParsers/CloudAuditResources.d.ts +1 -0
- package/Utils/SecurityEvent/LogParsers/CloudAuditResources.js +22 -9
- package/Utils/SecurityEvent/LogParsers/CloudAuditResources.mjs +1 -0
- package/Utils/SecurityEvent/LogParsers/GoogleCloudAuditLogParser.d.mts +1 -0
- package/Utils/SecurityEvent/LogParsers/GoogleCloudAuditLogParser.d.ts +1 -0
- package/Utils/SecurityEvent/LogParsers/GoogleCloudAuditLogParser.js +12 -1
- package/Utils/SecurityEvent/LogParsers/GoogleCloudAuditLogParser.mjs +1 -0
- package/Utils/SecurityEvent/LogParsers/SecurityLogLine.d.mts +1 -0
- package/Utils/SecurityEvent/LogParsers/SecurityLogLine.d.ts +1 -0
- package/Utils/SecurityEvent/LogParsers/SecurityLogLine.js +18 -6
- package/Utils/SecurityEvent/LogParsers/SecurityLogParser.js +21 -1
- package/Utils/SecurityEvent/LogParsers/WebAttackLogParser.d.mts +7 -0
- package/Utils/SecurityEvent/LogParsers/WebAttackLogParser.d.ts +7 -0
- package/Utils/SecurityEvent/LogParsers/WebAttackLogParser.js +146 -15
- package/Utils/SecurityEvent/LogParsers/WebAttackLogParser.mjs +1 -0
- package/Utils/SecurityEvent/NormalizerHelpers.js +15 -2
- package/Utils/SecurityEvent/RequestFollowUp.js +24 -0
- package/Utils/SecurityEvent/ScrubbedAddress.d.mts +71 -0
- package/Utils/SecurityEvent/ScrubbedAddress.d.ts +71 -0
- package/Utils/SecurityEvent/ScrubbedAddress.js +439 -0
- package/Utils/SecurityEvent/ScrubbedAddress.mjs +24 -0
- package/Utils/SecurityEvent/SecurityRecordReading.d.mts +1 -0
- package/Utils/SecurityEvent/SecurityRecordReading.d.ts +1 -0
- package/Utils/SecurityEvent/SecurityRecordReading.js +3 -0
- package/Utils/SecurityEvent/TelemetryScan/TraceSignals.js +18 -1
- package/Utils/SlicedWork.d.mts +4 -0
- package/Utils/SlicedWork.d.ts +4 -0
- package/Utils/SlicedWork.js +34 -0
- package/Utils/SlicedWork.mjs +2 -0
- package/Utils/Slo/SloHealth.d.mts +5 -0
- package/Utils/Slo/SloHealth.d.ts +5 -0
- package/Utils/Slo/SloHealth.js +80 -1
- package/Utils/Slo/SloHealth.mjs +3 -0
- package/Utils/Slo/SloMetricSli.d.mts +8 -0
- package/Utils/Slo/SloMetricSli.d.ts +8 -0
- package/Utils/Slo/SloMetricSli.js +36 -1
- package/Utils/Slo/SloMetricSli.mjs +5 -0
- package/Utils/StatusPage/StatusPageUptimeTimezone.d.mts +5 -4
- package/Utils/StatusPage/StatusPageUptimeTimezone.d.ts +5 -4
- package/Utils/StatusPage/StatusPageUptimeTimezone.js +5 -4
- package/Utils/Telemetry/AppleCrashMatch.d.mts +42 -0
- package/Utils/Telemetry/AppleCrashMatch.d.ts +42 -0
- package/Utils/Telemetry/AppleCrashMatch.js +205 -0
- package/Utils/Telemetry/AppleCrashMatch.mjs +11 -0
- package/Utils/Telemetry/AppleCrashReport.d.mts +47 -0
- package/Utils/Telemetry/AppleCrashReport.d.ts +47 -0
- package/Utils/Telemetry/AppleCrashReport.js +760 -0
- package/Utils/Telemetry/AppleCrashReport.mjs +9 -0
- package/Utils/Telemetry/AppleSymbolicate.d.mts +14 -0
- package/Utils/Telemetry/AppleSymbolicate.d.ts +14 -0
- package/Utils/Telemetry/AppleSymbolicate.js +102 -0
- package/Utils/Telemetry/AppleSymbolicate.mjs +5 -0
- package/Utils/Telemetry/AppleSymbols.d.mts +31 -0
- package/Utils/Telemetry/AppleSymbols.d.ts +31 -0
- package/Utils/Telemetry/AppleSymbols.js +200 -0
- package/Utils/Telemetry/AppleSymbols.mjs +9 -0
- package/Utils/Telemetry/OtlpRecordCount.d.mts +4 -0
- package/Utils/Telemetry/OtlpRecordCount.d.ts +4 -0
- package/Utils/Telemetry/OtlpRecordCount.js +82 -0
- package/Utils/Telemetry/OtlpRecordCount.mjs +5 -0
- package/Utils/Telemetry/ScrubIpAddress.d.mts +10 -0
- package/Utils/Telemetry/ScrubIpAddress.d.ts +10 -0
- package/Utils/Telemetry/ScrubIpAddress.js +116 -0
- package/Utils/Telemetry/ScrubIpAddress.mjs +4 -0
- package/Utils/Telemetry/SwiftDemangle.d.mts +2 -0
- package/Utils/Telemetry/SwiftDemangle.d.ts +2 -0
- package/Utils/Telemetry/SwiftDemangle.js +3479 -0
- package/Utils/Telemetry/SwiftDemangle.mjs +3 -0
- package/Utils/Telemetry/TelemetryIngestionBudgetMetricType.d.mts +4 -0
- package/Utils/Telemetry/TelemetryIngestionBudgetMetricType.d.ts +4 -0
- package/Utils/Telemetry/TelemetryIngestionBudgetMetricType.js +7 -2
- package/Utils/Telemetry/TelemetryIngestionBudgetMetricType.mjs +4 -0
- package/Utils/Telemetry/TelemetryUsageMetricType.d.mts +18 -0
- package/Utils/Telemetry/TelemetryUsageMetricType.d.ts +18 -0
- package/Utils/Telemetry/TelemetryUsageMetricType.js +107 -0
- package/Utils/Telemetry/TelemetryUsageMetricType.mjs +9 -0
- package/Utils/Uptime/DayUptimeGraphUtil.js +1 -1
- package/Utils/Uptime/UptimeDayGrid.d.mts +38 -0
- package/Utils/Uptime/UptimeDayGrid.d.ts +38 -0
- package/Utils/Uptime/UptimeDayGrid.js +148 -0
- package/Utils/Uptime/UptimeDayGrid.mjs +2 -0
- package/Utils/ValueFormatter.d.mts +4 -0
- package/Utils/ValueFormatter.d.ts +4 -0
- package/Utils/ValueFormatter.js +436 -42
- package/package.json +1 -1
|
@@ -0,0 +1,846 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.MONITOR_STEP_SECRET_ATTRIBUTES = exports.CROSSPLANE_EXTERNAL_NAME_ANNOTATION = exports.CROSSPLANE_PROVIDER_NAME = exports.CROSSPLANE_PACKAGE_REPOSITORY = exports.CROSSPLANE_API_KEY_SECRET_KEY = exports.CROSSPLANE_API_KEY_SECRET_NAME = exports.CROSSPLANE_PROVIDER_CONFIG_NAME = exports.CROSSPLANE_NAMESPACE = void 0;
|
|
7
|
+
exports.getCrossplanePackageTag = getCrossplanePackageTag;
|
|
8
|
+
exports.getCrossplaneObjectName = getCrossplaneObjectName;
|
|
9
|
+
exports.getKindObjectName = getKindObjectName;
|
|
10
|
+
exports.getCrossplaneGetCommand = getCrossplaneGetCommand;
|
|
11
|
+
exports.getCrossplaneProviderYaml = getCrossplaneProviderYaml;
|
|
12
|
+
exports.getCrossplaneApiKeySecretCommands = getCrossplaneApiKeySecretCommands;
|
|
13
|
+
exports.getCrossplaneProviderConfigYaml = getCrossplaneProviderConfigYaml;
|
|
14
|
+
exports.getCrossplaneSecretCommand = getCrossplaneSecretCommand;
|
|
15
|
+
exports.getCrossplaneConnectionSecretReadCommand = getCrossplaneConnectionSecretReadCommand;
|
|
16
|
+
exports.getCrossplaneRecordManifest = getCrossplaneRecordManifest;
|
|
17
|
+
exports.getCrossplaneCreateExample = getCrossplaneCreateExample;
|
|
18
|
+
exports.getCrossplaneObserveManifests = getCrossplaneObserveManifests;
|
|
19
|
+
const MonitorType_1 = __importDefault(require("../../Types/Monitor/MonitorType"));
|
|
20
|
+
const CrossplaneNames_1 = require("./CrossplaneNames");
|
|
21
|
+
const CrossplaneSchema_1 = require("./CrossplaneSchema");
|
|
22
|
+
const ExampleBuilder_1 = require("./ExampleBuilder");
|
|
23
|
+
const ResourceProfiles_1 = require("./ResourceProfiles");
|
|
24
|
+
const TerraformConfig_1 = require("./TerraformConfig");
|
|
25
|
+
const TerraformSchema_1 = require("./TerraformSchema");
|
|
26
|
+
const TerraformValues_1 = require("./TerraformValues");
|
|
27
|
+
const Yaml_1 = require("./Yaml");
|
|
28
|
+
/*
|
|
29
|
+
* Kubernetes manifests for the dashboard's Developer > Crossplane pages:
|
|
30
|
+
* the provider's package and the ProviderConfig that gives it the API key,
|
|
31
|
+
* one real record written out as a managed resource - which takes the
|
|
32
|
+
* record over by its ID, or only observes it - and the records of a type to
|
|
33
|
+
* observe. A new resource is written from the resource's profile, as the
|
|
34
|
+
* Terraform page's is (ExampleBuilder).
|
|
35
|
+
*
|
|
36
|
+
* A record's manifest sets the fields its Terraform configuration sets
|
|
37
|
+
* (TerraformConfig's getTerraformRecordBody), so the provider - which runs
|
|
38
|
+
* that Terraform provider - finds nothing to change once it has taken the
|
|
39
|
+
* record over. Each is written as the Crossplane provider names it
|
|
40
|
+
* (CrossplaneNames, CrossplaneSchema):
|
|
41
|
+
*
|
|
42
|
+
* - under spec.forProvider, in lowerCamelCase;
|
|
43
|
+
* - a value a record starts with and OneUptime then moves on
|
|
44
|
+
* (ServerOwned.AfterCreate) under spec.initProvider, never forProvider:
|
|
45
|
+
* the provider creates a record with it and never puts it back (#9985);
|
|
46
|
+
* - a value only OneUptime writes (ServerOwned.Always) never: the kind
|
|
47
|
+
* has it in status.atProvider alone;
|
|
48
|
+
* - a value people set and OneUptime changes too (ServerOwned.Shared,
|
|
49
|
+
* #10052), such as the labels a label rule adds, is left to OneUptime
|
|
50
|
+
* in a record's manifest unless the record needs it, as its Terraform
|
|
51
|
+
* configuration leaves it, and a comment names what was left out. Where
|
|
52
|
+
* a manifest writes one - a field the record needs, or a new resource's
|
|
53
|
+
* example - a comment says OneUptime changes it too: the provider sends
|
|
54
|
+
* the manifest's value when it changes and keeps OneUptime's changes in
|
|
55
|
+
* between, and of a list it removes only the entries the manifest drops;
|
|
56
|
+
* - a secret never: one the record needs is read from a Secret of the
|
|
57
|
+
* namespace (`<field>SecretRef`), and any other is left to OneUptime. A
|
|
58
|
+
* field with a secret inside that no Secret can stand for (a request
|
|
59
|
+
* header of a monitor's steps) is left out whole, and the manifest says
|
|
60
|
+
* so, since writing the rest would drop the secret;
|
|
61
|
+
* - a value OneUptime makes, such as an ingestion key's secret, is written
|
|
62
|
+
* by the provider to the Secret spec.writeConnectionSecretToRef names.
|
|
63
|
+
*/
|
|
64
|
+
// The namespace every manifest is written for, and its ProviderConfig.
|
|
65
|
+
exports.CROSSPLANE_NAMESPACE = "oneuptime";
|
|
66
|
+
exports.CROSSPLANE_PROVIDER_CONFIG_NAME = "default";
|
|
67
|
+
// The Secret that holds the project API key, and its key.
|
|
68
|
+
exports.CROSSPLANE_API_KEY_SECRET_NAME = "oneuptime-api-key";
|
|
69
|
+
exports.CROSSPLANE_API_KEY_SECRET_KEY = "api-key";
|
|
70
|
+
/*
|
|
71
|
+
* The package every release publishes (release.yml's
|
|
72
|
+
* publish-crossplane-provider), and the Provider that installs it.
|
|
73
|
+
*/
|
|
74
|
+
exports.CROSSPLANE_PACKAGE_REPOSITORY = "ghcr.io/oneuptime/provider-oneuptime";
|
|
75
|
+
exports.CROSSPLANE_PROVIDER_NAME = "provider-oneuptime";
|
|
76
|
+
// The annotation that names the record a managed resource stands for.
|
|
77
|
+
exports.CROSSPLANE_EXTERNAL_NAME_ANNOTATION = "crossplane.io/external-name";
|
|
78
|
+
// The version every development build reports; it names no release.
|
|
79
|
+
const DEVELOPMENT_VERSION = "1.0.0";
|
|
80
|
+
// Longest Kubernetes name written: a DNS label.
|
|
81
|
+
const MAX_OBJECT_NAME_LENGTH = 63;
|
|
82
|
+
/*
|
|
83
|
+
* A monitor's secret keys, which OneUptime makes for one type of monitor
|
|
84
|
+
* each: written to its connection Secret, so a monitor of another type
|
|
85
|
+
* needs none.
|
|
86
|
+
*/
|
|
87
|
+
const MONITOR_SECRET_KEYS = {
|
|
88
|
+
[MonitorType_1.default.Server]: "attribute.server_monitor_secret_key",
|
|
89
|
+
[MonitorType_1.default.IncomingRequest]: "attribute.incoming_request_secret_key",
|
|
90
|
+
[MonitorType_1.default.IncomingEmail]: "attribute.incoming_email_secret_key",
|
|
91
|
+
};
|
|
92
|
+
/*
|
|
93
|
+
* The attributes of a monitor's steps the provider reads from a Secret: the
|
|
94
|
+
* ones monitorsteps.go marks Sensitive (CrossplaneConfig.test.ts reads it).
|
|
95
|
+
*/
|
|
96
|
+
exports.MONITOR_STEP_SECRET_ATTRIBUTES = [
|
|
97
|
+
"tls_client_key",
|
|
98
|
+
"tls_client_key_passphrase",
|
|
99
|
+
];
|
|
100
|
+
/*
|
|
101
|
+
* The attributes of a monitor's steps that are a map of the reader's own
|
|
102
|
+
* keys (a request's headers): written as they are, never in camelCase.
|
|
103
|
+
*/
|
|
104
|
+
const MONITOR_STEP_DATA_MAPS = ["request_headers"];
|
|
105
|
+
/*
|
|
106
|
+
* The package's tag for an installation (release.yml publishes v<version>):
|
|
107
|
+
* the release the server runs, or `v<version>` for a development build,
|
|
108
|
+
* which no package is published for. The docs' Crossplane pages write the
|
|
109
|
+
* same (App's Docs/Utils/Placeholders).
|
|
110
|
+
*/
|
|
111
|
+
function getCrossplanePackageTag(platformVersion) {
|
|
112
|
+
const release = (platformVersion || "")
|
|
113
|
+
.trim()
|
|
114
|
+
.match(/^v?(\d+)\.(\d+)\.(\d+)$/);
|
|
115
|
+
if (release) {
|
|
116
|
+
const plain = `${release[1]}.${release[2]}.${release[3]}`;
|
|
117
|
+
if (plain !== DEVELOPMENT_VERSION) {
|
|
118
|
+
return `v${plain}`;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
return "v<version>";
|
|
122
|
+
}
|
|
123
|
+
/*
|
|
124
|
+
* A Kubernetes name for a record, made from its display name: "Checkout
|
|
125
|
+
* API!" is checkout-api, "Café" cafe. Falls back to `fallback` when the name
|
|
126
|
+
* has nothing usable in it (one written in another script).
|
|
127
|
+
*/
|
|
128
|
+
function getCrossplaneObjectName(displayName, fallback) {
|
|
129
|
+
return (toObjectName(displayName || "") || toObjectName(fallback) || "resource");
|
|
130
|
+
}
|
|
131
|
+
function toObjectName(text) {
|
|
132
|
+
let name = text
|
|
133
|
+
.normalize("NFKD")
|
|
134
|
+
.replace(/\p{M}+/gu, "")
|
|
135
|
+
.toLowerCase()
|
|
136
|
+
.replace(/[^a-z0-9]+/g, "-")
|
|
137
|
+
.replace(/^-+|-+$/g, "");
|
|
138
|
+
if (name.length > MAX_OBJECT_NAME_LENGTH) {
|
|
139
|
+
const cut = name.slice(0, MAX_OBJECT_NAME_LENGTH);
|
|
140
|
+
const lastHyphen = cut.lastIndexOf("-");
|
|
141
|
+
name = (lastHyphen > 20 ? cut.slice(0, lastHyphen) : cut).replace(/-+$/, "");
|
|
142
|
+
}
|
|
143
|
+
return name;
|
|
144
|
+
}
|
|
145
|
+
// A kind as a name: IncidentSeverity is incident-severity.
|
|
146
|
+
function getKindObjectName(kind) {
|
|
147
|
+
return toObjectName((0, CrossplaneNames_1.splitCamelCase)(kind).join("-"));
|
|
148
|
+
}
|
|
149
|
+
// `kubectl -n oneuptime get monitor.crossplane.oneuptime.com checkout-api`.
|
|
150
|
+
function getCrossplaneGetCommand(kind, objectName) {
|
|
151
|
+
return `kubectl -n ${exports.CROSSPLANE_NAMESPACE} get ${kind.toLowerCase()}.${CrossplaneNames_1.CROSSPLANE_GROUP} ${objectName}`;
|
|
152
|
+
}
|
|
153
|
+
// The Provider that installs the package: provider.yaml.
|
|
154
|
+
function getCrossplaneProviderYaml(platformVersion) {
|
|
155
|
+
return (0, Yaml_1.printYaml)(Yaml_1.Yaml.map([
|
|
156
|
+
Yaml_1.Yaml.entry("apiVersion", Yaml_1.Yaml.string("pkg.crossplane.io/v1")),
|
|
157
|
+
Yaml_1.Yaml.entry("kind", Yaml_1.Yaml.string("Provider")),
|
|
158
|
+
Yaml_1.Yaml.entry("metadata", Yaml_1.Yaml.map([Yaml_1.Yaml.entry("name", Yaml_1.Yaml.string(exports.CROSSPLANE_PROVIDER_NAME))])),
|
|
159
|
+
Yaml_1.Yaml.entry("spec", Yaml_1.Yaml.map([
|
|
160
|
+
Yaml_1.Yaml.entry("package", Yaml_1.Yaml.string(`${exports.CROSSPLANE_PACKAGE_REPOSITORY}:${getCrossplanePackageTag(platformVersion)}`)),
|
|
161
|
+
])),
|
|
162
|
+
]));
|
|
163
|
+
}
|
|
164
|
+
/*
|
|
165
|
+
* The namespace and the Secret that holds the API key, made with kubectl so
|
|
166
|
+
* the key stays out of every file. It reads the key from the environment
|
|
167
|
+
* variable the other Developer pages export it to.
|
|
168
|
+
*/
|
|
169
|
+
function getCrossplaneApiKeySecretCommands(apiKeyVariable) {
|
|
170
|
+
return [
|
|
171
|
+
`kubectl create namespace ${exports.CROSSPLANE_NAMESPACE}`,
|
|
172
|
+
`kubectl -n ${exports.CROSSPLANE_NAMESPACE} create secret generic ${exports.CROSSPLANE_API_KEY_SECRET_NAME} --from-literal=${exports.CROSSPLANE_API_KEY_SECRET_KEY}="$${apiKeyVariable}"`,
|
|
173
|
+
].join("\n");
|
|
174
|
+
}
|
|
175
|
+
/*
|
|
176
|
+
* The ProviderConfig that gives the namespace's resources the API key, and
|
|
177
|
+
* the address of this OneUptime (the provider's url; null leaves it out,
|
|
178
|
+
* and the provider manages OneUptime Cloud).
|
|
179
|
+
*/
|
|
180
|
+
function getCrossplaneProviderConfigYaml(oneuptimeUrl) {
|
|
181
|
+
const spec = [];
|
|
182
|
+
if (oneuptimeUrl) {
|
|
183
|
+
spec.push(Yaml_1.Yaml.entry("url", Yaml_1.Yaml.string(oneuptimeUrl.replace(/\/+$/, ""))));
|
|
184
|
+
}
|
|
185
|
+
spec.push(Yaml_1.Yaml.entry("credentials", Yaml_1.Yaml.map([
|
|
186
|
+
Yaml_1.Yaml.entry("secretRef", Yaml_1.Yaml.map([
|
|
187
|
+
Yaml_1.Yaml.entry("name", Yaml_1.Yaml.string(exports.CROSSPLANE_API_KEY_SECRET_NAME)),
|
|
188
|
+
Yaml_1.Yaml.entry("key", Yaml_1.Yaml.string(exports.CROSSPLANE_API_KEY_SECRET_KEY)),
|
|
189
|
+
])),
|
|
190
|
+
])));
|
|
191
|
+
return (0, Yaml_1.printYaml)(Yaml_1.Yaml.map([
|
|
192
|
+
Yaml_1.Yaml.entry("apiVersion", Yaml_1.Yaml.string(CrossplaneNames_1.CROSSPLANE_PROVIDER_CONFIG_API_VERSION)),
|
|
193
|
+
Yaml_1.Yaml.entry("kind", Yaml_1.Yaml.string("ProviderConfig")),
|
|
194
|
+
Yaml_1.Yaml.entry("metadata", Yaml_1.Yaml.map([
|
|
195
|
+
Yaml_1.Yaml.entry("name", Yaml_1.Yaml.string(exports.CROSSPLANE_PROVIDER_CONFIG_NAME)),
|
|
196
|
+
Yaml_1.Yaml.entry("namespace", Yaml_1.Yaml.string(exports.CROSSPLANE_NAMESPACE)),
|
|
197
|
+
])),
|
|
198
|
+
Yaml_1.Yaml.entry("spec", Yaml_1.Yaml.map(spec)),
|
|
199
|
+
]));
|
|
200
|
+
}
|
|
201
|
+
class SecretKeys {
|
|
202
|
+
constructor() {
|
|
203
|
+
this.keys = [];
|
|
204
|
+
}
|
|
205
|
+
add(base) {
|
|
206
|
+
const name = base.replace(/[^-._a-zA-Z0-9]+/g, "_") || "secret";
|
|
207
|
+
let key = name;
|
|
208
|
+
let suffix = 2;
|
|
209
|
+
while (this.keys.includes(key)) {
|
|
210
|
+
key = `${name}_${suffix}`;
|
|
211
|
+
suffix++;
|
|
212
|
+
}
|
|
213
|
+
this.keys.push(key);
|
|
214
|
+
return key;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
/*
|
|
218
|
+
* `kubectl create secret` for a manifest's Secret, with a placeholder for
|
|
219
|
+
* each value: the secret goes into the cluster, never into a file.
|
|
220
|
+
*/
|
|
221
|
+
function getCrossplaneSecretCommand(secret) {
|
|
222
|
+
return [
|
|
223
|
+
`kubectl -n ${exports.CROSSPLANE_NAMESPACE} create secret generic ${secret.name}`,
|
|
224
|
+
...secret.keys.map((key) => {
|
|
225
|
+
return ` --from-literal=${key}="..."`;
|
|
226
|
+
}),
|
|
227
|
+
].join(" \\\n");
|
|
228
|
+
}
|
|
229
|
+
/*
|
|
230
|
+
* How to read a value OneUptime made from the connection Secret, by its key
|
|
231
|
+
* (attribute.secret_key).
|
|
232
|
+
*/
|
|
233
|
+
function getCrossplaneConnectionSecretReadCommand(secretName, key) {
|
|
234
|
+
return `kubectl -n ${exports.CROSSPLANE_NAMESPACE} get secret ${secretName} -o jsonpath='{.data.${key.replace(/[\\.]/g, "\\$&")}}' | base64 -d`;
|
|
235
|
+
}
|
|
236
|
+
// The variable a Terraform expression reads, when it is one: `var.x` is x.
|
|
237
|
+
function variableName(expression) {
|
|
238
|
+
if (expression.kind !== "raw" || !expression.code.startsWith("var.")) {
|
|
239
|
+
return null;
|
|
240
|
+
}
|
|
241
|
+
return expression.code.slice("var.".length);
|
|
242
|
+
}
|
|
243
|
+
// A Secret's key for the secret a variable stands for.
|
|
244
|
+
function secretKeyFor(context, variable) {
|
|
245
|
+
return context.secretKeys.add(variable.startsWith(context.variablePrefix)
|
|
246
|
+
? variable.slice(context.variablePrefix.length)
|
|
247
|
+
: variable);
|
|
248
|
+
}
|
|
249
|
+
// `<field>SecretRef: { name, key }`.
|
|
250
|
+
function secretReference(context, field, key) {
|
|
251
|
+
return Yaml_1.Yaml.entry(field, Yaml_1.Yaml.map([
|
|
252
|
+
Yaml_1.Yaml.entry("name", Yaml_1.Yaml.string(context.secretName)),
|
|
253
|
+
Yaml_1.Yaml.entry("key", Yaml_1.Yaml.string(key)),
|
|
254
|
+
]));
|
|
255
|
+
}
|
|
256
|
+
/*
|
|
257
|
+
* The JSON a jsonencode() call writes, or null when a secret is inside it
|
|
258
|
+
* (a variable no manifest can read).
|
|
259
|
+
*/
|
|
260
|
+
function hclToJson(expression) {
|
|
261
|
+
switch (expression.kind) {
|
|
262
|
+
case "string":
|
|
263
|
+
case "number":
|
|
264
|
+
case "bool":
|
|
265
|
+
return expression.value;
|
|
266
|
+
case "null":
|
|
267
|
+
return null;
|
|
268
|
+
case "tuple": {
|
|
269
|
+
const items = [];
|
|
270
|
+
for (const item of expression.items) {
|
|
271
|
+
const value = hclToJson(item.value);
|
|
272
|
+
if (value === undefined) {
|
|
273
|
+
return undefined;
|
|
274
|
+
}
|
|
275
|
+
items.push(value);
|
|
276
|
+
}
|
|
277
|
+
return items;
|
|
278
|
+
}
|
|
279
|
+
case "object": {
|
|
280
|
+
const object = {};
|
|
281
|
+
for (const attribute of expression.attributes) {
|
|
282
|
+
const value = hclToJson(attribute.value);
|
|
283
|
+
if (value === undefined) {
|
|
284
|
+
return undefined;
|
|
285
|
+
}
|
|
286
|
+
object[attribute.key] = value;
|
|
287
|
+
}
|
|
288
|
+
return object;
|
|
289
|
+
}
|
|
290
|
+
default:
|
|
291
|
+
return undefined;
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
/*
|
|
295
|
+
* A JSON attribute as the kind takes it: a string, written as the provider
|
|
296
|
+
* keeps it (toCanonicalJson, what jsonencode() writes), so it compares
|
|
297
|
+
* equal. Null when a secret is inside.
|
|
298
|
+
*/
|
|
299
|
+
function jsonString(expression) {
|
|
300
|
+
if (expression.kind !== "call" || expression.name !== "jsonencode") {
|
|
301
|
+
return null;
|
|
302
|
+
}
|
|
303
|
+
const value = expression.args[0]
|
|
304
|
+
? hclToJson(expression.args[0])
|
|
305
|
+
: undefined;
|
|
306
|
+
return value === undefined ? null : Yaml_1.Yaml.string((0, TerraformValues_1.toCanonicalJson)(value));
|
|
307
|
+
}
|
|
308
|
+
/*
|
|
309
|
+
* A list's items. A single item takes the comment Terraform writes after
|
|
310
|
+
* the whole list (`labels = ["..."] # production`).
|
|
311
|
+
*/
|
|
312
|
+
function listItems(items, comment, convert) {
|
|
313
|
+
const converted = [];
|
|
314
|
+
for (const item of items) {
|
|
315
|
+
const value = convert(item.value);
|
|
316
|
+
if (!value) {
|
|
317
|
+
return null;
|
|
318
|
+
}
|
|
319
|
+
converted.push({
|
|
320
|
+
value,
|
|
321
|
+
comment: item.comment || (items.length === 1 ? comment : undefined),
|
|
322
|
+
});
|
|
323
|
+
}
|
|
324
|
+
return converted;
|
|
325
|
+
}
|
|
326
|
+
function scalarOf(expression) {
|
|
327
|
+
switch (expression.kind) {
|
|
328
|
+
case "string":
|
|
329
|
+
case "number":
|
|
330
|
+
case "bool":
|
|
331
|
+
return Yaml_1.Yaml.scalar(expression.value);
|
|
332
|
+
case "null":
|
|
333
|
+
return Yaml_1.Yaml.null();
|
|
334
|
+
default:
|
|
335
|
+
return null;
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
/*
|
|
339
|
+
* A monitor's steps (TerraformMonitorSteps' value), as the kind's
|
|
340
|
+
* monitorSteps: each level's attributes in camelCase, a request's headers
|
|
341
|
+
* as they are, a step's TLS key and its passphrase from the manifest's
|
|
342
|
+
* Secret. Null when a secret is anywhere else in them, in a header or in a
|
|
343
|
+
* type's settings, which no Secret can stand for.
|
|
344
|
+
*/
|
|
345
|
+
function stepValue(expression, context) {
|
|
346
|
+
if (expression.kind === "tuple") {
|
|
347
|
+
const items = listItems(expression.items, undefined, (item) => {
|
|
348
|
+
return stepValue(item, context);
|
|
349
|
+
});
|
|
350
|
+
return items ? Yaml_1.Yaml.list(items) : null;
|
|
351
|
+
}
|
|
352
|
+
if (expression.kind === "call") {
|
|
353
|
+
return jsonString(expression);
|
|
354
|
+
}
|
|
355
|
+
if (expression.kind !== "object") {
|
|
356
|
+
return scalarOf(expression);
|
|
357
|
+
}
|
|
358
|
+
const entries = [];
|
|
359
|
+
for (const attribute of expression.attributes) {
|
|
360
|
+
const entry = stepAttribute(attribute, context);
|
|
361
|
+
if (!entry) {
|
|
362
|
+
return null;
|
|
363
|
+
}
|
|
364
|
+
entries.push(entry);
|
|
365
|
+
}
|
|
366
|
+
return Yaml_1.Yaml.map(entries);
|
|
367
|
+
}
|
|
368
|
+
function stepAttribute(attribute, context) {
|
|
369
|
+
const variable = variableName(attribute.value);
|
|
370
|
+
if (variable) {
|
|
371
|
+
return exports.MONITOR_STEP_SECRET_ATTRIBUTES.includes(attribute.key)
|
|
372
|
+
? secretReference(context, (0, CrossplaneNames_1.getCrossplaneSecretRefFieldName)(attribute.key), secretKeyFor(context, variable))
|
|
373
|
+
: null;
|
|
374
|
+
}
|
|
375
|
+
if (MONITOR_STEP_DATA_MAPS.includes(attribute.key) &&
|
|
376
|
+
attribute.value.kind === "object") {
|
|
377
|
+
const headers = [];
|
|
378
|
+
for (const header of attribute.value.attributes) {
|
|
379
|
+
if (header.value.kind !== "string") {
|
|
380
|
+
return null;
|
|
381
|
+
}
|
|
382
|
+
headers.push(Yaml_1.Yaml.entry(header.key, Yaml_1.Yaml.string(header.value.value)));
|
|
383
|
+
}
|
|
384
|
+
return Yaml_1.Yaml.entry((0, CrossplaneNames_1.getCrossplaneFieldName)(attribute.key), Yaml_1.Yaml.map(headers));
|
|
385
|
+
}
|
|
386
|
+
const value = stepValue(attribute.value, context);
|
|
387
|
+
return value
|
|
388
|
+
? Yaml_1.Yaml.entry((0, CrossplaneNames_1.getCrossplaneFieldName)(attribute.key), value, attribute.comment)
|
|
389
|
+
: null;
|
|
390
|
+
}
|
|
391
|
+
/*
|
|
392
|
+
* One attribute of a record or a new resource as the kind's field: its
|
|
393
|
+
* value under its camelCase name, or a secret's Secret reference. Null when
|
|
394
|
+
* it is left out for a secret no manifest can carry.
|
|
395
|
+
*/
|
|
396
|
+
function attributeEntry(data) {
|
|
397
|
+
const { descriptor, value, context } = data;
|
|
398
|
+
const attribute = (0, CrossplaneSchema_1.getProviderAttributeName)(data.attributeName);
|
|
399
|
+
const field = (0, CrossplaneNames_1.getCrossplaneFieldName)(attribute);
|
|
400
|
+
const variable = variableName(value);
|
|
401
|
+
if (variable) {
|
|
402
|
+
// A secret the resource needs: read from the Secret, when the provider can.
|
|
403
|
+
return descriptor && (0, CrossplaneSchema_1.isCrossplaneSecretField)(data.modelType, descriptor)
|
|
404
|
+
? secretReference(context, (0, CrossplaneSchema_1.getCrossplaneSecretFieldOf)(descriptor), secretKeyFor(context, variable))
|
|
405
|
+
: null;
|
|
406
|
+
}
|
|
407
|
+
if (value.kind === "call") {
|
|
408
|
+
const json = jsonString(value);
|
|
409
|
+
return json ? Yaml_1.Yaml.entry(field, json) : null;
|
|
410
|
+
}
|
|
411
|
+
if (value.kind === "tuple") {
|
|
412
|
+
const isSteps = data.attributeName === "monitor_steps";
|
|
413
|
+
const items = listItems(value.items, data.comment, (item) => {
|
|
414
|
+
return isSteps ? stepValue(item, context) : scalarOf(item);
|
|
415
|
+
});
|
|
416
|
+
return items ? Yaml_1.Yaml.entry(field, Yaml_1.Yaml.list(items)) : null;
|
|
417
|
+
}
|
|
418
|
+
/*
|
|
419
|
+
* A number the configuration gives as text ("5000"), which Terraform
|
|
420
|
+
* reads as the number it is: the kind's field takes a number, and the API
|
|
421
|
+
* server refuses a string.
|
|
422
|
+
*/
|
|
423
|
+
if ((descriptor === null || descriptor === void 0 ? void 0 : descriptor.kind) === TerraformSchema_1.TerraformValueKind.Number &&
|
|
424
|
+
value.kind === "string" &&
|
|
425
|
+
value.value.trim() !== "" &&
|
|
426
|
+
Number.isFinite(Number(value.value))) {
|
|
427
|
+
return Yaml_1.Yaml.entry(field, Yaml_1.Yaml.number(Number(value.value)), data.comment);
|
|
428
|
+
}
|
|
429
|
+
const scalar = scalarOf(value);
|
|
430
|
+
return scalar ? Yaml_1.Yaml.entry(field, scalar, data.comment) : null;
|
|
431
|
+
}
|
|
432
|
+
function sharedFieldOf(descriptor) {
|
|
433
|
+
return {
|
|
434
|
+
field: (0, CrossplaneNames_1.getCrossplaneFieldName)((0, CrossplaneSchema_1.getProviderAttributeName)(descriptor.attributeName)),
|
|
435
|
+
isList: descriptor.kind === TerraformSchema_1.TerraformValueKind.IdSet ||
|
|
436
|
+
descriptor.kind === TerraformSchema_1.TerraformValueKind.StringSet,
|
|
437
|
+
};
|
|
438
|
+
}
|
|
439
|
+
function specFields(data) {
|
|
440
|
+
var _a, _b;
|
|
441
|
+
const context = {
|
|
442
|
+
secretName: `${data.objectName}-secrets`,
|
|
443
|
+
secretKeys: new SecretKeys(),
|
|
444
|
+
variablePrefix: data.variablePrefix,
|
|
445
|
+
};
|
|
446
|
+
const fields = {
|
|
447
|
+
forProvider: [],
|
|
448
|
+
initProvider: [],
|
|
449
|
+
secret: null,
|
|
450
|
+
leftOutForSecrets: [],
|
|
451
|
+
shared: [],
|
|
452
|
+
};
|
|
453
|
+
for (const attribute of data.attributes) {
|
|
454
|
+
const entry = attributeEntry({
|
|
455
|
+
modelType: data.modelType,
|
|
456
|
+
...attribute,
|
|
457
|
+
context,
|
|
458
|
+
});
|
|
459
|
+
if (!entry) {
|
|
460
|
+
fields.leftOutForSecrets.push((0, CrossplaneNames_1.getCrossplaneFieldName)((0, CrossplaneSchema_1.getProviderAttributeName)(attribute.attributeName)));
|
|
461
|
+
continue;
|
|
462
|
+
}
|
|
463
|
+
// A value a record starts with: given to create it, never compared after.
|
|
464
|
+
if ((_a = attribute.descriptor) === null || _a === void 0 ? void 0 : _a.startsAtCreate) {
|
|
465
|
+
fields.initProvider.push(entry);
|
|
466
|
+
}
|
|
467
|
+
else {
|
|
468
|
+
fields.forProvider.push(entry);
|
|
469
|
+
}
|
|
470
|
+
if ((_b = attribute.descriptor) === null || _b === void 0 ? void 0 : _b.isChangedByOneUptimeToo) {
|
|
471
|
+
fields.shared.push(sharedFieldOf(attribute.descriptor));
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
if (context.secretKeys.keys.length > 0) {
|
|
475
|
+
fields.secret = { name: context.secretName, keys: context.secretKeys.keys };
|
|
476
|
+
}
|
|
477
|
+
return fields;
|
|
478
|
+
}
|
|
479
|
+
/*
|
|
480
|
+
* The keys of a record's connection Secret: the values OneUptime makes for
|
|
481
|
+
* it. A monitor's are its type's only.
|
|
482
|
+
*/
|
|
483
|
+
function connectionKeysFor(modelType, monitorType) {
|
|
484
|
+
const keys = (0, CrossplaneSchema_1.getCrossplaneConnectionSecretKeys)(modelType);
|
|
485
|
+
if (keys.some((key) => {
|
|
486
|
+
return Object.values(MONITOR_SECRET_KEYS).includes(key);
|
|
487
|
+
})) {
|
|
488
|
+
const key = monitorType
|
|
489
|
+
? MONITOR_SECRET_KEYS[monitorType]
|
|
490
|
+
: undefined;
|
|
491
|
+
return keys.filter((candidate) => {
|
|
492
|
+
return (!Object.values(MONITOR_SECRET_KEYS).includes(candidate) ||
|
|
493
|
+
candidate === key);
|
|
494
|
+
});
|
|
495
|
+
}
|
|
496
|
+
return keys;
|
|
497
|
+
}
|
|
498
|
+
function resourceDocument(data) {
|
|
499
|
+
const metadata = [
|
|
500
|
+
Yaml_1.Yaml.entry("name", Yaml_1.Yaml.string(data.objectName)),
|
|
501
|
+
Yaml_1.Yaml.entry("namespace", Yaml_1.Yaml.string(exports.CROSSPLANE_NAMESPACE)),
|
|
502
|
+
];
|
|
503
|
+
if (data.externalName) {
|
|
504
|
+
metadata.push(Yaml_1.Yaml.entry("annotations", Yaml_1.Yaml.map([
|
|
505
|
+
Yaml_1.Yaml.entry(exports.CROSSPLANE_EXTERNAL_NAME_ANNOTATION, Yaml_1.Yaml.string(data.externalName)),
|
|
506
|
+
])));
|
|
507
|
+
}
|
|
508
|
+
const spec = [];
|
|
509
|
+
if (data.observeOnly) {
|
|
510
|
+
spec.push(Yaml_1.Yaml.entry("managementPolicies", Yaml_1.Yaml.flowList(["Observe"])));
|
|
511
|
+
}
|
|
512
|
+
spec.push(Yaml_1.Yaml.entry("providerConfigRef", Yaml_1.Yaml.map([
|
|
513
|
+
Yaml_1.Yaml.entry("kind", Yaml_1.Yaml.string("ProviderConfig")),
|
|
514
|
+
Yaml_1.Yaml.entry("name", Yaml_1.Yaml.string(exports.CROSSPLANE_PROVIDER_CONFIG_NAME)),
|
|
515
|
+
])));
|
|
516
|
+
if (data.connectionSecret) {
|
|
517
|
+
spec.push(Yaml_1.Yaml.entry("writeConnectionSecretToRef", Yaml_1.Yaml.map([Yaml_1.Yaml.entry("name", Yaml_1.Yaml.string(data.connectionSecret.name))])));
|
|
518
|
+
}
|
|
519
|
+
if (data.initProvider && data.initProvider.length > 0) {
|
|
520
|
+
spec.push(Yaml_1.Yaml.entry("initProvider", Yaml_1.Yaml.map(data.initProvider)));
|
|
521
|
+
}
|
|
522
|
+
spec.push(Yaml_1.Yaml.entry("forProvider", Yaml_1.Yaml.map(data.forProvider)));
|
|
523
|
+
return {
|
|
524
|
+
comments: data.comments,
|
|
525
|
+
body: Yaml_1.Yaml.map([
|
|
526
|
+
Yaml_1.Yaml.entry("apiVersion", Yaml_1.Yaml.string(CrossplaneNames_1.CROSSPLANE_RESOURCE_API_VERSION)),
|
|
527
|
+
Yaml_1.Yaml.entry("kind", Yaml_1.Yaml.string(data.kind)),
|
|
528
|
+
Yaml_1.Yaml.entry("metadata", Yaml_1.Yaml.map(metadata)),
|
|
529
|
+
Yaml_1.Yaml.entry("spec", Yaml_1.Yaml.map(spec)),
|
|
530
|
+
]),
|
|
531
|
+
};
|
|
532
|
+
}
|
|
533
|
+
// The comment lines a manifest ends its forProvider with, about what it left out.
|
|
534
|
+
function leftOutComments(data) {
|
|
535
|
+
const comments = [];
|
|
536
|
+
if (data.omittedSecrets.length > 0) {
|
|
537
|
+
comments.push(Yaml_1.Yaml.comment(`Secrets are not shown here: ${data.omittedSecrets.join(", ")}.\nThe provider leaves them as they are in OneUptime.`));
|
|
538
|
+
}
|
|
539
|
+
if (data.leftOutForSecrets.length > 0) {
|
|
540
|
+
comments.push(Yaml_1.Yaml.comment(`Left out, because a secret is in them that only a value could carry: ${data.leftOutForSecrets.join(", ")}.\nThe provider leaves them as they are in OneUptime.`));
|
|
541
|
+
}
|
|
542
|
+
return comments;
|
|
543
|
+
}
|
|
544
|
+
// "a", "a and b", "a, b and c".
|
|
545
|
+
function listOfNames(names) {
|
|
546
|
+
return names.length > 1
|
|
547
|
+
? `${names.slice(0, -1).join(", ")} and ${names[names.length - 1]}`
|
|
548
|
+
: names.join("");
|
|
549
|
+
}
|
|
550
|
+
/*
|
|
551
|
+
* The comment lines about the fields OneUptime changes too
|
|
552
|
+
* (ServerOwned.Shared): the ones the manifest writes, whose value the
|
|
553
|
+
* provider sends when the manifest's changes and not otherwise, and the
|
|
554
|
+
* ones it leaves to OneUptime.
|
|
555
|
+
*/
|
|
556
|
+
function sharedComments(data) {
|
|
557
|
+
const comments = [];
|
|
558
|
+
const fieldsOf = (lists) => {
|
|
559
|
+
return data.written
|
|
560
|
+
.filter((shared) => {
|
|
561
|
+
return shared.isList === lists;
|
|
562
|
+
})
|
|
563
|
+
.map((shared) => {
|
|
564
|
+
return shared.field;
|
|
565
|
+
});
|
|
566
|
+
};
|
|
567
|
+
const values = fieldsOf(false);
|
|
568
|
+
const lists = fieldsOf(true);
|
|
569
|
+
if (values.length === 1) {
|
|
570
|
+
comments.push(Yaml_1.Yaml.comment(`OneUptime changes ${values[0]} too. The provider sends it when you change it here,\nand keeps OneUptime's changes in between.`));
|
|
571
|
+
}
|
|
572
|
+
else if (values.length > 1) {
|
|
573
|
+
comments.push(Yaml_1.Yaml.comment(`OneUptime changes these too: ${listOfNames(values)}.\nThe provider sends each when you change it here, and keeps OneUptime's changes in between.`));
|
|
574
|
+
}
|
|
575
|
+
if (lists.length === 1) {
|
|
576
|
+
comments.push(Yaml_1.Yaml.comment(`OneUptime adds to ${lists[0]} too. The provider removes only the entries you take out here.`));
|
|
577
|
+
}
|
|
578
|
+
else if (lists.length > 1) {
|
|
579
|
+
comments.push(Yaml_1.Yaml.comment(`OneUptime adds to these too: ${listOfNames(lists)}.\nThe provider removes only the entries you take out here.`));
|
|
580
|
+
}
|
|
581
|
+
if (data.leftOut.length === 1) {
|
|
582
|
+
comments.push(Yaml_1.Yaml.comment(`Left to OneUptime, which changes it too: ${data.leftOut[0]}.\nThe provider leaves it as it is. Write it here to manage it from this manifest.`));
|
|
583
|
+
}
|
|
584
|
+
else if (data.leftOut.length > 1) {
|
|
585
|
+
comments.push(Yaml_1.Yaml.comment(`Left to OneUptime, which changes them too: ${listOfNames(data.leftOut)}.\nThe provider leaves them as they are. Write one here to manage it from this manifest.`));
|
|
586
|
+
}
|
|
587
|
+
return comments;
|
|
588
|
+
}
|
|
589
|
+
// A record's monitor type, for a monitor's connection Secret.
|
|
590
|
+
function monitorTypeOf(json) {
|
|
591
|
+
const value = json["monitorType"];
|
|
592
|
+
return typeof value === "string" ? value : null;
|
|
593
|
+
}
|
|
594
|
+
/*
|
|
595
|
+
* One existing record as a managed resource, from its API JSON
|
|
596
|
+
* (BaseModel.toJSON). Null when the provider has no kind for the model.
|
|
597
|
+
*/
|
|
598
|
+
function getCrossplaneRecordManifest(data) {
|
|
599
|
+
const kind = (0, CrossplaneSchema_1.getCrossplaneKindOf)(data.modelType);
|
|
600
|
+
const record = (0, TerraformConfig_1.getTerraformRecordBody)({
|
|
601
|
+
modelType: data.modelType,
|
|
602
|
+
json: data.json,
|
|
603
|
+
displayName: data.displayName,
|
|
604
|
+
describeId: data.describeId,
|
|
605
|
+
});
|
|
606
|
+
if (!kind || !record) {
|
|
607
|
+
return null;
|
|
608
|
+
}
|
|
609
|
+
const objectName = getCrossplaneObjectName(record.displayName, `${getKindObjectName(kind)}-${record.id.slice(0, 8)}`);
|
|
610
|
+
const fields = specFields({
|
|
611
|
+
modelType: data.modelType,
|
|
612
|
+
objectName,
|
|
613
|
+
variablePrefix: `${record.localName}_`,
|
|
614
|
+
attributes: record.attributes.map((attribute) => {
|
|
615
|
+
return {
|
|
616
|
+
attributeName: attribute.descriptor.attributeName,
|
|
617
|
+
descriptor: attribute.descriptor,
|
|
618
|
+
value: attribute.value,
|
|
619
|
+
comment: attribute.comment,
|
|
620
|
+
};
|
|
621
|
+
}),
|
|
622
|
+
});
|
|
623
|
+
const omittedSecrets = record.omittedSecrets.map((omitted) => {
|
|
624
|
+
return (0, CrossplaneNames_1.getCrossplaneFieldName)((0, CrossplaneSchema_1.getProviderAttributeName)(omitted.attributeName));
|
|
625
|
+
});
|
|
626
|
+
const leftOutShared = record.omittedShared.map((descriptor) => {
|
|
627
|
+
return sharedFieldOf(descriptor).field;
|
|
628
|
+
});
|
|
629
|
+
const connectionKeys = connectionKeysFor(data.modelType, monitorTypeOf(data.json));
|
|
630
|
+
const connectionSecret = connectionKeys.length > 0
|
|
631
|
+
? { name: `${objectName}-connection`, keys: connectionKeys }
|
|
632
|
+
: null;
|
|
633
|
+
return {
|
|
634
|
+
kind,
|
|
635
|
+
objectName,
|
|
636
|
+
yaml: (0, Yaml_1.printYamlDocuments)([
|
|
637
|
+
resourceDocument({
|
|
638
|
+
kind,
|
|
639
|
+
objectName,
|
|
640
|
+
externalName: record.id,
|
|
641
|
+
connectionSecret,
|
|
642
|
+
initProvider: fields.initProvider,
|
|
643
|
+
forProvider: [
|
|
644
|
+
...fields.forProvider,
|
|
645
|
+
...sharedComments({ written: fields.shared, leftOut: [] }),
|
|
646
|
+
...leftOutComments({
|
|
647
|
+
omittedSecrets,
|
|
648
|
+
leftOutForSecrets: fields.leftOutForSecrets,
|
|
649
|
+
}),
|
|
650
|
+
...sharedComments({ written: [], leftOut: leftOutShared }),
|
|
651
|
+
],
|
|
652
|
+
}),
|
|
653
|
+
]),
|
|
654
|
+
observeYaml: (0, Yaml_1.printYamlDocuments)([
|
|
655
|
+
resourceDocument({
|
|
656
|
+
kind,
|
|
657
|
+
objectName,
|
|
658
|
+
externalName: record.id,
|
|
659
|
+
observeOnly: true,
|
|
660
|
+
forProvider: [],
|
|
661
|
+
}),
|
|
662
|
+
]),
|
|
663
|
+
secret: fields.secret,
|
|
664
|
+
omittedSecrets,
|
|
665
|
+
leftOutForSecrets: fields.leftOutForSecrets,
|
|
666
|
+
sharedFields: fields.shared,
|
|
667
|
+
leftOutShared,
|
|
668
|
+
connectionSecret,
|
|
669
|
+
getCommand: getCrossplaneGetCommand(kind, objectName),
|
|
670
|
+
};
|
|
671
|
+
}
|
|
672
|
+
/*
|
|
673
|
+
* The descriptor a configuration's attribute is of, by the name it writes:
|
|
674
|
+
* none for a person's email address (user_email beside user_id), which is
|
|
675
|
+
* an attribute of its own.
|
|
676
|
+
*/
|
|
677
|
+
function descriptorsByAttribute(modelType) {
|
|
678
|
+
const byAttribute = {};
|
|
679
|
+
for (const descriptor of (0, TerraformSchema_1.getTerraformAttributes)(modelType)) {
|
|
680
|
+
byAttribute[descriptor.attributeName] = descriptor;
|
|
681
|
+
byAttribute[(0, CrossplaneSchema_1.getProviderAttributeName)(descriptor.attributeName)] =
|
|
682
|
+
descriptor;
|
|
683
|
+
}
|
|
684
|
+
return byAttribute;
|
|
685
|
+
}
|
|
686
|
+
/*
|
|
687
|
+
* The example's IDs as references to the resources of the same namespace
|
|
688
|
+
* that stand for their records, by the names those records would have
|
|
689
|
+
* there: `incidentSeverityIdRef: {name: critical-incident}`. Null when none
|
|
690
|
+
* of its fields takes one.
|
|
691
|
+
*/
|
|
692
|
+
function referencesYaml(data) {
|
|
693
|
+
const references = (0, CrossplaneSchema_1.getCrossplaneReferences)(data.modelType);
|
|
694
|
+
const entries = [];
|
|
695
|
+
for (const attribute of data.attributes) {
|
|
696
|
+
const reference = references.find((candidate) => {
|
|
697
|
+
return candidate.descriptor.attributeName === attribute.name;
|
|
698
|
+
});
|
|
699
|
+
if (!reference) {
|
|
700
|
+
continue;
|
|
701
|
+
}
|
|
702
|
+
const names = attribute.value.kind === "tuple"
|
|
703
|
+
? attribute.value.items.map((item, index) => {
|
|
704
|
+
const name = item.comment ||
|
|
705
|
+
(attribute.value.kind === "tuple" &&
|
|
706
|
+
attribute.value.items.length === 1
|
|
707
|
+
? attribute.comment
|
|
708
|
+
: undefined);
|
|
709
|
+
return getCrossplaneObjectName(name, `${getKindObjectName(reference.targetKind)}-${index + 1}`);
|
|
710
|
+
})
|
|
711
|
+
: [
|
|
712
|
+
getCrossplaneObjectName(attribute.comment, getKindObjectName(reference.targetKind)),
|
|
713
|
+
];
|
|
714
|
+
const named = (name) => {
|
|
715
|
+
return Yaml_1.Yaml.map([Yaml_1.Yaml.entry("name", Yaml_1.Yaml.string(name))]);
|
|
716
|
+
};
|
|
717
|
+
entries.push(Yaml_1.Yaml.entry(reference.referenceField, reference.isList
|
|
718
|
+
? Yaml_1.Yaml.list(names.map(named))
|
|
719
|
+
: named(names[0])));
|
|
720
|
+
}
|
|
721
|
+
if (entries.length === 0) {
|
|
722
|
+
return null;
|
|
723
|
+
}
|
|
724
|
+
return (0, Yaml_1.printYaml)(Yaml_1.Yaml.map([
|
|
725
|
+
Yaml_1.Yaml.entry("spec", Yaml_1.Yaml.map([Yaml_1.Yaml.entry("forProvider", Yaml_1.Yaml.map(entries))])),
|
|
726
|
+
]));
|
|
727
|
+
}
|
|
728
|
+
/*
|
|
729
|
+
* A new resource of this type as a manifest: the fields most people set,
|
|
730
|
+
* filled in from the project, as the Terraform page's example sets them.
|
|
731
|
+
* Null when the provider cannot create it.
|
|
732
|
+
*/
|
|
733
|
+
function getCrossplaneCreateExample(data) {
|
|
734
|
+
const kind = (0, CrossplaneSchema_1.getCrossplaneKindOf)(data.modelType);
|
|
735
|
+
const profile = (0, ResourceProfiles_1.getDeveloperDocsProfile)(data.modelType);
|
|
736
|
+
if (!kind || profile.terraformCannotCreate) {
|
|
737
|
+
return null;
|
|
738
|
+
}
|
|
739
|
+
const block = (0, ExampleBuilder_1.getDeveloperDocsTerraformBlock)({
|
|
740
|
+
modelType: data.modelType,
|
|
741
|
+
fields: (0, ExampleBuilder_1.withNameAndDescription)(data.modelType, profile, "Crossplane"),
|
|
742
|
+
context: data.context,
|
|
743
|
+
variables: new TerraformValues_1.TerraformVariableCollector(),
|
|
744
|
+
});
|
|
745
|
+
const resource = block.items.find((item) => {
|
|
746
|
+
return item.kind === "block";
|
|
747
|
+
});
|
|
748
|
+
const attributes = resource.body.filter((item) => {
|
|
749
|
+
return item.kind === "attribute";
|
|
750
|
+
});
|
|
751
|
+
const byAttribute = descriptorsByAttribute(data.modelType);
|
|
752
|
+
const objectName = getCrossplaneObjectName(block.localName.replace(/_/g, "-"), getKindObjectName(kind));
|
|
753
|
+
const fields = specFields({
|
|
754
|
+
modelType: data.modelType,
|
|
755
|
+
objectName,
|
|
756
|
+
variablePrefix: `${block.localName}_`,
|
|
757
|
+
attributes: attributes.map((attribute) => {
|
|
758
|
+
return {
|
|
759
|
+
attributeName: attribute.name,
|
|
760
|
+
descriptor: byAttribute[attribute.name],
|
|
761
|
+
value: attribute.value,
|
|
762
|
+
comment: attribute.comment,
|
|
763
|
+
};
|
|
764
|
+
}),
|
|
765
|
+
});
|
|
766
|
+
const monitorType = attributes.find((attribute) => {
|
|
767
|
+
return attribute.name === "monitor_type";
|
|
768
|
+
});
|
|
769
|
+
const connectionKeys = connectionKeysFor(data.modelType, (monitorType === null || monitorType === void 0 ? void 0 : monitorType.value.kind) === "string" ? monitorType.value.value : null);
|
|
770
|
+
const connectionSecret = connectionKeys.length > 0
|
|
771
|
+
? { name: `${objectName}-connection`, keys: connectionKeys }
|
|
772
|
+
: null;
|
|
773
|
+
return {
|
|
774
|
+
kind,
|
|
775
|
+
objectName,
|
|
776
|
+
yaml: (0, Yaml_1.printYamlDocuments)([
|
|
777
|
+
resourceDocument({
|
|
778
|
+
kind,
|
|
779
|
+
objectName,
|
|
780
|
+
connectionSecret,
|
|
781
|
+
initProvider: fields.initProvider,
|
|
782
|
+
forProvider: [
|
|
783
|
+
...fields.forProvider,
|
|
784
|
+
...sharedComments({ written: fields.shared, leftOut: [] }),
|
|
785
|
+
...leftOutComments({
|
|
786
|
+
omittedSecrets: [],
|
|
787
|
+
leftOutForSecrets: fields.leftOutForSecrets,
|
|
788
|
+
}),
|
|
789
|
+
],
|
|
790
|
+
}),
|
|
791
|
+
]),
|
|
792
|
+
rows: block.rows.map((row) => {
|
|
793
|
+
const descriptor = byAttribute[row.name];
|
|
794
|
+
const shared = (descriptor === null || descriptor === void 0 ? void 0 : descriptor.isChangedByOneUptimeToo)
|
|
795
|
+
? sharedFieldOf(descriptor)
|
|
796
|
+
: null;
|
|
797
|
+
return {
|
|
798
|
+
...row,
|
|
799
|
+
name: descriptor && (0, CrossplaneSchema_1.isCrossplaneSecretField)(data.modelType, descriptor)
|
|
800
|
+
? (0, CrossplaneSchema_1.getCrossplaneSecretFieldOf)(descriptor)
|
|
801
|
+
: (0, CrossplaneNames_1.getCrossplaneFieldName)((0, CrossplaneSchema_1.getProviderAttributeName)(row.name)),
|
|
802
|
+
// A field OneUptime changes too says so, as the manifest does.
|
|
803
|
+
about: shared
|
|
804
|
+
? `${row.about} ${shared.isList ? "OneUptime may add to it too." : "OneUptime may change it too."}`
|
|
805
|
+
: row.about,
|
|
806
|
+
};
|
|
807
|
+
}),
|
|
808
|
+
secret: fields.secret,
|
|
809
|
+
leftOutForSecrets: fields.leftOutForSecrets,
|
|
810
|
+
sharedFields: fields.shared,
|
|
811
|
+
connectionSecret,
|
|
812
|
+
referencesYaml: referencesYaml({ modelType: data.modelType, attributes }),
|
|
813
|
+
isPlaceholder: block.isPlaceholder,
|
|
814
|
+
usesProjectData: block.usesProjectData,
|
|
815
|
+
getCommand: getCrossplaneGetCommand(kind, objectName),
|
|
816
|
+
};
|
|
817
|
+
}
|
|
818
|
+
/*
|
|
819
|
+
* A manifest that observes each existing record, by its ID, every one with
|
|
820
|
+
* a name of its own: the provider reads them and never changes or deletes
|
|
821
|
+
* them. Null when the provider has no kind for the model, or there are none.
|
|
822
|
+
*/
|
|
823
|
+
function getCrossplaneObserveManifests(data) {
|
|
824
|
+
const kind = (0, CrossplaneSchema_1.getCrossplaneKindOf)(data.modelType);
|
|
825
|
+
if (!kind || data.targets.length === 0) {
|
|
826
|
+
return null;
|
|
827
|
+
}
|
|
828
|
+
const used = new Set();
|
|
829
|
+
return (0, Yaml_1.printYamlDocuments)(data.targets.map((target) => {
|
|
830
|
+
const base = getCrossplaneObjectName(target.displayName, `${getKindObjectName(kind)}-${target.id.slice(0, 8)}`);
|
|
831
|
+
let objectName = base;
|
|
832
|
+
let suffix = 2;
|
|
833
|
+
while (used.has(objectName)) {
|
|
834
|
+
objectName = `${base}-${suffix}`;
|
|
835
|
+
suffix++;
|
|
836
|
+
}
|
|
837
|
+
used.add(objectName);
|
|
838
|
+
return resourceDocument({
|
|
839
|
+
kind,
|
|
840
|
+
objectName,
|
|
841
|
+
externalName: target.id,
|
|
842
|
+
observeOnly: true,
|
|
843
|
+
forProvider: [],
|
|
844
|
+
});
|
|
845
|
+
}));
|
|
846
|
+
}
|