@ever-works/resend-plugin 1.0.12 → 1.0.17

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
@@ -107,7 +107,9 @@ var USER_SELECTABLE_WORK_KINDS = [
107
107
  "directory",
108
108
  "awesome-repo",
109
109
  "repo",
110
- "app"
110
+ "app",
111
+ "knowledge-base",
112
+ "store"
111
113
  ];
112
114
  var WORK_KINDS = [...USER_SELECTABLE_WORK_KINDS, "company", "campaign", "project", "default"];
113
115
  new Set(WORK_KINDS);
@@ -117,6 +119,9 @@ var RECORD_VISIBILITIES = ["private", "team", "organization"];
117
119
  new Set(RECORD_VISIBILITIES);
118
120
  var RECORD_LIST_VIEWS = ["mine", "shared", "organization"];
119
121
  new Set(RECORD_LIST_VIEWS);
122
+ new Set(
123
+ "a abbr address applet area article aside audio b base bdi bdo big blockquote body br button canvas caption center cite code col colgroup data datalist dd del details dfn dialog dir div dl dt em embed fieldset figcaption figure font footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html i iframe image img input ins kbd label legend li link main map mark marquee math menu meta meter nav noscript object ol optgroup option output p param picture pre progress q rp rt ruby s samp script search section select slot small source span strike strong style sub summary sup svg table tbody td template textarea tfoot th thead time title tr track tt u ul var video wbr xmp".split(" ")
124
+ );
120
125
  var VERSION = "1.0.0";
