@ever-works/resend-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
@@ -17,6 +17,10 @@ var PROBLEM_CODES = [
17
17
  "not_connection_owner",
18
18
  "integration_disabled",
19
19
  "integration_revoked",
20
+ "subject_unknown",
21
+ "link_not_found",
22
+ "oidc_client_exists",
23
+ "redirect_uri_invalid",
20
24
  "denied_by_policy",
21
25
  "integration_not_available",
22
26
  "entitlement_required",
@@ -45,6 +49,8 @@ var PROBLEM_CODES = [
45
49
  "illegal_transition",
46
50
  "already_exists",
47
51
  "already_completed",
52
+ "legal_basis_required",
53
+ "receipt_final",
48
54
  "billing_active",
49
55
  "sso_required",
50
56
  "reauth_required",
@@ -991,7 +997,7 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
991
997
  route: GET("/api/fleet/nodes/{id}/desktop/screenshot"),
992
998
  cli: "fleet desktop screenshot"
993
999
  }),
994
- read("fleet_desktop_displays", "desktop", "FL-07", "FLEET_DESKTOP_ENABLED", "planned", {
1000
+ read("fleet_desktop_displays", "desktop", "FL-07", "FLEET_DESKTOP_ENABLED", "live", {
995
1001
  route: GET("/api/fleet/nodes/{id}/desktop/displays"),
996
1002
  cli: "fleet desktop displays"
997
1003
  }),
@@ -1265,6 +1271,9 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1265
1271
  route: GET("/api/fleet/checkouts/{id}/changes"),
1266
1272
  cli: "fleet checkouts changes"
1267
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
+ }),
1268
1277
  act("fleet_checkouts_create", "checkouts", "FL-14", "FLEET_CHECKOUTS_ENABLED", "live", plain("machine.run"), {
1269
1278
  route: POST("/api/fleet/checkouts"),
1270
1279
  cli: "fleet checkouts create",
@@ -1393,13 +1402,13 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1393
1402
  }),
1394
1403
  // ── runners (FL-18) ── P1 shipped: list, install, start / stop / restart, remove. An install, a
1395
1404
  // stop, a restart and a remove asked by an Agent are held for the owner's approval
1396
- // (`agent-fleet-runners-tools.ts`). The Actions jobs read and Cancel workflow run arrive with P2.
1405
+ // (`agent-fleet-runners-tools.ts`). P2: the Actions jobs read and Cancel workflow run (always held for an Agent).
1397
1406
  read("fleet_runners_list", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "live", {
1398
1407
  phase: "P3",
1399
1408
  route: GET("/api/fleet/nodes/{id}/runners"),
1400
1409
  cli: "fleet runners list"
1401
1410
  }),
1402
- 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", {
1403
1412
  phase: "P3",
1404
1413
  route: GET("/api/fleet/runners/jobs"),
1405
1414
  cli: "fleet runners jobs"
@@ -1454,9 +1463,14 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1454
1463
  "machines",
1455
1464
  "FL-18",
1456
1465
  "FLEET_ACTIONS_RUNNERS_ENABLED",
1457
- "planned",
1466
+ "live",
1458
1467
  confirm("machine.admin"),
1459
- { phase: "P3", route: POST("/api/fleet/runners/jobs/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
+ }
1460
1474
  ),
1461
1475
  // ── usage (FL-20) ── P1 shipped: the Usage object (totals, by model, by computer, busiest
1462
1476
  // checkouts, sessions) every surface renders, read-only, with the payer sentence in `note`.
@@ -1579,7 +1593,9 @@ var FLEET_VIRTUAL_SYSTEMS = [
1579
1593
  approxDownloadGiB: 0.7
1580
1594
  }
1581
1595
  ];
