@postmcp/presets 0.1.4 → 0.1.6
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 +14 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -599,7 +599,7 @@ var CLOUD_DATABASES_PRESETS = [
|
|
|
599
599
|
specUrl: "https://neon.tech/api_spec/release/v2.json",
|
|
600
600
|
tags: ["postgres", "serverless", "branching", "sql"],
|
|
601
601
|
fieldMasks: [
|
|
602
|
-
{ path: "/projects", fields: ["projects.id", "projects.name", "projects.region_id", "projects.created_at"] }
|
|
602
|
+
{ path: "/projects", fields: ["projects[*].id", "projects[*].name", "projects[*].region_id", "projects[*].created_at"] }
|
|
603
603
|
],
|
|
604
604
|
bundledSpec: buildOpenAPISpec({
|
|
605
605
|
title: "Neon Serverless Postgres API",
|
|
@@ -607,7 +607,19 @@ var CLOUD_DATABASES_PRESETS = [
|
|
|
607
607
|
description: "Neon Database Branching API",
|
|
608
608
|
securityScheme: { name: "bearerAuth", type: "http", scheme: "bearer" },
|
|
609
609
|
endpoints: [
|
|
610
|
-
{ path: "/
|
|
610
|
+
{ path: "/users/me/organizations", method: "get", operationId: "getCurrentUserOrganizations", summary: "List organizations for the current user" },
|
|
611
|
+
{
|
|
612
|
+
path: "/projects",
|
|
613
|
+
method: "get",
|
|
614
|
+
operationId: "listProjects",
|
|
615
|
+
summary: "List Neon projects",
|
|
616
|
+
parameters: [
|
|
617
|
+
{ name: "org_id", in: "query", schema: { type: "string" }, description: "Neon Organization ID" },
|
|
618
|
+
{ name: "limit", in: "query", schema: { type: "integer" }, description: "The maximum number of projects to return" },
|
|
619
|
+
{ name: "cursor", in: "query", schema: { type: "string" }, description: "Pagination cursor" },
|
|
620
|
+
{ name: "search", in: "query", schema: { type: "string" }, description: "Search query to filter projects by name" }
|
|
621
|
+
]
|
|
622
|
+
},
|
|
611
623
|
{ path: "/projects/{project_id}", method: "get", operationId: "getProject", summary: "Get project details", parameters: [{ name: "project_id", in: "path", schema: { type: "string" } }] },
|
|
612
624
|
{ path: "/projects/{project_id}/branches", method: "get", operationId: "listBranches", summary: "List database branches", parameters: [{ name: "project_id", in: "path", schema: { type: "string" } }] },
|
|
613
625
|
{ path: "/projects/{project_id}/branches", method: "post", operationId: "createBranch", summary: "Create new database branch", parameters: [{ name: "project_id", in: "path", schema: { type: "string" } }], requestBody: { properties: { branch: { type: "object" } } } }
|