checkly 9.5.0 → 10.0.0-prerelease-4f88d60
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/README.md +10 -0
- package/bin/launch.cjs +12 -0
- package/dist/ai-context/context.js +1 -0
- package/dist/ai-context/context.js.map +1 -1
- package/dist/ai-context/onboarding-boilerplate/checkly-config-template.ts +2 -2
- package/dist/ai-context/public-skills/checkly/SKILL.md +34 -5
- package/dist/ai-context/skills-command/references/communicate.md +8 -5
- package/dist/ai-context/skills-command/references/configure-api-checks.md +1 -9
- package/dist/ai-context/skills-command/references/configure-browser-checks.md +1 -8
- package/dist/ai-context/skills-command/references/configure-check-groups.md +1 -0
- package/dist/ai-context/skills-command/references/configure-dns-monitors.md +1 -9
- package/dist/ai-context/skills-command/references/configure-grpc-monitors.md +24 -0
- package/dist/ai-context/skills-command/references/configure-heartbeat-monitors.md +1 -9
- package/dist/ai-context/skills-command/references/configure-icmp-monitors.md +1 -9
- package/dist/ai-context/skills-command/references/configure-multistep-checks.md +1 -9
- package/dist/ai-context/skills-command/references/configure-playwright-checks.md +2 -2
- package/dist/ai-context/skills-command/references/configure-supporting-constructs.md +6 -2
- package/dist/ai-context/skills-command/references/configure-tcp-monitors.md +1 -10
- package/dist/ai-context/skills-command/references/configure-url-monitors.md +1 -10
- package/dist/ai-context/skills-command/references/configure.md +17 -5
- package/dist/ai-context/skills-command/references/initialize.md +11 -3
- package/dist/ai-context/skills-command/references/investigate-checks.md +1 -1
- package/dist/auth/api-key.d.ts +24 -0
- package/dist/auth/api-key.js +104 -0
- package/dist/auth/api-key.js.map +1 -0
- package/dist/auth/device-flow.d.ts +58 -0
- package/dist/auth/device-flow.js +228 -0
- package/dist/auth/device-flow.js.map +1 -0
- package/dist/auth/index.d.ts +6 -6
- package/dist/auth/index.js +64 -64
- package/dist/auth/index.js.map +1 -1
- package/dist/commands/account/plan.js +1 -1
- package/dist/commands/account/plan.js.map +1 -1
- package/dist/commands/account/usage/projections.d.ts +16 -0
- package/dist/commands/account/usage/projections.js +40 -0
- package/dist/commands/account/usage/projections.js.map +1 -0
- package/dist/commands/account/usage/series.d.ts +7 -3
- package/dist/commands/account/usage/series.js +30 -87
- package/dist/commands/account/usage/series.js.map +1 -1
- package/dist/commands/account/usage/summary.d.ts +4 -1
- package/dist/commands/account/usage/summary.js +19 -27
- package/dist/commands/account/usage/summary.js.map +1 -1
- package/dist/commands/account/usage/term.d.ts +15 -0
- package/dist/commands/account/usage/term.js +32 -0
- package/dist/commands/account/usage/term.js.map +1 -0
- package/dist/commands/account/usage/terms.d.ts +4 -0
- package/dist/commands/account/usage/terms.js +19 -27
- package/dist/commands/account/usage/terms.js.map +1 -1
- package/dist/commands/alert-channels/get.js +2 -1
- package/dist/commands/alert-channels/get.js.map +1 -1
- package/dist/commands/alert-channels/list.js +2 -1
- package/dist/commands/alert-channels/list.js.map +1 -1
- package/dist/commands/alert-channels/logs.js +2 -1
- package/dist/commands/alert-channels/logs.js.map +1 -1
- package/dist/commands/api.js +53 -10
- package/dist/commands/api.js.map +1 -1
- package/dist/commands/assets/download.js +11 -7
- package/dist/commands/assets/download.js.map +1 -1
- package/dist/commands/assets/list.js +2 -3
- package/dist/commands/assets/list.js.map +1 -1
- package/dist/commands/authCommand.d.ts +19 -0
- package/dist/commands/authCommand.js +118 -12
- package/dist/commands/authCommand.js.map +1 -1
- package/dist/commands/baseCommand.d.ts +12 -1
- package/dist/commands/baseCommand.js +24 -5
- package/dist/commands/baseCommand.js.map +1 -1
- package/dist/commands/checks/delete.js +1 -1
- package/dist/commands/checks/delete.js.map +1 -1
- package/dist/commands/checks/run.js +3 -1
- package/dist/commands/checks/run.js.map +1 -1
- package/dist/commands/debug/parse-project.d.ts +1 -0
- package/dist/commands/debug/parse-project.js +5 -2
- package/dist/commands/debug/parse-project.js.map +1 -1
- package/dist/commands/deploy.d.ts +8 -2
- package/dist/commands/deploy.js +735 -274
- package/dist/commands/deploy.js.map +1 -1
- package/dist/commands/destroy.js +3 -3
- package/dist/commands/destroy.js.map +1 -1
- package/dist/commands/env/add.js +2 -2
- package/dist/commands/env/add.js.map +1 -1
- package/dist/commands/env/ls.js +2 -1
- package/dist/commands/env/ls.js.map +1 -1
- package/dist/commands/env/pull.js +3 -3
- package/dist/commands/env/pull.js.map +1 -1
- package/dist/commands/env/update.js +2 -2
- package/dist/commands/env/update.js.map +1 -1
- package/dist/commands/import/apply.js +12 -10
- package/dist/commands/import/apply.js.map +1 -1
- package/dist/commands/import/cancel.js +4 -4
- package/dist/commands/import/cancel.js.map +1 -1
- package/dist/commands/import/commit.js +11 -9
- package/dist/commands/import/commit.js.map +1 -1
- package/dist/commands/import/plan.js +82 -62
- package/dist/commands/import/plan.js.map +1 -1
- package/dist/commands/init.d.ts +2 -0
- package/dist/commands/init.js +62 -41
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/login.d.ts +38 -2
- package/dist/commands/login.js +848 -52
- package/dist/commands/login.js.map +1 -1
- package/dist/commands/logout.js +10 -4
- package/dist/commands/logout.js.map +1 -1
- package/dist/commands/pw-test.js +6 -3
- package/dist/commands/pw-test.js.map +1 -1
- package/dist/commands/rca/get.js +1 -1
- package/dist/commands/rca/get.js.map +1 -1
- package/dist/commands/rca/run.js +1 -1
- package/dist/commands/rca/run.js.map +1 -1
- package/dist/commands/skills/index.js +1 -1
- package/dist/commands/skills/index.js.map +1 -1
- package/dist/commands/skills/install.js +12 -12
- package/dist/commands/skills/install.js.map +1 -1
- package/dist/commands/switch.d.ts +10 -1
- package/dist/commands/switch.js +75 -13
- package/dist/commands/switch.js.map +1 -1
- package/dist/commands/sync-playwright.js +5 -10
- package/dist/commands/sync-playwright.js.map +1 -1
- package/dist/commands/test.d.ts +2 -0
- package/dist/commands/test.js +58 -29
- package/dist/commands/test.js.map +1 -1
- package/dist/commands/trigger.d.ts +1 -2
- package/dist/commands/trigger.js +27 -20
- package/dist/commands/trigger.js.map +1 -1
- package/dist/commands/validate.js +1 -0
- package/dist/commands/validate.js.map +1 -1
- package/dist/commands/whoami.d.ts +8 -0
- package/dist/commands/whoami.js +57 -6
- package/dist/commands/whoami.js.map +1 -1
- package/dist/constants.d.ts +3 -2
- package/dist/constants.js +8 -1
- package/dist/constants.js.map +1 -1
- package/dist/constructs/alert-channel-codegen.d.ts +6 -1
- package/dist/constructs/alert-channel-codegen.js +12 -6
- package/dist/constructs/alert-channel-codegen.js.map +1 -1
- package/dist/constructs/alert-channel-subscription.d.ts +1 -0
- package/dist/constructs/alert-channel-subscription.js +4 -0
- package/dist/constructs/alert-channel-subscription.js.map +1 -1
- package/dist/constructs/alert-channel.js +8 -5
- package/dist/constructs/alert-channel.js.map +1 -1
- package/dist/constructs/alert-escalation-policy-codegen.d.ts +7 -0
- package/dist/constructs/alert-escalation-policy-codegen.js +25 -8
- package/dist/constructs/alert-escalation-policy-codegen.js.map +1 -1
- package/dist/constructs/api-assertion.d.ts +0 -2
- package/dist/constructs/api-assertion.js +0 -4
- package/dist/constructs/api-assertion.js.map +1 -1
- package/dist/constructs/api-check-bundle.d.ts +4 -124
- package/dist/constructs/api-check-codegen.js +1 -1
- package/dist/constructs/api-check-codegen.js.map +1 -1
- package/dist/constructs/api-check.d.ts +8 -128
- package/dist/constructs/api-check.js +15 -17
- package/dist/constructs/api-check.js.map +1 -1
- package/dist/constructs/api-request-codegen.js +10 -8
- package/dist/constructs/api-request-codegen.js.map +1 -1
- package/dist/constructs/browser-check-bundle.d.ts +11 -125
- package/dist/constructs/browser-check-bundle.js +5 -1
- package/dist/constructs/browser-check-bundle.js.map +1 -1
- package/dist/constructs/browser-check.d.ts +5 -107
- package/dist/constructs/browser-check.js +1 -1
- package/dist/constructs/browser-check.js.map +1 -1
- package/dist/constructs/check-codegen.d.ts +46 -14
- package/dist/constructs/check-codegen.js +118 -34
- package/dist/constructs/check-codegen.js.map +1 -1
- package/dist/constructs/check-group-codegen.js +23 -9
- package/dist/constructs/check-group-codegen.js.map +1 -1
- package/dist/constructs/check-group-v1.d.ts +28 -16
- package/dist/constructs/check-group-v1.js +48 -17
- package/dist/constructs/check-group-v1.js.map +1 -1
- package/dist/constructs/check-group-v2.d.ts +2 -21
- package/dist/constructs/check-group-v2.js +4 -4
- package/dist/constructs/check-group-v2.js.map +1 -1
- package/dist/constructs/check.d.ts +68 -220
- package/dist/constructs/check.js +106 -37
- package/dist/constructs/check.js.map +1 -1
- package/dist/constructs/construct-codegen.d.ts +1 -2
- package/dist/constructs/construct-diagnostics.d.ts +3 -0
- package/dist/constructs/construct-diagnostics.js +11 -0
- package/dist/constructs/construct-diagnostics.js.map +1 -1
- package/dist/constructs/construct.d.ts +30 -4
- package/dist/constructs/construct.js +52 -6
- package/dist/constructs/construct.js.map +1 -1
- package/dist/constructs/dashboard.js +11 -7
- package/dist/constructs/dashboard.js.map +1 -1
- package/dist/constructs/dns-monitor.d.ts +4 -100
- package/dist/constructs/dns-request-codegen.js +1 -1
- package/dist/constructs/dns-request-codegen.js.map +1 -1
- package/dist/constructs/email-alert-channel-codegen.js +1 -1
- package/dist/constructs/email-alert-channel-codegen.js.map +1 -1
- package/dist/constructs/engine.d.ts +4 -2
- package/dist/constructs/engine.js +3 -1
- package/dist/constructs/engine.js.map +1 -1
- package/dist/constructs/frequency-codegen.js +10 -2
- package/dist/constructs/frequency-codegen.js.map +1 -1
- package/dist/constructs/frequency.d.ts +8 -3
- package/dist/constructs/frequency.js +7 -2
- package/dist/constructs/frequency.js.map +1 -1
- package/dist/constructs/grpc-monitor.d.ts +4 -100
- package/dist/constructs/grpc-monitor.js +19 -0
- package/dist/constructs/grpc-monitor.js.map +1 -1
- package/dist/constructs/grpc-request-codegen.js +13 -4
- package/dist/constructs/grpc-request-codegen.js.map +1 -1
- package/dist/constructs/grpc-request.d.ts +23 -0
- package/dist/constructs/heartbeat-monitor.d.ts +2 -1
- package/dist/constructs/heartbeat-monitor.js +2 -2
- package/dist/constructs/heartbeat-monitor.js.map +1 -1
- package/dist/constructs/icmp-monitor.d.ts +4 -100
- package/dist/constructs/icmp-request-codegen.js +1 -1
- package/dist/constructs/icmp-request-codegen.js.map +1 -1
- package/dist/constructs/incidentio-alert-channel-codegen.d.ts +1 -1
- package/dist/constructs/incidentio-alert-channel-codegen.js +14 -8
- package/dist/constructs/incidentio-alert-channel-codegen.js.map +1 -1
- package/dist/constructs/index.d.ts +1 -1
- package/dist/constructs/index.js +1 -1
- package/dist/constructs/index.js.map +1 -1
- package/dist/constructs/internal/assertion-validation.js +1 -2
- package/dist/constructs/internal/assertion-validation.js.map +1 -1
- package/dist/constructs/internal/codegen/context.d.ts +73 -6
- package/dist/constructs/internal/codegen/context.js +78 -6
- package/dist/constructs/internal/codegen/context.js.map +1 -1
- package/dist/constructs/internal/codegen/index.d.ts +3 -1
- package/dist/constructs/internal/codegen/index.js +2 -1
- package/dist/constructs/internal/codegen/index.js.map +1 -1
- package/dist/constructs/internal/codegen/render.d.ts +68 -0
- package/dist/constructs/internal/codegen/render.js +75 -0
- package/dist/constructs/internal/codegen/render.js.map +1 -0
- package/dist/constructs/internal/common-diagnostics.d.ts +1 -2
- package/dist/constructs/internal/common-diagnostics.js +7 -17
- package/dist/constructs/internal/common-diagnostics.js.map +1 -1
- package/dist/constructs/internal/declaring-file.d.ts +39 -0
- package/dist/constructs/internal/declaring-file.js +139 -0
- package/dist/constructs/internal/declaring-file.js.map +1 -0
- package/dist/constructs/internal/default-retry-strategy.d.ts +9 -0
- package/dist/constructs/internal/default-retry-strategy.js +13 -0
- package/dist/constructs/internal/default-retry-strategy.js.map +1 -0
- package/dist/constructs/internal/retry-strategy-defaults.d.ts +13 -0
- package/dist/constructs/internal/retry-strategy-defaults.js +14 -0
- package/dist/constructs/internal/retry-strategy-defaults.js.map +1 -0
- package/dist/constructs/key-value-pair-codegen.d.ts +6 -1
- package/dist/constructs/key-value-pair-codegen.js +24 -3
- package/dist/constructs/key-value-pair-codegen.js.map +1 -1
- package/dist/constructs/maintenance-window-codegen.d.ts +7 -0
- package/dist/constructs/maintenance-window-codegen.js +36 -19
- package/dist/constructs/maintenance-window-codegen.js.map +1 -1
- package/dist/constructs/maintenance-window.d.ts +37 -3
- package/dist/constructs/maintenance-window.js +34 -1
- package/dist/constructs/maintenance-window.js.map +1 -1
- package/dist/constructs/monitor.d.ts +6 -119
- package/dist/constructs/monitor.js +3 -5
- package/dist/constructs/monitor.js.map +1 -1
- package/dist/constructs/msteams-alert-channel-codegen.d.ts +1 -1
- package/dist/constructs/msteams-alert-channel-codegen.js +8 -18
- package/dist/constructs/msteams-alert-channel-codegen.js.map +1 -1
- package/dist/constructs/multi-step-check-bundle.d.ts +4 -109
- package/dist/constructs/multi-step-check.d.ts +4 -100
- package/dist/constructs/opsgenie-alert-channel-codegen.js +1 -1
- package/dist/constructs/opsgenie-alert-channel-codegen.js.map +1 -1
- package/dist/constructs/pagerduty-alert-channel-codegen.js +1 -1
- package/dist/constructs/pagerduty-alert-channel-codegen.js.map +1 -1
- package/dist/constructs/phone-call-alert-channel-codegen.js +1 -1
- package/dist/constructs/phone-call-alert-channel-codegen.js.map +1 -1
- package/dist/constructs/playwright-check-bundle.d.ts +10 -130
- package/dist/constructs/playwright-check-bundle.js +3 -3
- package/dist/constructs/playwright-check-bundle.js.map +1 -1
- package/dist/constructs/playwright-check-codegen.d.ts +85 -0
- package/dist/constructs/playwright-check-codegen.js +212 -0
- package/dist/constructs/playwright-check-codegen.js.map +1 -0
- package/dist/constructs/playwright-check.d.ts +14 -122
- package/dist/constructs/playwright-check.js +17 -51
- package/dist/constructs/playwright-check.js.map +1 -1
- package/dist/constructs/private-location-check-assignment.d.ts +1 -0
- package/dist/constructs/private-location-check-assignment.js +4 -0
- package/dist/constructs/private-location-check-assignment.js.map +1 -1
- package/dist/constructs/private-location-group-assignment.d.ts +1 -0
- package/dist/constructs/private-location-group-assignment.js +4 -0
- package/dist/constructs/private-location-group-assignment.js.map +1 -1
- package/dist/constructs/private-location.js +3 -1
- package/dist/constructs/private-location.js.map +1 -1
- package/dist/constructs/retry-strategy-codegen.d.ts +7 -1
- package/dist/constructs/retry-strategy-codegen.js +41 -32
- package/dist/constructs/retry-strategy-codegen.js.map +1 -1
- package/dist/constructs/retry-strategy.d.ts +0 -4
- package/dist/constructs/retry-strategy.js +5 -8
- package/dist/constructs/retry-strategy.js.map +1 -1
- package/dist/constructs/session.d.ts +38 -1
- package/dist/constructs/session.js +73 -3
- package/dist/constructs/session.js.map +1 -1
- package/dist/constructs/slack-alert-channel-codegen.js +1 -1
- package/dist/constructs/slack-alert-channel-codegen.js.map +1 -1
- package/dist/constructs/slack-app-alert-channel-codegen.js +1 -1
- package/dist/constructs/slack-app-alert-channel-codegen.js.map +1 -1
- package/dist/constructs/sms-alert-channel-codegen.js +1 -1
- package/dist/constructs/sms-alert-channel-codegen.js.map +1 -1
- package/dist/constructs/ssl-monitor.d.ts +4 -142
- package/dist/constructs/ssl-request-codegen.js +4 -3
- package/dist/constructs/ssl-request-codegen.js.map +1 -1
- package/dist/constructs/status-page-v3-automation-rule-codegen.js +5 -4
- package/dist/constructs/status-page-v3-automation-rule-codegen.js.map +1 -1
- package/dist/constructs/status-page-v3-codegen.js +3 -2
- package/dist/constructs/status-page-v3-codegen.js.map +1 -1
- package/dist/constructs/status-page-v3-component-codegen.js +8 -7
- package/dist/constructs/status-page-v3-component-codegen.js.map +1 -1
- package/dist/constructs/tcp-monitor-codegen.js +3 -2
- package/dist/constructs/tcp-monitor-codegen.js.map +1 -1
- package/dist/constructs/tcp-monitor.d.ts +8 -103
- package/dist/constructs/tcp-monitor.js +3 -2
- package/dist/constructs/tcp-monitor.js.map +1 -1
- package/dist/constructs/telegram-alert-channel-codegen.d.ts +1 -1
- package/dist/constructs/telegram-alert-channel-codegen.js +14 -8
- package/dist/constructs/telegram-alert-channel-codegen.js.map +1 -1
- package/dist/constructs/time-zone.d.ts +24 -0
- package/dist/constructs/time-zone.js +455 -0
- package/dist/constructs/time-zone.js.map +1 -0
- package/dist/constructs/traceroute-monitor.d.ts +4 -100
- package/dist/constructs/traceroute-request-codegen.js +2 -2
- package/dist/constructs/traceroute-request-codegen.js.map +1 -1
- package/dist/constructs/url-monitor-codegen.js +1 -1
- package/dist/constructs/url-monitor-codegen.js.map +1 -1
- package/dist/constructs/url-monitor.d.ts +7 -123
- package/dist/constructs/url-monitor.js +3 -0
- package/dist/constructs/url-monitor.js.map +1 -1
- package/dist/constructs/url-request-codegen.js +4 -3
- package/dist/constructs/url-request-codegen.js.map +1 -1
- package/dist/constructs/webhook-alert-channel-codegen.js +3 -3
- package/dist/constructs/webhook-alert-channel-codegen.js.map +1 -1
- package/dist/formatters/check-result-detail.js +0 -185
- package/dist/formatters/check-result-detail.js.map +1 -1
- package/dist/formatters/render.d.ts +2 -1
- package/dist/formatters/render.js +2 -2
- package/dist/formatters/render.js.map +1 -1
- package/dist/formatters/usage.d.ts +18 -12
- package/dist/formatters/usage.js +285 -245
- package/dist/formatters/usage.js.map +1 -1
- package/dist/help/help-extension.js +2 -1
- package/dist/help/help-extension.js.map +1 -1
- package/dist/helpers/accounts.d.ts +28 -0
- package/dist/helpers/accounts.js +50 -0
- package/dist/helpers/accounts.js.map +1 -0
- package/dist/helpers/activate-account.d.ts +13 -0
- package/dist/helpers/activate-account.js +24 -0
- package/dist/helpers/activate-account.js.map +1 -0
- package/dist/helpers/api-fields.js +3 -2
- package/dist/helpers/api-fields.js.map +1 -1
- package/dist/helpers/cli-mode.d.ts +24 -0
- package/dist/helpers/cli-mode.js +64 -8
- package/dist/helpers/cli-mode.js.map +1 -1
- package/dist/helpers/command-preview.d.ts +44 -0
- package/dist/helpers/command-preview.js +29 -9
- package/dist/helpers/command-preview.js.map +1 -1
- package/dist/helpers/command-style.d.ts +1 -0
- package/dist/helpers/command-style.js +51 -37
- package/dist/helpers/command-style.js.map +1 -1
- package/dist/helpers/flags.d.ts +10 -0
- package/dist/helpers/flags.js +18 -0
- package/dist/helpers/flags.js.map +1 -1
- package/dist/helpers/import-plan-selection.d.ts +1 -1
- package/dist/helpers/import-plan-selection.js +8 -20
- package/dist/helpers/import-plan-selection.js.map +1 -1
- package/dist/helpers/invalid-input-error.d.ts +15 -0
- package/dist/helpers/invalid-input-error.js +17 -0
- package/dist/helpers/invalid-input-error.js.map +1 -0
- package/dist/helpers/number.js +4 -3
- package/dist/helpers/number.js.map +1 -1
- package/dist/helpers/onboarding/boilerplate.js +15 -3
- package/dist/helpers/onboarding/boilerplate.js.map +1 -1
- package/dist/helpers/onboarding/index.d.ts +1 -1
- package/dist/helpers/onboarding/index.js +1 -1
- package/dist/helpers/onboarding/index.js.map +1 -1
- package/dist/helpers/onboarding/messages.d.ts +7 -0
- package/dist/helpers/onboarding/messages.js +14 -0
- package/dist/helpers/onboarding/messages.js.map +1 -1
- package/dist/helpers/onboarding/prompt-display.js +2 -2
- package/dist/helpers/onboarding/prompt-display.js.map +1 -1
- package/dist/helpers/onboarding/prompts-helpers.js +3 -1
- package/dist/helpers/onboarding/prompts-helpers.js.map +1 -1
- package/dist/helpers/onboarding/skill-install.js +4 -4
- package/dist/helpers/onboarding/skill-install.js.map +1 -1
- package/dist/helpers/prompts.d.ts +7 -0
- package/dist/helpers/prompts.js +10 -0
- package/dist/helpers/prompts.js.map +1 -0
- package/dist/helpers/result-assets.js +4 -3
- package/dist/helpers/result-assets.js.map +1 -1
- package/dist/helpers/test-helper.d.ts +14 -0
- package/dist/helpers/test-helper.js +33 -3
- package/dist/helpers/test-helper.js.map +1 -1
- package/dist/helpers/usage.d.ts +51 -14
- package/dist/helpers/usage.js +193 -53
- package/dist/helpers/usage.js.map +1 -1
- package/dist/helpers/wrap.js +1 -1
- package/dist/helpers/wrap.js.map +1 -1
- package/dist/messages/common-messages.d.ts +1 -0
- package/dist/messages/common-messages.js +4 -2
- package/dist/messages/common-messages.js.map +1 -1
- package/dist/reporters/abstract-list.d.ts +9 -2
- package/dist/reporters/abstract-list.js +105 -32
- package/dist/reporters/abstract-list.js.map +1 -1
- package/dist/reporters/ci.js +7 -4
- package/dist/reporters/ci.js.map +1 -1
- package/dist/reporters/dot.d.ts +1 -0
- package/dist/reporters/dot.js +19 -7
- package/dist/reporters/dot.js.map +1 -1
- package/dist/reporters/github.d.ts +2 -0
- package/dist/reporters/github.js +29 -4
- package/dist/reporters/github.js.map +1 -1
- package/dist/reporters/json.d.ts +2 -0
- package/dist/reporters/json.js +27 -4
- package/dist/reporters/json.js.map +1 -1
- package/dist/reporters/list.js +10 -8
- package/dist/reporters/list.js.map +1 -1
- package/dist/reporters/reporter.d.ts +1 -0
- package/dist/reporters/reporter.js.map +1 -1
- package/dist/reporters/util.d.ts +5 -2
- package/dist/reporters/util.js +25 -61
- package/dist/reporters/util.js.map +1 -1
- package/dist/rest/analytics.js +0 -4
- package/dist/rest/analytics.js.map +1 -1
- package/dist/rest/api.d.ts +10 -1
- package/dist/rest/api.js +44 -9
- package/dist/rest/api.js.map +1 -1
- package/dist/rest/check-results.d.ts +1 -50
- package/dist/rest/check-results.js.map +1 -1
- package/dist/rest/checkly-storage.d.ts +6 -1
- package/dist/rest/checkly-storage.js +13 -2
- package/dist/rest/checkly-storage.js.map +1 -1
- package/dist/rest/errors.d.ts +19 -0
- package/dist/rest/errors.js +20 -1
- package/dist/rest/errors.js.map +1 -1
- package/dist/rest/projects.d.ts +254 -4
- package/dist/rest/projects.js +208 -17
- package/dist/rest/projects.js.map +1 -1
- package/dist/rest/usage.d.ts +164 -73
- package/dist/rest/usage.js +21 -10
- package/dist/rest/usage.js.map +1 -1
- package/dist/services/abstract-check-runner.d.ts +34 -2
- package/dist/services/abstract-check-runner.js +183 -56
- package/dist/services/abstract-check-runner.js.map +1 -1
- package/dist/services/check-parser/bundler.d.ts +26 -0
- package/dist/services/check-parser/bundler.js +81 -7
- package/dist/services/check-parser/bundler.js.map +1 -1
- package/dist/services/check-parser/cache-hash.d.ts +1 -4
- package/dist/services/check-parser/cache-hash.js.map +1 -1
- package/dist/services/check-parser/package-files/json-text-source-file.d.ts +0 -2
- package/dist/services/check-parser/package-files/json-text-source-file.js +6 -6
- package/dist/services/check-parser/package-files/json-text-source-file.js.map +1 -1
- package/dist/services/check-parser/parser.d.ts +3 -2
- package/dist/services/check-parser/parser.js +31 -40
- package/dist/services/check-parser/parser.js.map +1 -1
- package/dist/services/checkly-config-codegen.js +4 -4
- package/dist/services/checkly-config-codegen.js.map +1 -1
- package/dist/services/checkly-config-loader.d.ts +18 -33
- package/dist/services/checkly-config-loader.js +50 -47
- package/dist/services/checkly-config-loader.js.map +1 -1
- package/dist/services/config.d.ts +42 -1
- package/dist/services/config.js +93 -9
- package/dist/services/config.js.map +1 -1
- package/dist/services/content-hash.d.ts +14 -0
- package/dist/services/content-hash.js +22 -0
- package/dist/services/content-hash.js.map +1 -0
- package/dist/services/deploy-diff/diff-lines.d.ts +52 -0
- package/dist/services/deploy-diff/diff-lines.js +327 -0
- package/dist/services/deploy-diff/diff-lines.js.map +1 -0
- package/dist/services/deploy-diff/double-check.d.ts +9 -0
- package/dist/services/deploy-diff/double-check.js +21 -0
- package/dist/services/deploy-diff/double-check.js.map +1 -0
- package/dist/services/deploy-diff/import-shape.d.ts +171 -0
- package/dist/services/deploy-diff/import-shape.js +633 -0
- package/dist/services/deploy-diff/import-shape.js.map +1 -0
- package/dist/services/deploy-diff/legacy-payload.d.ts +22 -0
- package/dist/services/deploy-diff/legacy-payload.js +51 -0
- package/dist/services/deploy-diff/legacy-payload.js.map +1 -0
- package/dist/services/deploy-diff/plan-summary.d.ts +81 -0
- package/dist/services/deploy-diff/plan-summary.js +262 -0
- package/dist/services/deploy-diff/plan-summary.js.map +1 -0
- package/dist/services/deploy-diff/preview-output.d.ts +63 -0
- package/dist/services/deploy-diff/preview-output.js +403 -0
- package/dist/services/deploy-diff/preview-output.js.map +1 -0
- package/dist/services/deploy-diff/render.d.ts +59 -0
- package/dist/services/deploy-diff/render.js +326 -0
- package/dist/services/deploy-diff/render.js.map +1 -0
- package/dist/services/deploy-diff/shape-changes.d.ts +2 -0
- package/dist/services/deploy-diff/shape-changes.js +48 -0
- package/dist/services/deploy-diff/shape-changes.js.map +1 -0
- package/dist/services/deploy-diff/source-index.d.ts +18 -0
- package/dist/services/deploy-diff/source-index.js +48 -0
- package/dist/services/deploy-diff/source-index.js.map +1 -0
- package/dist/services/deploy-diff/variable-names.d.ts +30 -0
- package/dist/services/deploy-diff/variable-names.js +64 -0
- package/dist/services/deploy-diff/variable-names.js.map +1 -0
- package/dist/services/engine-resolver.js +3 -0
- package/dist/services/engine-resolver.js.map +1 -1
- package/dist/services/engine-rules-loader.d.ts +6 -0
- package/dist/services/engine-rules-loader.js +12 -3
- package/dist/services/engine-rules-loader.js.map +1 -1
- package/dist/services/oxc-parser.d.ts +26 -0
- package/dist/services/oxc-parser.js +70 -0
- package/dist/services/oxc-parser.js.map +1 -0
- package/dist/services/project-cli.d.ts +75 -0
- package/dist/services/project-cli.js +302 -0
- package/dist/services/project-cli.js.map +1 -0
- package/dist/services/project-parser.d.ts +5 -0
- package/dist/services/project-parser.js +25 -13
- package/dist/services/project-parser.js.map +1 -1
- package/dist/services/skills.js +3 -3
- package/dist/services/skills.js.map +1 -1
- package/dist/services/snapshot-service.d.ts +25 -8
- package/dist/services/snapshot-service.js +46 -4
- package/dist/services/snapshot-service.js.map +1 -1
- package/dist/services/socket-client.js +1 -1
- package/dist/services/socket-client.js.map +1 -1
- package/dist/services/test-filters.d.ts +18 -0
- package/dist/services/test-filters.js +10 -0
- package/dist/services/test-filters.js.map +1 -1
- package/dist/services/test-runner.d.ts +1 -1
- package/dist/services/test-runner.js +10 -11
- package/dist/services/test-runner.js.map +1 -1
- package/dist/services/test-session-cancel.d.ts +5 -0
- package/dist/services/test-session-cancel.js +28 -3
- package/dist/services/test-session-cancel.js.map +1 -1
- package/dist/services/trigger-runner.d.ts +1 -1
- package/dist/services/trigger-runner.js +2 -2
- package/dist/services/trigger-runner.js.map +1 -1
- package/dist/services/two-installs.d.ts +39 -0
- package/dist/services/two-installs.js +155 -0
- package/dist/services/two-installs.js.map +1 -0
- package/dist/services/util.d.ts +17 -2
- package/dist/services/util.js +118 -11
- package/dist/services/util.js.map +1 -1
- package/dist/services/write-back/apply-edits.d.ts +29 -0
- package/dist/services/write-back/apply-edits.js +255 -0
- package/dist/services/write-back/apply-edits.js.map +1 -0
- package/dist/services/write-back/helper-edit.d.ts +135 -0
- package/dist/services/write-back/helper-edit.js +343 -0
- package/dist/services/write-back/helper-edit.js.map +1 -0
- package/dist/services/write-back/imports.d.ts +30 -0
- package/dist/services/write-back/imports.js +88 -0
- package/dist/services/write-back/imports.js.map +1 -0
- package/dist/services/write-back/literal-edit.d.ts +183 -0
- package/dist/services/write-back/literal-edit.js +359 -0
- package/dist/services/write-back/literal-edit.js.map +1 -0
- package/dist/services/write-back/output.d.ts +26 -0
- package/dist/services/write-back/output.js +110 -0
- package/dist/services/write-back/output.js.map +1 -0
- package/dist/services/write-back/plan.d.ts +180 -0
- package/dist/services/write-back/plan.js +1046 -0
- package/dist/services/write-back/plan.js.map +1 -0
- package/dist/services/write-back/source-file.d.ts +133 -0
- package/dist/services/write-back/source-file.js +460 -0
- package/dist/services/write-back/source-file.js.map +1 -0
- package/dist/sourcegen/index.d.ts +1 -1
- package/dist/sourcegen/index.js +1 -1
- package/dist/sourcegen/index.js.map +1 -1
- package/dist/sourcegen/program.d.ts +19 -1
- package/dist/sourcegen/program.js +32 -7
- package/dist/sourcegen/program.js.map +1 -1
- package/dist/testing/clear-git-env.d.ts +1 -0
- package/dist/testing/clear-git-env.js +25 -0
- package/dist/testing/clear-git-env.js.map +1 -0
- package/dist/testing/global-setup.d.ts +1 -0
- package/dist/testing/global-setup.js +3 -0
- package/dist/testing/global-setup.js.map +1 -1
- package/oclif.manifest.json +1113 -884
- package/package.json +21 -19
- package/dist/commands/rules.d.ts +0 -9
- package/dist/commands/rules.js +0 -13
- package/dist/commands/rules.js.map +0 -1
- package/dist/constructs/agentic-check-codegen.d.ts +0 -22
- package/dist/constructs/agentic-check-codegen.js +0 -59
- package/dist/constructs/agentic-check-codegen.js.map +0 -1
- package/dist/constructs/agentic-check.d.ts +0 -237
- package/dist/constructs/agentic-check.js +0 -100
- package/dist/constructs/agentic-check.js.map +0 -1
- package/dist/services/check-parser/package-files/json-text-source-file-parser.d.ts +0 -7
- package/dist/services/check-parser/package-files/json-text-source-file-parser.js +0 -47
- package/dist/services/check-parser/package-files/json-text-source-file-parser.js.map +0 -1
- package/dist/services/check-parser/package-files/source-file-parser.d.ts +0 -10
- package/dist/services/check-parser/package-files/source-file-parser.js +0 -13
- package/dist/services/check-parser/package-files/source-file-parser.js.map +0 -1
|
@@ -69,10 +69,10 @@ export interface CheckIntentProps {
|
|
|
69
69
|
/**
|
|
70
70
|
* Durable guidance for root cause analysis and check repair.
|
|
71
71
|
*
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
* - Set it to `null` to explicitly clear intent.
|
|
72
|
+
* Provide an object to set the intent. Left unset, or set to `null`, the
|
|
73
|
+
* check has no intent.
|
|
75
74
|
*
|
|
75
|
+
* @defaultValue null
|
|
76
76
|
* @example
|
|
77
77
|
* ```typescript
|
|
78
78
|
* intent: {
|
|
@@ -96,14 +96,37 @@ export interface AutomaticCheckRepairProps {
|
|
|
96
96
|
/**
|
|
97
97
|
* Determines whether automatic check repair is enabled for this check.
|
|
98
98
|
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
*
|
|
99
|
+
* Set it to `true` or `false` to override the account default for this
|
|
100
|
+
* check. Left unset, or set to `null`, the check inherits the account-level
|
|
101
|
+
* setting.
|
|
102
102
|
*
|
|
103
103
|
* @defaultValue null (inherit the account setting)
|
|
104
104
|
*/
|
|
105
105
|
aiAutoRepairEnabled?: boolean | null;
|
|
106
106
|
}
|
|
107
|
+
export interface ShouldFailProps {
|
|
108
|
+
/**
|
|
109
|
+
* Allows to invert the behaviour of when a check is considered to fail.
|
|
110
|
+
* Useful for validating error status codes like 404 or 500.
|
|
111
|
+
* When set to true, the check passes when it would normally fail, and
|
|
112
|
+
* fails when it would normally pass.
|
|
113
|
+
*
|
|
114
|
+
* Only available in ApiCheck, UrlMonitor and TcpMonitor.
|
|
115
|
+
*
|
|
116
|
+
* @defaultValue false
|
|
117
|
+
* @example
|
|
118
|
+
* ```typescript
|
|
119
|
+
* // Check that expects a 404 status - must set shouldFail: true
|
|
120
|
+
* shouldFail: true,
|
|
121
|
+
* request: {
|
|
122
|
+
* method: 'GET',
|
|
123
|
+
* url: 'https://api.example.com/nonexistent',
|
|
124
|
+
* assertions: [AssertionBuilder.statusCode().equals(404)]
|
|
125
|
+
* }
|
|
126
|
+
* ```
|
|
127
|
+
*/
|
|
128
|
+
shouldFail?: boolean;
|
|
129
|
+
}
|
|
107
130
|
/**
|
|
108
131
|
* Base configuration properties for all check types.
|
|
109
132
|
* These properties are inherited by ApiCheck, BrowserCheck, and other check types.
|
|
@@ -136,34 +159,14 @@ export interface CheckProps {
|
|
|
136
159
|
* @defaultValue false
|
|
137
160
|
*/
|
|
138
161
|
muted?: boolean;
|
|
139
|
-
/**
|
|
140
|
-
* Setting this to "true" will trigger a retry when a check fails from the failing region and another,
|
|
141
|
-
* randomly selected region before marking the check as failed.
|
|
142
|
-
* @deprecated Use {@link retryStrategy} instead.
|
|
143
|
-
*/
|
|
144
|
-
doubleCheck?: boolean;
|
|
145
|
-
/**
|
|
146
|
-
* Allows to invert the behaviour of when a check is considered to fail.
|
|
147
|
-
* Useful for validating error status codes like 404 or 500.
|
|
148
|
-
* This only applies to API Checks. When set to true, the check passes when
|
|
149
|
-
* it would normally fail, and fails when it would normally pass.
|
|
150
|
-
*
|
|
151
|
-
* @defaultValue false
|
|
152
|
-
* @example
|
|
153
|
-
* ```typescript
|
|
154
|
-
* // Check that expects a 404 status - must set shouldFail: true
|
|
155
|
-
* shouldFail: true,
|
|
156
|
-
* request: {
|
|
157
|
-
* method: 'GET',
|
|
158
|
-
* url: 'https://api.example.com/nonexistent',
|
|
159
|
-
* assertions: [AssertionBuilder.statusCode().equals(404)]
|
|
160
|
-
* }
|
|
161
|
-
* ```
|
|
162
|
-
*/
|
|
163
|
-
shouldFail?: boolean;
|
|
164
162
|
/**
|
|
165
163
|
* An array of one or more data center locations where to run this check.
|
|
166
164
|
*
|
|
165
|
+
* A deployed check without any location or private location, on the
|
|
166
|
+
* check, its group, or in the `checks` defaults of checkly.config.ts,
|
|
167
|
+
* runs in a location chosen by Checkly, and deploying it reports a
|
|
168
|
+
* warning. Test-only checks and heartbeat monitors are exempt.
|
|
169
|
+
*
|
|
167
170
|
* @example ['us-east-1', 'eu-west-1', 'ap-southeast-1']
|
|
168
171
|
* @see {@link https://www.checklyhq.com/docs/concepts/locations/ | Global Locations}
|
|
169
172
|
*/
|
|
@@ -200,11 +203,6 @@ export interface CheckProps {
|
|
|
200
203
|
* ```
|
|
201
204
|
*/
|
|
202
205
|
frequency?: number | Frequency;
|
|
203
|
-
/**
|
|
204
|
-
* The id of the check group this check is part of. Set this by calling `someGroup.ref()`
|
|
205
|
-
* @deprecated Use {@link group} instead.
|
|
206
|
-
*/
|
|
207
|
-
groupId?: Ref;
|
|
208
206
|
/**
|
|
209
207
|
* The CheckGroup that this check is part of.
|
|
210
208
|
* Groups allow you to organize related checks and apply common settings.
|
|
@@ -267,6 +265,10 @@ export interface CheckProps {
|
|
|
267
265
|
/**
|
|
268
266
|
* Sets a retry policy for the check. Use RetryStrategyBuilder to create a retry policy.
|
|
269
267
|
*
|
|
268
|
+
* If neither the check nor a project or group default sets one, the check
|
|
269
|
+
* retries once, immediately, in a different location:
|
|
270
|
+
* `RetryStrategyBuilder.singleRetry({ baseBackoffSeconds: 0, sameRegion: false })`.
|
|
271
|
+
*
|
|
270
272
|
* @example
|
|
271
273
|
* ```typescript
|
|
272
274
|
* retryStrategy: RetryStrategyBuilder.fixedStrategy({
|
|
@@ -298,6 +300,11 @@ export declare abstract class Check extends Construct {
|
|
|
298
300
|
description?: string | null;
|
|
299
301
|
activated?: boolean;
|
|
300
302
|
muted?: boolean;
|
|
303
|
+
/**
|
|
304
|
+
* Not part of the props type, since `retryStrategy` replaces it. Plain
|
|
305
|
+
* JavaScript or a type assertion can still pass it, which validation
|
|
306
|
+
* reports as an error.
|
|
307
|
+
*/
|
|
301
308
|
doubleCheck?: boolean;
|
|
302
309
|
shouldFail?: boolean;
|
|
303
310
|
locations?: Array<keyof Region>;
|
|
@@ -313,12 +320,21 @@ export declare abstract class Check extends Construct {
|
|
|
313
320
|
useGlobalAlertSettings?: boolean;
|
|
314
321
|
runParallel?: boolean;
|
|
315
322
|
triggerIncident?: IncidentTrigger;
|
|
323
|
+
/**
|
|
324
|
+
* The declaring file relative to the directory the project is parsed
|
|
325
|
+
* from; `checkly test <file>` filters on it and reporters group by it.
|
|
326
|
+
* Internal.
|
|
327
|
+
*/
|
|
316
328
|
__checkFilePath?: string;
|
|
317
329
|
static readonly __checklyType = "check";
|
|
318
|
-
protected constructor(logicalId: string, props: CheckProps);
|
|
330
|
+
protected constructor(logicalId: string, props: CheckProps & ShouldFailProps);
|
|
319
331
|
protected validateDoubleCheck(diagnostics: Diagnostics): Promise<void>;
|
|
320
332
|
protected validateRetryStrategyOnlyOn(diagnostics: Diagnostics): Promise<void>;
|
|
321
333
|
protected supportsOnlyOnNetworkErrorRetryStrategy(): boolean;
|
|
334
|
+
protected supportsShouldFail(): boolean;
|
|
335
|
+
protected validateShouldFail(diagnostics: Diagnostics): void;
|
|
336
|
+
protected validateRemovedGroupId(diagnostics: Diagnostics): void;
|
|
337
|
+
protected validateRunLocations(diagnostics: Diagnostics): void;
|
|
322
338
|
protected get checkIntent(): CheckIntent | null | undefined;
|
|
323
339
|
protected set checkIntent(intent: CheckIntent | null | undefined);
|
|
324
340
|
protected get checkAiAutoRepairEnabled(): boolean | null | undefined;
|
|
@@ -328,7 +344,7 @@ export declare abstract class Check extends Construct {
|
|
|
328
344
|
private validateIntentStatement;
|
|
329
345
|
validate(diagnostics: Diagnostics): Promise<void>;
|
|
330
346
|
protected configDefaultsGetter(props: CheckProps): ConfigDefaultsGetter<CheckConfigDefaults>;
|
|
331
|
-
protected applyConfigDefaults<T extends CheckProps>(props: T): T;
|
|
347
|
+
protected applyConfigDefaults<T extends CheckProps & ShouldFailProps>(props: T): T;
|
|
332
348
|
/**
|
|
333
349
|
* Creates alert channel subscriptions for this check.
|
|
334
350
|
* Links the check to its configured alert channels to send notifications.
|
|
@@ -348,81 +364,14 @@ export declare abstract class Check extends Construct {
|
|
|
348
364
|
* @returns The absolute path to the check file, or undefined if not set
|
|
349
365
|
*/
|
|
350
366
|
getSourceFile(): string | undefined;
|
|
367
|
+
/**
|
|
368
|
+
* The retry strategy the check gets when neither its code nor a project or
|
|
369
|
+
* group default sets one; `undefined` for a check type without retries.
|
|
370
|
+
*/
|
|
371
|
+
protected defaultRetryStrategy(): CheckRetryStrategy | undefined;
|
|
351
372
|
synthesize(): {
|
|
352
|
-
activated: boolean | undefined;
|
|
353
|
-
muted: boolean | undefined;
|
|
354
|
-
shouldFail: boolean | undefined;
|
|
355
|
-
locations: (keyof Region)[] | undefined;
|
|
356
|
-
privateLocations: undefined;
|
|
357
|
-
tags: string[] | undefined;
|
|
358
|
-
frequency: number | undefined;
|
|
359
|
-
frequencyOffset: number | undefined;
|
|
360
|
-
groupId: Ref | null;
|
|
361
|
-
retryStrategy: LinearRetryStrategy | ExponentialRetryStrategy | FixedRetryStrategy | SingleRetryRetryStrategy | null | undefined;
|
|
362
|
-
doubleCheck: boolean | undefined;
|
|
363
|
-
alertSettings: AlertEscalation | undefined;
|
|
364
|
-
useGlobalAlertSettings: boolean | undefined;
|
|
365
|
-
runParallel: boolean | undefined;
|
|
366
|
-
triggerIncident: {
|
|
367
|
-
serviceId: Ref;
|
|
368
|
-
severity: "MINOR" | "MEDIUM" | "MAJOR" | "CRITICAL";
|
|
369
|
-
name: string;
|
|
370
|
-
description: string;
|
|
371
|
-
notifySubscribers: boolean;
|
|
372
|
-
} | undefined;
|
|
373
|
-
aiAutoRepairEnabled?: undefined;
|
|
374
|
-
intent?: undefined;
|
|
375
|
-
description?: string | undefined;
|
|
376
373
|
name: string;
|
|
377
|
-
|
|
378
|
-
activated: boolean | undefined;
|
|
379
|
-
muted: boolean | undefined;
|
|
380
|
-
shouldFail: boolean | undefined;
|
|
381
|
-
locations: (keyof Region)[] | undefined;
|
|
382
|
-
privateLocations: undefined;
|
|
383
|
-
tags: string[] | undefined;
|
|
384
|
-
frequency: number | undefined;
|
|
385
|
-
frequencyOffset: number | undefined;
|
|
386
|
-
groupId: Ref | null;
|
|
387
|
-
retryStrategy: LinearRetryStrategy | ExponentialRetryStrategy | FixedRetryStrategy | SingleRetryRetryStrategy | null | undefined;
|
|
388
|
-
doubleCheck: boolean | undefined;
|
|
389
|
-
alertSettings: AlertEscalation | undefined;
|
|
390
|
-
useGlobalAlertSettings: boolean | undefined;
|
|
391
|
-
runParallel: boolean | undefined;
|
|
392
|
-
triggerIncident: {
|
|
393
|
-
serviceId: Ref;
|
|
394
|
-
severity: "MINOR" | "MEDIUM" | "MAJOR" | "CRITICAL";
|
|
395
|
-
name: string;
|
|
396
|
-
description: string;
|
|
397
|
-
notifySubscribers: boolean;
|
|
398
|
-
} | undefined;
|
|
399
|
-
aiAutoRepairEnabled: boolean | null;
|
|
400
|
-
intent?: undefined;
|
|
401
|
-
description?: string | undefined;
|
|
402
|
-
name: string;
|
|
403
|
-
} | {
|
|
404
|
-
activated: boolean | undefined;
|
|
405
|
-
muted: boolean | undefined;
|
|
406
|
-
shouldFail: boolean | undefined;
|
|
407
|
-
locations: (keyof Region)[] | undefined;
|
|
408
|
-
privateLocations: undefined;
|
|
409
|
-
tags: string[] | undefined;
|
|
410
|
-
frequency: number | undefined;
|
|
411
|
-
frequencyOffset: number | undefined;
|
|
412
|
-
groupId: Ref | null;
|
|
413
|
-
retryStrategy: LinearRetryStrategy | ExponentialRetryStrategy | FixedRetryStrategy | SingleRetryRetryStrategy | null | undefined;
|
|
414
|
-
doubleCheck: boolean | undefined;
|
|
415
|
-
alertSettings: AlertEscalation | undefined;
|
|
416
|
-
useGlobalAlertSettings: boolean | undefined;
|
|
417
|
-
runParallel: boolean | undefined;
|
|
418
|
-
triggerIncident: {
|
|
419
|
-
serviceId: Ref;
|
|
420
|
-
severity: "MINOR" | "MEDIUM" | "MAJOR" | "CRITICAL";
|
|
421
|
-
name: string;
|
|
422
|
-
description: string;
|
|
423
|
-
notifySubscribers: boolean;
|
|
424
|
-
} | undefined;
|
|
425
|
-
aiAutoRepairEnabled?: undefined;
|
|
374
|
+
description: string | null;
|
|
426
375
|
intent: {
|
|
427
376
|
goal: string;
|
|
428
377
|
constraints: {
|
|
@@ -430,9 +379,7 @@ export declare abstract class Check extends Construct {
|
|
|
430
379
|
statement: string;
|
|
431
380
|
}[];
|
|
432
381
|
} | null;
|
|
433
|
-
|
|
434
|
-
name: string;
|
|
435
|
-
} | {
|
|
382
|
+
aiAutoRepairEnabled: boolean | null;
|
|
436
383
|
activated: boolean | undefined;
|
|
437
384
|
muted: boolean | undefined;
|
|
438
385
|
shouldFail: boolean | undefined;
|
|
@@ -442,8 +389,8 @@ export declare abstract class Check extends Construct {
|
|
|
442
389
|
frequency: number | undefined;
|
|
443
390
|
frequencyOffset: number | undefined;
|
|
444
391
|
groupId: Ref | null;
|
|
445
|
-
retryStrategy: LinearRetryStrategy | ExponentialRetryStrategy | FixedRetryStrategy | SingleRetryRetryStrategy | null
|
|
446
|
-
doubleCheck: boolean
|
|
392
|
+
retryStrategy: LinearRetryStrategy | ExponentialRetryStrategy | FixedRetryStrategy | SingleRetryRetryStrategy | null;
|
|
393
|
+
doubleCheck: boolean;
|
|
447
394
|
alertSettings: AlertEscalation | undefined;
|
|
448
395
|
useGlobalAlertSettings: boolean | undefined;
|
|
449
396
|
runParallel: boolean | undefined;
|
|
@@ -454,16 +401,6 @@ export declare abstract class Check extends Construct {
|
|
|
454
401
|
description: string;
|
|
455
402
|
notifySubscribers: boolean;
|
|
456
403
|
} | undefined;
|
|
457
|
-
aiAutoRepairEnabled: boolean | null;
|
|
458
|
-
intent: {
|
|
459
|
-
goal: string;
|
|
460
|
-
constraints: {
|
|
461
|
-
type: CheckIntentConstraintType;
|
|
462
|
-
statement: string;
|
|
463
|
-
}[];
|
|
464
|
-
} | null;
|
|
465
|
-
description?: string | undefined;
|
|
466
|
-
name: string;
|
|
467
404
|
};
|
|
468
405
|
}
|
|
469
406
|
export interface RuntimeCheckProps extends CheckProps, CheckIntentProps {
|
|
@@ -499,84 +436,8 @@ export declare abstract class RuntimeCheck extends Check {
|
|
|
499
436
|
synthesize(): {
|
|
500
437
|
runtimeId: string | undefined;
|
|
501
438
|
environmentVariables: import("./key-value-pair.js").default[] | undefined;
|
|
502
|
-
activated: boolean | undefined;
|
|
503
|
-
muted: boolean | undefined;
|
|
504
|
-
shouldFail: boolean | undefined;
|
|
505
|
-
locations: (keyof Region)[] | undefined;
|
|
506
|
-
privateLocations: undefined;
|
|
507
|
-
tags: string[] | undefined;
|
|
508
|
-
frequency: number | undefined;
|
|
509
|
-
frequencyOffset: number | undefined;
|
|
510
|
-
groupId: Ref | null;
|
|
511
|
-
retryStrategy: LinearRetryStrategy | ExponentialRetryStrategy | FixedRetryStrategy | SingleRetryRetryStrategy | null | undefined;
|
|
512
|
-
doubleCheck: boolean | undefined;
|
|
513
|
-
alertSettings: AlertEscalation | undefined;
|
|
514
|
-
useGlobalAlertSettings: boolean | undefined;
|
|
515
|
-
runParallel: boolean | undefined;
|
|
516
|
-
triggerIncident: {
|
|
517
|
-
serviceId: Ref;
|
|
518
|
-
severity: "MINOR" | "MEDIUM" | "MAJOR" | "CRITICAL";
|
|
519
|
-
name: string;
|
|
520
|
-
description: string;
|
|
521
|
-
notifySubscribers: boolean;
|
|
522
|
-
} | undefined;
|
|
523
|
-
aiAutoRepairEnabled?: undefined;
|
|
524
|
-
intent?: undefined;
|
|
525
|
-
description?: string | undefined;
|
|
526
|
-
name: string;
|
|
527
|
-
} | {
|
|
528
|
-
runtimeId: string | undefined;
|
|
529
|
-
environmentVariables: import("./key-value-pair.js").default[] | undefined;
|
|
530
|
-
activated: boolean | undefined;
|
|
531
|
-
muted: boolean | undefined;
|
|
532
|
-
shouldFail: boolean | undefined;
|
|
533
|
-
locations: (keyof Region)[] | undefined;
|
|
534
|
-
privateLocations: undefined;
|
|
535
|
-
tags: string[] | undefined;
|
|
536
|
-
frequency: number | undefined;
|
|
537
|
-
frequencyOffset: number | undefined;
|
|
538
|
-
groupId: Ref | null;
|
|
539
|
-
retryStrategy: LinearRetryStrategy | ExponentialRetryStrategy | FixedRetryStrategy | SingleRetryRetryStrategy | null | undefined;
|
|
540
|
-
doubleCheck: boolean | undefined;
|
|
541
|
-
alertSettings: AlertEscalation | undefined;
|
|
542
|
-
useGlobalAlertSettings: boolean | undefined;
|
|
543
|
-
runParallel: boolean | undefined;
|
|
544
|
-
triggerIncident: {
|
|
545
|
-
serviceId: Ref;
|
|
546
|
-
severity: "MINOR" | "MEDIUM" | "MAJOR" | "CRITICAL";
|
|
547
|
-
name: string;
|
|
548
|
-
description: string;
|
|
549
|
-
notifySubscribers: boolean;
|
|
550
|
-
} | undefined;
|
|
551
|
-
aiAutoRepairEnabled: boolean | null;
|
|
552
|
-
intent?: undefined;
|
|
553
|
-
description?: string | undefined;
|
|
554
439
|
name: string;
|
|
555
|
-
|
|
556
|
-
runtimeId: string | undefined;
|
|
557
|
-
environmentVariables: import("./key-value-pair.js").default[] | undefined;
|
|
558
|
-
activated: boolean | undefined;
|
|
559
|
-
muted: boolean | undefined;
|
|
560
|
-
shouldFail: boolean | undefined;
|
|
561
|
-
locations: (keyof Region)[] | undefined;
|
|
562
|
-
privateLocations: undefined;
|
|
563
|
-
tags: string[] | undefined;
|
|
564
|
-
frequency: number | undefined;
|
|
565
|
-
frequencyOffset: number | undefined;
|
|
566
|
-
groupId: Ref | null;
|
|
567
|
-
retryStrategy: LinearRetryStrategy | ExponentialRetryStrategy | FixedRetryStrategy | SingleRetryRetryStrategy | null | undefined;
|
|
568
|
-
doubleCheck: boolean | undefined;
|
|
569
|
-
alertSettings: AlertEscalation | undefined;
|
|
570
|
-
useGlobalAlertSettings: boolean | undefined;
|
|
571
|
-
runParallel: boolean | undefined;
|
|
572
|
-
triggerIncident: {
|
|
573
|
-
serviceId: Ref;
|
|
574
|
-
severity: "MINOR" | "MEDIUM" | "MAJOR" | "CRITICAL";
|
|
575
|
-
name: string;
|
|
576
|
-
description: string;
|
|
577
|
-
notifySubscribers: boolean;
|
|
578
|
-
} | undefined;
|
|
579
|
-
aiAutoRepairEnabled?: undefined;
|
|
440
|
+
description: string | null;
|
|
580
441
|
intent: {
|
|
581
442
|
goal: string;
|
|
582
443
|
constraints: {
|
|
@@ -584,11 +445,7 @@ export declare abstract class RuntimeCheck extends Check {
|
|
|
584
445
|
statement: string;
|
|
585
446
|
}[];
|
|
586
447
|
} | null;
|
|
587
|
-
|
|
588
|
-
name: string;
|
|
589
|
-
} | {
|
|
590
|
-
runtimeId: string | undefined;
|
|
591
|
-
environmentVariables: import("./key-value-pair.js").default[] | undefined;
|
|
448
|
+
aiAutoRepairEnabled: boolean | null;
|
|
592
449
|
activated: boolean | undefined;
|
|
593
450
|
muted: boolean | undefined;
|
|
594
451
|
shouldFail: boolean | undefined;
|
|
@@ -598,8 +455,8 @@ export declare abstract class RuntimeCheck extends Check {
|
|
|
598
455
|
frequency: number | undefined;
|
|
599
456
|
frequencyOffset: number | undefined;
|
|
600
457
|
groupId: Ref | null;
|
|
601
|
-
retryStrategy: LinearRetryStrategy | ExponentialRetryStrategy | FixedRetryStrategy | SingleRetryRetryStrategy | null
|
|
602
|
-
doubleCheck: boolean
|
|
458
|
+
retryStrategy: LinearRetryStrategy | ExponentialRetryStrategy | FixedRetryStrategy | SingleRetryRetryStrategy | null;
|
|
459
|
+
doubleCheck: boolean;
|
|
603
460
|
alertSettings: AlertEscalation | undefined;
|
|
604
461
|
useGlobalAlertSettings: boolean | undefined;
|
|
605
462
|
runParallel: boolean | undefined;
|
|
@@ -610,16 +467,6 @@ export declare abstract class RuntimeCheck extends Check {
|
|
|
610
467
|
description: string;
|
|
611
468
|
notifySubscribers: boolean;
|
|
612
469
|
} | undefined;
|
|
613
|
-
aiAutoRepairEnabled: boolean | null;
|
|
614
|
-
intent: {
|
|
615
|
-
goal: string;
|
|
616
|
-
constraints: {
|
|
617
|
-
type: CheckIntentConstraintType;
|
|
618
|
-
statement: string;
|
|
619
|
-
}[];
|
|
620
|
-
} | null;
|
|
621
|
-
description?: string | undefined;
|
|
622
|
-
name: string;
|
|
623
470
|
};
|
|
624
471
|
}
|
|
625
472
|
/**
|
|
@@ -632,4 +479,5 @@ export declare abstract class RepairableRuntimeCheck extends RuntimeCheck {
|
|
|
632
479
|
get aiAutoRepairEnabled(): boolean | null | undefined;
|
|
633
480
|
set aiAutoRepairEnabled(aiAutoRepairEnabled: boolean | null | undefined);
|
|
634
481
|
protected constructor(logicalId: string, props: RuntimeCheckProps & AutomaticCheckRepairProps);
|
|
482
|
+
validate(diagnostics: Diagnostics): Promise<void>;
|
|
635
483
|
}
|
package/dist/constructs/check.js
CHANGED
|
@@ -4,8 +4,12 @@ import { AlertChannelSubscription } from './alert-channel-subscription.js';
|
|
|
4
4
|
import { Session } from './session.js';
|
|
5
5
|
import { PrivateLocationCheckAssignment } from './private-location-check-assignment.js';
|
|
6
6
|
import { makeConfigDefaultsGetter } from './check-config.js';
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { validateRemovedDoubleCheck } from './internal/common-diagnostics.js';
|
|
8
|
+
import { SINGLE_RETRY_ELSEWHERE } from './internal/default-retry-strategy.js';
|
|
9
|
+
import { InvalidPropertyValueDiagnostic, MissingRunLocationDiagnostic, RemovedPropertyDiagnostic, UnsupportedPropertyDiagnostic, } from './construct-diagnostics.js';
|
|
10
|
+
function hasRunLocation({ locations, privateLocations }) {
|
|
11
|
+
return Boolean(locations?.length || privateLocations?.length);
|
|
12
|
+
}
|
|
9
13
|
function isFrequencyLike(value) {
|
|
10
14
|
if (typeof value !== 'object' || value === null) {
|
|
11
15
|
return false;
|
|
@@ -19,6 +23,11 @@ export class Check extends Construct {
|
|
|
19
23
|
description;
|
|
20
24
|
activated;
|
|
21
25
|
muted;
|
|
26
|
+
/**
|
|
27
|
+
* Not part of the props type, since `retryStrategy` replaces it. Plain
|
|
28
|
+
* JavaScript or a type assertion can still pass it, which validation
|
|
29
|
+
* reports as an error.
|
|
30
|
+
*/
|
|
22
31
|
doubleCheck;
|
|
23
32
|
shouldFail;
|
|
24
33
|
locations;
|
|
@@ -34,19 +43,27 @@ export class Check extends Construct {
|
|
|
34
43
|
useGlobalAlertSettings;
|
|
35
44
|
runParallel;
|
|
36
45
|
triggerIncident;
|
|
37
|
-
|
|
46
|
+
/**
|
|
47
|
+
* The declaring file relative to the directory the project is parsed
|
|
48
|
+
* from; `checkly test <file>` filters on it and reporters group by it.
|
|
49
|
+
* Internal.
|
|
50
|
+
*/
|
|
51
|
+
__checkFilePath;
|
|
38
52
|
#intent;
|
|
39
53
|
#aiAutoRepairEnabled;
|
|
54
|
+
#removedGroupIdSet;
|
|
55
|
+
#group;
|
|
40
56
|
static __checklyType = 'check';
|
|
41
57
|
constructor(logicalId, props) {
|
|
42
58
|
super(Check.__checklyType, logicalId);
|
|
59
|
+
// Properties that are still missing after the defaults are applied are
|
|
60
|
+
// reported by validate().
|
|
43
61
|
const config = this.applyConfigDefaults(props);
|
|
44
|
-
// TODO: Throw an error if required properties are still missing after applying the defaults.
|
|
45
62
|
this.name = config.name;
|
|
46
63
|
this.description = config.description;
|
|
47
64
|
this.activated = config.activated;
|
|
48
65
|
this.muted = config.muted;
|
|
49
|
-
this.doubleCheck =
|
|
66
|
+
this.doubleCheck = props.doubleCheck;
|
|
50
67
|
this.shouldFail = config.shouldFail;
|
|
51
68
|
this.locations = config.locations;
|
|
52
69
|
this.privateLocations = config.privateLocations;
|
|
@@ -61,19 +78,21 @@ export class Check extends Construct {
|
|
|
61
78
|
// Alert channel subscriptions will be synthesized separately in the Project construct.
|
|
62
79
|
// This is due to the way things are organized on the BE.
|
|
63
80
|
this.alertChannels = config.alertChannels ?? [];
|
|
64
|
-
|
|
65
|
-
this.groupId = config.group?.ref()
|
|
66
|
-
//
|
|
81
|
+
this.#group = config.group;
|
|
82
|
+
this.groupId = config.group?.ref();
|
|
83
|
+
// The props types no longer have `groupId`, but plain JavaScript or a
|
|
84
|
+
// type assertion can still pass it; validate() reports it.
|
|
85
|
+
this.#removedGroupIdSet = props.groupId !== undefined;
|
|
67
86
|
this.testOnly = config.testOnly ?? false;
|
|
68
87
|
this.retryStrategy = config.retryStrategy;
|
|
69
88
|
this.alertSettings = config.alertEscalationPolicy;
|
|
70
89
|
this.useGlobalAlertSettings = !this.alertSettings;
|
|
71
90
|
this.runParallel = config.runParallel ?? false;
|
|
72
91
|
this.triggerIncident = config.triggerIncident;
|
|
73
|
-
this.__checkFilePath = Session.
|
|
92
|
+
this.__checkFilePath = Session.relativeCheckFilePath(this.checkFileAbsolutePath);
|
|
74
93
|
}
|
|
75
94
|
async validateDoubleCheck(diagnostics) {
|
|
76
|
-
await
|
|
95
|
+
await validateRemovedDoubleCheck(diagnostics, this);
|
|
77
96
|
}
|
|
78
97
|
// eslint-disable-next-line require-await
|
|
79
98
|
async validateRetryStrategyOnlyOn(diagnostics) {
|
|
@@ -95,6 +114,37 @@ export class Check extends Construct {
|
|
|
95
114
|
supportsOnlyOnNetworkErrorRetryStrategy() {
|
|
96
115
|
return false;
|
|
97
116
|
}
|
|
117
|
+
supportsShouldFail() {
|
|
118
|
+
return false;
|
|
119
|
+
}
|
|
120
|
+
// The props types of the check types without `shouldFail` leave it out,
|
|
121
|
+
// but plain JavaScript or a type assertion can still set it.
|
|
122
|
+
validateShouldFail(diagnostics) {
|
|
123
|
+
if (this.shouldFail !== undefined && !this.supportsShouldFail()) {
|
|
124
|
+
diagnostics.add(new UnsupportedPropertyDiagnostic('shouldFail', new Error(`This property is only available in the ApiCheck, UrlMonitor and TcpMonitor constructs.`)));
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
validateRemovedGroupId(diagnostics) {
|
|
128
|
+
if (this.#removedGroupIdSet) {
|
|
129
|
+
diagnostics.add(new RemovedPropertyDiagnostic('groupId', new Error(`Use the "group" property with the group construct instead, e.g. `
|
|
130
|
+
+ `replace "groupId: myGroup.ref()" with "group: myGroup".`)));
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
// Without any location, deploy still accepts a check and it silently runs
|
|
134
|
+
// in a location Checkly picks. A group's locations apply to its checks,
|
|
135
|
+
// and test-only checks are never deployed.
|
|
136
|
+
validateRunLocations(diagnostics) {
|
|
137
|
+
if (!Session.warnOnMissingCheckLocations || this.testOnly || hasRunLocation(this)) {
|
|
138
|
+
return;
|
|
139
|
+
}
|
|
140
|
+
// A group the project only references, such as CheckGroupV2.fromId(),
|
|
141
|
+
// may have locations the CLI cannot see.
|
|
142
|
+
const group = this.#group;
|
|
143
|
+
if (group && (!group.member || hasRunLocation(group))) {
|
|
144
|
+
return;
|
|
145
|
+
}
|
|
146
|
+
diagnostics.add(new MissingRunLocationDiagnostic());
|
|
147
|
+
}
|
|
98
148
|
get checkIntent() {
|
|
99
149
|
return this.#intent;
|
|
100
150
|
}
|
|
@@ -194,6 +244,9 @@ export class Check extends Construct {
|
|
|
194
244
|
await super.validate(diagnostics);
|
|
195
245
|
await this.validateDoubleCheck(diagnostics);
|
|
196
246
|
await this.validateRetryStrategyOnlyOn(diagnostics);
|
|
247
|
+
this.validateShouldFail(diagnostics);
|
|
248
|
+
this.validateRemovedGroupId(diagnostics);
|
|
249
|
+
this.validateRunLocations(diagnostics);
|
|
197
250
|
this.validateIntent(diagnostics);
|
|
198
251
|
}
|
|
199
252
|
configDefaultsGetter(props) {
|
|
@@ -205,13 +258,16 @@ export class Check extends Construct {
|
|
|
205
258
|
config.activated ??= defaults('activated');
|
|
206
259
|
config.alertChannels ??= defaults('alertChannels');
|
|
207
260
|
config.alertEscalationPolicy ??= defaults('alertEscalationPolicy');
|
|
208
|
-
config.doubleCheck ??= defaults('doubleCheck');
|
|
209
261
|
config.frequency ??= defaults('frequency');
|
|
210
262
|
config.locations ??= defaults('locations');
|
|
211
263
|
config.muted ??= defaults('muted');
|
|
212
264
|
config.privateLocations ??= defaults('privateLocations');
|
|
213
265
|
config.retryStrategy ??= defaults('retryStrategy');
|
|
214
|
-
|
|
266
|
+
// A project-wide `shouldFail` default only reaches the check types that
|
|
267
|
+
// support the property; the others never take it.
|
|
268
|
+
if (this.supportsShouldFail()) {
|
|
269
|
+
config.shouldFail ??= defaults('shouldFail');
|
|
270
|
+
}
|
|
215
271
|
config.tags ??= defaults('tags');
|
|
216
272
|
return config;
|
|
217
273
|
}
|
|
@@ -263,7 +319,15 @@ export class Check extends Construct {
|
|
|
263
319
|
getSourceFile() {
|
|
264
320
|
return this.__checkFilePath;
|
|
265
321
|
}
|
|
322
|
+
/**
|
|
323
|
+
* The retry strategy the check gets when neither its code nor a project or
|
|
324
|
+
* group default sets one; `undefined` for a check type without retries.
|
|
325
|
+
*/
|
|
326
|
+
defaultRetryStrategy() {
|
|
327
|
+
return { ...SINGLE_RETRY_ELSEWHERE };
|
|
328
|
+
}
|
|
266
329
|
synthesize() {
|
|
330
|
+
const retryStrategy = this.retryStrategy ?? this.defaultRetryStrategy();
|
|
267
331
|
const triggerIncident = (() => {
|
|
268
332
|
if (this.triggerIncident) {
|
|
269
333
|
const { service, ...triggerIncident } = this.triggerIncident;
|
|
@@ -273,27 +337,25 @@ export class Check extends Construct {
|
|
|
273
337
|
};
|
|
274
338
|
}
|
|
275
339
|
})();
|
|
276
|
-
|
|
277
|
-
|
|
340
|
+
// Both are sent for every check class, at `null` when the code leaves them
|
|
341
|
+
// unset, so that a deploy owns them like every other property: the payload
|
|
342
|
+
// is a complete description of the check, and a value set in Checkly on a
|
|
343
|
+
// property the code does not set is cleared by the deploy (the plan lists
|
|
344
|
+
// it first). A class that does not expose the property sends `null` too.
|
|
345
|
+
const intent = this.#intent == null
|
|
346
|
+
? null
|
|
278
347
|
: {
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
:
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
type: constraint.type,
|
|
285
|
-
statement: constraint.statement.trim(),
|
|
286
|
-
})),
|
|
287
|
-
},
|
|
348
|
+
goal: this.#intent.goal.trim(),
|
|
349
|
+
constraints: (this.#intent.constraints ?? []).map(constraint => ({
|
|
350
|
+
type: constraint.type,
|
|
351
|
+
statement: constraint.statement.trim(),
|
|
352
|
+
})),
|
|
288
353
|
};
|
|
289
|
-
const automaticRepair = this.#aiAutoRepairEnabled === undefined
|
|
290
|
-
? {}
|
|
291
|
-
: { aiAutoRepairEnabled: this.#aiAutoRepairEnabled };
|
|
292
354
|
return {
|
|
293
355
|
name: this.name,
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
356
|
+
description: this.description ?? null,
|
|
357
|
+
intent,
|
|
358
|
+
aiAutoRepairEnabled: this.#aiAutoRepairEnabled ?? null,
|
|
297
359
|
activated: this.activated,
|
|
298
360
|
muted: this.muted,
|
|
299
361
|
shouldFail: this.shouldFail,
|
|
@@ -307,15 +369,15 @@ export class Check extends Construct {
|
|
|
307
369
|
// to make sure that the group gets unassigned from any group it may
|
|
308
370
|
// already have belonged to.
|
|
309
371
|
groupId: this.groupId ?? null,
|
|
310
|
-
// The backend doesn't actually support the `NO_RETRIES` type, it uses `null` instead.
|
|
311
|
-
|
|
372
|
+
// The backend doesn't actually support the `NO_RETRIES` type, it uses `null` instead. A check type
|
|
373
|
+
// without retries sends `null` too: deploy only updates the fields present in the payload, so leaving
|
|
374
|
+
// the key out would keep whatever strategy is already stored.
|
|
375
|
+
retryStrategy: retryStrategy === undefined || retryStrategy.type === 'NO_RETRIES'
|
|
312
376
|
? null
|
|
313
|
-
:
|
|
314
|
-
//
|
|
315
|
-
// The
|
|
316
|
-
doubleCheck:
|
|
317
|
-
? false
|
|
318
|
-
: this.doubleCheck,
|
|
377
|
+
: retryStrategy,
|
|
378
|
+
// The legacy flag the backend still takes defaults to `true`, and retries once beside a null strategy.
|
|
379
|
+
// The retry strategy alone decides, so the flag is always off.
|
|
380
|
+
doubleCheck: false,
|
|
319
381
|
alertSettings: this.alertSettings,
|
|
320
382
|
useGlobalAlertSettings: this.useGlobalAlertSettings,
|
|
321
383
|
runParallel: this.runParallel,
|
|
@@ -371,5 +433,12 @@ export class RepairableRuntimeCheck extends RuntimeCheck {
|
|
|
371
433
|
super(logicalId, props);
|
|
372
434
|
this.aiAutoRepairEnabled = props.aiAutoRepairEnabled;
|
|
373
435
|
}
|
|
436
|
+
async validate(diagnostics) {
|
|
437
|
+
await super.validate(diagnostics);
|
|
438
|
+
if (this.aiAutoRepairEnabled !== undefined && this.aiAutoRepairEnabled !== null
|
|
439
|
+
&& typeof this.aiAutoRepairEnabled !== 'boolean') {
|
|
440
|
+
diagnostics.add(new InvalidPropertyValueDiagnostic('aiAutoRepairEnabled', new Error('"aiAutoRepairEnabled" must be a boolean or null (inherit the account setting).')));
|
|
441
|
+
}
|
|
442
|
+
}
|
|
374
443
|
}
|
|
375
444
|
//# sourceMappingURL=check.js.map
|