@devpad/mcp 2.2.0 → 2.2.3
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 +5 -4
- 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
|
}
|
|
@@ -12480,7 +12481,7 @@ var ApiClient2 = class {
|
|
|
12480
12481
|
tags: new ApiClient({ ...clientOptions, category: "tags" }),
|
|
12481
12482
|
blog: new ApiClient({ ...clientOptions, category: "blog" }),
|
|
12482
12483
|
media: new ApiClient({ ...clientOptions, category: "media" }),
|
|
12483
|
-
pulse: new ApiClient({ ...clientOptions, category: "pulse" })
|
|
12484
|
+
pulse: new ApiClient({ ...clientOptions, base_url: `${base_url}/pulse`, category: "pulse" })
|
|
12484
12485
|
};
|
|
12485
12486
|
}
|
|
12486
12487
|
history() {
|