@ever-works/mailgun-plugin 1.0.10 → 1.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -997,7 +997,7 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
997
997
  route: GET("/api/fleet/nodes/{id}/desktop/screenshot"),
998
998
  cli: "fleet desktop screenshot"
999
999
  }),
1000
- read("fleet_desktop_displays", "desktop", "FL-07", "FLEET_DESKTOP_ENABLED", "planned", {
1000
+ read("fleet_desktop_displays", "desktop", "FL-07", "FLEET_DESKTOP_ENABLED", "live", {
1001
1001
  route: GET("/api/fleet/nodes/{id}/desktop/displays"),
1002
1002
  cli: "fleet desktop displays"
1003
1003
  }),
@@ -1271,6 +1271,9 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1271
1271
  route: GET("/api/fleet/checkouts/{id}/changes"),
1272
1272
  cli: "fleet checkouts changes"
1273
1273
  }),
1274
+ read("fleet_checkouts_pull_request_get", "checkouts", "FL-06", "FLEET_CHECKOUTS_ENABLED", "planned", {
1275
+ route: GET("/api/fleet/checkouts/{id}/pull-request")
1276
+ }),
1274
1277
  act("fleet_checkouts_create", "checkouts", "FL-14", "FLEET_CHECKOUTS_ENABLED", "live", plain("machine.run"), {
1275
1278
  route: POST("/api/fleet/checkouts"),
1276
1279
  cli: "fleet checkouts create",
@@ -1351,9 +1354,9 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1351
1354
  waitable: true,
1352
1355
  alwaysHeld: true
1353
1356
  }),
1354
- // ── cloud (FL-17) ── P1 shipped: providers, create, power, destroy, usage. A create, a power
1355
- // change and a destroy are held for the owner's approval by the Agent tools
1356
- // (`agent-fleet-cloud-tools.ts`); the idle policy arrives with P2.
1357
+ // ── cloud (FL-17) ── P1 shipped providers, create, power, destroy, usage; P2 the idle policy
1358
+ // (`PUT` answers the same as `PATCH`). A create, a power change and a destroy are held for the
1359
+ // owner's approval by the Agent tools (`agent-fleet-cloud-tools.ts`).
1357
1360
  read("fleet_cloud_list", "view", "FL-17", "FLEET_CLOUD_ENABLED", "live", {
1358
1361
  phase: "P3",
1359
1362
  route: GET("/api/fleet/cloud"),
@@ -1392,18 +1395,20 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1392
1395
  waitable: true,
1393
1396
  alwaysHeld: true
1394
1397
  }),
