@bussolabs/closeyourit-cli 0.0.9 → 0.0.11

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.
@@ -135,7 +135,17 @@
135
135
  "error_regression",
136
136
  "uptime_down",
137
137
  "uptime_up",
138
- "metric_threshold"
138
+ "metric_threshold",
139
+ "uptime_ssl_expiring",
140
+ "cron_missed",
141
+ "server_down",
142
+ "server_up",
143
+ "server_cpu",
144
+ "server_mem",
145
+ "server_disk",
146
+ "server_temp",
147
+ "server_service_failed",
148
+ "server_smart_failing"
139
149
  ],
140
150
  "type": "option"
141
151
  },
@@ -153,6 +163,20 @@
153
163
  "multiple": false,
154
164
  "type": "option"
155
165
  },
166
+ "threshold": {
167
+ "description": "Server threshold: percent for cpu/mem/disk, °C for temp",
168
+ "name": "threshold",
169
+ "hasDynamicHelp": false,
170
+ "multiple": false,
171
+ "type": "option"
172
+ },
173
+ "channel": {
174
+ "description": "External channel id to deliver to (repeatable; REPLACES the set)",
175
+ "name": "channel",
176
+ "hasDynamicHelp": false,
177
+ "multiple": true,
178
+ "type": "option"
179
+ },
156
180
  "throttle-minutes": {
157
181
  "description": "Minimum minutes between notifications",
158
182
  "name": "throttle-minutes",
@@ -359,7 +383,17 @@
359
383
  "error_regression",
360
384
  "uptime_down",
361
385
  "uptime_up",
362
- "metric_threshold"
386
+ "metric_threshold",
387
+ "uptime_ssl_expiring",
388
+ "cron_missed",
389
+ "server_down",
390
+ "server_up",
391
+ "server_cpu",
392
+ "server_mem",
393
+ "server_disk",
394
+ "server_temp",
395
+ "server_service_failed",
396
+ "server_smart_failing"
363
397
  ],
364
398
  "type": "option"
365
399
  },
@@ -377,6 +411,20 @@
377
411
  "multiple": false,
378
412
  "type": "option"
379
413
  },
414
+ "threshold": {
415
+ "description": "Server threshold: percent for cpu/mem/disk, °C for temp",
416
+ "name": "threshold",
417
+ "hasDynamicHelp": false,
418
+ "multiple": false,
419
+ "type": "option"
420
+ },
421
+ "channel": {
422
+ "description": "External channel id to deliver to (repeatable; REPLACES the set)",
423
+ "name": "channel",
424
+ "hasDynamicHelp": false,
425
+ "multiple": true,
426
+ "type": "option"
427
+ },
380
428
  "throttle-minutes": {
381
429
  "description": "Minimum minutes between notifications",
382
430
  "name": "throttle-minutes",
@@ -421,19 +469,19 @@
421
469
  "update.js"
422
470
  ]
423
471
  },