121
126
  var GTM_SKILLS = [
122
127
  // ── research ────────────────────────────────────────────────────────
@@ -1855,6 +1860,26 @@ var PLUGIN_CAPABILITIES = {
1855
1860
  // `EMAIL_OUTBOUND`, `EMAIL_INBOUND`, or both. See
1856
1861
  // `capabilities/email-provider.interface.ts` for the contract.
1857
1862
  EMAIL_OUTBOUND: "email-outbound"};
1863
+ var GITHUB_FULL_SCOPES_ALL = [
1864
+ "user:email",
1865
+ "read:user",
1866
+ "repo",
1867
+ "delete_repo",
1868
+ "workflow",
1869
+ "write:repo_hook",
1870
+ "read:org",
1871
+ "project"
1872
+ ];
1873
+ var GITHUB_DELETE_REPO_SCOPE = "delete_repo";
1874
+ function isGithubDeleteRepoScopeEnabled(env = readEnv()) {
1875
+ return (env?.GITHUB_OAUTH_DELETE_REPO_SCOPE_ENABLED ?? "").trim().toLowerCase() === "true";
1876
+ }
1877
+ function readEnv() {
1878
+ return typeof process !== "undefined" ? process.env : void 0;
1879
+ }
1880
+ Object.freeze(
1881
+ GITHUB_FULL_SCOPES_ALL.filter((scope) => scope !== GITHUB_DELETE_REPO_SCOPE || isGithubDeleteRepoScopeEnabled())
1882
+ );
1858
1883
 
1859
1884
  // src/resend-plugin.ts
1860
1885
  function resolveApiKey(options) {
package/dist/index.js CHANGED
@@ -105,7 +105,9 @@ var USER_SELECTABLE_WORK_KINDS = [
105
105
  "directory",
106
106
  "awesome-repo",
107
107
  "repo",
108
- "app"
108
+ "app",
109
+ "knowledge-base",
110
+ "store"
109
111
  ];
110
112
  var WORK_KINDS = [...USER_SELECTABLE_WORK_KINDS, "company", "campaign", "project", "default"];
111
113
  new Set(WORK_KINDS);
@@ -115,6 +117,9 @@ var RECORD_VISIBILITIES = ["private", "team", "organization"];
115
117
  new Set(RECORD_VISIBILITIES);
116
118
  var RECORD_LIST_VIEWS = ["mine", "shared", "organization"];
117
119
  new Set(RECORD_LIST_VIEWS);
120
+ new Set(
121
+ "a abbr address applet area article aside audio b base bdi bdo big blockquote body br button canvas caption center cite code col colgroup data datalist dd del details dfn dialog dir div dl dt em embed fieldset figcaption figure font footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html i iframe image img input ins kbd label legend li link main map mark marquee math menu meta meter nav noscript object ol optgroup option output p param picture pre progress q rp rt ruby s samp script search section select slot small source span strike strong style sub summary sup svg table tbody td template textarea tfoot th thead time title tr track tt u ul var video wbr xmp".split(" ")
122
+ );
118
123
  var VERSION = "1.0.0";
119
124
  var GTM_SKILLS = [
120
125
  // ── research ────────────────────────────────────────────────────────
@@ -1853,6 +1858,26 @@ var PLUGIN_CAPABILITIES = {
1853
1858
  // `EMAIL_OUTBOUND`, `EMAIL_INBOUND`, or both. See
1854
1859
  // `capabilities/email-provider.interface.ts` for the contract.
1855
1860
  EMAIL_OUTBOUND: "email-outbound"};
1861
+ var GITHUB_FULL_SCOPES_ALL = [
1862
+ "user:email",
1863
+ "read:user",
1864
+ "repo",
1865
+ "delete_repo",
1866
+ "workflow",
1867
+ "write:repo_hook",
1868
+ "read:org",
1869
+ "project"
1870
+ ];
1871
+ var GITHUB_DELETE_REPO_SCOPE = "delete_repo";
1872
+ function isGithubDeleteRepoScopeEnabled(env = readEnv()) {
1873
+ return (env?.GITHUB_OAUTH_DELETE_REPO_SCOPE_ENABLED ?? "").trim().toLowerCase() === "true";
1874
+ }
1875
+ function readEnv() {
1876
+ return typeof process !== "undefined" ? process.env : void 0;
1877
+ }
1878
+ Object.freeze(
1879
+ GITHUB_FULL_SCOPES_ALL.filter((scope) => scope !== GITHUB_DELETE_REPO_SCOPE || isGithubDeleteRepoScopeEnabled())
1880
+ );
1856
1881
 
1857
1882
  // src/resend-plugin.ts
1858
1883
  function resolveApiKey(options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ever-works/resend-plugin",
3
- "version": "1.0.12",
3
+ "version": "1.0.17",
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.16",
35
+ "@ever-works/plugin": "^1.2.33",
36
36
  "resend": "^4.5.1"
37
37
  },
38
38
  "devDependencies": {
@@ -74,16 +74,16 @@
74
74
  },
75
75
  "repository": {
76
76
  "type": "git",
77
- "url": "git+https://github.com/ever-works/ever-works.git",
77
+ "url": "git+https://github.com/ever-co/ever-works.git",
78
78
  "directory": "packages/plugins/resend"
79
79
  },
80
- "homepage": "https://github.com/ever-works/ever-works/tree/main/packages/plugins/resend#readme",
80
+ "homepage": "https://github.com/ever-co/ever-works/tree/main/packages/plugins/resend#readme",
81
81
  "bugs": {
82
- "url": "https://github.com/ever-works/ever-works/issues"
82
+ "url": "https://github.com/ever-co/ever-works/issues"
83
83
  },
84
84
  "everworksRelease": {
85
- "contentHash": "sha256:2cc4ee973d3586d71a288e4812ac5877333b0125047fcea08272030e76ddeb16",
86
- "commit": "89cee44a662034ea957b07ec5e1230ecf340b107",
87
- "source": "https://github.com/ever-works/ever-works/tree/89cee44a662034ea957b07ec5e1230ecf340b107/packages/plugins/resend"
85
+ "contentHash": "sha256:7dbcae7ef75f637feb1fa88df47e189fe4be0900e9ad75ca4edd35a4f1a4e283",
86
+ "commit": "c6b8fd57745689ed9be529bed3fe4bd3d4f85b67",
87
+ "source": "https://github.com/ever-co/ever-works/tree/c6b8fd57745689ed9be529bed3fe4bd3d4f85b67/packages/plugins/resend"
88
88
  }
89
89
  }