@motorical/scope-catalog 0.2.0 → 0.3.0
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/package.json +1 -1
- package/src/scopes.js +8 -1
- package/src/tools.js +6 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@motorical/scope-catalog",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Canonical MCP/OAuth scope metadata for Motorical — descriptions, Public API scope mapping, implied-read rules, and declarative tool/resource membership. One source of truth consumed by motorical-backend and @motorical/mcp.",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"engines": {
|
package/src/scopes.js
CHANGED
|
@@ -50,9 +50,16 @@ const SCOPES = {
|
|
|
50
50
|
resource: 'sandbox',
|
|
51
51
|
level: 'manage',
|
|
52
52
|
publicScopes: ['sandbox.manage'],
|
|
53
|
-
agentDescription: 'Check, provision, and convert the developer sandbox.
|
|
53
|
+
agentDescription: 'Check, provision, and convert the developer sandbox. Allowlisting by 6-digit code additionally requires a dashboard session, so this scope alone does not make that callable over OAuth; recipients confirm by emailed link under manage:recipients instead.',
|
|
54
54
|
customerAction: 'Manage your developer sandbox',
|
|
55
55
|
},
|
|
56
|
+
'manage:recipients': {
|
|
57
|
+
resource: 'recipients',
|
|
58
|
+
level: 'manage',
|
|
59
|
+
publicScopes: ['recipients.manage'],
|
|
60
|
+
agentDescription: 'Request permission to send test email to an address you name, and see which addresses have confirmed or stopped. The recipient confirms by clicking an emailed link; an agent can never confirm on their behalf.',
|
|
61
|
+
customerAction: 'Ask recipients to allow your test emails, and see who has confirmed',
|
|
62
|
+
},
|
|
56
63
|
'manage:webhooks': {
|
|
57
64
|
resource: 'webhooks',
|
|
58
65
|
level: 'manage',
|
package/src/tools.js
CHANGED
|
@@ -54,6 +54,9 @@ const SANDBOX_TOOLS = [
|
|
|
54
54
|
'motorical_sandbox_convert',
|
|
55
55
|
'motorical_sandbox_allowlist_request',
|
|
56
56
|
'motorical_sandbox_allowlist_confirm',
|
|
57
|
+
'motorical_free_recipient_add',
|
|
58
|
+
'motorical_free_recipient_list',
|
|
59
|
+
'motorical_free_recipient_remove',
|
|
57
60
|
];
|
|
58
61
|
|
|
59
62
|
const WEBHOOK_TOOLS = [
|
|
@@ -133,6 +136,9 @@ const TOOL_SCOPES = {
|
|
|
133
136
|
motorical_sandbox_convert: ['manage:sandbox'],
|
|
134
137
|
motorical_sandbox_allowlist_request: ['manage:sandbox'],
|
|
135
138
|
motorical_sandbox_allowlist_confirm: ['manage:sandbox'],
|
|
139
|
+
motorical_free_recipient_add: ['manage:recipients'],
|
|
140
|
+
motorical_free_recipient_list: ['manage:recipients'],
|
|
141
|
+
motorical_free_recipient_remove: ['manage:recipients'],
|
|
136
142
|
motorical_webhook_list: ['read:webhooks'],
|
|
137
143
|
motorical_webhook_create: ['manage:webhooks'],
|
|
138
144
|
motorical_webhook_update: ['manage:webhooks'],
|