checkly 7.5.5 → 7.6.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.
Files changed (39) hide show
  1. package/dist/commands/checks/get.d.ts +4 -0
  2. package/dist/commands/checks/get.js +42 -3
  3. package/dist/commands/checks/get.js.map +1 -1
  4. package/dist/commands/checks/list.js +2 -1
  5. package/dist/commands/checks/list.js.map +1 -1
  6. package/dist/commands/checks/stats.d.ts +22 -0
  7. package/dist/commands/checks/stats.js +207 -0
  8. package/dist/commands/checks/stats.js.map +1 -0
  9. package/dist/constants.d.ts +11 -4
  10. package/dist/constants.js +7 -1
  11. package/dist/constants.js.map +1 -1
  12. package/dist/constructs/multi-step-check-bundle.d.ts +1 -1
  13. package/dist/constructs/multi-step-check.d.ts +1 -1
  14. package/dist/formatters/analytics.d.ts +8 -0
  15. package/dist/formatters/analytics.js +234 -0
  16. package/dist/formatters/analytics.js.map +1 -0
  17. package/dist/formatters/batch-stats.d.ts +8 -0
  18. package/dist/formatters/batch-stats.js +190 -0
  19. package/dist/formatters/batch-stats.js.map +1 -0
  20. package/dist/formatters/check-result-detail.js +14 -2
  21. package/dist/formatters/check-result-detail.js.map +1 -1
  22. package/dist/formatters/checks.d.ts +1 -0
  23. package/dist/formatters/checks.js +2 -1
  24. package/dist/formatters/checks.js.map +1 -1
  25. package/dist/formatters/render.d.ts +2 -1
  26. package/dist/formatters/render.js +20 -4
  27. package/dist/formatters/render.js.map +1 -1
  28. package/dist/rest/analytics.d.ts +41 -0
  29. package/dist/rest/analytics.js +59 -0
  30. package/dist/rest/analytics.js.map +1 -0
  31. package/dist/rest/api.d.ts +4 -0
  32. package/dist/rest/api.js +5 -1
  33. package/dist/rest/api.js.map +1 -1
  34. package/dist/rest/batch-analytics.d.ts +25 -0
  35. package/dist/rest/batch-analytics.js +17 -0
  36. package/dist/rest/batch-analytics.js.map +1 -0
  37. package/dist/tsconfig.tsbuildinfo +1 -1
  38. package/oclif.manifest.json +352 -191
  39. package/package.json +1 -1
@@ -987,6 +987,52 @@
987
987
  "multiple": false,
988
988
  "type": "option"
989
989
  },
990
+ "stats-range": {
991
+ "description": "Time range for stats.",
992
+ "name": "stats-range",
993
+ "default": "last24Hours",
994
+ "hasDynamicHelp": false,
995
+ "multiple": false,
996
+ "options": [
997
+ "last24Hours",
998
+ "last7Days",
999
+ "last30Days",
1000
+ "thisWeek",
1001
+ "thisMonth",
1002
+ "lastWeek",
1003
+ "lastMonth"
1004
+ ],
1005
+ "type": "option"
1006
+ },
1007
+ "group-by": {
1008
+ "description": "Group stats by dimension.",
1009
+ "name": "group-by",
1010
+ "hasDynamicHelp": false,
1011
+ "multiple": false,
1012
+ "options": [
1013
+ "location",
1014
+ "statusCode"
1015
+ ],
1016
+ "type": "option"
1017
+ },
1018
+ "metrics": {
1019
+ "description": "Comma-separated list of metrics to show (overrides defaults).",
1020
+ "name": "metrics",
1021
+ "hasDynamicHelp": false,
1022
+ "multiple": false,
1023
+ "type": "option"
1024
+ },
1025
+ "filter-status": {
1026
+ "description": "Only include runs with this status in stats.",
1027
+ "name": "filter-status",
1028
+ "hasDynamicHelp": false,
1029
+ "multiple": false,
1030
+ "options": [
1031
+ "success",
1032
+ "failure"
1033
+ ],
1034
+ "type": "option"
1035
+ },
990
1036
  "output": {
991
1037
  "char": "o",
992
1038
  "description": "Output format.",
@@ -1071,12 +1117,12 @@
1071
1117
  "options": [
1072
1118
  "API",
1073
1119
  "BROWSER",
1074
- "MULTI_STEP",
1075
1120
  "HEARTBEAT",
1121
+ "MULTI_STEP",
1076
1122
  "PLAYWRIGHT",
1077
1123
  "TCP",
1078
- "DNS",
1079
1124
  "ICMP",
1125
+ "DNS",
1080
1126
  "URL"
1081
1127
  ],
1082
1128
  "type": "option"
@@ -1135,6 +1181,121 @@
1135
1181
  "list.js"
1136
1182
  ]
