@ever-works/mailgun-plugin 1.0.11 → 1.0.13

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
@@ -23,6 +23,10 @@ var PROBLEM_CODES = [
23
23
  "not_connection_owner",
24
24
  "integration_disabled",
25
25
  "integration_revoked",
26
+ "subject_unknown",
27
+ "link_not_found",
28
+ "oidc_client_exists",
29
+ "redirect_uri_invalid",
26
30
  "denied_by_policy",
27
31
  "integration_not_available",
28
32
  "entitlement_required",
@@ -51,6 +55,8 @@ var PROBLEM_CODES = [
51
55
  "illegal_transition",
52
56
  "already_exists",
53
57
  "already_completed",
58
+ "legal_basis_required",
59
+ "receipt_final",
54
60
  "billing_active",
55
61
  "sso_required",
56
62
  "reauth_required",
@@ -997,7 +1003,7 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
997
1003
  route: GET("/api/fleet/nodes/{id}/desktop/screenshot"),
998
1004
  cli: "fleet desktop screenshot"
999
1005
  }),
1000
- read("fleet_desktop_displays", "desktop", "FL-07", "FLEET_DESKTOP_ENABLED", "planned", {
1006
+ read("fleet_desktop_displays", "desktop", "FL-07", "FLEET_DESKTOP_ENABLED", "live", {
1001
1007
  route: GET("/api/fleet/nodes/{id}/desktop/displays"),
1002
1008
  cli: "fleet desktop displays"
1003
1009
  }),
@@ -1271,6 +1277,9 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1271
1277
  route: GET("/api/fleet/checkouts/{id}/changes"),
1272
1278
  cli: "fleet checkouts changes"
1273
1279
  }),
1280
+ read("fleet_checkouts_pull_request_get", "checkouts", "FL-06", "FLEET_CHECKOUTS_ENABLED", "planned", {
1281
+ route: GET("/api/fleet/checkouts/{id}/pull-request")
1282
+ }),
1274
1283
  act("fleet_checkouts_create", "checkouts", "FL-14", "FLEET_CHECKOUTS_ENABLED", "live", plain("machine.run"), {
1275
1284
  route: POST("/api/fleet/checkouts"),
1276
1285
  cli: "fleet checkouts create",
@@ -1399,13 +1408,13 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1399
1408
  }),
1400
1409
  // ── runners (FL-18) ── P1 shipped: list, install, start / stop / restart, remove. An install, a
1401
1410
  // stop, a restart and a remove asked by an Agent are held for the owner's approval
1402
- // (`agent-fleet-runners-tools.ts`). The Actions jobs read and Cancel workflow run arrive with P2.
1411
+ // (`agent-fleet-runners-tools.ts`). P2: the Actions jobs read and Cancel workflow run (always held for an Agent).
1403
1412
  read("fleet_runners_list", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "live", {
1404
1413
  phase: "P3",
1405
1414
  route: GET("/api/fleet/nodes/{id}/runners"),
1406
1415
  cli: "fleet runners list"
1407
1416
  }),
