@devpad/mcp 2.1.11 → 2.2.1
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.js +4 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12010,9 +12010,10 @@ var ApiClient2 = class {
|
|
|
12010
12010
|
session: () => wrap(() => this.clients.auth_root.get("/auth/session")),
|
|
12011
12011
|
keys: {
|
|
12012
12012
|
list: () => wrap(() => this.clients.auth.get("/keys")),
|
|
12013
|
-
create: (
|
|
12014
|
-
body
|
|
12015
|
-
|
|
12013
|
+
create: (input) => {
|
|
12014
|
+
const body = typeof input === "string" ? { name: input } : input ?? {};
|
|
12015
|
+
return wrap(() => this.clients.auth.post("/keys", { body }));
|
|
12016
|
+
},
|
|
12016
12017
|
revoke: (key_id) => wrap(() => this.clients.auth.delete(`/keys/${key_id}`)),
|
|
12017
12018
|
remove: (key_id) => wrap(() => this.clients.auth.delete(`/keys/${key_id}`))
|
|
12018
12019
|
}
|