1137
1183
  },
1184
+ "checks:stats": {
1185
+ "aliases": [],
1186
+ "args": {
1187
+ "checkIds": {
1188
+ "description": "One or more check IDs to get stats for.",
1189
+ "name": "checkIds",
1190
+ "required": false
1191
+ }
1192
+ },
1193
+ "description": "Show analytics stats for your checks.",
1194
+ "flags": {
1195
+ "range": {
1196
+ "char": "r",
1197
+ "description": "Time range for stats.",
1198
+ "name": "range",
1199
+ "default": "last24Hours",
1200
+ "hasDynamicHelp": false,
1201
+ "multiple": false,
1202
+ "options": [
1203
+ "last24Hours",
1204
+ "last7Days",
1205
+ "thisWeek",
1206
+ "lastWeek",
1207
+ "lastMonth"
1208
+ ],
1209
+ "type": "option"
1210
+ },
1211
+ "limit": {
1212
+ "char": "l",
1213
+ "description": "Number of checks to return (1-100).",
1214
+ "name": "limit",
1215
+ "default": 25,
1216
+ "hasDynamicHelp": false,
1217
+ "multiple": false,
1218
+ "type": "option"
1219
+ },
1220
+ "page": {
1221
+ "char": "p",
1222
+ "description": "Page number.",
1223
+ "name": "page",
1224
+ "default": 1,
1225
+ "hasDynamicHelp": false,
1226
+ "multiple": false,
1227
+ "type": "option"
1228
+ },
1229
+ "tag": {
1230
+ "char": "t",
1231
+ "description": "Filter by tag. Can be specified multiple times.",
1232
+ "name": "tag",
1233
+ "hasDynamicHelp": false,
1234
+ "multiple": true,
1235
+ "type": "option"
1236
+ },
1237
+ "search": {
1238
+ "char": "s",
1239
+ "description": "Filter checks by name (case-insensitive).",
1240
+ "name": "search",
1241
+ "hasDynamicHelp": false,
1242
+ "multiple": false,
1243
+ "type": "option"
1244
+ },
1245
+ "type": {
1246
+ "description": "Filter by check type.",
1247
+ "name": "type",
1248
+ "hasDynamicHelp": false,
1249
+ "multiple": false,
1250
+ "options": [
1251
+ "API",
1252
+ "BROWSER",
1253
+ "HEARTBEAT",
1254
+ "MULTI_STEP",
1255
+ "PLAYWRIGHT",
1256
+ "TCP",
1257
+ "ICMP",
1258
+ "DNS",
1259
+ "URL"
1260
+ ],
1261
+ "type": "option"
1262
+ },
1263
+ "output": {
1264
+ "char": "o",
1265
+ "description": "Output format.",
1266
+ "name": "output",
1267
+ "default": "table",
1268
+ "hasDynamicHelp": false,
1269
+ "multiple": false,
1270
+ "options": [
1271
+ "table",
1272
+ "json",
1273
+ "md"
1274
+ ],
1275
+ "type": "option"
1276
+ }
1277
+ },
1278
+ "hasDynamicHelp": false,
1279
+ "hidden": false,
1280
+ "hiddenAliases": [],
1281
+ "id": "checks:stats",
1282
+ "pluginAlias": "checkly",
1283
+ "pluginName": "checkly",
1284
+ "pluginType": "core",
1285
+ "strict": false,
1286
+ "enableJsonFlag": false,
1287
+ "coreCommand": false,
1288
+ "readOnly": true,
1289
+ "destructive": false,
1290
+ "idempotent": true,
1291
+ "isESM": false,
1292
+ "relativePath": [
1293
+ "dist",
1294
+ "commands",
1295
+ "checks",
1296
+ "stats.js"
1297
+ ]
1298
+ },
1138
1299
  "debug:parse-file": {
1139
1300
  "aliases": [],
1140
1301
  "args": {},
@@ -1291,24 +1452,44 @@
1291
1452
  "parse-project.js"
1292
1453
  ]
