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