424
- "environments:create": {
472
+ "groups:create": {
425
473
  "aliases": [],
426
474
  "args": {
427
- "code": {
428
- "description": "Environment code (lowercase, e.g. production)",
429
- "name": "code",
475
+ "name": {
476
+ "description": "Group name",
477
+ "name": "name",
430
478
  "required": true
431
479
  }
432
480
  },
433
- "description": "Create an environment (production, staging, …) in your organization",
481
+ "description": "Create a group (a container of related projects, e.g. \"DriverOne\")",
434
482
  "examples": [
435
- "<%= config.bin %> environments create production --label Production",
436
- "<%= config.bin %> environments create staging --label Staging --color amber"
483
+ "<%= config.bin %> groups create DriverOne",
484
+ "<%= config.bin %> groups create DriverOne --color indigo"
437
485
  ],
438
486
  "flags": {
439
487
  "json": {
@@ -443,39 +491,17 @@
443
491
  "allowNo": false,
444
492
  "type": "boolean"
445
493
  },
446
- "label": {
447
- "description": "Human-readable label",
448
- "name": "label",
449
- "required": true,
450
- "hasDynamicHelp": false,
451
- "multiple": false,
452
- "type": "option"
453
- },
454
494
  "color": {
455
495
  "description": "Color label",
456
496
  "name": "color",
457
- "default": "emerald",
458
- "hasDynamicHelp": false,
459
- "multiple": false,
460
- "type": "option"
461
- },
462
- "position": {
463
- "description": "Sort position",
464
- "name": "position",
465
497
  "hasDynamicHelp": false,
466
498
  "multiple": false,
467
499
  "type": "option"
468
- },
469
- "active": {
470
- "description": "Whether the environment is active",
471
- "name": "active",
472
- "allowNo": true,
473
- "type": "boolean"
474
500
  }
475
501
  },
476
502
  "hasDynamicHelp": false,
477
503
  "hiddenAliases": [],
478
- "id": "environments:create",
504
+ "id": "groups:create",
479
505
  "pluginAlias": "@bussolabs/closeyourit-cli",
480
506
  "pluginName": "@bussolabs/closeyourit-cli",
481
507
  "pluginType": "core",
@@ -485,22 +511,22 @@
485
511
  "relativePath": [
486
512
  "dist",
487
513
  "commands",
488
- "environments",
514
+ "groups",
489
515
  "create.js"
490
516
  ]
491
517
  },
492
- "environments:delete": {
518
+ "groups:delete": {
493
519
  "aliases": [],
494
520
  "args": {
495
- "environment": {
496
- "description": "Environment id (UUID) or code",
497
- "name": "environment",
521
+ "group": {
522
+ "description": "Group id (UUID) or name",
523
+ "name": "group",
498
524
  "required": true
499
525
  }
500
526
  },
501
- "description": "Delete an environment (blocked while projects, tokens or monitors reference it)",
527
+ "description": "Delete a group (its projects are detached, not deleted)",
502
528
  "examples": [
503
- "<%= config.bin %> environments delete staging --confirm"
529
+ "<%= config.bin %> groups delete Backend --confirm"
504
530
  ],
505
531
  "flags": {
506
532
  "json": {
@@ -519,7 +545,7 @@
519
545
  },
520
546
  "hasDynamicHelp": false,
521
547
  "hiddenAliases": [],
522
- "id": "environments:delete",
548
+ "id": "groups:delete",
523
549
  "pluginAlias": "@bussolabs/closeyourit-cli",
524
550
  "pluginName": "@bussolabs/closeyourit-cli",
525
551
  "pluginType": "core",
@@ -529,17 +555,17 @@
529
555
  "relativePath": [
530
556
  "dist",
531
557
  "commands",
532
- "environments",
558
+ "groups",
533
559
  "delete.js"
534
560
  ]
535
561
  },
536
- "environments:list": {
562
+ "groups:list": {
537
563
  "aliases": [],
538
564
  "args": {},
539
- "description": "List the environments (production, staging, …) in your organization",
565
+ "description": "List the groups (macro-projects) in your organization",
540
566
  "examples": [
541
- "<%= config.bin %> environments list",
542
- "<%= config.bin %> environments list --page 2 --json"
567
+ "<%= config.bin %> groups list",
568
+ "<%= config.bin %> groups list --page 2 --json"
543
569
  ],
544
570
  "flags": {
545
571
  "json": {
@@ -560,7 +586,7 @@
560
586
  },
561
587
  "hasDynamicHelp": false,
562
588
  "hiddenAliases": [],
563
- "id": "environments:list",
589
+ "id": "groups:list",
564
590
  "pluginAlias": "@bussolabs/closeyourit-cli",
565
591
  "pluginName": "@bussolabs/closeyourit-cli",
566
592
  "pluginType": "core",
@@ -570,24 +596,23 @@
570
596
  "relativePath": [
571
597
  "dist",
572
598
  "commands",
573
- "environments",
599
+ "groups",
574
600
  "list.js"
575
601
  ]
576
602
  },
577
- "environments:update": {
603
+ "groups:update": {
578
604
  "aliases": [],
579
605
  "args": {
580
- "environment": {
581
- "description": "Environment id (UUID) or code",
582
- "name": "environment",
606
+ "group": {
607
+ "description": "Group id (UUID) or name",
608
+ "name": "group",
583
609
  "required": true
584
610
  }
585
611
  },
586
- "description": "Update an environment (recode, relabel, recolor, reorder, activate/deactivate)",
612
+ "description": "Update a group (rename or recolor)",
587
613
  "examples": [
588
- "<%= config.bin %> environments update staging --label \"Staging env\"",
589
- "<%= config.bin %> environments update production --color indigo",
590
- "<%= config.bin %> environments update staging --no-active"
614
+ "<%= config.bin %> groups update Backend --name \"Backend services\"",
615
+ "<%= config.bin %> groups update Backend --color indigo"
591
616
  ],
592
617
  "flags": {
593
618
  "json": {
@@ -597,16 +622,9 @@
597
622
  "allowNo": false,
598
623
  "type": "boolean"
599
624
  },
600
- "code": {
601
- "description": "New code (lowercase)",
602
- "name": "code",
603
- "hasDynamicHelp": false,
604
- "multiple": false,
605
- "type": "option"
606
- },
607
- "label": {
608
- "description": "New label",
609
- "name": "label",
625
+ "name": {
626
+ "description": "New name",
627
+ "name": "name",
610
628
  "hasDynamicHelp": false,
611
629
  "multiple": false,
612
630
  "type": "option"
@@ -617,24 +635,11 @@
617
635
  "hasDynamicHelp": false,
618
636
  "multiple": false,
619
637
  "type": "option"
620
- },
621
- "position": {
622
- "description": "Sort position",
623
- "name": "position",
624
- "hasDynamicHelp": false,
625
- "multiple": false,
626
- "type": "option"
627
- },
628
- "active": {
629
- "description": "Whether the environment is active",
630
- "name": "active",
631
- "allowNo": true,
632
- "type": "boolean"
633
638
  }
634
639
  },
635
640
  "hasDynamicHelp": false,
636
641
  "hiddenAliases": [],
637
- "id": "environments:update",
642
+ "id": "groups:update",
638
643
  "pluginAlias": "@bussolabs/closeyourit-cli",
639
644
  "pluginName": "@bussolabs/closeyourit-cli",
640
645
  "pluginType": "core",
@@ -644,7 +649,7 @@
644
649
  "relativePath": [
645
650
  "dist",
646
651
  "commands",
647
- "environments",
652
+ "groups",
648
653
  "update.js"
649
654
  ]
650
655
  },
@@ -817,13 +822,19 @@
817
822
  "revoke.js"
818
823
  ]
819
824
  },
820
- "errors:list": {
825
+ "environments:create": {
821
826
  "aliases": [],
822
- "args": {},
823
- "description": "List error groups for a project",
827
+ "args": {
828
+ "code": {
829
+ "description": "Environment code (lowercase, e.g. production)",
830
+ "name": "code",
831
+ "required": true
832
+ }
833
+ },
834
+ "description": "Create an environment (production, staging, …) in your organization",
824
835
  "examples": [
825
- "<%= config.bin %> errors list --project acme-api",
826
- "<%= config.bin %> errors list -p acme-api --status unresolved --json"
836
+ "<%= config.bin %> environments create production --label Production",
837
+ "<%= config.bin %> environments create staging --label Staging --color amber"
827
838
  ],
828
839
  "flags": {
829
840
  "json": {
@@ -833,34 +844,39 @@
833
844
  "allowNo": false,
834
845
  "type": "boolean"
835
846
  },
836
- "project": {
837
- "char": "p",
838
- "description": "Project id (UUID) or key",
839
- "name": "project",
847
+ "label": {
848
+ "description": "Human-readable label",
849
+ "name": "label",
840
850
  "required": true,
841
851
  "hasDynamicHelp": false,
842
852
  "multiple": false,
843
853
  "type": "option"
844
854
  },
845
- "page": {
846
- "description": "Page number",
847
- "name": "page",
848
- "default": 1,
855
+ "color": {
856
+ "description": "Color label",
857
+ "name": "color",
858
+ "default": "emerald",
849
859
  "hasDynamicHelp": false,
850
860
  "multiple": false,
851
861
  "type": "option"
852
862
  },
853
- "status": {
854
- "description": "Filter by status (e.g. unresolved, resolved, muted)",
855
- "name": "status",
863
+ "position": {
864
+ "description": "Sort position",
865
+ "name": "position",
856
866
  "hasDynamicHelp": false,
857
867
  "multiple": false,
858
868
  "type": "option"
869
+ },
870
+ "active": {
871
+ "description": "Whether the environment is active",
872
+ "name": "active",
873
+ "allowNo": true,
874
+ "type": "boolean"
859
875
  }
860
876
  },
861
877
  "hasDynamicHelp": false,
862
878
  "hiddenAliases": [],
863
- "id": "errors:list",
879
+ "id": "environments:create",
864
880
  "pluginAlias": "@bussolabs/closeyourit-cli",
865
881
  "pluginName": "@bussolabs/closeyourit-cli",
866
882
  "pluginType": "core",
@@ -870,22 +886,22 @@
870
886
  "relativePath": [
871
887
  "dist",
872
888
  "commands",
873
- "errors",
874
- "list.js"
889
+ "environments",
890
+ "create.js"
875
891
  ]
876
892
  },
877
- "errors:mute": {
893
+ "environments:delete": {
878
894
  "aliases": [],
879
895
  "args": {
880
- "id": {
881
- "description": "Error group id",
882
- "name": "id",
896
+ "environment": {
897
+ "description": "Environment id (UUID) or code",
898
+ "name": "environment",
883
899
  "required": true
884
900
  }
885
901
  },
886
- "description": "Mute an error group",
902
+ "description": "Delete an environment (blocked while projects, tokens or monitors reference it)",
887
903
  "examples": [
888
- "<%= config.bin %> errors mute <group-id> --project acme-api"
904
+ "<%= config.bin %> environments delete staging --confirm"
889
905
  ],
890
906
  "flags": {
891
907
  "json": {
@@ -895,19 +911,16 @@
895
911
  "allowNo": false,
896
912
  "type": "boolean"
897
913
  },
898
- "project": {
899
- "char": "p",
900
- "description": "Project id (UUID) or key",
901
- "name": "project",
902
- "required": true,
903
- "hasDynamicHelp": false,
904
- "multiple": false,
905
- "type": "option"
914
+ "confirm": {
915
+ "description": "Required: confirm the deletion",
916
+ "name": "confirm",
917
+ "allowNo": false,
918
+ "type": "boolean"
906
919
  }
907
920
  },
908
921
  "hasDynamicHelp": false,
909
922
  "hiddenAliases": [],
910
- "id": "errors:mute",
923
+ "id": "environments:delete",
911
924
  "pluginAlias": "@bussolabs/closeyourit-cli",
912
925
  "pluginName": "@bussolabs/closeyourit-cli",
913
926
  "pluginType": "core",
@@ -917,22 +930,17 @@
917
930
  "relativePath": [
918
931
  "dist",
919
932
  "commands",
920
- "errors",
921
- "mute.js"
933
+ "environments",
934
+ "delete.js"
922
935
  ]
923
936
  },
924
- "errors:promote": {
937
+ "environments:list": {
925
938
  "aliases": [],
926
- "args": {
927
- "id": {
928
- "description": "Error group id",
929
- "name": "id",
930
- "required": true
931
- }
932
- },
933
- "description": "Promote an error group to a ticket",
939
+ "args": {},
940
+ "description": "List the environments (production, staging, …) in your organization",
934
941
  "examples": [
935
- "<%= config.bin %> errors promote <group-id> --project acme-api"
942
+ "<%= config.bin %> environments list",
943
+ "<%= config.bin %> environments list --page 2 --json"
936
944
  ],
937
945
  "flags": {
938
946
  "json": {
@@ -942,11 +950,10 @@
942
950
  "allowNo": false,
943
951
  "type": "boolean"
944
952
  },
945
- "project": {
946
- "char": "p",
947
- "description": "Project id (UUID) or key",
948
- "name": "project",
949
- "required": true,
953
+ "page": {
954
+ "description": "Page number",
955
+ "name": "page",
956
+ "default": 1,
950
957
  "hasDynamicHelp": false,
951
958
  "multiple": false,
952
959
  "type": "option"
@@ -954,7 +961,7 @@
954
961
  },
955
962
  "hasDynamicHelp": false,
956
963
  "hiddenAliases": [],
957
- "id": "errors:promote",
964
+ "id": "environments:list",
958
965
  "pluginAlias": "@bussolabs/closeyourit-cli",
959
966
  "pluginName": "@bussolabs/closeyourit-cli",
960
967
  "pluginType": "core",
@@ -964,22 +971,24 @@
964
971
  "relativePath": [
965
972
  "dist",
966
973
  "commands",
967
- "errors",
968
- "promote.js"
974
+ "environments",
975
+ "list.js"
969
976
  ]
970
977
  },
971
- "errors:reopen": {
978
+ "environments:update": {
972
979
  "aliases": [],
973
980
  "args": {
974
- "id": {
975
- "description": "Error group id",
976
- "name": "id",
981
+ "environment": {
982
+ "description": "Environment id (UUID) or code",
983
+ "name": "environment",
977
984
  "required": true
978
985
  }
979
986
  },
980
- "description": "Reopen a resolved error group",
987
+ "description": "Update an environment (recode, relabel, recolor, reorder, activate/deactivate)",
981
988
  "examples": [
982
- "<%= config.bin %> errors reopen <group-id> --project acme-api"
989
+ "<%= config.bin %> environments update staging --label \"Staging env\"",
990
+ "<%= config.bin %> environments update production --color indigo",
991
+ "<%= config.bin %> environments update staging --no-active"
983
992
  ],
984
993
  "flags": {
985
994
  "json": {
@@ -989,19 +998,44 @@
989
998
  "allowNo": false,
990
999
  "type": "boolean"
991
1000
  },
992
- "project": {
993
- "char": "p",
994
- "description": "Project id (UUID) or key",
995
- "name": "project",
996
- "required": true,
1001
+ "code": {
1002
+ "description": "New code (lowercase)",
1003
+ "name": "code",
1004
+ "hasDynamicHelp": false,
1005
+ "multiple": false,
1006
+ "type": "option"
1007
+ },
1008
+ "label": {
1009
+ "description": "New label",
1010
+ "name": "label",
1011
+ "hasDynamicHelp": false,
1012
+ "multiple": false,
1013
+ "type": "option"
1014
+ },
1015
+ "color": {
1016
+ "description": "Color label",
1017
+ "name": "color",
1018
+ "hasDynamicHelp": false,
1019
+ "multiple": false,
1020
+ "type": "option"
1021
+ },
1022
+ "position": {
1023
+ "description": "Sort position",
1024
+ "name": "position",
997
1025
  "hasDynamicHelp": false,
998
1026
  "multiple": false,
999
1027
  "type": "option"
1028
+ },
1029
+ "active": {
1030
+ "description": "Whether the environment is active",
1031
+ "name": "active",
1032
+ "allowNo": true,
1033
+ "type": "boolean"
1000
1034
  }
1001
1035
  },
1002
1036
  "hasDynamicHelp": false,
1003
1037
  "hiddenAliases": [],
1004
- "id": "errors:reopen",
1038
+ "id": "environments:update",
1005
1039
  "pluginAlias": "@bussolabs/closeyourit-cli",
1006
1040
  "pluginName": "@bussolabs/closeyourit-cli",
1007
1041
  "pluginType": "core",
@@ -1011,22 +1045,17 @@
1011
1045
  "relativePath": [
1012
1046
  "dist",
1013
1047
  "commands",
1014
- "errors",
1015
- "reopen.js"
1048
+ "environments",
1049
+ "update.js"
1016
1050
  ]
1017
1051
  },
1018
- "errors:resolve": {
1052
+ "errors:list": {
1019
1053
  "aliases": [],
1020
- "args": {
1021
- "id": {
1022
- "description": "Error group id",
1023
- "name": "id",
1024
- "required": true
1025
- }
1026
- },
1027
- "description": "Mark an error group as resolved",
1054
+ "args": {},
1055
+ "description": "List error groups for a project",
1028
1056
  "examples": [
1029
- "<%= config.bin %> errors resolve <group-id> --project acme-api"
1057
+ "<%= config.bin %> errors list --project acme-api",
1058
+ "<%= config.bin %> errors list -p acme-api --status unresolved --json"
1030
1059
  ],
1031
1060
  "flags": {
1032
1061
  "json": {
@@ -1044,11 +1073,26 @@
1044
1073
  "hasDynamicHelp": false,
1045
1074
  "multiple": false,
1046
1075
  "type": "option"
1076
+ },
1077
+ "page": {
1078
+ "description": "Page number",
1079
+ "name": "page",
1080
+ "default": 1,
1081
+ "hasDynamicHelp": false,
1082
+ "multiple": false,
1083
+ "type": "option"
1084
+ },
1085
+ "status": {
1086
+ "description": "Filter by status (e.g. unresolved, resolved, muted)",
1087
+ "name": "status",
1088
+ "hasDynamicHelp": false,
1089
+ "multiple": false,
1090
+ "type": "option"
1047
1091
  }
1048
1092
  },
1049
1093
  "hasDynamicHelp": false,
1050
1094
  "hiddenAliases": [],
1051
- "id": "errors:resolve",
1095
+ "id": "errors:list",
1052
1096
  "pluginAlias": "@bussolabs/closeyourit-cli",
1053
1097
  "pluginName": "@bussolabs/closeyourit-cli",
1054
1098
  "pluginType": "core",
@@ -1059,10 +1103,10 @@
1059
1103
  "dist",
1060
1104
  "commands",
1061
1105
  "errors",
1062
- "resolve.js"
1106
+ "list.js"
1063
1107
  ]
1064
1108
  },
1065
- "errors:show": {
1109
+ "errors:mute": {
1066
1110
  "aliases": [],
1067
1111
  "args": {
1068
1112
  "id": {
@@ -1071,9 +1115,9 @@
1071
1115
  "required": true
1072
1116
  }
1073
1117
  },
1074
- "description": "Show a single error group",
1118
+ "description": "Mute an error group",
1075
1119
  "examples": [
1076
- "<%= config.bin %> errors show <group-id> --project acme-api"
1120
+ "<%= config.bin %> errors mute <group-id> --project acme-api"
1077
1121
  ],
1078
1122
  "flags": {
1079
1123
  "json": {
@@ -1095,7 +1139,7 @@
1095
1139
  },
1096
1140
  "hasDynamicHelp": false,
1097
1141
  "hiddenAliases": [],
1098
- "id": "errors:show",
1142
+ "id": "errors:mute",
1099
1143
  "pluginAlias": "@bussolabs/closeyourit-cli",
1100
1144
  "pluginName": "@bussolabs/closeyourit-cli",
1101
1145
  "pluginType": "core",
@@ -1106,10 +1150,10 @@
1106
1150
  "dist",
1107
1151
  "commands",
1108
1152
  "errors",
1109
- "show.js"
1153
+ "mute.js"
1110
1154
  ]
1111
1155
  },
1112
- "errors:unmute": {
1156
+ "errors:promote": {
1113
1157
  "aliases": [],
1114
1158
  "args": {
1115
1159
  "id": {
@@ -1118,9 +1162,9 @@
1118
1162
  "required": true
1119
1163
  }
1120
1164
  },
1121
- "description": "Unmute an error group",
1165
+ "description": "Promote an error group to a ticket",
1122
1166
  "examples": [
1123
- "<%= config.bin %> errors unmute <group-id> --project acme-api"
1167
+ "<%= config.bin %> errors promote <group-id> --project acme-api"
1124
1168
  ],
1125
1169
  "flags": {
1126
1170
  "json": {
@@ -1142,7 +1186,7 @@
1142
1186
  },
1143
1187
  "hasDynamicHelp": false,
1144
1188
  "hiddenAliases": [],
1145
- "id": "errors:unmute",
1189
+ "id": "errors:promote",
1146
1190
  "pluginAlias": "@bussolabs/closeyourit-cli",
1147
1191
  "pluginName": "@bussolabs/closeyourit-cli",
1148
1192
  "pluginType": "core",
@@ -1153,22 +1197,21 @@
1153
1197
  "dist",
1154
1198
  "commands",
1155
1199
  "errors",
1156
- "unmute.js"
1200
+ "promote.js"
1157
1201
  ]
1158
1202
  },
1159
- "groups:create": {
1203
+ "errors:reopen": {
1160
1204
  "aliases": [],
1161
1205
  "args": {
1162
- "name": {
1163
- "description": "Group name",
1164
- "name": "name",
1206
+ "id": {
1207
+ "description": "Error group id",
1208
+ "name": "id",
1165
1209
  "required": true
1166
1210
  }
1167
1211
  },
1168
- "description": "Create a group (a container of related projects, e.g. \"DriverOne\")",
1212
+ "description": "Reopen a resolved error group",
1169
1213
  "examples": [
1170
- "<%= config.bin %> groups create DriverOne",
1171
- "<%= config.bin %> groups create DriverOne --color indigo"
1214
+ "<%= config.bin %> errors reopen <group-id> --project acme-api"
1172
1215
  ],
1173
1216
  "flags": {
1174
1217
  "json": {
@@ -1178,9 +1221,11 @@
1178
1221
  "allowNo": false,
1179
1222
  "type": "boolean"
1180
1223
  },
1181
- "color": {
1182
- "description": "Color label",
1183
- "name": "color",
1224
+ "project": {
1225
+ "char": "p",
1226
+ "description": "Project id (UUID) or key",
1227
+ "name": "project",
1228
+ "required": true,
1184
1229
  "hasDynamicHelp": false,
1185
1230
  "multiple": false,
1186
1231
  "type": "option"
@@ -1188,7 +1233,7 @@
1188
1233
  },
1189
1234
  "hasDynamicHelp": false,
1190
1235
  "hiddenAliases": [],
1191
- "id": "groups:create",
1236
+ "id": "errors:reopen",
1192
1237
  "pluginAlias": "@bussolabs/closeyourit-cli",
1193
1238
  "pluginName": "@bussolabs/closeyourit-cli",
1194
1239
  "pluginType": "core",
@@ -1198,22 +1243,22 @@
1198
1243
  "relativePath": [
1199
1244
  "dist",
1200
1245
  "commands",
1201
- "groups",
1202
- "create.js"
1246
+ "errors",
1247
+ "reopen.js"
1203
1248
  ]
1204
1249
  },
1205
- "groups:delete": {
1250
+ "errors:resolve": {
1206
1251
  "aliases": [],
1207
1252
  "args": {
1208
- "group": {
1209
- "description": "Group id (UUID) or name",
1210
- "name": "group",
1253
+ "id": {
1254
+ "description": "Error group id",
1255
+ "name": "id",
1211
1256
  "required": true
1212
1257
  }
1213
1258
  },
1214
- "description": "Delete a group (its projects are detached, not deleted)",
1259
+ "description": "Mark an error group as resolved",
1215
1260
  "examples": [
1216
- "<%= config.bin %> groups delete Backend --confirm"
1261
+ "<%= config.bin %> errors resolve <group-id> --project acme-api"
1217
1262
  ],
1218
1263
  "flags": {
1219
1264
  "json": {
@@ -1223,16 +1268,19 @@
1223
1268
  "allowNo": false,
1224
1269
  "type": "boolean"
1225
1270
  },
1226
- "confirm": {
1227
- "description": "Required: confirm the deletion",
1228
- "name": "confirm",
1229
- "allowNo": false,
1230
- "type": "boolean"
1271
+ "project": {
1272
+ "char": "p",
1273
+ "description": "Project id (UUID) or key",
1274
+ "name": "project",
1275
+ "required": true,
1276
+ "hasDynamicHelp": false,
1277
+ "multiple": false,
1278
+ "type": "option"
1231
1279
  }
1232
1280
  },
1233
1281
  "hasDynamicHelp": false,
1234
1282
  "hiddenAliases": [],
1235
- "id": "groups:delete",
1283
+ "id": "errors:resolve",
1236
1284
  "pluginAlias": "@bussolabs/closeyourit-cli",
1237
1285
  "pluginName": "@bussolabs/closeyourit-cli",
1238
1286
  "pluginType": "core",
@@ -1242,17 +1290,22 @@
1242
1290
  "relativePath": [
1243
1291
  "dist",
1244
1292
  "commands",
1245
- "groups",
1246
- "delete.js"
1293
+ "errors",
1294
+ "resolve.js"
1247
1295
  ]
1248
1296
  },
1249
- "groups:list": {
1297
+ "errors:show": {
1250
1298
  "aliases": [],
1251
- "args": {},
1252
- "description": "List the groups (macro-projects) in your organization",
1299
+ "args": {
1300
+ "id": {
1301
+ "description": "Error group id",
1302
+ "name": "id",
1303
+ "required": true
1304
+ }
1305
+ },
1306
+ "description": "Show a single error group",
1253
1307
  "examples": [
1254
- "<%= config.bin %> groups list",
1255
- "<%= config.bin %> groups list --page 2 --json"
1308
+ "<%= config.bin %> errors show <group-id> --project acme-api"
1256
1309
  ],
1257
1310
  "flags": {
1258
1311
  "json": {
@@ -1262,10 +1315,11 @@
1262
1315
  "allowNo": false,
1263
1316
  "type": "boolean"
1264
1317
  },
1265
- "page": {
1266
- "description": "Page number",
1267
- "name": "page",
1268
- "default": 1,
1318
+ "project": {
1319
+ "char": "p",
1320
+ "description": "Project id (UUID) or key",
1321
+ "name": "project",
1322
+ "required": true,
1269
1323
  "hasDynamicHelp": false,
1270
1324
  "multiple": false,
1271
1325
  "type": "option"
@@ -1273,7 +1327,7 @@
1273
1327
  },
1274
1328
  "hasDynamicHelp": false,
1275
1329
  "hiddenAliases": [],
1276
- "id": "groups:list",
1330
+ "id": "errors:show",
1277
1331
  "pluginAlias": "@bussolabs/closeyourit-cli",
1278
1332
  "pluginName": "@bussolabs/closeyourit-cli",
1279
1333
  "pluginType": "core",
@@ -1283,23 +1337,22 @@
1283
1337
  "relativePath": [
1284
1338
  "dist",
1285
1339
  "commands",
1286
- "groups",
1287
- "list.js"
1340
+ "errors",
1341
+ "show.js"
1288
1342
  ]
1289
1343
  },
1290
- "groups:update": {
1344
+ "errors:unmute": {
1291
1345
  "aliases": [],
1292
1346
  "args": {
1293
- "group": {
1294
- "description": "Group id (UUID) or name",
1295
- "name": "group",
1347
+ "id": {
1348
+ "description": "Error group id",
1349
+ "name": "id",
1296
1350
  "required": true
1297
1351
  }
1298
1352
  },
1299
- "description": "Update a group (rename or recolor)",
1353
+ "description": "Unmute an error group",
1300
1354
  "examples": [
1301
- "<%= config.bin %> groups update Backend --name \"Backend services\"",
1302
- "<%= config.bin %> groups update Backend --color indigo"
1355
+ "<%= config.bin %> errors unmute <group-id> --project acme-api"
1303
1356
  ],
1304
1357
  "flags": {
1305
1358
  "json": {
@@ -1309,16 +1362,11 @@
1309
1362
  "allowNo": false,
1310
1363
  "type": "boolean"
1311
1364
  },
1312
- "name": {
1313
- "description": "New name",
1314
- "name": "name",
1315
- "hasDynamicHelp": false,
1316
- "multiple": false,
1317
- "type": "option"
1318
- },
1319
- "color": {
1320
- "description": "Color label",
1321
- "name": "color",
1365
+ "project": {
1366
+ "char": "p",
1367
+ "description": "Project id (UUID) or key",
1368
+ "name": "project",
1369
+ "required": true,
1322
1370
  "hasDynamicHelp": false,
1323
1371
  "multiple": false,
1324
1372
  "type": "option"
@@ -1326,7 +1374,7 @@
1326
1374
  },
1327
1375
  "hasDynamicHelp": false,
1328
1376
  "hiddenAliases": [],
1329
- "id": "groups:update",
1377
+ "id": "errors:unmute",
1330
1378
  "pluginAlias": "@bussolabs/closeyourit-cli",
1331
1379
  "pluginName": "@bussolabs/closeyourit-cli",
1332
1380
  "pluginType": "core",
@@ -1336,8 +1384,8 @@
1336
1384
  "relativePath": [
1337
1385
  "dist",
1338
1386
  "commands",
1339
- "groups",
1340
- "update.js"
1387
+ "errors",
1388
+ "unmute.js"
1341
1389
  ]
1342
1390
  },
1343
1391
  "logs:list": {
@@ -2781,20 +2829,18 @@
2781
2829
  "update.js"
2782
2830
  ]
2783
2831
  },
2784
- "projects:create": {
2832
+ "roles:create": {
2785
2833
  "aliases": [],
2786
2834
  "args": {
2787
2835
  "name": {
2788
- "description": "Project name",
2836
+ "description": "Role name",
2789
2837
  "name": "name",
2790
2838
  "required": true
2791
2839
  }
2792
2840
  },
2793
- "description": "Create a project (optionally inside a group)",
2841
+ "description": "Create an RBAC role (a named bundle of permission keys)",
2794
2842
  "examples": [
2795
- "<%= config.bin %> projects create driverone-rails --key DRRA",
2796
- "<%= config.bin %> projects create driverone-rails --group DriverOne --key DRRA",
2797
- "<%= config.bin %> projects create driverone-flutter -g <group-uuid> -k DRFL"
2843
+ "<%= config.bin %> roles create Client --permission tickets.edit --permission tickets.assign"
2798
2844
  ],
2799
2845
  "flags": {
2800
2846
  "json": {
@@ -2811,34 +2857,17 @@
2811
2857
  "multiple": false,
2812
2858
  "type": "option"
2813
2859
  },
2814
- "description": {
2815
- "description": "Free-form description",
2816
- "name": "description",
2817
- "hasDynamicHelp": false,
2818
- "multiple": false,
2819
- "type": "option"
2820
- },
2821
- "group": {
2822
- "char": "g",
2823
- "description": "Group id (UUID) or name to place the project in",
2824
- "name": "group",
2825
- "hasDynamicHelp": false,
2826
- "multiple": false,
2827
- "type": "option"
2828
- },
2829
- "key": {
2830
- "char": "k",
2831
- "description": "Project key (uppercase A-Z0-9, max 4 chars, unique per org)",
2832
- "name": "key",
2833
- "required": true,
2860
+ "permission": {
2861
+ "description": "Permission key from the catalog (repeatable)",
2862
+ "name": "permission",
2834
2863
  "hasDynamicHelp": false,
2835
- "multiple": false,
2864
+ "multiple": true,
2836
2865
  "type": "option"
2837
2866
  }
2838
2867
  },
2839
2868
  "hasDynamicHelp": false,
2840
2869
  "hiddenAliases": [],
2841
- "id": "projects:create",
2870
+ "id": "roles:create",
2842
2871
  "pluginAlias": "@bussolabs/closeyourit-cli",
2843
2872
  "pluginName": "@bussolabs/closeyourit-cli",
2844
2873
  "pluginType": "core",
@@ -2848,16 +2877,22 @@
2848
2877
  "relativePath": [
2849
2878
  "dist",
2850
2879
  "commands",
2851
- "projects",
2880
+ "roles",
2852
2881
  "create.js"
2853
2882
  ]
2854
2883
  },
2855
- "projects:delete": {
2884
+ "roles:delete": {
2856
2885
  "aliases": [],
2857
- "args": {},
2858
- "description": "Delete a project (irreversible)",
2886
+ "args": {
2887
+ "role": {
2888
+ "description": "Role id (UUID) or name",
2889
+ "name": "role",
2890
+ "required": true
2891
+ }
2892
+ },
2893
+ "description": "Delete a role (its assignments to teams and accounts are removed)",
2859
2894
  "examples": [
2860
- "<%= config.bin %> projects delete --project LBRA --confirm"
2895
+ "<%= config.bin %> roles delete Client"
2861
2896
  ],
2862
2897
  "flags": {
2863
2898
  "json": {
@@ -2866,26 +2901,11 @@
2866
2901
  "name": "json",
2867
2902
  "allowNo": false,
2868
2903
  "type": "boolean"
2869
- },
2870
- "project": {
2871
- "char": "p",
2872
- "description": "Project id (UUID) or key",
2873
- "name": "project",
2874
- "required": true,
2875
- "hasDynamicHelp": false,
2876
- "multiple": false,
2877
- "type": "option"
2878
- },
2879
- "confirm": {
2880
- "description": "Required: confirm the irreversible deletion",
2881
- "name": "confirm",
2882
- "allowNo": false,
2883
- "type": "boolean"
2884
2904
  }
2885
2905
  },
2886
2906
  "hasDynamicHelp": false,
2887
2907
  "hiddenAliases": [],
2888
- "id": "projects:delete",
2908
+ "id": "roles:delete",
2889
2909
  "pluginAlias": "@bussolabs/closeyourit-cli",
2890
2910
  "pluginName": "@bussolabs/closeyourit-cli",
2891
2911
  "pluginType": "core",
@@ -2895,17 +2915,17 @@
2895
2915
  "relativePath": [
2896
2916
  "dist",
2897
2917
  "commands",
2898
- "projects",
2918
+ "roles",
2899
2919
  "delete.js"
2900
2920
  ]
2901
2921
  },
2902
- "projects:list": {
2922
+ "roles:list": {
2903
2923
  "aliases": [],
2904
2924
  "args": {},
2905
- "description": "List the projects visible to you",
2925
+ "description": "List the RBAC roles in your organization",
2906
2926
  "examples": [
2907
- "<%= config.bin %> projects list",
2908
- "<%= config.bin %> projects list --page 2 --json"
2927
+ "<%= config.bin %> roles list",
2928
+ "<%= config.bin %> roles list --json"
2909
2929
  ],
2910
2930
  "flags": {
2911
2931
  "json": {
@@ -2926,7 +2946,7 @@
2926
2946
  },
2927
2947
  "hasDynamicHelp": false,
2928
2948
  "hiddenAliases": [],
2929
- "id": "projects:list",
2949
+ "id": "roles:list",
2930
2950
  "pluginAlias": "@bussolabs/closeyourit-cli",
2931
2951
  "pluginName": "@bussolabs/closeyourit-cli",
2932
2952
  "pluginType": "core",
@@ -2936,17 +2956,22 @@
2936
2956
  "relativePath": [
2937
2957
  "dist",
2938
2958
  "commands",
2939
- "projects",
2959
+ "roles",
2940
2960
  "list.js"
2941
2961
  ]
2942
2962
  },
2943
- "projects:set-environments": {
2963
+ "roles:show": {
2944
2964
  "aliases": [],
2945
- "args": {},
2946
- "description": "Declare the environments a project receives data from (replaces the current set)",
2965
+ "args": {
2966
+ "role": {
2967
+ "description": "Role id (UUID) or name",
2968
+ "name": "role",
2969
+ "required": true
2970
+ }
2971
+ },
2972
+ "description": "Show a role by id or name (with its permission keys)",
2947
2973
  "examples": [
2948
- "<%= config.bin %> projects set-environments --project legalbloom-rails --code production",
2949
- "<%= config.bin %> projects set-environments -p LBRA --code production --code staging"
2974
+ "<%= config.bin %> roles show Client"
2950
2975
  ],
2951
2976
  "flags": {
2952
2977
  "json": {
@@ -2955,36 +2980,11 @@
2955
2980
  "name": "json",
2956
2981
  "allowNo": false,
2957
2982
  "type": "boolean"
2958
- },
2959
- "project": {
2960
- "char": "p",
2961
- "description": "Project id (UUID) or key",
2962
- "name": "project",
2963
- "required": true,
2964
- "hasDynamicHelp": false,
2965
- "multiple": false,
2966
- "type": "option"
2967
- },
2968
- "code": {
2969
- "description": "Environment code, e.g. production (repeatable)",
2970
- "name": "code",
2971
- "default": [],
2972
- "hasDynamicHelp": false,
2973
- "multiple": true,
2974
- "type": "option"
2975
- },
2976
- "environment-id": {
2977
- "description": "Environment id / UUID (repeatable)",
2978
- "name": "environment-id",
2979
- "default": [],
2980
- "hasDynamicHelp": false,
2981
- "multiple": true,
2982
- "type": "option"
2983
2983
  }
2984
2984
  },
2985
2985
  "hasDynamicHelp": false,
2986
2986
  "hiddenAliases": [],
2987
- "id": "projects:set-environments",
2987
+ "id": "roles:show",
2988
2988
  "pluginAlias": "@bussolabs/closeyourit-cli",
2989
2989
  "pluginName": "@bussolabs/closeyourit-cli",
2990
2990
  "pluginType": "core",
@@ -2994,17 +2994,23 @@
2994
2994
  "relativePath": [
2995
2995
  "dist",
2996
2996
  "commands",
2997
- "projects",
2998
- "set-environments.js"
2997
+ "roles",
2998
+ "show.js"
2999
2999
  ]
3000
3000
  },
3001
- "projects:set-platforms": {
3001
+ "roles:update": {
3002
3002
  "aliases": [],
3003
- "args": {},
3004
- "description": "Declare the platforms of a project (replaces the current set)",
3003
+ "args": {
3004
+ "role": {
3005
+ "description": "Role id (UUID) or name",
3006
+ "name": "role",
3007
+ "required": true
3008
+ }
3009
+ },
3010
+ "description": "Update a role (rename, recolor, or replace its permission keys)",
3005
3011
  "examples": [
3006
- "<%= config.bin %> projects set-platforms --project legalbloom-rails --code web",
3007
- "<%= config.bin %> projects set-platforms -p LBRA --code web --code ios"
3012
+ "<%= config.bin %> roles update Client --permission tickets.edit --permission tickets.assign",
3013
+ "<%= config.bin %> roles update Client --name \"Client manager\""
3008
3014
  ],
3009
3015
  "flags": {
3010
3016
  "json": {
@@ -3014,27 +3020,23 @@
3014
3020
  "allowNo": false,
3015
3021
  "type": "boolean"
3016
3022
  },
3017
- "project": {
3018
- "char": "p",
3019
- "description": "Project id (UUID) or key",
3020
- "name": "project",
3021
- "required": true,
3023
+ "color": {
3024
+ "description": "Color label",
3025
+ "name": "color",
3022
3026
  "hasDynamicHelp": false,
3023
3027
  "multiple": false,
3024
3028
  "type": "option"
3025
3029
  },
3026
- "code": {
3027
- "description": "Platform code, e.g. web (repeatable)",
3028
- "name": "code",
3029
- "default": [],
3030
+ "name": {
3031
+ "description": "New name",
3032
+ "name": "name",
3030
3033
  "hasDynamicHelp": false,
3031
- "multiple": true,
3034
+ "multiple": false,
3032
3035
  "type": "option"
3033
3036
  },
3034
- "platform-id": {
3035
- "description": "Platform id / UUID (repeatable)",
3036
- "name": "platform-id",
3037
- "default": [],
3037
+ "permission": {
3038
+ "description": "Permission key (repeatable); when given, REPLACES the whole set",
3039
+ "name": "permission",
3038
3040
  "hasDynamicHelp": false,
3039
3041
  "multiple": true,
3040
3042
  "type": "option"
@@ -3042,7 +3044,7 @@
3042
3044
  },
3043
3045
  "hasDynamicHelp": false,
3044
3046
  "hiddenAliases": [],
3045
- "id": "projects:set-platforms",
3047
+ "id": "roles:update",
3046
3048
  "pluginAlias": "@bussolabs/closeyourit-cli",
3047
3049
  "pluginName": "@bussolabs/closeyourit-cli",
3048
3050
  "pluginType": "core",
@@ -3052,23 +3054,22 @@
3052
3054
  "relativePath": [
3053
3055
  "dist",
3054
3056
  "commands",
3055
- "projects",
3056
- "set-platforms.js"
3057
+ "roles",
3058
+ "update.js"
3057
3059
  ]
3058
3060
  },
3059
- "projects:show": {
3061
+ "servers:delete": {
3060
3062
  "aliases": [],
3061
3063
  "args": {
3062
3064
  "id": {
3063
- "description": "Project id (UUID) or key",
3065
+ "description": "Server id",
3064
3066
  "name": "id",
3065
3067
  "required": true
3066
3068
  }
3067
3069
  },
3068
- "description": "Show a single project by id or key",
3070
+ "description": "Delete a server and all its metrics (a live agent would re-register it)",
3069
3071
  "examples": [
3070
- "<%= config.bin %> projects show acme-api",
3071
- "<%= config.bin %> projects show <uuid> --json"
3072
+ "<%= config.bin %> servers delete <server-id> --confirm"
3072
3073
  ],
3073
3074
  "flags": {
3074
3075
  "json": {
@@ -3077,11 +3078,17 @@
3077
3078
  "name": "json",
3078
3079
  "allowNo": false,
3079
3080
  "type": "boolean"
3081
+ },
3082
+ "confirm": {
3083
+ "description": "Required: confirm the deletion",
3084
+ "name": "confirm",
3085
+ "allowNo": false,
3086
+ "type": "boolean"
3080
3087
  }
3081
3088
  },
3082
3089
  "hasDynamicHelp": false,
3083
3090
  "hiddenAliases": [],
3084
- "id": "projects:show",
3091
+ "id": "servers:delete",
3085
3092
  "pluginAlias": "@bussolabs/closeyourit-cli",
3086
3093
  "pluginName": "@bussolabs/closeyourit-cli",
3087
3094
  "pluginType": "core",
@@ -3091,17 +3098,17 @@
3091
3098
  "relativePath": [
3092
3099
  "dist",
3093
3100
  "commands",
3094
- "projects",
3095
- "show.js"
3101
+ "servers",
3102
+ "delete.js"
3096
3103
  ]
3097
3104
  },
3098
- "projects:update": {
3105
+ "servers:list": {
3099
3106
  "aliases": [],
3100
3107
  "args": {},
3101
- "description": "Update a project (name, key, color, description, group)",
3108
+ "description": "List the monitored servers in your organization (fleet snapshot)",
3102
3109
  "examples": [
3103
- "<%= config.bin %> projects update --project LBRA --name \"New name\"",
3104
- "<%= config.bin %> projects update -p LBRA --group Backend"
3110
+ "<%= config.bin %> servers list",
3111
+ "<%= config.bin %> servers list --status down --json"
3105
3112
  ],
3106
3113
  "flags": {
3107
3114
  "json": {
@@ -3111,54 +3118,31 @@
3111
3118
  "allowNo": false,
3112
3119
  "type": "boolean"
3113
3120
  },
3114
- "project": {
3115
- "char": "p",
3116
- "description": "Project id (UUID) or key",
3117
- "name": "project",
3118
- "required": true,
3119
- "hasDynamicHelp": false,
3120
- "multiple": false,
3121
- "type": "option"
3122
- },
3123
- "name": {
3124
- "description": "New project name",
3125
- "name": "name",
3126
- "hasDynamicHelp": false,
3127
- "multiple": false,
3128
- "type": "option"
3129
- },
3130
- "key": {
3131
- "description": "New project key (uppercase A-Z0-9)",
3132
- "name": "key",
3133
- "hasDynamicHelp": false,
3134
- "multiple": false,
3135
- "type": "option"
3136
- },
3137
- "color": {
3138
- "description": "Color label",
3139
- "name": "color",
3140
- "hasDynamicHelp": false,
3141
- "multiple": false,
3142
- "type": "option"
3143
- },
3144
- "description": {
3145
- "description": "Free-form description",
3146
- "name": "description",
3121
+ "page": {
3122
+ "description": "Page number",
3123
+ "name": "page",
3124
+ "default": 1,
3147
3125
  "hasDynamicHelp": false,
3148
3126
  "multiple": false,
3149
3127
  "type": "option"
3150
3128
  },
3151
- "group": {
3152
- "description": "Group id (UUID) or name to move the project into",
3153
- "name": "group",
3129
+ "status": {
3130
+ "description": "Filter by status (repeatable)",
3131
+ "name": "status",
3154
3132
  "hasDynamicHelp": false,
3155
- "multiple": false,
3133
+ "multiple": true,
3134
+ "options": [
3135
+ "pending",
3136
+ "up",
3137
+ "down",
3138
+ "paused"
3139
+ ],
3156
3140
  "type": "option"
3157
3141
  }
3158
3142
  },
3159
3143
  "hasDynamicHelp": false,
3160
3144
  "hiddenAliases": [],
3161
- "id": "projects:update",
3145
+ "id": "servers:list",
3162
3146
  "pluginAlias": "@bussolabs/closeyourit-cli",
3163
3147
  "pluginName": "@bussolabs/closeyourit-cli",
3164
3148
  "pluginType": "core",
@@ -3168,22 +3152,22 @@
3168
3152
  "relativePath": [
3169
3153
  "dist",
3170
3154
  "commands",
3171
- "projects",
3172
- "update.js"
3155
+ "servers",
3156
+ "list.js"
3173
3157
  ]
3174
3158
  },
3175
- "roles:create": {
3159
+ "servers:pause": {
3176
3160
  "aliases": [],
3177
3161
  "args": {
3178
- "name": {
3179
- "description": "Role name",
3180
- "name": "name",
3162
+ "id": {
3163
+ "description": "Server id",
3164
+ "name": "id",
3181
3165
  "required": true
3182
3166
  }
3183
3167
  },
3184
- "description": "Create an RBAC role (a named bundle of permission keys)",
3168
+ "description": "Pause a server (no staleness checks or alerts until resumed)",
3185
3169
  "examples": [
3186
- "<%= config.bin %> roles create Client --permission tickets.edit --permission tickets.assign"
3170
+ "<%= config.bin %> servers pause <server-id>"
3187
3171
  ],
3188
3172
  "flags": {
3189
3173
  "json": {
@@ -3192,25 +3176,11 @@
3192
3176
  "name": "json",
3193
3177
  "allowNo": false,
3194
3178
  "type": "boolean"
3195
- },
3196
- "color": {
3197
- "description": "Color label",
3198
- "name": "color",
3199
- "hasDynamicHelp": false,
3200
- "multiple": false,
3201
- "type": "option"
3202
- },
3203
- "permission": {
3204
- "description": "Permission key from the catalog (repeatable)",
3205
- "name": "permission",
3206
- "hasDynamicHelp": false,
3207
- "multiple": true,
3208
- "type": "option"
3209
3179
  }
3210
3180
  },
3211
3181
  "hasDynamicHelp": false,
3212
3182
  "hiddenAliases": [],
3213
- "id": "roles:create",
3183
+ "id": "servers:pause",
3214
3184
  "pluginAlias": "@bussolabs/closeyourit-cli",
3215
3185
  "pluginName": "@bussolabs/closeyourit-cli",
3216
3186
  "pluginType": "core",
@@ -3220,22 +3190,22 @@
3220
3190
  "relativePath": [
3221
3191
  "dist",
3222
3192
  "commands",
3223
- "roles",
3224
- "create.js"
3193
+ "servers",
3194
+ "pause.js"
3225
3195
  ]
3226
3196
  },
3227
- "roles:delete": {
3197
+ "servers:rename": {
3228
3198
  "aliases": [],
3229
3199
  "args": {
3230
- "role": {
3231
- "description": "Role id (UUID) or name",
3232
- "name": "role",
3200
+ "id": {
3201
+ "description": "Server id",
3202
+ "name": "id",
3233
3203
  "required": true
3234
3204
  }
3235
3205
  },
3236
- "description": "Delete a role (its assignments to teams and accounts are removed)",
3206
+ "description": "Rename a monitored server (display name only)",
3237
3207
  "examples": [
3238
- "<%= config.bin %> roles delete Client"
3208
+ "<%= config.bin %> servers rename <server-id> --name apps-prod"
3239
3209
  ],
3240
3210
  "flags": {
3241
3211
  "json": {
@@ -3244,11 +3214,19 @@
3244
3214
  "name": "json",
3245
3215
  "allowNo": false,
3246
3216
  "type": "boolean"
3217
+ },
3218
+ "name": {
3219
+ "description": "New display name",
3220
+ "name": "name",
3221
+ "required": true,
3222
+ "hasDynamicHelp": false,
3223
+ "multiple": false,
3224
+ "type": "option"
3247
3225
  }
3248
3226
  },
3249
3227
  "hasDynamicHelp": false,
3250
3228
  "hiddenAliases": [],
3251
- "id": "roles:delete",
3229
+ "id": "servers:rename",
3252
3230
  "pluginAlias": "@bussolabs/closeyourit-cli",
3253
3231
  "pluginName": "@bussolabs/closeyourit-cli",
3254
3232
  "pluginType": "core",
@@ -3258,17 +3236,22 @@
3258
3236
  "relativePath": [
3259
3237
  "dist",
3260
3238
  "commands",
3261
- "roles",
3262
- "delete.js"
3239
+ "servers",
3240
+ "rename.js"
3263
3241
  ]
3264
3242
  },
3265
- "roles:list": {
3243
+ "servers:resume": {
3266
3244
  "aliases": [],
3267
- "args": {},
3268
- "description": "List the RBAC roles in your organization",
3245
+ "args": {
3246
+ "id": {
3247
+ "description": "Server id",
3248
+ "name": "id",
3249
+ "required": true
3250
+ }
3251
+ },
3252
+ "description": "Resume a paused server (back up at the next agent push)",
3269
3253
  "examples": [
3270
- "<%= config.bin %> roles list",
3271
- "<%= config.bin %> roles list --json"
3254
+ "<%= config.bin %> servers resume <server-id>"
3272
3255
  ],
3273
3256
  "flags": {
3274
3257
  "json": {
@@ -3277,19 +3260,11 @@
3277
3260
  "name": "json",
3278
3261
  "allowNo": false,
3279
3262
  "type": "boolean"
3280
- },
3281
- "page": {
3282
- "description": "Page number",
3283
- "name": "page",
3284
- "default": 1,
3285
- "hasDynamicHelp": false,
3286
- "multiple": false,
3287
- "type": "option"
3288
3263
  }
3289
3264
  },
3290
3265
  "hasDynamicHelp": false,
3291
3266
  "hiddenAliases": [],
3292
- "id": "roles:list",
3267
+ "id": "servers:resume",
3293
3268
  "pluginAlias": "@bussolabs/closeyourit-cli",
3294
3269
  "pluginName": "@bussolabs/closeyourit-cli",
3295
3270
  "pluginType": "core",
@@ -3299,22 +3274,22 @@
3299
3274
  "relativePath": [
3300
3275
  "dist",
3301
3276
  "commands",
3302
- "roles",
3303
- "list.js"
3277
+ "servers",
3278
+ "resume.js"
3304
3279
  ]
3305
3280
  },
3306
- "roles:show": {
3281
+ "servers:revoke": {
3307
3282
  "aliases": [],
3308
3283
  "args": {
3309
- "role": {
3310
- "description": "Role id (UUID) or name",
3311
- "name": "role",
3284
+ "id": {
3285
+ "description": "Server id",
3286
+ "name": "id",
3312
3287
  "required": true
3313
3288
  }
3314
3289
  },
3315
- "description": "Show a role by id or name (with its permission keys)",
3290
+ "description": "Revoke a server: its agent gets 403 and stops (host stays, reversible)",
3316
3291
  "examples": [
3317
- "<%= config.bin %> roles show Client"
3292
+ "<%= config.bin %> servers revoke <server-id> --confirm"
3318
3293
  ],
3319
3294
  "flags": {
3320
3295
  "json": {
@@ -3323,11 +3298,17 @@
3323
3298
  "name": "json",
3324
3299
  "allowNo": false,
3325
3300
  "type": "boolean"
3301
+ },
3302
+ "confirm": {
3303
+ "description": "Required: confirm the revocation",
3304
+ "name": "confirm",
3305
+ "allowNo": false,
3306
+ "type": "boolean"
3326
3307
  }
3327
3308
  },
3328
3309
  "hasDynamicHelp": false,
3329
3310
  "hiddenAliases": [],
3330
- "id": "roles:show",
3311
+ "id": "servers:revoke",
3331
3312
  "pluginAlias": "@bussolabs/closeyourit-cli",
3332
3313
  "pluginName": "@bussolabs/closeyourit-cli",
3333
3314
  "pluginType": "core",
@@ -3337,23 +3318,22 @@
3337
3318
  "relativePath": [
3338
3319
  "dist",
3339
3320
  "commands",
3340
- "roles",
3341
- "show.js"
3321
+ "servers",
3322
+ "revoke.js"
3342
3323
  ]
3343
3324
  },
3344
- "roles:update": {
3325
+ "servers:show": {
3345
3326
  "aliases": [],
3346
3327
  "args": {
3347
- "role": {
3348
- "description": "Role id (UUID) or name",
3349
- "name": "role",
3328
+ "id": {
3329
+ "description": "Server id",
3330
+ "name": "id",
3350
3331
  "required": true
3351
3332
  }
3352
3333
  },
3353
- "description": "Update a role (rename, recolor, or replace its permission keys)",
3334
+ "description": "Show a monitored server (latest snapshot)",
3354
3335
  "examples": [
3355
- "<%= config.bin %> roles update Client --permission tickets.edit --permission tickets.assign",
3356
- "<%= config.bin %> roles update Client --name \"Client manager\""
3336
+ "<%= config.bin %> servers show <server-id>"
3357
3337
  ],
3358
3338
  "flags": {
3359
3339
  "json": {
@@ -3362,32 +3342,11 @@
3362
3342
  "name": "json",
3363
3343
  "allowNo": false,
3364
3344
  "type": "boolean"
3365
- },
3366
- "color": {
3367
- "description": "Color label",
3368
- "name": "color",
3369
- "hasDynamicHelp": false,
3370
- "multiple": false,
3371
- "type": "option"
3372
- },
3373
- "name": {
3374
- "description": "New name",
3375
- "name": "name",
3376
- "hasDynamicHelp": false,
3377
- "multiple": false,
3378
- "type": "option"
3379
- },
3380
- "permission": {
3381
- "description": "Permission key (repeatable); when given, REPLACES the whole set",
3382
- "name": "permission",
3383
- "hasDynamicHelp": false,
3384
- "multiple": true,
3385
- "type": "option"
3386
3345
  }
3387
3346
  },
3388
3347
  "hasDynamicHelp": false,
3389
3348
  "hiddenAliases": [],
3390
- "id": "roles:update",
3349
+ "id": "servers:show",
3391
3350
  "pluginAlias": "@bussolabs/closeyourit-cli",
3392
3351
  "pluginName": "@bussolabs/closeyourit-cli",
3393
3352
  "pluginType": "core",
@@ -3397,11 +3356,11 @@
3397
3356
  "relativePath": [
3398
3357
  "dist",
3399
3358
  "commands",
3400
- "roles",
3401
- "update.js"
3359
+ "servers",
3360
+ "show.js"
3402
3361
  ]
3403
3362
  },
3404
- "servers:delete": {
3363
+ "servers:unrevoke": {
3405
3364
  "aliases": [],
3406
3365
  "args": {
3407
3366
  "id": {
@@ -3410,9 +3369,9 @@
3410
3369
  "required": true
3411
3370
  }
3412
3371
  },
3413
- "description": "Delete a server and all its metrics (a live agent would re-register it)",
3372
+ "description": "Restore a revoked server (its agent can push again)",
3414
3373
  "examples": [
3415
- "<%= config.bin %> servers delete <server-id> --confirm"
3374
+ "<%= config.bin %> servers unrevoke <server-id>"
3416
3375
  ],
3417
3376
  "flags": {
3418
3377
  "json": {
@@ -3421,17 +3380,11 @@
3421
3380
  "name": "json",
3422
3381
  "allowNo": false,
3423
3382
  "type": "boolean"
3424
- },
3425
- "confirm": {
3426
- "description": "Required: confirm the deletion",
3427
- "name": "confirm",
3428
- "allowNo": false,
3429
- "type": "boolean"
3430
3383
  }
3431
3384
  },
3432
3385
  "hasDynamicHelp": false,
3433
3386
  "hiddenAliases": [],
3434
- "id": "servers:delete",
3387
+ "id": "servers:unrevoke",
3435
3388
  "pluginAlias": "@bussolabs/closeyourit-cli",
3436
3389
  "pluginName": "@bussolabs/closeyourit-cli",
3437
3390
  "pluginType": "core",
@@ -3442,16 +3395,23 @@
3442
3395
  "dist",
3443
3396
  "commands",
3444
3397
  "servers",
3445
- "delete.js"
3398
+ "unrevoke.js"
3446
3399
  ]
3447
3400
  },
3448
- "servers:list": {
3401
+ "projects:create": {
3449
3402
  "aliases": [],
3450
- "args": {},
3451
- "description": "List the monitored servers in your organization (fleet snapshot)",
3403
+ "args": {
3404
+ "name": {
3405
+ "description": "Project name",
3406
+ "name": "name",
3407
+ "required": true
3408
+ }
3409
+ },
3410
+ "description": "Create a project (optionally inside a group)",
3452
3411
  "examples": [
3453
- "<%= config.bin %> servers list",
3454
- "<%= config.bin %> servers list --status down --json"
3412
+ "<%= config.bin %> projects create driverone-rails --key DRRA",
3413
+ "<%= config.bin %> projects create driverone-rails --group DriverOne --key DRRA",
3414
+ "<%= config.bin %> projects create driverone-flutter -g <group-uuid> -k DRFL"
3455
3415
  ],
3456
3416
  "flags": {
3457
3417
  "json": {
@@ -3461,31 +3421,41 @@
3461
3421
  "allowNo": false,
3462
3422
  "type": "boolean"
3463
3423
  },
3464
- "page": {
3465
- "description": "Page number",
3466
- "name": "page",
3467
- "default": 1,
3424
+ "color": {
3425
+ "description": "Color label",
3426
+ "name": "color",
3468
3427
  "hasDynamicHelp": false,
3469
3428
  "multiple": false,
3470
3429
  "type": "option"
3471
3430
  },
3472
- "status": {
3473
- "description": "Filter by status (repeatable)",
3474
- "name": "status",
3431
+ "description": {
3432
+ "description": "Free-form description",
3433
+ "name": "description",
3475
3434
  "hasDynamicHelp": false,
3476
- "multiple": true,
3477
- "options": [
3478
- "pending",
3479
- "up",
3480
- "down",
3481
- "paused"
3482
- ],
3435
+ "multiple": false,
3436
+ "type": "option"
3437
+ },
3438
+ "group": {
3439
+ "char": "g",
3440
+ "description": "Group id (UUID) or name to place the project in",
3441
+ "name": "group",
3442
+ "hasDynamicHelp": false,
3443
+ "multiple": false,
3444
+ "type": "option"
3445
+ },
3446
+ "key": {
3447
+ "char": "k",
3448
+ "description": "Project key (uppercase A-Z0-9, max 4 chars, unique per org)",
3449
+ "name": "key",
3450
+ "required": true,
3451
+ "hasDynamicHelp": false,
3452
+ "multiple": false,
3483
3453
  "type": "option"
3484
3454
  }
3485
3455
  },
3486
3456
  "hasDynamicHelp": false,
3487
3457
  "hiddenAliases": [],
3488
- "id": "servers:list",
3458
+ "id": "projects:create",
3489
3459
  "pluginAlias": "@bussolabs/closeyourit-cli",
3490
3460
  "pluginName": "@bussolabs/closeyourit-cli",
3491
3461
  "pluginType": "core",
@@ -3495,22 +3465,16 @@
3495
3465
  "relativePath": [
3496
3466
  "dist",
3497
3467
  "commands",
3498
- "servers",
3499
- "list.js"
3468
+ "projects",
3469
+ "create.js"
3500
3470
  ]
3501
3471
  },
3502
- "servers:pause": {
3472
+ "projects:delete": {
3503
3473
  "aliases": [],
3504
- "args": {
3505
- "id": {
3506
- "description": "Server id",
3507
- "name": "id",
3508
- "required": true
3509
- }
3510
- },
3511
- "description": "Pause a server (no staleness checks or alerts until resumed)",
3474
+ "args": {},
3475
+ "description": "Delete a project (irreversible)",
3512
3476
  "examples": [
3513
- "<%= config.bin %> servers pause <server-id>"
3477
+ "<%= config.bin %> projects delete --project LBRA --confirm"
3514
3478
  ],
3515
3479
  "flags": {
3516
3480
  "json": {
@@ -3519,11 +3483,26 @@
3519
3483
  "name": "json",
3520
3484
  "allowNo": false,
3521
3485
  "type": "boolean"
3486
+ },
3487
+ "project": {
3488
+ "char": "p",
3489
+ "description": "Project id (UUID) or key",
3490
+ "name": "project",
3491
+ "required": true,
3492
+ "hasDynamicHelp": false,
3493
+ "multiple": false,
3494
+ "type": "option"
3495
+ },
3496
+ "confirm": {
3497
+ "description": "Required: confirm the irreversible deletion",
3498
+ "name": "confirm",
3499
+ "allowNo": false,
3500
+ "type": "boolean"
3522
3501
  }
3523
3502
  },
3524
3503
  "hasDynamicHelp": false,
3525
3504
  "hiddenAliases": [],
3526
- "id": "servers:pause",
3505
+ "id": "projects:delete",
3527
3506
  "pluginAlias": "@bussolabs/closeyourit-cli",
3528
3507
  "pluginName": "@bussolabs/closeyourit-cli",
3529
3508
  "pluginType": "core",
@@ -3533,22 +3512,17 @@
3533
3512
  "relativePath": [
3534
3513
  "dist",
3535
3514
  "commands",
3536
- "servers",
3537
- "pause.js"
3515
+ "projects",
3516
+ "delete.js"
3538
3517
  ]
3539
3518
  },
3540
- "servers:rename": {
3519
+ "projects:list": {
3541
3520
  "aliases": [],
3542
- "args": {
3543
- "id": {
3544
- "description": "Server id",
3545
- "name": "id",
3546
- "required": true
3547
- }
3548
- },
3549
- "description": "Rename a monitored server (display name only)",
3521
+ "args": {},
3522
+ "description": "List the projects visible to you",
3550
3523
  "examples": [
3551
- "<%= config.bin %> servers rename <server-id> --name apps-prod"
3524
+ "<%= config.bin %> projects list",
3525
+ "<%= config.bin %> projects list --page 2 --json"
3552
3526
  ],
3553
3527
  "flags": {
3554
3528
  "json": {
@@ -3558,10 +3532,10 @@
3558
3532
  "allowNo": false,
3559
3533
  "type": "boolean"
3560
3534
  },
3561
- "name": {
3562
- "description": "New display name",
3563
- "name": "name",
3564
- "required": true,
3535
+ "page": {
3536
+ "description": "Page number",
3537
+ "name": "page",
3538
+ "default": 1,
3565
3539
  "hasDynamicHelp": false,
3566
3540
  "multiple": false,
3567
3541
  "type": "option"
@@ -3569,7 +3543,7 @@
3569
3543
  },
3570
3544
  "hasDynamicHelp": false,
3571
3545
  "hiddenAliases": [],
3572
- "id": "servers:rename",
3546
+ "id": "projects:list",
3573
3547
  "pluginAlias": "@bussolabs/closeyourit-cli",
3574
3548
  "pluginName": "@bussolabs/closeyourit-cli",
3575
3549
  "pluginType": "core",
@@ -3579,22 +3553,17 @@
3579
3553
  "relativePath": [
3580
3554
  "dist",
3581
3555
  "commands",
3582
- "servers",
3583
- "rename.js"
3556
+ "projects",
3557
+ "list.js"
3584
3558
  ]
3585
3559
  },
3586
- "servers:resume": {
3560
+ "projects:set-environments": {
3587
3561
  "aliases": [],
3588
- "args": {
3589
- "id": {
3590
- "description": "Server id",
3591
- "name": "id",
3592
- "required": true
3593
- }
3594
- },
3595
- "description": "Resume a paused server (back up at the next agent push)",
3562
+ "args": {},
3563
+ "description": "Declare the environments a project receives data from (replaces the current set)",
3596
3564
  "examples": [
3597
- "<%= config.bin %> servers resume <server-id>"
3565
+ "<%= config.bin %> projects set-environments --project legalbloom-rails --code production",
3566
+ "<%= config.bin %> projects set-environments -p LBRA --code production --code staging"
3598
3567
  ],
3599
3568
  "flags": {
3600
3569
  "json": {
@@ -3603,11 +3572,36 @@
3603
3572
  "name": "json",
3604
3573
  "allowNo": false,
3605
3574
  "type": "boolean"
3575
+ },
3576
+ "project": {
3577
+ "char": "p",
3578
+ "description": "Project id (UUID) or key",
3579
+ "name": "project",
3580
+ "required": true,
3581
+ "hasDynamicHelp": false,
3582
+ "multiple": false,
3583
+ "type": "option"
3584
+ },
3585
+ "code": {
3586
+ "description": "Environment code, e.g. production (repeatable)",
3587
+ "name": "code",
3588
+ "default": [],
3589
+ "hasDynamicHelp": false,
3590
+ "multiple": true,
3591
+ "type": "option"
3592
+ },
3593
+ "environment-id": {
3594
+ "description": "Environment id / UUID (repeatable)",
3595
+ "name": "environment-id",
3596
+ "default": [],
3597
+ "hasDynamicHelp": false,
3598
+ "multiple": true,
3599
+ "type": "option"
3606
3600
  }
3607
3601
  },
3608
3602
  "hasDynamicHelp": false,
3609
3603
  "hiddenAliases": [],
3610
- "id": "servers:resume",
3604
+ "id": "projects:set-environments",
3611
3605
  "pluginAlias": "@bussolabs/closeyourit-cli",
3612
3606
  "pluginName": "@bussolabs/closeyourit-cli",
3613
3607
  "pluginType": "core",
@@ -3617,22 +3611,17 @@
3617
3611
  "relativePath": [
3618
3612
  "dist",
3619
3613
  "commands",
3620
- "servers",
3621
- "resume.js"
3614
+ "projects",
3615
+ "set-environments.js"
3622
3616
  ]
3623
3617
  },
3624
- "servers:revoke": {
3618
+ "projects:set-platforms": {
3625
3619
  "aliases": [],
3626
- "args": {
3627
- "id": {
3628
- "description": "Server id",
3629
- "name": "id",
3630
- "required": true
3631
- }
3632
- },
3633
- "description": "Revoke a server: its agent gets 403 and stops (host stays, reversible)",
3620
+ "args": {},
3621
+ "description": "Declare the platforms of a project (replaces the current set)",
3634
3622
  "examples": [
3635
- "<%= config.bin %> servers revoke <server-id> --confirm"
3623
+ "<%= config.bin %> projects set-platforms --project legalbloom-rails --code web",
3624
+ "<%= config.bin %> projects set-platforms -p LBRA --code web --code ios"
3636
3625
  ],
3637
3626
  "flags": {
3638
3627
  "json": {
@@ -3642,16 +3631,35 @@
3642
3631
  "allowNo": false,
3643
3632
  "type": "boolean"
3644
3633
  },
3645
- "confirm": {
3646
- "description": "Required: confirm the revocation",
3647
- "name": "confirm",
3648
- "allowNo": false,
3649
- "type": "boolean"
3634
+ "project": {
3635
+ "char": "p",
3636
+ "description": "Project id (UUID) or key",
3637
+ "name": "project",
3638
+ "required": true,
3639
+ "hasDynamicHelp": false,
3640
+ "multiple": false,
3641
+ "type": "option"
3642
+ },
3643
+ "code": {
3644
+ "description": "Platform code, e.g. web (repeatable)",
3645
+ "name": "code",
3646
+ "default": [],
3647
+ "hasDynamicHelp": false,
3648
+ "multiple": true,
3649
+ "type": "option"
3650
+ },
3651
+ "platform-id": {
3652
+ "description": "Platform id / UUID (repeatable)",
3653
+ "name": "platform-id",
3654
+ "default": [],
3655
+ "hasDynamicHelp": false,
3656
+ "multiple": true,
3657
+ "type": "option"
3650
3658
  }
3651
3659
  },
3652
3660
  "hasDynamicHelp": false,
3653
3661
  "hiddenAliases": [],
3654
- "id": "servers:revoke",
3662
+ "id": "projects:set-platforms",
3655
3663
  "pluginAlias": "@bussolabs/closeyourit-cli",
3656
3664
  "pluginName": "@bussolabs/closeyourit-cli",
3657
3665
  "pluginType": "core",
@@ -3661,22 +3669,23 @@
3661
3669
  "relativePath": [
3662
3670
  "dist",
3663
3671
  "commands",
3664
- "servers",
3665
- "revoke.js"
3672
+ "projects",
3673
+ "set-platforms.js"
3666
3674
  ]
3667
3675
  },
3668
- "servers:show": {
3676
+ "projects:show": {
3669
3677
  "aliases": [],
3670
3678
  "args": {
3671
3679
  "id": {
3672
- "description": "Server id",
3680
+ "description": "Project id (UUID) or key",
3673
3681
  "name": "id",
3674
3682
  "required": true
3675
3683
  }
3676
3684
  },
3677
- "description": "Show a monitored server (latest snapshot)",
3685
+ "description": "Show a single project by id or key",
3678
3686
  "examples": [
3679
- "<%= config.bin %> servers show <server-id>"
3687
+ "<%= config.bin %> projects show acme-api",
3688
+ "<%= config.bin %> projects show <uuid> --json"
3680
3689
  ],
3681
3690
  "flags": {
3682
3691
  "json": {
@@ -3689,7 +3698,7 @@
3689
3698
  },
3690
3699
  "hasDynamicHelp": false,
3691
3700
  "hiddenAliases": [],
3692
- "id": "servers:show",
3701
+ "id": "projects:show",
3693
3702
  "pluginAlias": "@bussolabs/closeyourit-cli",
3694
3703
  "pluginName": "@bussolabs/closeyourit-cli",
3695
3704
  "pluginType": "core",
@@ -3699,22 +3708,104 @@
3699
3708
  "relativePath": [
3700
3709
  "dist",
3701
3710
  "commands",
3702
- "servers",
3711
+ "projects",
3703
3712
  "show.js"
3704
3713
  ]
3705
3714
  },
3706
- "servers:unrevoke": {
3715
+ "projects:update": {
3716
+ "aliases": [],
3717
+ "args": {},
3718
+ "description": "Update a project (name, key, color, description, group)",
3719
+ "examples": [
3720
+ "<%= config.bin %> projects update --project LBRA --name \"New name\"",
3721
+ "<%= config.bin %> projects update -p LBRA --group Backend"
3722
+ ],
3723
+ "flags": {
3724
+ "json": {
3725
+ "description": "Format output as json.",
3726
+ "helpGroup": "GLOBAL",
3727
+ "name": "json",
3728
+ "allowNo": false,
3729
+ "type": "boolean"
3730
+ },
3731
+ "project": {
3732
+ "char": "p",
3733
+ "description": "Project id (UUID) or key",
3734
+ "name": "project",
3735
+ "required": true,
3736
+ "hasDynamicHelp": false,
3737
+ "multiple": false,
3738
+ "type": "option"
3739
+ },
3740
+ "name": {
3741
+ "description": "New project name",
3742
+ "name": "name",
3743
+ "hasDynamicHelp": false,
3744
+ "multiple": false,
3745
+ "type": "option"
3746
+ },
3747
+ "key": {
3748
+ "description": "New project key (uppercase A-Z0-9)",
3749
+ "name": "key",
3750
+ "hasDynamicHelp": false,
3751
+ "multiple": false,
3752
+ "type": "option"
3753
+ },
3754
+ "color": {
3755
+ "description": "Color label",
3756
+ "name": "color",
3757
+ "hasDynamicHelp": false,
3758
+ "multiple": false,
3759
+ "type": "option"
3760
+ },
3761
+ "description": {
3762
+ "description": "Free-form description",
3763
+ "name": "description",
3764
+ "hasDynamicHelp": false,
3765
+ "multiple": false,
3766
+ "type": "option"
3767
+ },
3768
+ "group": {
3769
+ "description": "Group id (UUID) or name to move the project into",
3770
+ "name": "group",
3771
+ "hasDynamicHelp": false,
3772
+ "multiple": false,
3773
+ "type": "option"
3774
+ }
3775
+ },
3776
+ "hasDynamicHelp": false,
3777
+ "hiddenAliases": [],
3778
+ "id": "projects:update",
3779
+ "pluginAlias": "@bussolabs/closeyourit-cli",
3780
+ "pluginName": "@bussolabs/closeyourit-cli",
3781
+ "pluginType": "core",
3782
+ "strict": true,
3783
+ "enableJsonFlag": true,
3784
+ "isESM": false,
3785
+ "relativePath": [
3786
+ "dist",
3787
+ "commands",
3788
+ "projects",
3789
+ "update.js"
3790
+ ]
3791
+ },
3792
+ "teams:add-member": {
3707
3793
  "aliases": [],
3708
3794
  "args": {
3709
- "id": {
3710
- "description": "Server id",
3711
- "name": "id",
3795
+ "team": {
3796
+ "description": "Team id (UUID) or name",
3797
+ "name": "team",
3798
+ "required": true
3799
+ },
3800
+ "member": {
3801
+ "description": "Member account id or email (must be an org member)",
3802
+ "name": "member",
3712
3803
  "required": true
3713
3804
  }
3714
3805
  },
3715
- "description": "Restore a revoked server (its agent can push again)",
3806
+ "description": "Add a person to a team, keeping the existing members",
3716
3807
  "examples": [
3717
- "<%= config.bin %> servers unrevoke <server-id>"
3808
+ "<%= config.bin %> teams add-member DriverOne client@acme.com"
3718
3809
  ],
3719
3810
  "flags": {
3720
3811
  "json": {
@@ -3727,7 +3818,7 @@
3727
3818
  },
3728
3819
  "hasDynamicHelp": false,
3729
3820
  "hiddenAliases": [],
3730
- "id": "servers:unrevoke",
3821
+ "id": "teams:add-member",
3731
3822
  "pluginAlias": "@bussolabs/closeyourit-cli",
3732
3823
  "pluginName": "@bussolabs/closeyourit-cli",
3733
3824
  "pluginType": "core",
@@ -3737,16 +3828,23 @@
3737
3828
  "relativePath": [
3738
3829
  "dist",
3739
3830
  "commands",
3740
- "servers",
3741
- "unrevoke.js"
3831
+ "teams",
3832
+ "add-member.js"
3742
3833
  ]
3743
3834
  },
3744
- "tokens:create": {
3835
+ "teams:create": {
3745
3836
  "aliases": [],
3746
- "args": {},
3747
- "description": "Create an ingest token (the secret is shown only once)",
3837
+ "args": {
3838
+ "name": {
3839
+ "description": "Team name",
3840
+ "name": "name",
3841
+ "required": true
3842
+ }
3843
+ },
3844
+ "description": "Create a team and (optionally) set its roles, group/project scope and members",
3748
3845
  "examples": [
3749
- "<%= config.bin %> tokens create --project acme-api --name \"CI prod\" --environment-id <env-id>"
3846
+ "<%= config.bin %> teams create DriverOne --role Client --group DriverOne",
3847
+ "<%= config.bin %> teams create DriverOne --role Client --group DriverOne --member client@acme.com"
3750
3848
  ],
3751
3849
  "flags": {
3752
3850
  "json": {
@@ -3756,35 +3854,45 @@
3756
3854
  "allowNo": false,
3757
3855
  "type": "boolean"
3758
3856
  },
3759
- "project": {
3760
- "char": "p",
3761
- "description": "Project id (UUID) or key",
3762
- "name": "project",
3763
- "required": true,
3857
+ "color": {
3858
+ "description": "Color label",
3859
+ "name": "color",
3764
3860
  "hasDynamicHelp": false,
3765
3861
  "multiple": false,
3766
3862
  "type": "option"
3767
3863
  },
3768
- "name": {
3769
- "description": "Human-readable token name",
3770
- "name": "name",
3771
- "required": true,
3864
+ "group": {
3865
+ "description": "Group id or name to scope the team to (repeatable)",
3866
+ "name": "group",
3772
3867
  "hasDynamicHelp": false,
3773
- "multiple": false,
3868
+ "multiple": true,
3774
3869
  "type": "option"
3775
3870
  },
3776
- "environment-id": {
3777
- "description": "Environment id the token is scoped to",
3778
- "name": "environment-id",
3779
- "required": true,
3871
+ "member": {
3872
+ "description": "Member account id or email (repeatable; must be an org member)",
3873
+ "name": "member",
3780
3874
  "hasDynamicHelp": false,
3781
- "multiple": false,
3875
+ "multiple": true,
3876
+ "type": "option"
3877
+ },
3878
+ "project": {
3879
+ "description": "Project id or key to scope the team to (repeatable)",
3880
+ "name": "project",
3881
+ "hasDynamicHelp": false,
3882
+ "multiple": true,
3883
+ "type": "option"
3884
+ },
3885
+ "role": {
3886
+ "description": "Role id or name to grant to the team (repeatable)",
3887
+ "name": "role",
3888
+ "hasDynamicHelp": false,
3889
+ "multiple": true,
3782
3890
  "type": "option"
3783
3891
  }
3784
3892
  },
3785
3893
  "hasDynamicHelp": false,
3786
3894
  "hiddenAliases": [],
3787
- "id": "tokens:create",
3895
+ "id": "teams:create",
3788
3896
  "pluginAlias": "@bussolabs/closeyourit-cli",
3789
3897
  "pluginName": "@bussolabs/closeyourit-cli",
3790
3898
  "pluginType": "core",
@@ -3794,17 +3902,55 @@
3794
3902
  "relativePath": [
3795
3903
  "dist",
3796
3904
  "commands",
3797
- "tokens",
3905
+ "teams",
3798
3906
  "create.js"
3799
3907
  ]
3800
3908
  },
3801
- "tokens:list": {
3909
+ "teams:delete": {
3910
+ "aliases": [],
3911
+ "args": {
3912
+ "team": {
3913
+ "description": "Team id (UUID) or name",
3914
+ "name": "team",
3915
+ "required": true
3916
+ }
3917
+ },
3918
+ "description": "Delete a team (its members lose the access this team granted)",
3919
+ "examples": [
3920
+ "<%= config.bin %> teams delete DriverOne"
3921
+ ],
3922
+ "flags": {
3923
+ "json": {
3924
+ "description": "Format output as json.",
3925
+ "helpGroup": "GLOBAL",
3926
+ "name": "json",
3927
+ "allowNo": false,
3928
+ "type": "boolean"
3929
+ }
3930
+ },
3931
+ "hasDynamicHelp": false,
3932
+ "hiddenAliases": [],
3933
+ "id": "teams:delete",
3934
+ "pluginAlias": "@bussolabs/closeyourit-cli",
3935
+ "pluginName": "@bussolabs/closeyourit-cli",
3936
+ "pluginType": "core",
3937
+ "strict": true,
3938
+ "enableJsonFlag": true,
3939
+ "isESM": false,
3940
+ "relativePath": [
3941
+ "dist",
3942
+ "commands",
3943
+ "teams",
3944
+ "delete.js"
3945
+ ]
3946
+ },
3947
+ "teams:list": {
3802
3948
  "aliases": [],
3803
3949
  "args": {},
3804
- "description": "List ingest tokens for a project",
3950
+ "description": "List the teams (people with scope) in your organization",
3805
3951
  "examples": [
3806
- "<%= config.bin %> tokens list --project acme-api",
3807
- "<%= config.bin %> tokens list -p acme-api --json"
3952
+ "<%= config.bin %> teams list",
3953
+ "<%= config.bin %> teams list --json"
3808
3954
  ],
3809
3955
  "flags": {
3810
3956
  "json": {
@@ -3814,11 +3960,10 @@
3814
3960
  "allowNo": false,
3815
3961
  "type": "boolean"
3816
3962
  },
3817
- "project": {
3818
- "char": "p",
3819
- "description": "Project id (UUID) or key",
3820
- "name": "project",
3821
- "required": true,
3963
+ "page": {
3964
+ "description": "Page number",
3965
+ "name": "page",
3966
+ "default": 1,
3822
3967
  "hasDynamicHelp": false,
3823
3968
  "multiple": false,
3824
3969
  "type": "option"
@@ -3826,7 +3971,7 @@
3826
3971
  },
3827
3972
  "hasDynamicHelp": false,
3828
3973
  "hiddenAliases": [],
3829
- "id": "tokens:list",
3974
+ "id": "teams:list",
3830
3975
  "pluginAlias": "@bussolabs/closeyourit-cli",
3831
3976
  "pluginName": "@bussolabs/closeyourit-cli",
3832
3977
  "pluginType": "core",
@@ -3836,22 +3981,27 @@
3836
3981
  "relativePath": [
3837
3982
  "dist",
3838
3983
  "commands",
3839
- "tokens",
3984
+ "teams",
3840
3985
  "list.js"
3841
3986
  ]
3842
3987
  },
3843
- "tokens:revoke": {
3988
+ "teams:remove-member": {
3844
3989
  "aliases": [],
3845
3990
  "args": {
3846
- "id": {
3847
- "description": "Token id",
3848
- "name": "id",
3991
+ "team": {
3992
+ "description": "Team id (UUID) or name",
3993
+ "name": "team",
3994
+ "required": true
3995
+ },
3996
+ "member": {
3997
+ "description": "Member account id or email",
3998
+ "name": "member",
3849
3999
  "required": true
3850
4000
  }
3851
4001
  },
3852
- "description": "Revoke an ingest token",
4002
+ "description": "Remove a person from a team, keeping the other members",
3853
4003
  "examples": [
3854
- "<%= config.bin %> tokens revoke <token-id> --project acme-api"
4004
+ "<%= config.bin %> teams remove-member DriverOne client@acme.com"
3855
4005
  ],
3856
4006
  "flags": {
3857
4007
  "json": {
@@ -3860,20 +4010,11 @@
3860
4010
  "name": "json",
3861
4011
  "allowNo": false,
3862
4012
  "type": "boolean"
3863
- },
3864
- "project": {
3865
- "char": "p",
3866
- "description": "Project id (UUID) or key",
3867
- "name": "project",
3868
- "required": true,
3869
- "hasDynamicHelp": false,
3870
- "multiple": false,
3871
- "type": "option"
3872
4013
  }
3873
4014
  },
3874
4015
  "hasDynamicHelp": false,
3875
4016
  "hiddenAliases": [],
3876
- "id": "tokens:revoke",
4017
+ "id": "teams:remove-member",
3877
4018
  "pluginAlias": "@bussolabs/closeyourit-cli",
3878
4019
  "pluginName": "@bussolabs/closeyourit-cli",
3879
4020
  "pluginType": "core",
@@ -3883,22 +4024,22 @@
3883
4024
  "relativePath": [
3884
4025
  "dist",
3885
4026
  "commands",
3886
- "tokens",
3887
- "revoke.js"
4027
+ "teams",
4028
+ "remove-member.js"
3888
4029
  ]
3889
4030
  },
3890
- "tokens:rotate": {
4031
+ "teams:show": {
3891
4032
  "aliases": [],
3892
4033
  "args": {
3893
- "id": {
3894
- "description": "Token id",
3895
- "name": "id",
4034
+ "team": {
4035
+ "description": "Team id (UUID) or name",
4036
+ "name": "team",
3896
4037
  "required": true
3897
4038
  }
3898
4039
  },
3899
- "description": "Rotate an ingest token (the new secret is shown only once)",
4040
+ "description": "Show a team by id or name (roles, group/project scope, members)",
3900
4041
  "examples": [
3901
- "<%= config.bin %> tokens rotate <token-id> --project acme-api"
4042
+ "<%= config.bin %> teams show DriverOne"
3902
4043
  ],
3903
4044
  "flags": {
3904
4045
  "json": {
@@ -3907,20 +4048,92 @@
3907
4048
  "name": "json",
3908
4049
  "allowNo": false,
3909
4050
  "type": "boolean"
4051
+ }
4052
+ },
4053
+ "hasDynamicHelp": false,
4054
+ "hiddenAliases": [],
4055
+ "id": "teams:show",
4056
+ "pluginAlias": "@bussolabs/closeyourit-cli",
4057
+ "pluginName": "@bussolabs/closeyourit-cli",
4058
+ "pluginType": "core",
4059
+ "strict": true,
4060
+ "enableJsonFlag": true,
4061
+ "isESM": false,
4062
+ "relativePath": [
4063
+ "dist",
4064
+ "commands",
4065
+ "teams",
4066
+ "show.js"
4067
+ ]
4068
+ },
4069
+ "teams:update": {
4070
+ "aliases": [],
4071
+ "args": {
4072
+ "team": {
4073
+ "description": "Team id (UUID) or name",
4074
+ "name": "team",
4075
+ "required": true
4076
+ }
4077
+ },
4078
+ "description": "Update a team. Each given dimension REPLACES the whole set for that dimension.",
4079
+ "examples": [
4080
+ "<%= config.bin %> teams update DriverOne --role Client --group DriverOne",
4081
+ "<%= config.bin %> teams update DriverOne --name \"DriverOne clients\""
4082
+ ],
4083
+ "flags": {
4084
+ "json": {
4085
+ "description": "Format output as json.",
4086
+ "helpGroup": "GLOBAL",
4087
+ "name": "json",
4088
+ "allowNo": false,
4089
+ "type": "boolean"
4090
+ },
4091
+ "color": {
4092
+ "description": "Color label",
4093
+ "name": "color",
4094
+ "hasDynamicHelp": false,
4095
+ "multiple": false,
4096
+ "type": "option"
4097
+ },
4098
+ "group": {
4099
+ "description": "Group id or name (repeatable; replaces the group scope)",
4100
+ "name": "group",
4101
+ "hasDynamicHelp": false,
4102
+ "multiple": true,
4103
+ "type": "option"
4104
+ },
4105
+ "member": {
4106
+ "description": "Member account id or email (repeatable; replaces the members)",
4107
+ "name": "member",
4108
+ "hasDynamicHelp": false,
4109
+ "multiple": true,
4110
+ "type": "option"
4111
+ },
4112
+ "name": {
4113
+ "description": "New name",
4114
+ "name": "name",
4115
+ "hasDynamicHelp": false,
4116
+ "multiple": false,
4117
+ "type": "option"
3910
4118
  },
3911
4119
  "project": {
3912
- "char": "p",
3913
- "description": "Project id (UUID) or key",
4120
+ "description": "Project id or key (repeatable; replaces the project scope)",
3914
4121
  "name": "project",
3915
- "required": true,
3916
4122
  "hasDynamicHelp": false,
3917
- "multiple": false,
4123
+ "multiple": true,
4124
+ "type": "option"
4125
+ },
4126
+ "role": {
4127
+ "description": "Role id or name (repeatable; replaces the roles)",
4128
+ "name": "role",
4129
+ "hasDynamicHelp": false,
4130
+ "multiple": true,
3918
4131
  "type": "option"
3919
4132
  }
3920
4133
  },
3921
4134
  "hasDynamicHelp": false,
3922
4135
  "hiddenAliases": [],
3923
- "id": "tokens:rotate",
4136
+ "id": "teams:update",
3924
4137
  "pluginAlias": "@bussolabs/closeyourit-cli",
3925
4138
  "pluginName": "@bussolabs/closeyourit-cli",
3926
4139
  "pluginType": "core",
@@ -3930,8 +4143,8 @@
3930
4143
  "relativePath": [
3931
4144
  "dist",
3932
4145
  "commands",
3933
- "tokens",
3934
- "rotate.js"
4146
+ "teams",
4147
+ "update.js"
3935
4148
  ]
3936
4149
  },
3937
4150
  "tickets:assign": {
@@ -4061,17 +4274,17 @@
4061
4274
  "aliases": [],
4062
4275
  "args": {
4063
4276
  "id": {
4064
- "description": "Ticket id",
4277
+ "description": "Ticket id or code (e.g. DRFL-3)",
4065
4278
  "name": "id",
4066
4279
  "required": true
4067
4280
  },
4068
4281
  "attachment": {
4069
- "description": "Attachment id",
4282
+ "description": "Attachment id (ticket attachment or comment file)",
4070
4283
  "name": "attachment",
4071
4284
  "required": true
4072
4285
  }
4073
4286
  },
4074
- "description": "Download a ticket attachment to disk",
4287
+ "description": "Download a ticket binary to disk: works for ticket attachments AND files attached to its comments",
4075
4288
  "examples": [
4076
4289
  "<%= config.bin %> tickets attachment-download <ticket-id> <attachment-id> --project acme-api",
4077
4290
  "<%= config.bin %> tickets attachment-download <ticket-id> <attachment-id> -p acme-api --out ./downloads"
@@ -4293,12 +4506,12 @@
4293
4506
  "aliases": [],
4294
4507
  "args": {
4295
4508
  "id": {
4296
- "description": "Ticket id",
4509
+ "description": "Ticket id or code (e.g. DRFL-3)",
4297
4510
  "name": "id",
4298
4511
  "required": true
4299
4512
  }
4300
4513
  },
4301
- "description": "List all comments of a ticket (oldest first)",
4514
+ "description": "List all comments of a ticket (oldest first), including attached files — download them with tickets attachment-download",
4302
4515
  "examples": [
4303
4516
  "<%= config.bin %> tickets comments <ticket-id> --project acme-api",
4304
4517
  "<%= config.bin %> tickets comments <ticket-id> -p acme-api --json"
@@ -4679,14 +4892,16 @@
4679
4892
  "aliases": [],
4680
4893
  "args": {
4681
4894
  "id": {
4682
- "description": "Ticket id or code",
4895
+ "description": "Ticket id or code (e.g. DRFL-3)",
4683
4896
  "name": "id",
4684
4897
  "required": true
4685
4898
  }
4686
4899
  },
4687
- "description": "Show a single ticket",
4900
+ "description": "Show a single ticket in full: body (description + Given/When/Then/Expected), comments (with their files) and attachments",
4688
4901
  "examples": [
4689
- "<%= config.bin %> tickets show <ticket-id> --project acme-api"
4902
+ "<%= config.bin %> tickets show <ticket-id> --project acme-api",
4903
+ "<%= config.bin %> tickets show DRFL-3 --project driverone-flutter",
4904
+ "<%= config.bin %> tickets show DRFL-3 -p driverone-flutter --json"
4690
4905
  ],
4691
4906
  "flags": {
4692
4907
  "json": {
@@ -5010,23 +5225,12 @@
5010
5225
  "vote.js"
5011
5226
  ]
5012
5227
  },
5013
- "teams:add-member": {
5228
+ "tokens:create": {
5014
5229
  "aliases": [],
5015
- "args": {
5016
- "team": {
5017
- "description": "Team id (UUID) or name",
5018
- "name": "team",
5019
- "required": true
5020
- },
5021
- "member": {
5022
- "description": "Member account id or email (must be an org member)",
5023
- "name": "member",
5024
- "required": true
5025
- }
5026
- },
5027
- "description": "Add a person to a team, keeping the existing members",
5230
+ "args": {},
5231
+ "description": "Create an ingest token (the secret is shown only once)",
5028
5232
  "examples": [
5029
- "<%= config.bin %> teams add-member DriverOne client@acme.com"
5233
+ "<%= config.bin %> tokens create --project acme-api --name \"CI prod\" --environment-id <env-id>"
5030
5234
  ],
5031
5235
  "flags": {
5032
5236
  "json": {
@@ -5035,11 +5239,36 @@
5035
5239
  "name": "json",
5036
5240
  "allowNo": false,
5037
5241
  "type": "boolean"
5242
+ },
5243
+ "project": {
5244
+ "char": "p",
5245
+ "description": "Project id (UUID) or key",
5246
+ "name": "project",
5247
+ "required": true,
5248
+ "hasDynamicHelp": false,
5249
+ "multiple": false,
5250
+ "type": "option"
5251
+ },
5252
+ "name": {
5253
+ "description": "Human-readable token name",
5254
+ "name": "name",
5255
+ "required": true,
5256
+ "hasDynamicHelp": false,
5257
+ "multiple": false,
5258
+ "type": "option"
5259
+ },
5260
+ "environment-id": {
5261
+ "description": "Environment id the token is scoped to",
5262
+ "name": "environment-id",
5263
+ "required": true,
5264
+ "hasDynamicHelp": false,
5265
+ "multiple": false,
5266
+ "type": "option"
5038
5267
  }
5039
5268
  },
5040
5269
  "hasDynamicHelp": false,
5041
5270
  "hiddenAliases": [],
5042
- "id": "teams:add-member",
5271
+ "id": "tokens:create",
5043
5272
  "pluginAlias": "@bussolabs/closeyourit-cli",
5044
5273
  "pluginName": "@bussolabs/closeyourit-cli",
5045
5274
  "pluginType": "core",
@@ -5049,23 +5278,17 @@
5049
5278
  "relativePath": [
5050
5279
  "dist",
5051
5280
  "commands",
5052
- "teams",
5053
- "add-member.js"
5281
+ "tokens",
5282
+ "create.js"
5054
5283
  ]
5055
5284
  },
5056
- "teams:create": {
5285
+ "tokens:list": {
5057
5286
  "aliases": [],
5058
- "args": {
5059
- "name": {
5060
- "description": "Team name",
5061
- "name": "name",
5062
- "required": true
5063
- }
5064
- },
5065
- "description": "Create a team and (optionally) set its roles, group/project scope and members",
5287
+ "args": {},
5288
+ "description": "List ingest tokens for a project",
5066
5289
  "examples": [
5067
- "<%= config.bin %> teams create DriverOne --role Client --group DriverOne",
5068
- "<%= config.bin %> teams create DriverOne --role Client --group DriverOne --member client@acme.com"
5290
+ "<%= config.bin %> tokens list --project acme-api",
5291
+ "<%= config.bin %> tokens list -p acme-api --json"
5069
5292
  ],
5070
5293
  "flags": {
5071
5294
  "json": {
@@ -5075,45 +5298,19 @@
5075
5298
  "allowNo": false,
5076
5299
  "type": "boolean"
5077
5300
  },
5078
- "color": {
5079
- "description": "Color label",
5080
- "name": "color",
5081
- "hasDynamicHelp": false,
5082
- "multiple": false,
5083
- "type": "option"
5084
- },
5085
- "group": {
5086
- "description": "Group id or name to scope the team to (repeatable)",
5087
- "name": "group",
5088
- "hasDynamicHelp": false,
5089
- "multiple": true,
5090
- "type": "option"
5091
- },
5092
- "member": {
5093
- "description": "Member account id or email (repeatable; must be an org member)",
5094
- "name": "member",
5095
- "hasDynamicHelp": false,
5096
- "multiple": true,
5097
- "type": "option"
5098
- },
5099
5301
  "project": {
5100
- "description": "Project id or key to scope the team to (repeatable)",
5302
+ "char": "p",
5303
+ "description": "Project id (UUID) or key",
5101
5304
  "name": "project",
5305
+ "required": true,
5102
5306
  "hasDynamicHelp": false,
5103
- "multiple": true,
5104
- "type": "option"
5105
- },
5106
- "role": {
5107
- "description": "Role id or name to grant to the team (repeatable)",
5108
- "name": "role",
5109
- "hasDynamicHelp": false,
5110
- "multiple": true,
5307
+ "multiple": false,
5111
5308
  "type": "option"
5112
5309
  }
5113
5310
  },
5114
5311
  "hasDynamicHelp": false,
5115
5312
  "hiddenAliases": [],
5116
- "id": "teams:create",
5313
+ "id": "tokens:list",
5117
5314
  "pluginAlias": "@bussolabs/closeyourit-cli",
5118
5315
  "pluginName": "@bussolabs/closeyourit-cli",
5119
5316
  "pluginType": "core",
@@ -5123,22 +5320,22 @@
5123
5320
  "relativePath": [
5124
5321
  "dist",
5125
5322
  "commands",
5126
- "teams",
5127
- "create.js"
5323
+ "tokens",
5324
+ "list.js"
5128
5325
  ]
5129
5326
  },
5130
- "teams:delete": {
5327
+ "tokens:revoke": {
5131
5328
  "aliases": [],
5132
5329
  "args": {
5133
- "team": {
5134
- "description": "Team id (UUID) or name",
5135
- "name": "team",
5330
+ "id": {
5331
+ "description": "Token id",
5332
+ "name": "id",
5136
5333
  "required": true
5137
5334
  }
5138
5335
  },
5139
- "description": "Delete a team (its members lose the access this team granted)",
5336
+ "description": "Revoke an ingest token",
5140
5337
  "examples": [
5141
- "<%= config.bin %> teams delete DriverOne"
5338
+ "<%= config.bin %> tokens revoke <token-id> --project acme-api"
5142
5339
  ],
5143
5340
  "flags": {
5144
5341
  "json": {
@@ -5147,11 +5344,20 @@
5147
5344
  "name": "json",
5148
5345
  "allowNo": false,
5149
5346
  "type": "boolean"
5347
+ },
5348
+ "project": {
5349
+ "char": "p",
5350
+ "description": "Project id (UUID) or key",
5351
+ "name": "project",
5352
+ "required": true,
5353
+ "hasDynamicHelp": false,
5354
+ "multiple": false,
5355
+ "type": "option"
5150
5356
  }
5151
5357
  },
5152
5358
  "hasDynamicHelp": false,
5153
5359
  "hiddenAliases": [],
5154
- "id": "teams:delete",
5360
+ "id": "tokens:revoke",
5155
5361
  "pluginAlias": "@bussolabs/closeyourit-cli",
5156
5362
  "pluginName": "@bussolabs/closeyourit-cli",
5157
5363
  "pluginType": "core",
@@ -5161,17 +5367,22 @@
5161
5367
  "relativePath": [
5162
5368
  "dist",
5163
5369
  "commands",
5164
- "teams",
5165
- "delete.js"
5370
+ "tokens",
5371
+ "revoke.js"
5166
5372
  ]
5167
5373
  },
5168
- "teams:list": {
5374
+ "tokens:rotate": {
5169
5375
  "aliases": [],
5170
- "args": {},
5171
- "description": "List the teams (people with scope) in your organization",
5376
+ "args": {
5377
+ "id": {
5378
+ "description": "Token id",
5379
+ "name": "id",
5380
+ "required": true
5381
+ }
5382
+ },
5383
+ "description": "Rotate an ingest token (the new secret is shown only once)",
5172
5384
  "examples": [
5173
- "<%= config.bin %> teams list",
5174
- "<%= config.bin %> teams list --json"
5385
+ "<%= config.bin %> tokens rotate <token-id> --project acme-api"
5175
5386
  ],
5176
5387
  "flags": {
5177
5388
  "json": {
@@ -5181,10 +5392,11 @@
5181
5392
  "allowNo": false,
5182
5393
  "type": "boolean"
5183
5394
  },
5184
- "page": {
5185
- "description": "Page number",
5186
- "name": "page",
5187
- "default": 1,
5395
+ "project": {
5396
+ "char": "p",
5397
+ "description": "Project id (UUID) or key",
5398
+ "name": "project",
5399
+ "required": true,
5188
5400
  "hasDynamicHelp": false,
5189
5401
  "multiple": false,
5190
5402
  "type": "option"
@@ -5192,7 +5404,7 @@
5192
5404
  },
5193
5405
  "hasDynamicHelp": false,
5194
5406
  "hiddenAliases": [],
5195
- "id": "teams:list",
5407
+ "id": "tokens:rotate",
5196
5408
  "pluginAlias": "@bussolabs/closeyourit-cli",
5197
5409
  "pluginName": "@bussolabs/closeyourit-cli",
5198
5410
  "pluginType": "core",
@@ -5202,27 +5414,23 @@
5202
5414
  "relativePath": [
5203
5415
  "dist",
5204
5416
  "commands",
5205
- "teams",
5206
- "list.js"
5417
+ "tokens",
5418
+ "rotate.js"
5207
5419
  ]
5208
5420
  },
5209
- "teams:remove-member": {
5421
+ "alerts:channels:create": {
5210
5422
  "aliases": [],
5211
5423
  "args": {
5212
- "team": {
5213
- "description": "Team id (UUID) or name",
5214
- "name": "team",
5215
- "required": true
5216
- },
5217
- "member": {
5218
- "description": "Member account id or email",
5219
- "name": "member",
5424
+ "name": {
5425
+ "description": "Channel name",
5426
+ "name": "name",
5220
5427
  "required": true
5221
5428
  }
5222
5429
  },
5223
- "description": "Remove a person from a team, keeping the other members",
5430
+ "description": "Create an external alert channel (webhook or Telegram)",
5224
5431
  "examples": [
5225
- "<%= config.bin %> teams remove-member DriverOne client@acme.com"
5432
+ "<%= config.bin %> alerts channels create \"Ops Telegram\" --kind telegram --bot-token <token> --chat-id <id>",
5433
+ "<%= config.bin %> alerts channels create \"Ops hook\" --kind webhook --url https://example.com/hook --secret s3cret"
5226
5434
  ],
5227
5435
  "flags": {
5228
5436
  "json": {
@@ -5231,11 +5439,51 @@
5231
5439
  "name": "json",
5232
5440
  "allowNo": false,
5233
5441
  "type": "boolean"
5442
+ },
5443
+ "kind": {
5444
+ "description": "Channel kind",
5445
+ "name": "kind",
5446
+ "required": true,
5447
+ "hasDynamicHelp": false,
5448
+ "multiple": false,
5449
+ "options": [
5450
+ "webhook",
5451
+ "telegram"
5452
+ ],
5453
+ "type": "option"
5454
+ },
5455
+ "url": {
5456
+ "description": "Webhook URL (kind webhook)",
5457
+ "name": "url",
5458
+ "hasDynamicHelp": false,
5459
+ "multiple": false,
5460
+ "type": "option"
5461
+ },
5462
+ "secret": {
5463
+ "description": "Webhook signing secret (kind webhook, optional)",
5464
+ "name": "secret",
5465
+ "hasDynamicHelp": false,
5466
+ "multiple": false,
5467
+ "type": "option"
5468
+ },
5469
+ "bot-token": {
5470
+ "description": "Telegram bot token from @BotFather (kind telegram)",
5471
+ "name": "bot-token",
5472
+ "hasDynamicHelp": false,
5473
+ "multiple": false,
5474
+ "type": "option"
5475
+ },
5476
+ "chat-id": {
5477
+ "description": "Telegram chat id receiving the messages (kind telegram)",
5478
+ "name": "chat-id",
5479
+ "hasDynamicHelp": false,
5480
+ "multiple": false,
5481
+ "type": "option"
5234
5482
  }
5235
5483
  },
5236
5484
  "hasDynamicHelp": false,
5237
5485
  "hiddenAliases": [],
5238
- "id": "teams:remove-member",
5486
+ "id": "alerts:channels:create",
5239
5487
  "pluginAlias": "@bussolabs/closeyourit-cli",
5240
5488
  "pluginName": "@bussolabs/closeyourit-cli",
5241
5489
  "pluginType": "core",
@@ -5245,22 +5493,23 @@
5245
5493
  "relativePath": [
5246
5494
  "dist",
5247
5495
  "commands",
5248
- "teams",
5249
- "remove-member.js"
5496
+ "alerts",
5497
+ "channels",
5498
+ "create.js"
5250
5499
  ]
5251
5500
  },
5252
- "teams:show": {
5501
+ "alerts:channels:delete": {
5253
5502
  "aliases": [],
5254
5503
  "args": {
5255
- "team": {
5256
- "description": "Team id (UUID) or name",
5257
- "name": "team",
5504
+ "id": {
5505
+ "description": "Channel id",
5506
+ "name": "id",
5258
5507
  "required": true
5259
5508
  }
5260
5509
  },
5261
- "description": "Show a team by id or name (roles, group/project scope, members)",
5510
+ "description": "Delete an external alert channel (rules keep delivering in-app/email)",
5262
5511
  "examples": [
5263
- "<%= config.bin %> teams show DriverOne"
5512
+ "<%= config.bin %> alerts channels delete <channel-id> --confirm"
5264
5513
  ],
5265
5514
  "flags": {
5266
5515
  "json": {
@@ -5269,11 +5518,17 @@
5269
5518
  "name": "json",
5270
5519
  "allowNo": false,
5271
5520
  "type": "boolean"
5521
+ },
5522
+ "confirm": {
5523
+ "description": "Required: confirm the deletion",
5524
+ "name": "confirm",
5525
+ "allowNo": false,
5526
+ "type": "boolean"
5272
5527
  }
5273
5528
  },
5274
5529
  "hasDynamicHelp": false,
5275
5530
  "hiddenAliases": [],
5276
- "id": "teams:show",
5531
+ "id": "alerts:channels:delete",
5277
5532
  "pluginAlias": "@bussolabs/closeyourit-cli",
5278
5533
  "pluginName": "@bussolabs/closeyourit-cli",
5279
5534
  "pluginType": "core",
@@ -5283,23 +5538,17 @@
5283
5538
  "relativePath": [
5284
5539
  "dist",
5285
5540
  "commands",
5286
- "teams",
5287
- "show.js"
5541
+ "alerts",
5542
+ "channels",
5543
+ "delete.js"
5288
5544
  ]
5289
5545
  },
5290
- "teams:update": {
5546
+ "alerts:channels:list": {
5291
5547
  "aliases": [],
5292
- "args": {
5293
- "team": {
5294
- "description": "Team id (UUID) or name",
5295
- "name": "team",
5296
- "required": true
5297
- }
5298
- },
5299
- "description": "Update a team. Each given dimension REPLACES the whole set for that dimension.",
5548
+ "args": {},
5549
+ "description": "List the external alert channels (webhook / Telegram)",
5300
5550
  "examples": [
5301
- "<%= config.bin %> teams update DriverOne --role Client --group DriverOne",
5302
- "<%= config.bin %> teams update DriverOne --name \"DriverOne clients\""
5551
+ "<%= config.bin %> alerts channels list"
5303
5552
  ],
5304
5553
  "flags": {
5305
5554
  "json": {
@@ -5309,52 +5558,18 @@
5309
5558
  "allowNo": false,
5310
5559
  "type": "boolean"
5311
5560
  },
5312
- "color": {
5313
- "description": "Color label",
5314
- "name": "color",
5315
- "hasDynamicHelp": false,
5316
- "multiple": false,
5317
- "type": "option"
5318
- },
5319
- "group": {
5320
- "description": "Group id or name (repeatable; replaces the group scope)",
5321
- "name": "group",
5322
- "hasDynamicHelp": false,
5323
- "multiple": true,
5324
- "type": "option"
5325
- },
5326
- "member": {
5327
- "description": "Member account id or email (repeatable; replaces the members)",
5328
- "name": "member",
5329
- "hasDynamicHelp": false,
5330
- "multiple": true,
5331
- "type": "option"
5332
- },
5333
- "name": {
5334
- "description": "New name",
5335
- "name": "name",
5561
+ "page": {
5562
+ "description": "Page number",
5563
+ "name": "page",
5564
+ "default": 1,
5336
5565
  "hasDynamicHelp": false,
5337
5566
  "multiple": false,
5338
5567
  "type": "option"
5339
- },
5340
- "project": {
5341
- "description": "Project id or key (repeatable; replaces the project scope)",
5342
- "name": "project",
5343
- "hasDynamicHelp": false,
5344
- "multiple": true,
5345
- "type": "option"
5346
- },
5347
- "role": {
5348
- "description": "Role id or name (repeatable; replaces the roles)",
5349
- "name": "role",
5350
- "hasDynamicHelp": false,
5351
- "multiple": true,
5352
- "type": "option"
5353
5568
  }
5354
5569
  },
5355
5570
  "hasDynamicHelp": false,
5356
5571
  "hiddenAliases": [],
5357
- "id": "teams:update",
5572
+ "id": "alerts:channels:list",
5358
5573
  "pluginAlias": "@bussolabs/closeyourit-cli",
5359
5574
  "pluginName": "@bussolabs/closeyourit-cli",
5360
5575
  "pluginType": "core",
@@ -5364,8 +5579,9 @@
5364
5579
  "relativePath": [
5365
5580
  "dist",
5366
5581
  "commands",
5367
- "teams",
5368
- "update.js"
5582
+ "alerts",
5583
+ "channels",
5584
+ "list.js"
5369
5585
  ]
5370
5586
  },
5371
5587
  "servers:tokens:create": {
@@ -5494,5 +5710,5 @@
5494
5710
  ]
5495
5711
  }
5496
5712
  },
5497
- "version": "0.0.9"
5713
+ "version": "0.0.11"
5498
5714
  }