1395
- act("fleet_cloud_idle_policy", "machines", "FL-17", "FLEET_CLOUD_ENABLED", "planned", plain("machine.admin"), {
1398
+ act("fleet_cloud_idle_policy", "machines", "FL-17", "FLEET_CLOUD_ENABLED", "live", plain("machine.admin"), {
1396
1399
  phase: "P3",
1397
1400
  route: PATCH("/api/fleet/cloud/{id}/idle-policy"),
1398
1401
  cli: "fleet cloud idle-policy"
1399
1402
  }),
1400
- // ── runners (FL-18) ──
1401
- read("fleet_runners_list", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "planned", {
1403
+ // ── runners (FL-18) ── P1 shipped: list, install, start / stop / restart, remove. An install, a
1404
+ // stop, a restart and a remove asked by an Agent are held for the owner's approval
1405
+ // (`agent-fleet-runners-tools.ts`). P2: the Actions jobs read and Cancel workflow run (always held for an Agent).
1406
+ read("fleet_runners_list", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "live", {
1402
1407
  phase: "P3",
1403
1408
  route: GET("/api/fleet/nodes/{id}/runners"),
1404
1409
  cli: "fleet runners list"
1405
1410
  }),
1406
- read("fleet_runners_jobs", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "planned", {
1411
+ read("fleet_runners_jobs", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "live", {
1407
1412
  phase: "P3",
1408
1413
  route: GET("/api/fleet/runners/jobs"),
1409
1414
  cli: "fleet runners jobs"
@@ -1413,23 +1418,29 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1413
1418
  "machines",
1414
1419
  "FL-18",
1415
1420
  "FLEET_ACTIONS_RUNNERS_ENABLED",
1416
- "planned",
1421
+ "live",
1417
1422
  confirm("machine.admin"),
1418
- { phase: "P3", route: POST("/api/fleet/nodes/{id}/runners"), cli: "fleet runners install", waitable: true }
1423
+ {
1424
+ phase: "P3",
1425
+ route: POST("/api/fleet/nodes/{id}/runners"),
1426
+ cli: "fleet runners install",
1427
+ waitable: true,
1428
+ alwaysHeld: true
1429
+ }
1419
1430
  ),
1420
1431
  act(
1421
1432
  "fleet_runners_action",
1422
1433
  "machines",
1423
1434
  "FL-18",
1424
1435
  "FLEET_ACTIONS_RUNNERS_ENABLED",
1425
- "planned",
1436
+ "live",
1426
1437
  confirm("machine.admin"),
1427
1438
  {
1428
1439
  phase: "P3",
1429
1440
  route: POST("/api/fleet/nodes/{id}/runners/{runnerId}/{action}"),
1430
1441
  cli: "fleet runners action",
1431
1442
  waitable: true,
1432
- confirmationNote: "plain to start; confirm to stop and restart"
1443
+ confirmationNote: "plain to start; confirm to stop and restart (an Agent's stop or restart is held for the owner)"
1433
1444
  }
1434
1445
  ),
1435
1446
  act(
@@ -1437,21 +1448,34 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1437
1448
  "machines",
1438
1449
  "FL-18",
1439
1450
  "FLEET_ACTIONS_RUNNERS_ENABLED",
1440
- "planned",
1451
+ "live",
1441
1452
  typed("write.destructive"),
1442
- { phase: "P3", route: DELETE("/api/fleet/nodes/{id}/runners/{runnerId}"), cli: "fleet runners remove" }
1453
+ {
1454
+ phase: "P3",
1455
+ route: POST("/api/fleet/nodes/{id}/runners/{runnerId}/remove"),
1456
+ cli: "fleet runners remove",
1457
+ waitable: true,
1458
+ alwaysHeld: true
1459
+ }
1443
1460
  ),
1444
1461
  act(
1445
1462
  "fleet_runners_cancel_run",
1446
1463
  "machines",
1447
1464
  "FL-18",
1448
1465
  "FLEET_ACTIONS_RUNNERS_ENABLED",
1449
- "planned",
1466
+ "live",
1450
1467
  confirm("machine.admin"),
1451
- { phase: "P3", route: POST("/api/fleet/runners/jobs/{jobId}/cancel"), cli: "fleet runners cancel-run" }
1468
+ {
1469
+ phase: "P3",
1470
+ route: POST("/api/fleet/runners/jobs/cancel"),
1471
+ cli: "fleet runners cancel-run",
1472
+ alwaysHeld: true
1473
+ }
1452
1474
  ),
1453
- // ── usage (FL-20) ──
1454
- read("fleet_usage_get", "view", "FL-20", "FLEET_USAGE_SCAN_ENABLED", "planned", {
1475
+ // ── usage (FL-20) ── P1 shipped: the Usage object (totals, by model, by computer, busiest
1476
+ // checkouts, sessions) every surface renders, read-only, with the payer sentence in `note`.
1477
+ read("fleet_usage_get", "view", "FL-20", "FLEET_USAGE_SCAN_ENABLED", "live", {
1478
+ phase: "P3",
1455
1479
  route: GET("/api/fleet/usage"),
1456
1480
  cli: "fleet usage"
1457
1481
  }),
@@ -1569,7 +1593,9 @@ var FLEET_VIRTUAL_SYSTEMS = [
1569
1593
  approxDownloadGiB: 0.7
1570
1594
  }
1571
1595
  ];
1572
- FLEET_VIRTUAL_SYSTEMS.map((system) => system.id);
1596
+ FLEET_VIRTUAL_SYSTEMS.map(
1597
+ (system) => system.id
1598
+ );
1573
1599
  var EMAIL_INBOX_CAP_FIELDS = [
1574
1600
  "inboxDailySends",
1575
1601
  "inboxBurstSends",
package/dist/index.js CHANGED
@@ -990,7 +990,7 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
990
990
  route: GET("/api/fleet/nodes/{id}/desktop/screenshot"),
991
991
  cli: "fleet desktop screenshot"
992
992
  }),
993
- read("fleet_desktop_displays", "desktop", "FL-07", "FLEET_DESKTOP_ENABLED", "planned", {
993
+ read("fleet_desktop_displays", "desktop", "FL-07", "FLEET_DESKTOP_ENABLED", "live", {
994
994
  route: GET("/api/fleet/nodes/{id}/desktop/displays"),
995
995
  cli: "fleet desktop displays"
996
996
  }),
@@ -1264,6 +1264,9 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1264
1264
  route: GET("/api/fleet/checkouts/{id}/changes"),
1265
1265
  cli: "fleet checkouts changes"
1266
1266
  }),
1267
+ read("fleet_checkouts_pull_request_get", "checkouts", "FL-06", "FLEET_CHECKOUTS_ENABLED", "planned", {
1268
+ route: GET("/api/fleet/checkouts/{id}/pull-request")
1269
+ }),
1267
1270
  act("fleet_checkouts_create", "checkouts", "FL-14", "FLEET_CHECKOUTS_ENABLED", "live", plain("machine.run"), {
1268
1271
  route: POST("/api/fleet/checkouts"),
1269
1272
  cli: "fleet checkouts create",
@@ -1344,9 +1347,9 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1344
1347
  waitable: true,
1345
1348
  alwaysHeld: true
1346
1349
  }),
1347
- // ── cloud (FL-17) ── P1 shipped: providers, create, power, destroy, usage. A create, a power
1348
- // change and a destroy are held for the owner's approval by the Agent tools
1349
- // (`agent-fleet-cloud-tools.ts`); the idle policy arrives with P2.
1350
+ // ── cloud (FL-17) ── P1 shipped providers, create, power, destroy, usage; P2 the idle policy
1351
+ // (`PUT` answers the same as `PATCH`). A create, a power change and a destroy are held for the
1352
+ // owner's approval by the Agent tools (`agent-fleet-cloud-tools.ts`).
1350
1353
  read("fleet_cloud_list", "view", "FL-17", "FLEET_CLOUD_ENABLED", "live", {
1351
1354
  phase: "P3",
1352
1355
  route: GET("/api/fleet/cloud"),
@@ -1385,18 +1388,20 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1385
1388
  waitable: true,
1386
1389
  alwaysHeld: true
1387
1390
  }),
1388
- act("fleet_cloud_idle_policy", "machines", "FL-17", "FLEET_CLOUD_ENABLED", "planned", plain("machine.admin"), {
1391
+ act("fleet_cloud_idle_policy", "machines", "FL-17", "FLEET_CLOUD_ENABLED", "live", plain("machine.admin"), {
1389
1392
  phase: "P3",
1390
1393
  route: PATCH("/api/fleet/cloud/{id}/idle-policy"),
1391
1394
  cli: "fleet cloud idle-policy"
1392
1395
  }),
1393
- // ── runners (FL-18) ──
1394
- read("fleet_runners_list", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "planned", {
1396
+ // ── runners (FL-18) ── P1 shipped: list, install, start / stop / restart, remove. An install, a
1397
+ // stop, a restart and a remove asked by an Agent are held for the owner's approval
1398
+ // (`agent-fleet-runners-tools.ts`). P2: the Actions jobs read and Cancel workflow run (always held for an Agent).
1399
+ read("fleet_runners_list", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "live", {
1395
1400
  phase: "P3",
1396
1401
  route: GET("/api/fleet/nodes/{id}/runners"),
1397
1402
  cli: "fleet runners list"
1398
1403
  }),
1399
- read("fleet_runners_jobs", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "planned", {
1404
+ read("fleet_runners_jobs", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "live", {
1400
1405
  phase: "P3",
1401
1406
  route: GET("/api/fleet/runners/jobs"),
1402
1407
  cli: "fleet runners jobs"
@@ -1406,23 +1411,29 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1406
1411
  "machines",
1407
1412
  "FL-18",
1408
1413
  "FLEET_ACTIONS_RUNNERS_ENABLED",
1409
- "planned",
1414
+ "live",
1410
1415
  confirm("machine.admin"),
1411
- { phase: "P3", route: POST("/api/fleet/nodes/{id}/runners"), cli: "fleet runners install", waitable: true }
1416
+ {
1417
+ phase: "P3",
1418
+ route: POST("/api/fleet/nodes/{id}/runners"),
1419
+ cli: "fleet runners install",
1420
+ waitable: true,
1421
+ alwaysHeld: true
1422
+ }
1412
1423
  ),
1413
1424
  act(
1414
1425
  "fleet_runners_action",
1415
1426
  "machines",
1416
1427
  "FL-18",
1417
1428
  "FLEET_ACTIONS_RUNNERS_ENABLED",
1418
- "planned",
1429
+ "live",
1419
1430
  confirm("machine.admin"),
1420
1431
  {
1421
1432
  phase: "P3",
1422
1433
  route: POST("/api/fleet/nodes/{id}/runners/{runnerId}/{action}"),
1423
1434
  cli: "fleet runners action",
1424
1435
  waitable: true,
1425
- confirmationNote: "plain to start; confirm to stop and restart"
1436
+ confirmationNote: "plain to start; confirm to stop and restart (an Agent's stop or restart is held for the owner)"
1426
1437
  }
1427
1438
  ),
1428
1439
  act(
@@ -1430,21 +1441,34 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1430
1441
  "machines",
1431
1442
  "FL-18",
1432
1443
  "FLEET_ACTIONS_RUNNERS_ENABLED",
1433
- "planned",
1444
+ "live",
1434
1445
  typed("write.destructive"),
1435
- { phase: "P3", route: DELETE("/api/fleet/nodes/{id}/runners/{runnerId}"), cli: "fleet runners remove" }
1446
+ {
1447
+ phase: "P3",
1448
+ route: POST("/api/fleet/nodes/{id}/runners/{runnerId}/remove"),
1449
+ cli: "fleet runners remove",
1450
+ waitable: true,
1451
+ alwaysHeld: true
1452
+ }
1436
1453
  ),
1437
1454
  act(
1438
1455
  "fleet_runners_cancel_run",
1439
1456
  "machines",
1440
1457
  "FL-18",
1441
1458
  "FLEET_ACTIONS_RUNNERS_ENABLED",
1442
- "planned",
1459
+ "live",
1443
1460
  confirm("machine.admin"),
1444
- { phase: "P3", route: POST("/api/fleet/runners/jobs/{jobId}/cancel"), cli: "fleet runners cancel-run" }
1461
+ {
1462
+ phase: "P3",
1463
+ route: POST("/api/fleet/runners/jobs/cancel"),
1464
+ cli: "fleet runners cancel-run",
1465
+ alwaysHeld: true
1466
+ }
1445
1467
  ),
1446
- // ── usage (FL-20) ──
1447
- read("fleet_usage_get", "view", "FL-20", "FLEET_USAGE_SCAN_ENABLED", "planned", {
1468
+ // ── usage (FL-20) ── P1 shipped: the Usage object (totals, by model, by computer, busiest
1469
+ // checkouts, sessions) every surface renders, read-only, with the payer sentence in `note`.
1470
+ read("fleet_usage_get", "view", "FL-20", "FLEET_USAGE_SCAN_ENABLED", "live", {
1471
+ phase: "P3",
1448
1472
  route: GET("/api/fleet/usage"),
1449
1473
  cli: "fleet usage"
1450
1474
  }),
@@ -1562,7 +1586,9 @@ var FLEET_VIRTUAL_SYSTEMS = [
1562
1586
  approxDownloadGiB: 0.7
1563
1587
  }
1564
1588
  ];
1565
- FLEET_VIRTUAL_SYSTEMS.map((system) => system.id);
1589
+ FLEET_VIRTUAL_SYSTEMS.map(
1590
+ (system) => system.id
1591
+ );
1566
1592
  var EMAIL_INBOX_CAP_FIELDS = [
1567
1593
  "inboxDailySends",
1568
1594
  "inboxBurstSends",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ever-works/mailgun-plugin",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "description": "Mailgun email provider plugin (outbound + inbound) for Ever Works platform",
5
5
  "author": {
6
6
  "name": "Ever Co. LTD",
@@ -32,7 +32,7 @@
32
32
  "test:watch": "vitest"
33
33
  },
34
34
  "dependencies": {
35
- "@ever-works/plugin": "^1.2.10",
35
+ "@ever-works/plugin": "^1.2.12",
36
36
  "form-data": "^4.0.1",
37
37
  "mailgun.js": "^10.2.3"
38
38
  },
@@ -102,8 +102,8 @@
102
102
  "url": "https://github.com/ever-works/ever-works/issues"
103
103
  },
104
104
  "everworksRelease": {
105
- "contentHash": "sha256:f41bcac5c39408e06f374eb8d0ec0944f5f189832b81a21555b5c34e8ffba704",
106
- "commit": "f5cb0350637a564ce68449b6607a6f8f83ccce9c",
107
- "source": "https://github.com/ever-works/ever-works/tree/f5cb0350637a564ce68449b6607a6f8f83ccce9c/packages/plugins/mailgun"
105
+ "contentHash": "sha256:4e9bb553b933ddbf36b2aad366aca7758fb57b9a505a272e2c47543b2937dd70",
106
+ "commit": "4b0b642a5bf671c9b0480d49307c2c4442730f28",
107
+ "source": "https://github.com/ever-works/ever-works/tree/4b0b642a5bf671c9b0480d49307c2c4442730f28/packages/plugins/mailgun"
108
108
  }
109
109
  }