@ever-works/resend-plugin 1.0.5 → 1.0.7

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
@@ -57,6 +57,7 @@ var PROBLEM_CODES = [
57
57
  "already_connected",
58
58
  "already_linked",
59
59
  "already_claimed",
60
+ "claim_locked",
60
61
  "invalid_client",
61
62
  "public_jwk_invalid",
62
63
  "identifier_claimed",
@@ -82,6 +83,11 @@ var PROBLEM_CODES = [
82
83
  "database_absent",
83
84
  "database_unreachable",
84
85
  "topic_private",
86
+ "realtime_disabled",
87
+ "topic_forbidden",
88
+ "topic_invalid",
89
+ "realtime_busy",
90
+ "too_many_streams",
85
91
  "keys_unavailable",
86
92
  "internal_error"
87
93
  ];
@@ -668,6 +674,49 @@ var FLEET_AGENT_CREDENTIAL_FAMILIES = [
668
674
  FLEET_AGENT_CREDENTIAL_FAMILIES.flatMap(
669
675
  (family) => family.envNames
670
676
  );
677
+ var FLEET_LINK_FRAME_KINDS = {
678
+ /** Raw bytes: terminal output/input, log lines, file chunks. */
679
+ DATA: 1,
680
+ /** `[cols u16][rows u16]`. */
681
+ RESIZE: 2,
682
+ /** `[code i32]`. */
683
+ EXIT: 3,
684
+ /** UTF-8 JSON control message. */
685
+ JSON: 10,
686
+ /** UTF-8 reason code. */
687
+ CLOSE: 11,
688
+ /** A full picture (the existing computer-frame encoding). */
689
+ FRAME: 20,
690
+ /** A pointer / key / text event (the existing computer input encoding). */
691
+ INPUT: 21,
692
+ /** Changed tiles `[w][h][count]{x,y,w,h,len,jpeg}`. */
693
+ TILES: 23,
694
+ /** `[bytes u32]` credit. */
695
+ ACK: 30,
696
+ /** End of a stream. */
697
+ END: 31,
698
+ /** UTF-8 text ≤ 256 KiB, pasted into a desktop. */
699
+ CLIP: 40
700
+ };
701
+ new Set(Object.values(FLEET_LINK_FRAME_KINDS));
702
+ var FLEET_LINK_CONTROL_TYPES = [
703
+ "link.hello",
704
+ "link.ready",
705
+ "link.ping",
706
+ "link.pong",
707
+ "link.pause",
708
+ "link.resume",
709
+ "link.drain",
710
+ "channel.open",
711
+ "channel.ready",
712
+ "channel.refused",
713
+ "channel.close",
714
+ "operation.progress",
715
+ "operation.done",
716
+ "operation.cancel"
717
+ ];
718
+ new Set(FLEET_LINK_CONTROL_TYPES);
719
+ new TextEncoder();
671
720
  var EMAIL_INBOX_CAP_FIELDS = [
672
721
  "inboxDailySends",
673
722
  "inboxBurstSends",
package/dist/index.js CHANGED
@@ -55,6 +55,7 @@ var PROBLEM_CODES = [
55
55
  "already_connected",
56
56
  "already_linked",
57
57
  "already_claimed",
58
+ "claim_locked",
58
59
  "invalid_client",
59
60
  "public_jwk_invalid",
60
61
  "identifier_claimed",
@@ -80,6 +81,11 @@ var PROBLEM_CODES = [
80
81
  "database_absent",
81
82
  "database_unreachable",
82
83
  "topic_private",
84
+ "realtime_disabled",
85
+ "topic_forbidden",
86
+ "topic_invalid",
87
+ "realtime_busy",
88
+ "too_many_streams",
83
89
  "keys_unavailable",
84
90
  "internal_error"
85
91
  ];
@@ -666,6 +672,49 @@ var FLEET_AGENT_CREDENTIAL_FAMILIES = [
666
672
  FLEET_AGENT_CREDENTIAL_FAMILIES.flatMap(
667
673
  (family) => family.envNames
668
674
  );
675
+ var FLEET_LINK_FRAME_KINDS = {
676
+ /** Raw bytes: terminal output/input, log lines, file chunks. */
677
+ DATA: 1,
678
+ /** `[cols u16][rows u16]`. */
679
+ RESIZE: 2,
680
+ /** `[code i32]`. */
681
+ EXIT: 3,
682
+ /** UTF-8 JSON control message. */
683
+ JSON: 10,
684
+ /** UTF-8 reason code. */
685
+ CLOSE: 11,
686
+ /** A full picture (the existing computer-frame encoding). */
687
+ FRAME: 20,
688
+ /** A pointer / key / text event (the existing computer input encoding). */
689
+ INPUT: 21,
690
+ /** Changed tiles `[w][h][count]{x,y,w,h,len,jpeg}`. */
691
+ TILES: 23,
692
+ /** `[bytes u32]` credit. */
693
+ ACK: 30,
694
+ /** End of a stream. */
695
+ END: 31,
696
+ /** UTF-8 text ≤ 256 KiB, pasted into a desktop. */
697
+ CLIP: 40
698
+ };
699
+ new Set(Object.values(FLEET_LINK_FRAME_KINDS));
700
+ var FLEET_LINK_CONTROL_TYPES = [
701
+ "link.hello",
702
+ "link.ready",
703
+ "link.ping",
704
+ "link.pong",
705
+ "link.pause",
706
+ "link.resume",
707
+ "link.drain",
708
+ "channel.open",
709
+ "channel.ready",
710
+ "channel.refused",
711
+ "channel.close",
712
+ "operation.progress",
713
+ "operation.done",
714
+ "operation.cancel"
715
+ ];
716
+ new Set(FLEET_LINK_CONTROL_TYPES);
717
+ new TextEncoder();
669
718
  var EMAIL_INBOX_CAP_FIELDS = [
670
719
  "inboxDailySends",
671
720
  "inboxBurstSends",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ever-works/resend-plugin",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
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.5",
35
+ "@ever-works/plugin": "^1.2.6",
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:53338964aa55039b0d68ceedeb4ee2300ac928f867fd0be4332288863ca44ba2",
86
- "commit": "19905c70cf05be3bc523db030597046067cd322a",
87
- "source": "https://github.com/ever-works/ever-works/tree/19905c70cf05be3bc523db030597046067cd322a/packages/plugins/resend"
85
+ "contentHash": "sha256:2970715fa4d82a19c39b157ab9b16807667eb75d715a614eadd94afc5fcb83b2",
86
+ "commit": "eff002871bfd7f9f8e0f984907f45265ae8b01e0",
87
+ "source": "https://github.com/ever-works/ever-works/tree/eff002871bfd7f9f8e0f984907f45265ae8b01e0/packages/plugins/resend"
88
88
  }
89
89
  }