1293
1454
  },
1294
- "import:apply": {
1455
+ "env:add": {
1295
1456
  "aliases": [],
1296
- "args": {},
1297
- "description": "Attach imported resources into your project in a pending state.",
1457
+ "args": {
1458
+ "key": {
1459
+ "description": "Environment variable key.",
1460
+ "name": "key",
1461
+ "required": true
1462
+ },
1463
+ "value": {
1464
+ "description": "Environment variable value.",
1465
+ "name": "value",
1466
+ "required": false
1467
+ }
1468
+ },
1469
+ "description": "Add environment variable via \"checkly env add <key> <value>\".",
1298
1470
  "flags": {
1299
- "config": {
1300
- "char": "c",
1301
- "description": "The Checkly CLI configuration file. If not passed, uses the checkly.config.ts|js file in the current directory.",
1302
- "name": "config",
1303
- "hasDynamicHelp": false,
1304
- "multiple": false,
1305
- "type": "option"
1471
+ "locked": {
1472
+ "char": "l",
1473
+ "description": "Indicate that the environment variable will be locked.",
1474
+ "name": "locked",
1475
+ "allowNo": false,
1476
+ "type": "boolean"
1477
+ },
1478
+ "secret": {
1479
+ "char": "s",
1480
+ "description": "Indicate that the environment variable will be secret.",
1481
+ "exclusive": [
1482
+ "locked"
1483
+ ],
1484
+ "name": "secret",
1485
+ "allowNo": false,
1486
+ "type": "boolean"
1306
1487
  }
1307
1488
  },
1308
1489
  "hasDynamicHelp": false,
1309
1490
  "hidden": false,
1310
1491
  "hiddenAliases": [],
1311
- "id": "import:apply",
1492
+ "id": "env:add",
1312
1493
  "pluginAlias": "checkly",
1313
1494
  "pluginName": "checkly",
1314
1495
  "pluginType": "core",
@@ -1322,168 +1503,118 @@
1322
1503
  "relativePath": [
1323
1504
  "dist",
1324
1505
  "commands",
1325
- "import",
1326
- "apply.js"
1506
+ "env",
1507
+ "add.js"
1327
1508
  ]
1328
1509
  },
1329
- "import:cancel": {
1510
+ "env:ls": {
1330
1511
  "aliases": [],
1331
1512
  "args": {},
1332
- "description": "Cancels an ongoing import plan that has not been committed yet.",
1333
- "flags": {
1334
- "config": {
1335
- "char": "c",
1336
- "description": "The Checkly CLI configuration file. If not passed, uses the checkly.config.ts|js file in the current directory.",
1337
- "name": "config",
1338
- "hasDynamicHelp": false,
1339
- "multiple": false,
1340
- "type": "option"
1341
- },
1342
- "all": {
1343
- "description": "Cancel all plans.",
1344
- "name": "all",
1345
- "allowNo": false,
1346
- "type": "boolean"
1347
- }
1348
- },
1513
+ "description": "List all Checkly environment variables via \"checkly env ls\".",
1514
+ "flags": {},
1349
1515
  "hasDynamicHelp": false,
1350
1516
  "hidden": false,
1351
1517
  "hiddenAliases": [],
1352
- "id": "import:cancel",
1518
+ "id": "env:ls",
1353
1519
  "pluginAlias": "checkly",
1354
1520
  "pluginName": "checkly",
1355
1521
  "pluginType": "core",
1356
1522
  "strict": true,
1357
1523
  "enableJsonFlag": false,
1358
1524
  "coreCommand": false,
1359
- "readOnly": false,
1525
+ "readOnly": true,
1360
1526
  "destructive": false,
1361
1527
  "idempotent": true,
1362
1528
  "isESM": false,
1363
1529
  "relativePath": [
1364
1530
  "dist",
1365
1531
  "commands",
1366
- "import",
1367
- "cancel.js"
1532
+ "env",
1533
+ "ls.js"
1368
1534
  ]
1369
1535
  },
1370
- "import:commit": {
1536
+ "env:pull": {
1371
1537
  "aliases": [],
1372
- "args": {},
1373
- "description": "Permanently commit imported resources into your project.",
1538
+ "args": {
1539
+ "filename": {
1540
+ "default": ".env",
1541
+ "description": "Filename of the generated file.",
1542
+ "name": "filename",
1543
+ "required": false
1544
+ }
1545
+ },
1546
+ "description": "Pull Checkly environment variables via \"checkly env pull <filename>\".",
1374
1547
  "flags": {
1375
- "config": {
1376
- "char": "c",
1377
- "description": "The Checkly CLI configuration file. If not passed, uses the checkly.config.ts|js file in the current directory.",
1378
- "name": "config",
1379
- "hasDynamicHelp": false,
1380
- "multiple": false,
1381
- "type": "option"
1548
+ "force": {
1549
+ "char": "f",
1550
+ "description": "Force to overwrite existing file.",
1551
+ "name": "force",
1552
+ "allowNo": false,
1553
+ "type": "boolean"
1382
1554
  }
1383
1555
  },
1384
1556
  "hasDynamicHelp": false,
1385
1557
  "hidden": false,
1386
1558
  "hiddenAliases": [],
1387
- "id": "import:commit",
1559
+ "id": "env:pull",
1388
1560
  "pluginAlias": "checkly",
1389
1561
  "pluginName": "checkly",
1390
1562
  "pluginType": "core",
1391
1563
  "strict": true,
1392
1564
  "enableJsonFlag": false,
1393
1565
  "coreCommand": false,
1394
- "readOnly": false,
1566
+ "readOnly": true,
1395
1567
  "destructive": false,
1396
- "idempotent": false,
1568
+ "idempotent": true,
1397
1569
  "isESM": false,
1398
1570
  "relativePath": [
1399
1571
  "dist",
1400
1572
  "commands",
1401
- "import",
1402
- "commit.js"
1573
+ "env",
1574
+ "pull.js"
1403
1575
  ]
1404
1576
  },
1405
- "import:plan": {
1577
+ "env:rm": {
1406
1578
  "aliases": [],
1407
1579
  "args": {
1408
- "resource": {
1409
- "description": "A specific resource to import.",
1410
- "name": "resource",
1411
- "required": false
1580
+ "key": {
1581
+ "description": "Environment variable key to remove.",
1582
+ "name": "key",
1583
+ "required": true
1412
1584
  }
1413
1585
  },
1414
- "description": "Import existing resources from your Checkly account to your project.\n\nBy default, all resources that can be imported will be imported. However, you\nmay fine-tune the process by including or excluding any combination of\nresources.\n\nThe import process consists of three steps:\n\n1. Creating a plan, which generates the appropriate code for your resources\n2. Applying the plan, which links your resources to the generated code\n3. Committing the plan, which finalizes the import session\n\nCREATING A PLAN\n\nCreating a plan carries no risk as no concrete links to your Checkly resources\nare made at this point. However, if you accidentally deploy the generated code\nbefore applying the plan, you will end up with duplicate resources and will\nnot be able to complete the import session without first deleting the\nduplicates.\n\nFor the curious, you may also preview the generated code with the '--preview'\noption. No plan will be created, allowing you to leisurely inspect the\ngenerated code. However keep in mind that you will need to create a plan to\nactually import any resources, at which point the code will be generated\nagain.\n\nYou may cancel any plan you've created without affecting any of the\nunderlying resources.\n\nAPPLYING A PLAN\n\nApplying a plan links your existing resources to the generated code. You\nshould carefully review the generated code to make sure that it contains the\nresources you expect before applying a plan. After a plan has been applied,\nany deployments of those resources will irreversibly modify the underlying\nCheckly resources. However, as a fail safe against concurrent use, any\ndeployments not including the imported resources will not delete the\nunderlying resources (or the links to the resources). This means that there\nis no need to block deployments while working on an import session.\n\nEven after you've applied a plan, you may still cancel it, which will unlink\nthe underlying resources from your project once more. However, keep in mind\nthat any changes to the resources that you've already deployed cannot be\nundone.\n\nCOMMITTING A PLAN\n\nFinally, committing a plan removes all fail safes and permanently links the\nimported resources to your project. Any resources you remove from your code\nwill result in the underlying resources also getting irrevocably deleted on\nthe next deploy. You should only commit your plan once you are sure that all\nfuture deployments include the imported resources.",
1586
+ "description": "Remove environment variable via \"checkly env rm <key>\".",
1415
1587
  "flags": {
1416
- "config": {
1417
- "char": "c",
1418
- "description": "The Checkly CLI configuration file. If not passed, uses the checkly.config.ts|js file in the current directory.",
1419
- "name": "config",
1420
- "hasDynamicHelp": false,
1421
- "multiple": false,
1422
- "type": "option"
1423
- },
1424
- "root": {
1425
- "description": "The root folder in which to write generated code files.",
1426
- "name": "root",
1427
- "default": "__checks__",
1428
- "hasDynamicHelp": false,
1429
- "multiple": false,
1430
- "type": "option"
1431
- },
1432
- "preview": {
1433
- "description": "Preview generated code without creating an actual import plan.",
1434
- "name": "preview",
1435
- "allowNo": false,
1436
- "type": "boolean"
1437
- },
1438
- "debug-import-plan": {
1439
- "description": "Output the import plan to a file.",
1440
- "hidden": true,
1441
- "name": "debug-import-plan",
1588
+ "force": {
1589
+ "char": "f",
1590
+ "description": "Force to skip the confirmation prompt.",
1591
+ "name": "force",
1442
1592
  "allowNo": false,
1443
1593
  "type": "boolean"
1444
- },
1445
- "debug-import-plan-input-file": {
1446
- "description": "A file to load an import plan from.",
1447
- "hidden": true,
1448
- "name": "debug-import-plan-input-file",
1449
- "hasDynamicHelp": false,
1450
- "multiple": false,
1451
- "type": "option"
1452
- },
1453
- "debug-import-plan-output-file": {
1454
- "description": "The file to output the import plan to.",
1455
- "hidden": true,
1456
- "name": "debug-import-plan-output-file",
1457
- "default": "./debug-import-plan.json",
1458
- "hasDynamicHelp": false,
1459
- "multiple": false,
1460
- "type": "option"
1461
1594
  }
1462
1595
  },
1463
1596
  "hasDynamicHelp": false,
1464
1597
  "hidden": false,
1465
- "hiddenAliases": [
1466
- "import"
1467
- ],
1468
- "id": "import:plan",
1598
+ "hiddenAliases": [],
1599
+ "id": "env:rm",
1469
1600
  "pluginAlias": "checkly",
1470
1601
  "pluginName": "checkly",
1471
1602
  "pluginType": "core",
1472
- "strict": false,
1603
+ "strict": true,
1473
1604
  "enableJsonFlag": false,
1474
1605
  "coreCommand": false,
1475
- "readOnly": true,
1476
- "destructive": false,
1477
- "idempotent": true,
1606
+ "readOnly": false,
1607
+ "destructive": true,
1608
+ "idempotent": false,
1478
1609
  "isESM": false,
1479
1610
  "relativePath": [
1480
1611
  "dist",
1481
1612
  "commands",
1482
- "import",
1483
- "plan.js"
1613
+ "env",
1614
+ "rm.js"
1484
1615
  ]
1485
1616
  },
1486
- "env:add": {
1617
+ "env:update": {
1487
1618
  "aliases": [],
1488
1619
  "args": {
1489
1620
  "key": {
@@ -1497,18 +1628,18 @@
1497
1628
  "required": false
1498
1629
  }
1499
1630
  },
1500
- "description": "Add environment variable via \"checkly env add <key> <value>\".",
1631
+ "description": "Update environment variable via \"checkly env update <key> <value>\".",
1501
1632
  "flags": {
1502
1633
  "locked": {
1503
1634
  "char": "l",
1504
- "description": "Indicate that the environment variable will be locked.",
1635
+ "description": "Indicate if environment variable is locked.",
1505
1636
  "name": "locked",
1506
1637
  "allowNo": false,
1507
1638
  "type": "boolean"
1508
1639
  },
1509
1640
  "secret": {
1510
1641
  "char": "s",
1511
- "description": "Indicate that the environment variable will be secret.",
1642
+ "description": "Indicate if environment variable is secret.",
1512
1643
  "exclusive": [
1513
1644
  "locked"
1514
1645
  ],
@@ -1520,7 +1651,7 @@
1520
1651
  "hasDynamicHelp": false,
1521
1652
  "hidden": false,
1522
1653
  "hiddenAliases": [],
1523
- "id": "env:add",
1654
+ "id": "env:update",
1524
1655
  "pluginAlias": "checkly",
1525
1656
  "pluginName": "checkly",
1526
1657
  "pluginType": "core",
@@ -1529,57 +1660,66 @@
1529
1660
  "coreCommand": false,
1530
1661
  "readOnly": false,
1531
1662
  "destructive": false,
1532
- "idempotent": false,
1663
+ "idempotent": true,
1533
1664
  "isESM": false,
1534
1665
  "relativePath": [
1535
1666
  "dist",
1536
1667
  "commands",
1537
1668
  "env",
1538
- "add.js"
1669
+ "update.js"
1539
1670
  ]
1540
1671
  },
1541
- "env:ls": {
1672
+ "import:apply": {
1542
1673
  "aliases": [],
1543
1674
  "args": {},
1544
- "description": "List all Checkly environment variables via \"checkly env ls\".",
1545
- "flags": {},
1675
+ "description": "Attach imported resources into your project in a pending state.",
1676
+ "flags": {
1677
+ "config": {
1678
+ "char": "c",
1679
+ "description": "The Checkly CLI configuration file. If not passed, uses the checkly.config.ts|js file in the current directory.",
1680
+ "name": "config",
1681
+ "hasDynamicHelp": false,
1682
+ "multiple": false,
1683
+ "type": "option"
1684
+ }
1685
+ },
1546
1686
  "hasDynamicHelp": false,
1547
1687
  "hidden": false,
1548
1688
  "hiddenAliases": [],
1549
- "id": "env:ls",
1689
+ "id": "import:apply",
1550
1690
  "pluginAlias": "checkly",
1551
1691
  "pluginName": "checkly",
1552
1692
  "pluginType": "core",
1553
1693
  "strict": true,
1554
1694
  "enableJsonFlag": false,
1555
1695
  "coreCommand": false,
1556
- "readOnly": true,
1696
+ "readOnly": false,
1557
1697
  "destructive": false,
1558
- "idempotent": true,
1698
+ "idempotent": false,
1559
1699
  "isESM": false,
1560
1700
  "relativePath": [
1561
1701
  "dist",
1562
1702
  "commands",
1563
- "env",
1564
- "ls.js"
1703
+ "import",
1704
+ "apply.js"
1565
1705
  ]
1566
1706
  },
1567
- "env:pull": {
1707
+ "import:cancel": {
1568
1708
  "aliases": [],
1569
- "args": {
1570
- "filename": {
1571
- "default": ".env",
1572
- "description": "Filename of the generated file.",
1573
- "name": "filename",
1574
- "required": false
1575
- }
1576
- },
1577
- "description": "Pull Checkly environment variables via \"checkly env pull <filename>\".",
1709
+ "args": {},
1710
+ "description": "Cancels an ongoing import plan that has not been committed yet.",
1578
1711
  "flags": {
1579
- "force": {
1580
- "char": "f",
1581
- "description": "Force to overwrite existing file.",
1582
- "name": "force",
1712
+ "config": {
1713
+ "char": "c",
1714
+ "description": "The Checkly CLI configuration file. If not passed, uses the checkly.config.ts|js file in the current directory.",
1715
+ "name": "config",
1716
+ "hasDynamicHelp": false,
1717
+ "multiple": false,
1718
+ "type": "option"
1719
+ },
1720
+ "all": {
1721
+ "description": "Cancel all plans.",
1722
+ "name": "all",
1583
1723
  "allowNo": false,
1584
1724
  "type": "boolean"
1585
1725
  }
@@ -1587,47 +1727,42 @@
1587
1727
  "hasDynamicHelp": false,
1588
1728
  "hidden": false,
1589
1729
  "hiddenAliases": [],
1590
- "id": "env:pull",
1730
+ "id": "import:cancel",
1591
1731
  "pluginAlias": "checkly",
1592
1732
  "pluginName": "checkly",
1593
1733
  "pluginType": "core",
1594
1734
  "strict": true,
1595
1735
  "enableJsonFlag": false,
1596
1736
  "coreCommand": false,
1597
- "readOnly": true,
1737
+ "readOnly": false,
1598
1738
  "destructive": false,
1599
1739
  "idempotent": true,
1600
1740
  "isESM": false,
1601
1741
  "relativePath": [
1602
1742
  "dist",
1603
1743
  "commands",
1604
- "env",
1605
- "pull.js"
1744
+ "import",
1745
+ "cancel.js"
1606
1746
  ]
1607
1747
  },
1608
- "env:rm": {
1748
+ "import:commit": {
1609
1749
  "aliases": [],
1610
- "args": {
1611
- "key": {
1612
- "description": "Environment variable key to remove.",
1613
- "name": "key",
1614
- "required": true
1615
- }
1616
- },
1617
- "description": "Remove environment variable via \"checkly env rm <key>\".",
1750
+ "args": {},
1751
+ "description": "Permanently commit imported resources into your project.",
1618
1752
  "flags": {
1619
- "force": {
1620
- "char": "f",
1621
- "description": "Force to skip the confirmation prompt.",
1622
- "name": "force",
1623
- "allowNo": false,
1624
- "type": "boolean"
1753
+ "config": {
1754
+ "char": "c",
1755
+ "description": "The Checkly CLI configuration file. If not passed, uses the checkly.config.ts|js file in the current directory.",
1756
+ "name": "config",
1757
+ "hasDynamicHelp": false,
1758
+ "multiple": false,
1759
+ "type": "option"
1625
1760
  }
1626
1761
  },
1627
1762
  "hasDynamicHelp": false,
1628
1763
  "hidden": false,
1629
1764
  "hiddenAliases": [],
1630
- "id": "env:rm",
1765
+ "id": "import:commit",
1631
1766
  "pluginAlias": "checkly",
1632
1767
  "pluginName": "checkly",
1633
1768
  "pluginType": "core",
@@ -1635,69 +1770,95 @@
1635
1770
  "enableJsonFlag": false,
1636
1771
  "coreCommand": false,
1637
1772
  "readOnly": false,
1638
- "destructive": true,
1773
+ "destructive": false,
1639
1774
  "idempotent": false,
1640
1775
  "isESM": false,
1641
1776
  "relativePath": [
1642
1777
  "dist",
1643
1778
  "commands",
1644
- "env",
1645
- "rm.js"
1779
+ "import",
1780
+ "commit.js"
1646
1781
  ]
1647
1782
  },
1648
- "env:update": {
1783
+ "import:plan": {
1649
1784
  "aliases": [],
1650
1785
  "args": {
1651
- "key": {
1652
- "description": "Environment variable key.",
1653
- "name": "key",
1654
- "required": true
1655
- },
1656
- "value": {
1657
- "description": "Environment variable value.",
1658
- "name": "value",
1786
+ "resource": {
1787
+ "description": "A specific resource to import.",
1788
+ "name": "resource",
1659
1789
  "required": false
1660
1790
  }
1661
1791
  },
1662
- "description": "Update environment variable via \"checkly env update <key> <value>\".",
1792
+ "description": "Import existing resources from your Checkly account to your project.\n\nBy default, all resources that can be imported will be imported. However, you\nmay fine-tune the process by including or excluding any combination of\nresources.\n\nThe import process consists of three steps:\n\n1. Creating a plan, which generates the appropriate code for your resources\n2. Applying the plan, which links your resources to the generated code\n3. Committing the plan, which finalizes the import session\n\nCREATING A PLAN\n\nCreating a plan carries no risk as no concrete links to your Checkly resources\nare made at this point. However, if you accidentally deploy the generated code\nbefore applying the plan, you will end up with duplicate resources and will\nnot be able to complete the import session without first deleting the\nduplicates.\n\nFor the curious, you may also preview the generated code with the '--preview'\noption. No plan will be created, allowing you to leisurely inspect the\ngenerated code. However keep in mind that you will need to create a plan to\nactually import any resources, at which point the code will be generated\nagain.\n\nYou may cancel any plan you've created without affecting any of the\nunderlying resources.\n\nAPPLYING A PLAN\n\nApplying a plan links your existing resources to the generated code. You\nshould carefully review the generated code to make sure that it contains the\nresources you expect before applying a plan. After a plan has been applied,\nany deployments of those resources will irreversibly modify the underlying\nCheckly resources. However, as a fail safe against concurrent use, any\ndeployments not including the imported resources will not delete the\nunderlying resources (or the links to the resources). This means that there\nis no need to block deployments while working on an import session.\n\nEven after you've applied a plan, you may still cancel it, which will unlink\nthe underlying resources from your project once more. However, keep in mind\nthat any changes to the resources that you've already deployed cannot be\nundone.\n\nCOMMITTING A PLAN\n\nFinally, committing a plan removes all fail safes and permanently links the\nimported resources to your project. Any resources you remove from your code\nwill result in the underlying resources also getting irrevocably deleted on\nthe next deploy. You should only commit your plan once you are sure that all\nfuture deployments include the imported resources.",
1663
1793
  "flags": {
1664
- "locked": {
1665
- "char": "l",
1666
- "description": "Indicate if environment variable is locked.",
1667
- "name": "locked",
1794
+ "config": {
1795
+ "char": "c",
1796
+ "description": "The Checkly CLI configuration file. If not passed, uses the checkly.config.ts|js file in the current directory.",
1797
+ "name": "config",
1798
+ "hasDynamicHelp": false,
1799
+ "multiple": false,
1800
+ "type": "option"
1801
+ },
1802
+ "root": {
1803
+ "description": "The root folder in which to write generated code files.",
1804
+ "name": "root",
1805
+ "default": "__checks__",
1806
+ "hasDynamicHelp": false,
1807
+ "multiple": false,
1808
+ "type": "option"
1809
+ },
1810
+ "preview": {
1811
+ "description": "Preview generated code without creating an actual import plan.",
1812
+ "name": "preview",
1668
1813
  "allowNo": false,
1669
1814
  "type": "boolean"
1670
1815
  },
1671
- "secret": {
1672
- "char": "s",
1673
- "description": "Indicate if environment variable is secret.",
1674
- "exclusive": [
1675
- "locked"
1676
- ],
1677
- "name": "secret",
1816
+ "debug-import-plan": {
1817
+ "description": "Output the import plan to a file.",
1818
+ "hidden": true,
1819
+ "name": "debug-import-plan",
1678
1820
  "allowNo": false,
1679
1821
  "type": "boolean"
1822
+ },
1823
+ "debug-import-plan-input-file": {
1824
+ "description": "A file to load an import plan from.",
1825
+ "hidden": true,
1826
+ "name": "debug-import-plan-input-file",
1827
+ "hasDynamicHelp": false,
1828
+ "multiple": false,
1829
+ "type": "option"
1830
+ },
1831
+ "debug-import-plan-output-file": {
1832
+ "description": "The file to output the import plan to.",
1833
+ "hidden": true,
1834
+ "name": "debug-import-plan-output-file",
1835
+ "default": "./debug-import-plan.json",
1836
+ "hasDynamicHelp": false,
1837
+ "multiple": false,
1838
+ "type": "option"
1680
1839
  }
1681
1840
  },
1682
1841
  "hasDynamicHelp": false,
1683
1842
  "hidden": false,
1684
- "hiddenAliases": [],
1685
- "id": "env:update",
1843
+ "hiddenAliases": [
1844
+ "import"
1845
+ ],
1846
+ "id": "import:plan",
1686
1847
  "pluginAlias": "checkly",
1687
1848
  "pluginName": "checkly",
1688
1849
  "pluginType": "core",
1689
- "strict": true,
1850
+ "strict": false,
1690
1851
  "enableJsonFlag": false,
1691
1852
  "coreCommand": false,
1692
- "readOnly": false,
1853
+ "readOnly": true,
1693
1854
  "destructive": false,
1694
1855
  "idempotent": true,
1695
1856
  "isESM": false,
1696
1857
  "relativePath": [
1697
1858
  "dist",
1698
1859
  "commands",
1699
- "env",
1700
- "update.js"
1860
+ "import",
1861
+ "plan.js"
1701
1862
  ]
1702
1863
  },
1703
1864
  "incidents:create": {
@@ -2159,5 +2320,5 @@
2159
2320
  ]
2160
2321
  }
2161
2322
  },
2162
- "version": "7.5.5"
2323
+ "version": "7.6.0"
2163
2324
  }