1408
- read("fleet_runners_jobs", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "planned", {
1417
+ read("fleet_runners_jobs", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "live", {
1409
1418
  phase: "P3",
1410
1419
  route: GET("/api/fleet/runners/jobs"),
1411
1420
  cli: "fleet runners jobs"
@@ -1460,9 +1469,14 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1460
1469
  "machines",
1461
1470
  "FL-18",
1462
1471
  "FLEET_ACTIONS_RUNNERS_ENABLED",
1463
- "planned",
1472
+ "live",
1464
1473
  confirm("machine.admin"),
1465
- { phase: "P3", route: POST("/api/fleet/runners/jobs/cancel"), cli: "fleet runners cancel-run" }
1474
+ {
1475
+ phase: "P3",
1476
+ route: POST("/api/fleet/runners/jobs/cancel"),
1477
+ cli: "fleet runners cancel-run",
1478
+ alwaysHeld: true
1479
+ }
1466
1480
  ),
1467
1481
  // ── usage (FL-20) ── P1 shipped: the Usage object (totals, by model, by computer, busiest
1468
1482
  // checkouts, sessions) every surface renders, read-only, with the payer sentence in `note`.
@@ -1585,7 +1599,9 @@ var FLEET_VIRTUAL_SYSTEMS = [
1585
1599
  approxDownloadGiB: 0.7
1586
1600
  }
1587
1601
  ];
1588
- FLEET_VIRTUAL_SYSTEMS.map((system) => system.id);
1602
+ FLEET_VIRTUAL_SYSTEMS.map(
1603
+ (system) => system.id
1604
+ );
1589
1605
  var EMAIL_INBOX_CAP_FIELDS = [
1590
1606
  "inboxDailySends",
1591
1607
  "inboxBurstSends",
@@ -1814,6 +1830,9 @@ var DOMAIN_EVENT_CATALOG = [
1814
1830
  { type: "inbox.item.answered", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
1815
1831
  { type: "inbox.item.state_changed", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
1816
1832
  { type: "inbox.item.deleted", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
1833
+ // Integration inbox push: an integration's PATCH of its own item, and the member's
1834
+ // answer to an integration item (stored on the item; no run is started).
1835
+ { type: "inbox.item.updated", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
1817
1836
  { type: "kb.document.created", domain: "kb", aggregateType: "kb_document", phase: "P3" },
1818
1837
  { type: "kb.document.updated", domain: "kb", aggregateType: "kb_document", phase: "P3" },
1819
1838
  { type: "kb.document.moved", domain: "kb", aggregateType: "kb_document", phase: "P3" },
package/dist/index.js CHANGED
@@ -16,6 +16,10 @@ var PROBLEM_CODES = [
16
16
  "not_connection_owner",
17
17
  "integration_disabled",
18
18
  "integration_revoked",
19
+ "subject_unknown",
20
+ "link_not_found",
21
+ "oidc_client_exists",
22
+ "redirect_uri_invalid",
19
23
  "denied_by_policy",
20
24
  "integration_not_available",
21
25
  "entitlement_required",
@@ -44,6 +48,8 @@ var PROBLEM_CODES = [
44
48
  "illegal_transition",
45
49
  "already_exists",
46
50
  "already_completed",
51
+ "legal_basis_required",
52
+ "receipt_final",
47
53
  "billing_active",
48
54
  "sso_required",
49
55
  "reauth_required",
@@ -990,7 +996,7 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
990
996
  route: GET("/api/fleet/nodes/{id}/desktop/screenshot"),
991
997
  cli: "fleet desktop screenshot"
992
998
  }),
993
- read("fleet_desktop_displays", "desktop", "FL-07", "FLEET_DESKTOP_ENABLED", "planned", {
999
+ read("fleet_desktop_displays", "desktop", "FL-07", "FLEET_DESKTOP_ENABLED", "live", {
994
1000
  route: GET("/api/fleet/nodes/{id}/desktop/displays"),
995
1001
  cli: "fleet desktop displays"
996
1002
  }),
@@ -1264,6 +1270,9 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1264
1270
  route: GET("/api/fleet/checkouts/{id}/changes"),
1265
1271
  cli: "fleet checkouts changes"
1266
1272
  }),
1273
+ read("fleet_checkouts_pull_request_get", "checkouts", "FL-06", "FLEET_CHECKOUTS_ENABLED", "planned", {
1274
+ route: GET("/api/fleet/checkouts/{id}/pull-request")
1275
+ }),
1267
1276
  act("fleet_checkouts_create", "checkouts", "FL-14", "FLEET_CHECKOUTS_ENABLED", "live", plain("machine.run"), {
1268
1277
  route: POST("/api/fleet/checkouts"),
1269
1278
  cli: "fleet checkouts create",
@@ -1392,13 +1401,13 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1392
1401
  }),
1393
1402
  // ── runners (FL-18) ── P1 shipped: list, install, start / stop / restart, remove. An install, a
1394
1403
  // stop, a restart and a remove asked by an Agent are held for the owner's approval
1395
- // (`agent-fleet-runners-tools.ts`). The Actions jobs read and Cancel workflow run arrive with P2.
1404
+ // (`agent-fleet-runners-tools.ts`). P2: the Actions jobs read and Cancel workflow run (always held for an Agent).
1396
1405
  read("fleet_runners_list", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "live", {
1397
1406
  phase: "P3",
1398
1407
  route: GET("/api/fleet/nodes/{id}/runners"),
1399
1408
  cli: "fleet runners list"
1400
1409
  }),
1401
- read("fleet_runners_jobs", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "planned", {
1410
+ read("fleet_runners_jobs", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "live", {
1402
1411
  phase: "P3",
1403
1412
  route: GET("/api/fleet/runners/jobs"),
1404
1413
  cli: "fleet runners jobs"
@@ -1453,9 +1462,14 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1453
1462
  "machines",
1454
1463
  "FL-18",
1455
1464
  "FLEET_ACTIONS_RUNNERS_ENABLED",
1456
- "planned",
1465
+ "live",
1457
1466
  confirm("machine.admin"),
1458
- { phase: "P3", route: POST("/api/fleet/runners/jobs/cancel"), cli: "fleet runners cancel-run" }
1467
+ {
1468
+ phase: "P3",
1469
+ route: POST("/api/fleet/runners/jobs/cancel"),
1470
+ cli: "fleet runners cancel-run",
1471
+ alwaysHeld: true
1472
+ }
1459
1473
  ),
1460
1474
  // ── usage (FL-20) ── P1 shipped: the Usage object (totals, by model, by computer, busiest
1461
1475
  // checkouts, sessions) every surface renders, read-only, with the payer sentence in `note`.
@@ -1578,7 +1592,9 @@ var FLEET_VIRTUAL_SYSTEMS = [
1578
1592
  approxDownloadGiB: 0.7
1579
1593
  }
1580
1594
  ];
1581
- FLEET_VIRTUAL_SYSTEMS.map((system) => system.id);
1595
+ FLEET_VIRTUAL_SYSTEMS.map(
1596
+ (system) => system.id
1597
+ );
1582
1598
  var EMAIL_INBOX_CAP_FIELDS = [
1583
1599
  "inboxDailySends",
1584
1600
  "inboxBurstSends",
@@ -1807,6 +1823,9 @@ var DOMAIN_EVENT_CATALOG = [
1807
1823
  { type: "inbox.item.answered", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
1808
1824
  { type: "inbox.item.state_changed", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
1809
1825
  { type: "inbox.item.deleted", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
1826
+ // Integration inbox push: an integration's PATCH of its own item, and the member's
1827
+ // answer to an integration item (stored on the item; no run is started).
1828
+ { type: "inbox.item.updated", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
1810
1829
  { type: "kb.document.created", domain: "kb", aggregateType: "kb_document", phase: "P3" },
1811
1830
  { type: "kb.document.updated", domain: "kb", aggregateType: "kb_document", phase: "P3" },
1812
1831
  { type: "kb.document.moved", domain: "kb", aggregateType: "kb_document", phase: "P3" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ever-works/mailgun-plugin",
3
- "version": "1.0.11",
3
+ "version": "1.0.13",
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.11",
35
+ "@ever-works/plugin": "^1.2.16",
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:31ce71ab182d40e23fe5dc4ae7a72474bde1bfe64c25a35f288604374dad15fb",
106
- "commit": "67e286ed0d4c3dcc0d66d2f628215ab966cc26e1",
107
- "source": "https://github.com/ever-works/ever-works/tree/67e286ed0d4c3dcc0d66d2f628215ab966cc26e1/packages/plugins/mailgun"
105
+ "contentHash": "sha256:ddd146415d90605eb1de02cf930c53828f0ca4f22339fe7c0c5e45e8c70c4a32",
106
+ "commit": "89cee44a662034ea957b07ec5e1230ecf340b107",
107
+ "source": "https://github.com/ever-works/ever-works/tree/89cee44a662034ea957b07ec5e1230ecf340b107/packages/plugins/mailgun"
108
108
  }
109
109
  }