1582
- FLEET_VIRTUAL_SYSTEMS.map((system) => system.id);
1596
+ FLEET_VIRTUAL_SYSTEMS.map(
1597
+ (system) => system.id
1598
+ );
1583
1599
  var EMAIL_INBOX_CAP_FIELDS = [
1584
1600
  "inboxDailySends",
1585
1601
  "inboxBurstSends",
@@ -1808,6 +1824,9 @@ var DOMAIN_EVENT_CATALOG = [
1808
1824
  { type: "inbox.item.answered", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
1809
1825
  { type: "inbox.item.state_changed", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
1810
1826
  { type: "inbox.item.deleted", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
1827
+ // Integration inbox push: an integration's PATCH of its own item, and the member's
1828
+ // answer to an integration item (stored on the item; no run is started).
1829
+ { type: "inbox.item.updated", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
1811
1830
  { type: "kb.document.created", domain: "kb", aggregateType: "kb_document", phase: "P3" },
1812
1831
  { type: "kb.document.updated", domain: "kb", aggregateType: "kb_document", phase: "P3" },
1813
1832
  { type: "kb.document.moved", domain: "kb", aggregateType: "kb_document", phase: "P3" },
package/dist/index.js CHANGED
@@ -15,6 +15,10 @@ var PROBLEM_CODES = [
15
15
  "not_connection_owner",
16
16
  "integration_disabled",
17
17
  "integration_revoked",
18
+ "subject_unknown",
19
+ "link_not_found",
20
+ "oidc_client_exists",
21
+ "redirect_uri_invalid",
18
22
  "denied_by_policy",
19
23
  "integration_not_available",
20
24
  "entitlement_required",
@@ -43,6 +47,8 @@ var PROBLEM_CODES = [
43
47
  "illegal_transition",
44
48
  "already_exists",
45
49
  "already_completed",
50
+ "legal_basis_required",
51
+ "receipt_final",
46
52
  "billing_active",
47
53
  "sso_required",
48
54
  "reauth_required",
@@ -989,7 +995,7 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
989
995
  route: GET("/api/fleet/nodes/{id}/desktop/screenshot"),
990
996
  cli: "fleet desktop screenshot"
991
997
  }),
992
- read("fleet_desktop_displays", "desktop", "FL-07", "FLEET_DESKTOP_ENABLED", "planned", {
998
+ read("fleet_desktop_displays", "desktop", "FL-07", "FLEET_DESKTOP_ENABLED", "live", {
993
999
  route: GET("/api/fleet/nodes/{id}/desktop/displays"),
994
1000
  cli: "fleet desktop displays"
995
1001
  }),
@@ -1263,6 +1269,9 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1263
1269
  route: GET("/api/fleet/checkouts/{id}/changes"),
1264
1270
  cli: "fleet checkouts changes"
1265
1271
  }),
1272
+ read("fleet_checkouts_pull_request_get", "checkouts", "FL-06", "FLEET_CHECKOUTS_ENABLED", "planned", {
1273
+ route: GET("/api/fleet/checkouts/{id}/pull-request")
1274
+ }),
1266
1275
  act("fleet_checkouts_create", "checkouts", "FL-14", "FLEET_CHECKOUTS_ENABLED", "live", plain("machine.run"), {
1267
1276
  route: POST("/api/fleet/checkouts"),
1268
1277
  cli: "fleet checkouts create",
@@ -1391,13 +1400,13 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1391
1400
  }),
1392
1401
  // ── runners (FL-18) ── P1 shipped: list, install, start / stop / restart, remove. An install, a
1393
1402
  // stop, a restart and a remove asked by an Agent are held for the owner's approval
1394
- // (`agent-fleet-runners-tools.ts`). The Actions jobs read and Cancel workflow run arrive with P2.
1403
+ // (`agent-fleet-runners-tools.ts`). P2: the Actions jobs read and Cancel workflow run (always held for an Agent).
1395
1404
  read("fleet_runners_list", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "live", {
1396
1405
  phase: "P3",
1397
1406
  route: GET("/api/fleet/nodes/{id}/runners"),
1398
1407
  cli: "fleet runners list"
1399
1408
  }),
1400
- read("fleet_runners_jobs", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "planned", {
1409
+ read("fleet_runners_jobs", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "live", {
1401
1410
  phase: "P3",
1402
1411
  route: GET("/api/fleet/runners/jobs"),
1403
1412
  cli: "fleet runners jobs"
@@ -1452,9 +1461,14 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1452
1461
  "machines",
1453
1462
  "FL-18",
1454
1463
  "FLEET_ACTIONS_RUNNERS_ENABLED",
1455
- "planned",
1464
+ "live",
1456
1465
  confirm("machine.admin"),
1457
- { phase: "P3", route: POST("/api/fleet/runners/jobs/cancel"), cli: "fleet runners cancel-run" }
1466
+ {
1467
+ phase: "P3",
1468
+ route: POST("/api/fleet/runners/jobs/cancel"),
1469
+ cli: "fleet runners cancel-run",
1470
+ alwaysHeld: true
1471
+ }
1458
1472
  ),
1459
1473
  // ── usage (FL-20) ── P1 shipped: the Usage object (totals, by model, by computer, busiest
1460
1474
  // checkouts, sessions) every surface renders, read-only, with the payer sentence in `note`.
@@ -1577,7 +1591,9 @@ var FLEET_VIRTUAL_SYSTEMS = [
1577
1591
  approxDownloadGiB: 0.7
1578
1592
  }
1579
1593
  ];
1580
- FLEET_VIRTUAL_SYSTEMS.map((system) => system.id);
1594
+ FLEET_VIRTUAL_SYSTEMS.map(
1595
+ (system) => system.id
1596
+ );
1581
1597
  var EMAIL_INBOX_CAP_FIELDS = [
1582
1598
  "inboxDailySends",
1583
1599
  "inboxBurstSends",
@@ -1806,6 +1822,9 @@ var DOMAIN_EVENT_CATALOG = [
1806
1822
  { type: "inbox.item.answered", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
1807
1823
  { type: "inbox.item.state_changed", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
1808
1824
  { type: "inbox.item.deleted", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
1825
+ // Integration inbox push: an integration's PATCH of its own item, and the member's
1826
+ // answer to an integration item (stored on the item; no run is started).
1827
+ { type: "inbox.item.updated", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
1809
1828
  { type: "kb.document.created", domain: "kb", aggregateType: "kb_document", phase: "P3" },
1810
1829
  { type: "kb.document.updated", domain: "kb", aggregateType: "kb_document", phase: "P3" },
1811
1830
  { 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/resend-plugin",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "description": "Resend email provider plugin (outbound only) 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
  "resend": "^4.5.1"
37
37
  },
38
38
  "devDependencies": {
@@ -82,8 +82,8 @@
82
82
  "url": "https://github.com/ever-works/ever-works/issues"
83
83
  },
84
84
  "everworksRelease": {
85
- "contentHash": "sha256:7aa8ca0c1db0f0e17f8614aae76aee012fa8cc4790c9c525805cefeeb07a7d15",
86
- "commit": "67e286ed0d4c3dcc0d66d2f628215ab966cc26e1",
87
- "source": "https://github.com/ever-works/ever-works/tree/67e286ed0d4c3dcc0d66d2f628215ab966cc26e1/packages/plugins/resend"
85
+ "contentHash": "sha256:2cc4ee973d3586d71a288e4812ac5877333b0125047fcea08272030e76ddeb16",
86
+ "commit": "89cee44a662034ea957b07ec5e1230ecf340b107",
87
+ "source": "https://github.com/ever-works/ever-works/tree/89cee44a662034ea957b07ec5e1230ecf340b107/packages/plugins/resend"
88
88
  }
89
89
  }