@neon/tools 2.14.4 → 2.15.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/README.md +78 -1
- package/dist/effect.d.ts +22 -0
- package/dist/effect.d.ts.map +1 -0
- package/dist/effect.js +3 -0
- package/dist/generated/output.gen.d.ts +3418 -0
- package/dist/generated/output.gen.d.ts.map +1 -0
- package/dist/generated/output.gen.js +1498 -0
- package/dist/lib/custom/auth-config.d.ts +63 -1
- package/dist/lib/custom/auth-config.d.ts.map +1 -1
- package/dist/lib/custom/auth-config.js +21 -1
- package/dist/lib/custom/docs.d.ts +32 -2
- package/dist/lib/custom/docs.d.ts.map +1 -1
- package/dist/lib/custom/docs.js +16 -1
- package/dist/lib/custom/feedback.d.ts +7 -2
- package/dist/lib/custom/feedback.d.ts.map +1 -1
- package/dist/lib/custom/feedback.js +2 -0
- package/dist/lib/custom/fetch.d.ts +15 -1
- package/dist/lib/custom/fetch.d.ts.map +1 -1
- package/dist/lib/custom/fetch.js +9 -1
- package/dist/lib/custom/organizations.d.ts +23 -1
- package/dist/lib/custom/organizations.d.ts.map +1 -1
- package/dist/lib/custom/organizations.js +2 -0
- package/dist/lib/custom/resources.d.ts +15 -1
- package/dist/lib/custom/resources.d.ts.map +1 -1
- package/dist/lib/custom/resources.js +7 -1
- package/dist/lib/custom/sql/connection.js +1 -1
- package/dist/lib/custom/sql/describe-branch.d.ts +99 -1
- package/dist/lib/custom/sql/describe-branch.d.ts.map +1 -1
- package/dist/lib/custom/sql/describe-branch.js +9 -0
- package/dist/lib/custom/sql/inspect/inspect.d.ts +27 -1
- package/dist/lib/custom/sql/inspect/inspect.d.ts.map +1 -1
- package/dist/lib/custom/sql/inspect/inspect.js +15 -1
- package/dist/lib/custom/sql/migrations.d.ts +46 -2
- package/dist/lib/custom/sql/migrations.d.ts.map +1 -1
- package/dist/lib/custom/sql/migrations.js +26 -2
- package/dist/lib/custom/sql/query-tuning.d.ts +90 -2
- package/dist/lib/custom/sql/query-tuning.d.ts.map +1 -1
- package/dist/lib/custom/sql/query-tuning.js +28 -3
- package/dist/lib/custom/sql/run.d.ts +30 -3
- package/dist/lib/custom/sql/run.d.ts.map +1 -1
- package/dist/lib/custom/sql/run.js +11 -1
- package/dist/lib/custom/sql/schema.d.ts +76 -2
- package/dist/lib/custom/sql/schema.d.ts.map +1 -1
- package/dist/lib/custom/sql/schema.js +31 -2
- package/dist/lib/custom/sql/slow-queries.d.ts +15 -1
- package/dist/lib/custom/sql/slow-queries.d.ts.map +1 -1
- package/dist/lib/custom/sql/slow-queries.js +9 -1
- package/dist/lib/effect/errors.d.ts +51 -0
- package/dist/lib/effect/errors.d.ts.map +1 -0
- package/dist/lib/effect/errors.js +37 -0
- package/dist/lib/effect/tools.d.ts +56 -0
- package/dist/lib/effect/tools.d.ts.map +1 -0
- package/dist/lib/effect/tools.js +67 -0
- package/dist/lib/ergonomic/bind.d.ts +20 -6
- package/dist/lib/ergonomic/bind.d.ts.map +1 -1
- package/dist/lib/ergonomic/bind.js +2 -1
- package/dist/lib/ergonomic/catalog.d.ts +5333 -172
- package/dist/lib/ergonomic/catalog.d.ts.map +1 -1
- package/dist/lib/ergonomic/catalog.js +186 -1
- package/dist/lib/ergonomic/composed.d.ts +866 -12
- package/dist/lib/ergonomic/composed.d.ts.map +1 -1
- package/dist/lib/ergonomic/composed.js +34 -0
- package/dist/lib/mcp-json-schema.d.ts +20 -0
- package/dist/lib/mcp-json-schema.d.ts.map +1 -1
- package/dist/lib/mcp-json-schema.js +89 -1
- package/dist/lib/mcp-register.d.ts +1 -1
- package/dist/lib/mcp-register.d.ts.map +1 -1
- package/dist/lib/mcp-register.js +2 -1
- package/dist/lib/operation.d.ts +6 -1
- package/dist/lib/operation.d.ts.map +1 -1
- package/dist/mcp-v1.d.ts.map +1 -1
- package/dist/mcp-v1.js +3 -1
- package/dist/mcp.d.ts +3 -3
- package/dist/mcp.d.ts.map +1 -1
- package/dist/mcp.js +3 -3
- package/dist/operations.gen.d.ts +194 -194
- package/package.json +22 -3
|
@@ -3,6 +3,7 @@ import { toToolResult } from "../result.js";
|
|
|
3
3
|
import { bindTool, collectObjectList, collectPages, fromGenerated, publishedId } from "./bind.js";
|
|
4
4
|
import { describeTableTool, listTablesTool } from "../custom/sql/schema.js";
|
|
5
5
|
import { inspectDatabaseTool } from "../custom/sql/inspect/inspect.js";
|
|
6
|
+
import { ApiKeyCreateResponse, ApiKeyRevokeResponse, ApiKeysListResponseItem, BackupSchedule, Branch, BranchAiGateway, BranchStorage, Bucket, BucketObjectsDeletePrefixResponse, BucketsListResponse, ConsumptionHistoryPerBranchV2, ConsumptionHistoryPerProject, ConsumptionHistoryPerProjectV2, CreateCredentialResponse, CurrentUserInfoResponse, CustomDomain, DataAPICreateResponse, DataAPIReponse, Database, DatabasesResponse, Endpoint, EndpointsResponse, ListCredentialsResponse, ListNeonAuthOAuthClientsResponse, ListNeonAuthOauthProvidersResponse, Member, MemberWithUser, NeonAuthAllowLocalhostResponse, NeonAuthConfigResponse, NeonAuthCreateIntegrationResponse, NeonAuthCreateNewUserResponse, NeonAuthEmailAndPasswordConfig, NeonAuthEmailServerConfigResponse, NeonAuthIntegration, NeonAuthLogsExportConfig, NeonAuthMagicLinkConfig, NeonAuthOAuthClient, NeonAuthOAuthClientCreated, NeonAuthOAuthClientSecret, NeonAuthOAuthProviderConfig, NeonAuthOauthProvider, NeonAuthOrganizationConfig, NeonAuthPhoneNumberConfig, NeonAuthPluginConfigs, NeonAuthRedirectURIWhitelistDomain, NeonAuthWebhookConfig, NeonFunction, NeonFunctionDeployment, Operation, OrgApiKeyCreateResponse, OrgApiKeyRevokeResponse, OrgApiKeysListResponseItem, Organization, OrganizationInvitationsResponse, PresignResponse, Project, ProjectBranchLogFieldValuesResponse, ProjectBranchLogFieldsResponse, ProjectBranchLogRecord, ProjectListItem, ProjectMember, ProjectMemberRoleResponse, ProjectPermission, ProjectPermissions, ProjectsCountResponse, Realtime, RealtimeSecret, RegionResponse, Role, RolesResponse, RotateCredentialResponse, SendNeonAuthTestEmailResponse, Snapshot, SpendingLimitResponse, Trigger, TriggersListResponse, UpdateNeonAuthUserRoleResponse } from "../../generated/output.gen.js";
|
|
6
7
|
import { getAuthConfigTool } from "../custom/auth-config.js";
|
|
7
8
|
import { getDocTool, searchDocsTool } from "../custom/docs.js";
|
|
8
9
|
import { sendFeedbackTool } from "../custom/feedback.js";
|
|
@@ -15,8 +16,8 @@ import { completeMigrationTool, prepareMigrationTool } from "../custom/sql/migra
|
|
|
15
16
|
import { completeQueryTuningTool, prepareQueryTuningTool } from "../custom/sql/query-tuning.js";
|
|
16
17
|
import { listSlowQueriesTool } from "../custom/sql/slow-queries.js";
|
|
17
18
|
import { compareSchemaTool, connectionStringTool, createBranchAndConnectTool, createBranchTool, createProjectAndConnectTool, createProjectTool, createRoleTool, getDefaultTool, lokiQueryRangeTool, resetFromParentTool, restoreSnapshotTool, setScheduleTool } from "./composed.js";
|
|
18
|
-
import { NEON_STATUS_API_URL, listNeonIncidents } from "@neon/sdk";
|
|
19
19
|
import * as z from "zod";
|
|
20
|
+
import { NEON_STATUS_API_URL, listNeonIncidents } from "@neon/sdk";
|
|
20
21
|
// src/lib/ergonomic/catalog.ts
|
|
21
22
|
const logReadAnnotations = {
|
|
22
23
|
readOnlyHint: true,
|
|
@@ -37,12 +38,46 @@ const withoutPluginSecrets = (plugins) => ({
|
|
|
37
38
|
}) }
|
|
38
39
|
});
|
|
39
40
|
const listIncidentsInputSchema = z.strictObject({});
|
|
41
|
+
const listIncidentsOutputSchema = z.looseObject({
|
|
42
|
+
status: z.string().describe("Overall status: operational, degraded, or outage."),
|
|
43
|
+
updated_at: z.string(),
|
|
44
|
+
status_page_url: z.string(),
|
|
45
|
+
incidents: z.array(z.looseObject({
|
|
46
|
+
id: z.string(),
|
|
47
|
+
name: z.string(),
|
|
48
|
+
state: z.string(),
|
|
49
|
+
status: z.string(),
|
|
50
|
+
started_at: z.string(),
|
|
51
|
+
updated_at: z.string(),
|
|
52
|
+
latest_update: z.string(),
|
|
53
|
+
components: z.array(z.string()),
|
|
54
|
+
regions: z.array(z.string()),
|
|
55
|
+
url: z.string()
|
|
56
|
+
})).describe("Open incidents."),
|
|
57
|
+
maintenance: z.array(z.looseObject({
|
|
58
|
+
id: z.string(),
|
|
59
|
+
name: z.string(),
|
|
60
|
+
state: z.string(),
|
|
61
|
+
planned_start: z.string(),
|
|
62
|
+
planned_end: z.string(),
|
|
63
|
+
latest_update: z.string(),
|
|
64
|
+
components: z.array(z.string()),
|
|
65
|
+
regions: z.array(z.string()),
|
|
66
|
+
url: z.string()
|
|
67
|
+
})).describe("Active maintenance first, then upcoming."),
|
|
68
|
+
affected_components: z.array(z.looseObject({
|
|
69
|
+
name: z.string(),
|
|
70
|
+
status: z.string(),
|
|
71
|
+
regions: z.array(z.string())
|
|
72
|
+
})).describe("Components that are not operational.")
|
|
73
|
+
});
|
|
40
74
|
const listIncidentsTool = (options) => ({
|
|
41
75
|
operationId: "incidents.list",
|
|
42
76
|
id: publishedId("incidents.list"),
|
|
43
77
|
title: "List Neon incidents",
|
|
44
78
|
description: "Lists open Neon incidents and maintenance from neonstatus.com and the affected components and regions. Needs no credentials. Call it when Neon requests fail unexpectedly or the user asks whether Neon is down.",
|
|
45
79
|
inputSchema: listIncidentsInputSchema,
|
|
80
|
+
outputSchema: listIncidentsOutputSchema,
|
|
46
81
|
annotations: {
|
|
47
82
|
readOnlyHint: true,
|
|
48
83
|
destructiveHint: false,
|
|
@@ -69,6 +104,7 @@ const toolFactories = {
|
|
|
69
104
|
"projects.list": (options) => fromGenerated(options, {
|
|
70
105
|
id: "projects.list",
|
|
71
106
|
generated: "listProjects",
|
|
107
|
+
output: z.array(ProjectListItem),
|
|
72
108
|
omit: ["cursor"],
|
|
73
109
|
list: true,
|
|
74
110
|
run: (neon, input, signal) => collectPages(neon.projects.list({
|
|
@@ -82,11 +118,13 @@ const toolFactories = {
|
|
|
82
118
|
"projects.count": (options) => fromGenerated(options, {
|
|
83
119
|
id: "projects.count",
|
|
84
120
|
generated: "countProjects",
|
|
121
|
+
output: ProjectsCountResponse.shape.count,
|
|
85
122
|
run: (neon, input, signal) => neon.projects.count({ org_id: input.org_id }, { signal })
|
|
86
123
|
}),
|
|
87
124
|
"projects.get": (options) => fromGenerated(options, {
|
|
88
125
|
id: "projects.get",
|
|
89
126
|
generated: "getProject",
|
|
127
|
+
output: Project,
|
|
90
128
|
run: (neon, input, signal) => neon.projects.get({ projectId: input.project_id }, { signal })
|
|
91
129
|
}),
|
|
92
130
|
"projects.create": createProjectTool,
|
|
@@ -94,6 +132,7 @@ const toolFactories = {
|
|
|
94
132
|
"projects.update": (options) => fromGenerated(options, {
|
|
95
133
|
id: "projects.update",
|
|
96
134
|
generated: "updateProject",
|
|
135
|
+
output: Project,
|
|
97
136
|
run: (neon, input, signal) => neon.projects.update({
|
|
98
137
|
projectId: input.project_id,
|
|
99
138
|
settings: input.settings,
|
|
@@ -105,16 +144,19 @@ const toolFactories = {
|
|
|
105
144
|
"projects.delete": (options) => fromGenerated(options, {
|
|
106
145
|
id: "projects.delete",
|
|
107
146
|
generated: "deleteProject",
|
|
147
|
+
output: Project,
|
|
108
148
|
run: (neon, input, signal) => neon.projects.delete({ projectId: input.project_id }, { signal })
|
|
109
149
|
}),
|
|
110
150
|
"projects.recover": (options) => fromGenerated(options, {
|
|
111
151
|
id: "projects.recover",
|
|
112
152
|
generated: "recoverProject",
|
|
153
|
+
output: Project,
|
|
113
154
|
run: (neon, input, signal) => neon.projects.recover({ projectId: input.project_id }, { signal })
|
|
114
155
|
}),
|
|
115
156
|
"projects.transfer": (options) => fromGenerated(options, {
|
|
116
157
|
id: "projects.transfer",
|
|
117
158
|
generated: "transferProjectsFromOrgToOrg",
|
|
159
|
+
output: z.null(),
|
|
118
160
|
run: (neon, input, signal) => neon.projects.transfer({
|
|
119
161
|
fromOrgId: input.source_org_id,
|
|
120
162
|
toOrgId: input.destination_org_id,
|
|
@@ -124,6 +166,7 @@ const toolFactories = {
|
|
|
124
166
|
"projects.transferFromUser": (options) => fromGenerated(options, {
|
|
125
167
|
id: "projects.transferFromUser",
|
|
126
168
|
generated: "transferProjectsFromUserToOrg",
|
|
169
|
+
output: z.null(),
|
|
127
170
|
run: (neon, input, signal) => neon.projects.transferFromUser({
|
|
128
171
|
toOrgId: input.destination_org_id,
|
|
129
172
|
projectIds: input.project_ids
|
|
@@ -132,11 +175,13 @@ const toolFactories = {
|
|
|
132
175
|
"projects.permissions.list": (options) => fromGenerated(options, {
|
|
133
176
|
id: "projects.permissions.list",
|
|
134
177
|
generated: "listProjectPermissions",
|
|
178
|
+
output: ProjectPermissions.shape.project_permissions,
|
|
135
179
|
run: (neon, input, signal) => neon.projects.permissions.list({ projectId: input.project_id }, { signal })
|
|
136
180
|
}),
|
|
137
181
|
"projects.permissions.grant": (options) => fromGenerated(options, {
|
|
138
182
|
id: "projects.permissions.grant",
|
|
139
183
|
generated: "grantPermissionToProject",
|
|
184
|
+
output: ProjectPermission,
|
|
140
185
|
run: (neon, input, signal) => neon.projects.permissions.grant({
|
|
141
186
|
projectId: input.project_id,
|
|
142
187
|
email: input.email
|
|
@@ -145,6 +190,7 @@ const toolFactories = {
|
|
|
145
190
|
"projects.permissions.revoke": (options) => fromGenerated(options, {
|
|
146
191
|
id: "projects.permissions.revoke",
|
|
147
192
|
generated: "revokePermissionFromProject",
|
|
193
|
+
output: ProjectPermission,
|
|
148
194
|
run: (neon, input, signal) => neon.projects.permissions.revoke({
|
|
149
195
|
projectId: input.project_id,
|
|
150
196
|
permissionId: input.permission_id
|
|
@@ -153,6 +199,7 @@ const toolFactories = {
|
|
|
153
199
|
"projects.members.list": (options) => fromGenerated(options, {
|
|
154
200
|
id: "projects.members.list",
|
|
155
201
|
generated: "listProjectMembers",
|
|
202
|
+
output: z.array(ProjectMember),
|
|
156
203
|
omit: ["cursor"],
|
|
157
204
|
list: true,
|
|
158
205
|
run: (neon, input, signal) => collectPages(neon.projects.members.list({
|
|
@@ -163,6 +210,7 @@ const toolFactories = {
|
|
|
163
210
|
"projects.members.setRole": (options) => fromGenerated(options, {
|
|
164
211
|
id: "projects.members.setRole",
|
|
165
212
|
generated: "setProjectMemberRole",
|
|
213
|
+
output: ProjectMemberRoleResponse,
|
|
166
214
|
run: (neon, input, signal) => neon.projects.members.setRole({
|
|
167
215
|
projectId: input.project_id,
|
|
168
216
|
memberId: input.member_id,
|
|
@@ -173,6 +221,7 @@ const toolFactories = {
|
|
|
173
221
|
"projects.members.removeRole": (options) => fromGenerated(options, {
|
|
174
222
|
id: "projects.members.removeRole",
|
|
175
223
|
generated: "removeProjectMemberRole",
|
|
224
|
+
output: ProjectMemberRoleResponse,
|
|
176
225
|
run: (neon, input, signal) => neon.projects.members.removeRole({
|
|
177
226
|
projectId: input.project_id,
|
|
178
227
|
memberId: input.member_id,
|
|
@@ -182,6 +231,7 @@ const toolFactories = {
|
|
|
182
231
|
"branches.list": (options) => fromGenerated(options, {
|
|
183
232
|
id: "branches.list",
|
|
184
233
|
generated: "listProjectBranches",
|
|
234
|
+
output: z.array(Branch),
|
|
185
235
|
omit: ["cursor"],
|
|
186
236
|
list: true,
|
|
187
237
|
run: (neon, input, signal) => collectPages(neon.branches.list({
|
|
@@ -196,6 +246,7 @@ const toolFactories = {
|
|
|
196
246
|
"branches.get": (options) => fromGenerated(options, {
|
|
197
247
|
id: "branches.get",
|
|
198
248
|
generated: "getProjectBranch",
|
|
249
|
+
output: Branch,
|
|
199
250
|
run: (neon, input, signal) => neon.branches.get({
|
|
200
251
|
projectId: input.project_id,
|
|
201
252
|
branchId: input.branch_id
|
|
@@ -206,6 +257,7 @@ const toolFactories = {
|
|
|
206
257
|
"branches.update": (options) => fromGenerated(options, {
|
|
207
258
|
id: "branches.update",
|
|
208
259
|
generated: "updateProjectBranch",
|
|
260
|
+
output: Branch,
|
|
209
261
|
run: (neon, input, signal) => neon.branches.update({
|
|
210
262
|
projectId: input.project_id,
|
|
211
263
|
branchId: input.branch_id,
|
|
@@ -217,6 +269,7 @@ const toolFactories = {
|
|
|
217
269
|
"branches.delete": (options) => fromGenerated(options, {
|
|
218
270
|
id: "branches.delete",
|
|
219
271
|
generated: "deleteProjectBranch",
|
|
272
|
+
output: z.null(),
|
|
220
273
|
run: (neon, input, signal) => neon.branches.delete({
|
|
221
274
|
projectId: input.project_id,
|
|
222
275
|
branchId: input.branch_id
|
|
@@ -226,6 +279,7 @@ const toolFactories = {
|
|
|
226
279
|
"branches.setDefault": (options) => fromGenerated(options, {
|
|
227
280
|
id: "branches.setDefault",
|
|
228
281
|
generated: "setDefaultProjectBranch",
|
|
282
|
+
output: Branch,
|
|
229
283
|
run: (neon, input, signal) => neon.branches.setDefault({
|
|
230
284
|
projectId: input.project_id,
|
|
231
285
|
branchId: input.branch_id
|
|
@@ -236,6 +290,7 @@ const toolFactories = {
|
|
|
236
290
|
"branches.finalizeRestore": (options) => fromGenerated(options, {
|
|
237
291
|
id: "branches.finalizeRestore",
|
|
238
292
|
generated: "finalizeRestoreBranch",
|
|
293
|
+
output: z.null(),
|
|
239
294
|
run: (neon, input, signal) => neon.branches.finalizeRestore({
|
|
240
295
|
projectId: input.project_id,
|
|
241
296
|
branchId: input.branch_id,
|
|
@@ -246,11 +301,13 @@ const toolFactories = {
|
|
|
246
301
|
"postgres.endpoints.list": (options) => fromGenerated(options, {
|
|
247
302
|
id: "postgres.endpoints.list",
|
|
248
303
|
generated: "listProjectEndpoints",
|
|
304
|
+
output: EndpointsResponse.shape.endpoints,
|
|
249
305
|
run: (neon, input, signal) => neon.postgres.endpoints.list({ projectId: input.project_id }, { signal })
|
|
250
306
|
}),
|
|
251
307
|
"postgres.endpoints.listByBranch": (options) => fromGenerated(options, {
|
|
252
308
|
id: "postgres.endpoints.listByBranch",
|
|
253
309
|
generated: "listProjectBranchEndpoints",
|
|
310
|
+
output: EndpointsResponse.shape.endpoints,
|
|
254
311
|
run: (neon, input, signal) => neon.postgres.endpoints.listByBranch({
|
|
255
312
|
projectId: input.project_id,
|
|
256
313
|
branchId: input.branch_id
|
|
@@ -259,6 +316,7 @@ const toolFactories = {
|
|
|
259
316
|
"postgres.endpoints.get": (options) => fromGenerated(options, {
|
|
260
317
|
id: "postgres.endpoints.get",
|
|
261
318
|
generated: "getProjectEndpoint",
|
|
319
|
+
output: Endpoint,
|
|
262
320
|
run: (neon, input, signal) => neon.postgres.endpoints.get({
|
|
263
321
|
projectId: input.project_id,
|
|
264
322
|
endpointId: input.endpoint_id
|
|
@@ -267,6 +325,7 @@ const toolFactories = {
|
|
|
267
325
|
"postgres.endpoints.create": (options) => fromGenerated(options, {
|
|
268
326
|
id: "postgres.endpoints.create",
|
|
269
327
|
generated: "createProjectEndpoint",
|
|
328
|
+
output: Endpoint,
|
|
270
329
|
run: (neon, input, signal) => neon.postgres.endpoints.create({
|
|
271
330
|
projectId: input.project_id,
|
|
272
331
|
branch_id: input.branch_id,
|
|
@@ -287,6 +346,7 @@ const toolFactories = {
|
|
|
287
346
|
"postgres.endpoints.update": (options) => fromGenerated(options, {
|
|
288
347
|
id: "postgres.endpoints.update",
|
|
289
348
|
generated: "updateProjectEndpoint",
|
|
349
|
+
output: Endpoint,
|
|
290
350
|
run: (neon, input, signal) => neon.postgres.endpoints.update({
|
|
291
351
|
projectId: input.project_id,
|
|
292
352
|
endpointId: input.endpoint_id,
|
|
@@ -306,6 +366,7 @@ const toolFactories = {
|
|
|
306
366
|
"postgres.endpoints.delete": (options) => fromGenerated(options, {
|
|
307
367
|
id: "postgres.endpoints.delete",
|
|
308
368
|
generated: "deleteProjectEndpoint",
|
|
369
|
+
output: z.null(),
|
|
309
370
|
run: (neon, input, signal) => neon.postgres.endpoints.delete({
|
|
310
371
|
projectId: input.project_id,
|
|
311
372
|
endpointId: input.endpoint_id
|
|
@@ -314,6 +375,7 @@ const toolFactories = {
|
|
|
314
375
|
"postgres.endpoints.start": (options) => fromGenerated(options, {
|
|
315
376
|
id: "postgres.endpoints.start",
|
|
316
377
|
generated: "startProjectEndpoint",
|
|
378
|
+
output: Endpoint,
|
|
317
379
|
run: (neon, input, signal) => neon.postgres.endpoints.start({
|
|
318
380
|
projectId: input.project_id,
|
|
319
381
|
endpointId: input.endpoint_id
|
|
@@ -322,6 +384,7 @@ const toolFactories = {
|
|
|
322
384
|
"postgres.endpoints.suspend": (options) => fromGenerated(options, {
|
|
323
385
|
id: "postgres.endpoints.suspend",
|
|
324
386
|
generated: "suspendProjectEndpoint",
|
|
387
|
+
output: Endpoint,
|
|
325
388
|
run: (neon, input, signal) => neon.postgres.endpoints.suspend({
|
|
326
389
|
projectId: input.project_id,
|
|
327
390
|
endpointId: input.endpoint_id
|
|
@@ -330,6 +393,7 @@ const toolFactories = {
|
|
|
330
393
|
"postgres.endpoints.restart": (options) => fromGenerated(options, {
|
|
331
394
|
id: "postgres.endpoints.restart",
|
|
332
395
|
generated: "restartProjectEndpoint",
|
|
396
|
+
output: Endpoint,
|
|
333
397
|
run: (neon, input, signal) => neon.postgres.endpoints.restart({
|
|
334
398
|
projectId: input.project_id,
|
|
335
399
|
endpointId: input.endpoint_id
|
|
@@ -338,6 +402,7 @@ const toolFactories = {
|
|
|
338
402
|
"postgres.roles.list": (options) => fromGenerated(options, {
|
|
339
403
|
id: "postgres.roles.list",
|
|
340
404
|
generated: "listProjectBranchRoles",
|
|
405
|
+
output: RolesResponse.shape.roles,
|
|
341
406
|
run: (neon, input, signal) => neon.postgres.roles.list({
|
|
342
407
|
projectId: input.project_id,
|
|
343
408
|
branchId: input.branch_id
|
|
@@ -346,6 +411,7 @@ const toolFactories = {
|
|
|
346
411
|
"postgres.roles.get": (options) => fromGenerated(options, {
|
|
347
412
|
id: "postgres.roles.get",
|
|
348
413
|
generated: "getProjectBranchRole",
|
|
414
|
+
output: Role,
|
|
349
415
|
run: (neon, input, signal) => neon.postgres.roles.get({
|
|
350
416
|
projectId: input.project_id,
|
|
351
417
|
branchId: input.branch_id,
|
|
@@ -356,6 +422,7 @@ const toolFactories = {
|
|
|
356
422
|
"postgres.roles.delete": (options) => fromGenerated(options, {
|
|
357
423
|
id: "postgres.roles.delete",
|
|
358
424
|
generated: "deleteProjectBranchRole",
|
|
425
|
+
output: z.null(),
|
|
359
426
|
run: (neon, input, signal) => neon.postgres.roles.delete({
|
|
360
427
|
projectId: input.project_id,
|
|
361
428
|
branchId: input.branch_id,
|
|
@@ -365,6 +432,7 @@ const toolFactories = {
|
|
|
365
432
|
"postgres.roles.resetPassword": (options) => fromGenerated(options, {
|
|
366
433
|
id: "postgres.roles.resetPassword",
|
|
367
434
|
generated: "resetProjectBranchRolePassword",
|
|
435
|
+
output: Role,
|
|
368
436
|
run: (neon, input, signal) => neon.postgres.roles.resetPassword({
|
|
369
437
|
projectId: input.project_id,
|
|
370
438
|
branchId: input.branch_id,
|
|
@@ -374,6 +442,7 @@ const toolFactories = {
|
|
|
374
442
|
"postgres.databases.list": (options) => fromGenerated(options, {
|
|
375
443
|
id: "postgres.databases.list",
|
|
376
444
|
generated: "listProjectBranchDatabases",
|
|
445
|
+
output: DatabasesResponse.shape.databases,
|
|
377
446
|
run: (neon, input, signal) => neon.postgres.databases.list({
|
|
378
447
|
projectId: input.project_id,
|
|
379
448
|
branchId: input.branch_id
|
|
@@ -382,6 +451,7 @@ const toolFactories = {
|
|
|
382
451
|
"postgres.databases.get": (options) => fromGenerated(options, {
|
|
383
452
|
id: "postgres.databases.get",
|
|
384
453
|
generated: "getProjectBranchDatabase",
|
|
454
|
+
output: Database,
|
|
385
455
|
run: (neon, input, signal) => neon.postgres.databases.get({
|
|
386
456
|
projectId: input.project_id,
|
|
387
457
|
branchId: input.branch_id,
|
|
@@ -391,6 +461,7 @@ const toolFactories = {
|
|
|
391
461
|
"postgres.databases.create": (options) => fromGenerated(options, {
|
|
392
462
|
id: "postgres.databases.create",
|
|
393
463
|
generated: "createProjectBranchDatabase",
|
|
464
|
+
output: Database,
|
|
394
465
|
run: (neon, input, signal) => neon.postgres.databases.create({
|
|
395
466
|
projectId: input.project_id,
|
|
396
467
|
branchId: input.branch_id,
|
|
@@ -401,6 +472,7 @@ const toolFactories = {
|
|
|
401
472
|
"postgres.databases.update": (options) => fromGenerated(options, {
|
|
402
473
|
id: "postgres.databases.update",
|
|
403
474
|
generated: "updateProjectBranchDatabase",
|
|
475
|
+
output: Database,
|
|
404
476
|
run: (neon, input, signal) => neon.postgres.databases.update({
|
|
405
477
|
projectId: input.project_id,
|
|
406
478
|
branchId: input.branch_id,
|
|
@@ -412,6 +484,7 @@ const toolFactories = {
|
|
|
412
484
|
"postgres.databases.delete": (options) => fromGenerated(options, {
|
|
413
485
|
id: "postgres.databases.delete",
|
|
414
486
|
generated: "deleteProjectBranchDatabase",
|
|
487
|
+
output: z.null(),
|
|
415
488
|
run: (neon, input, signal) => neon.postgres.databases.delete({
|
|
416
489
|
projectId: input.project_id,
|
|
417
490
|
branchId: input.branch_id,
|
|
@@ -421,6 +494,7 @@ const toolFactories = {
|
|
|
421
494
|
"postgres.dataApi.get": (options) => fromGenerated(options, {
|
|
422
495
|
id: "postgres.dataApi.get",
|
|
423
496
|
generated: "getProjectBranchDataAPI",
|
|
497
|
+
output: DataAPIReponse,
|
|
424
498
|
run: (neon, input, signal) => neon.postgres.dataApi.get({
|
|
425
499
|
projectId: input.project_id,
|
|
426
500
|
branchId: input.branch_id,
|
|
@@ -430,6 +504,7 @@ const toolFactories = {
|
|
|
430
504
|
"postgres.dataApi.create": (options) => fromGenerated(options, {
|
|
431
505
|
id: "postgres.dataApi.create",
|
|
432
506
|
generated: "createProjectBranchDataAPI",
|
|
507
|
+
output: DataAPICreateResponse,
|
|
433
508
|
run: (neon, input, signal) => neon.postgres.dataApi.create({
|
|
434
509
|
projectId: input.project_id,
|
|
435
510
|
branchId: input.branch_id,
|
|
@@ -446,6 +521,7 @@ const toolFactories = {
|
|
|
446
521
|
"postgres.dataApi.update": (options) => fromGenerated(options, {
|
|
447
522
|
id: "postgres.dataApi.update",
|
|
448
523
|
generated: "updateProjectBranchDataAPI",
|
|
524
|
+
output: z.null(),
|
|
449
525
|
run: (neon, input, signal) => neon.postgres.dataApi.update({
|
|
450
526
|
projectId: input.project_id,
|
|
451
527
|
branchId: input.branch_id,
|
|
@@ -467,6 +543,7 @@ const toolFactories = {
|
|
|
467
543
|
"postgres.dataApi.delete": (options) => fromGenerated(options, {
|
|
468
544
|
id: "postgres.dataApi.delete",
|
|
469
545
|
generated: "deleteProjectBranchDataAPI",
|
|
546
|
+
output: z.null(),
|
|
470
547
|
run: (neon, input, signal) => neon.postgres.dataApi.delete({
|
|
471
548
|
projectId: input.project_id,
|
|
472
549
|
branchId: input.branch_id,
|
|
@@ -476,6 +553,7 @@ const toolFactories = {
|
|
|
476
553
|
"storage.get": (options) => fromGenerated(options, {
|
|
477
554
|
id: "storage.get",
|
|
478
555
|
generated: "getProjectBranchStorage",
|
|
556
|
+
output: BranchStorage,
|
|
479
557
|
run: (neon, input, signal) => neon.storage.get({
|
|
480
558
|
projectId: input.project_id,
|
|
481
559
|
branchId: input.branch_id
|
|
@@ -484,6 +562,7 @@ const toolFactories = {
|
|
|
484
562
|
"storage.buckets.list": (options) => fromGenerated(options, {
|
|
485
563
|
id: "storage.buckets.list",
|
|
486
564
|
generated: "listProjectBranchBuckets",
|
|
565
|
+
output: BucketsListResponse.shape.buckets,
|
|
487
566
|
run: (neon, input, signal) => neon.storage.buckets.list({
|
|
488
567
|
projectId: input.project_id,
|
|
489
568
|
branchId: input.branch_id
|
|
@@ -492,6 +571,7 @@ const toolFactories = {
|
|
|
492
571
|
"storage.buckets.create": (options) => fromGenerated(options, {
|
|
493
572
|
id: "storage.buckets.create",
|
|
494
573
|
generated: "createProjectBranchBucket",
|
|
574
|
+
output: Bucket,
|
|
495
575
|
run: (neon, input, signal) => neon.storage.buckets.create({
|
|
496
576
|
projectId: input.project_id,
|
|
497
577
|
branchId: input.branch_id,
|
|
@@ -502,6 +582,7 @@ const toolFactories = {
|
|
|
502
582
|
"storage.buckets.delete": (options) => fromGenerated(options, {
|
|
503
583
|
id: "storage.buckets.delete",
|
|
504
584
|
generated: "deleteProjectBranchBucket",
|
|
585
|
+
output: z.null(),
|
|
505
586
|
run: (neon, input, signal) => neon.storage.buckets.delete({
|
|
506
587
|
projectId: input.project_id,
|
|
507
588
|
branchId: input.branch_id,
|
|
@@ -511,6 +592,16 @@ const toolFactories = {
|
|
|
511
592
|
"storage.objects.list": (options) => fromGenerated(options, {
|
|
512
593
|
id: "storage.objects.list",
|
|
513
594
|
generated: "listProjectBranchBucketObjects",
|
|
595
|
+
output: z.looseObject({
|
|
596
|
+
folders: z.array(z.string()),
|
|
597
|
+
objects: z.array(z.looseObject({
|
|
598
|
+
key: z.string(),
|
|
599
|
+
size: z.number(),
|
|
600
|
+
last_modified: z.string(),
|
|
601
|
+
etag: z.string()
|
|
602
|
+
})),
|
|
603
|
+
prefix: z.string()
|
|
604
|
+
}),
|
|
514
605
|
omit: ["cursor"],
|
|
515
606
|
list: true,
|
|
516
607
|
run: (neon, input, signal) => collectObjectList(neon, {
|
|
@@ -525,6 +616,7 @@ const toolFactories = {
|
|
|
525
616
|
"storage.objects.delete": (options) => fromGenerated(options, {
|
|
526
617
|
id: "storage.objects.delete",
|
|
527
618
|
generated: "deleteProjectBranchBucketObject",
|
|
619
|
+
output: z.null(),
|
|
528
620
|
run: (neon, input, signal) => neon.storage.objects.delete({
|
|
529
621
|
projectId: input.project_id,
|
|
530
622
|
branchId: input.branch_id,
|
|
@@ -535,6 +627,7 @@ const toolFactories = {
|
|
|
535
627
|
"storage.objects.deleteByPrefix": (options) => fromGenerated(options, {
|
|
536
628
|
id: "storage.objects.deleteByPrefix",
|
|
537
629
|
generated: "deleteProjectBranchBucketObjectsByPrefix",
|
|
630
|
+
output: BucketObjectsDeletePrefixResponse,
|
|
538
631
|
run: (neon, input, signal) => neon.storage.objects.deleteByPrefix({
|
|
539
632
|
projectId: input.project_id,
|
|
540
633
|
branchId: input.branch_id,
|
|
@@ -545,6 +638,7 @@ const toolFactories = {
|
|
|
545
638
|
"storage.objects.presign": (options) => fromGenerated(options, {
|
|
546
639
|
id: "storage.objects.presign",
|
|
547
640
|
generated: "presignProjectBranchBucketObject",
|
|
641
|
+
output: PresignResponse,
|
|
548
642
|
run: (neon, input, signal) => neon.storage.objects.presign({
|
|
549
643
|
projectId: input.project_id,
|
|
550
644
|
branchId: input.branch_id,
|
|
@@ -558,6 +652,7 @@ const toolFactories = {
|
|
|
558
652
|
"functions.list": (options) => fromGenerated(options, {
|
|
559
653
|
id: "functions.list",
|
|
560
654
|
generated: "listProjectBranchFunctions",
|
|
655
|
+
output: z.array(NeonFunction),
|
|
561
656
|
omit: ["cursor"],
|
|
562
657
|
list: true,
|
|
563
658
|
run: (neon, input, signal) => collectPages(neon.functions.list({
|
|
@@ -569,6 +664,7 @@ const toolFactories = {
|
|
|
569
664
|
"functions.get": (options) => fromGenerated(options, {
|
|
570
665
|
id: "functions.get",
|
|
571
666
|
generated: "getProjectBranchFunction",
|
|
667
|
+
output: NeonFunction,
|
|
572
668
|
run: (neon, input, signal) => neon.functions.get({
|
|
573
669
|
projectId: input.project_id,
|
|
574
670
|
branchId: input.branch_id,
|
|
@@ -578,6 +674,7 @@ const toolFactories = {
|
|
|
578
674
|
"functions.update": (options) => fromGenerated(options, {
|
|
579
675
|
id: "functions.update",
|
|
580
676
|
generated: "updateProjectBranchFunction",
|
|
677
|
+
output: NeonFunction,
|
|
581
678
|
run: (neon, input, signal) => neon.functions.update({
|
|
582
679
|
projectId: input.project_id,
|
|
583
680
|
branchId: input.branch_id,
|
|
@@ -588,6 +685,7 @@ const toolFactories = {
|
|
|
588
685
|
"functions.delete": (options) => fromGenerated(options, {
|
|
589
686
|
id: "functions.delete",
|
|
590
687
|
generated: "deleteProjectBranchFunction",
|
|
688
|
+
output: z.null(),
|
|
591
689
|
run: (neon, input, signal) => neon.functions.delete({
|
|
592
690
|
projectId: input.project_id,
|
|
593
691
|
branchId: input.branch_id,
|
|
@@ -597,6 +695,7 @@ const toolFactories = {
|
|
|
597
695
|
"functions.deploy": (options) => fromGenerated(options, {
|
|
598
696
|
id: "functions.deploy",
|
|
599
697
|
generated: "createProjectBranchFunctionDeployment",
|
|
698
|
+
output: NeonFunctionDeployment,
|
|
600
699
|
run: (neon, input, signal) => neon.functions.deploy({
|
|
601
700
|
projectId: input.project_id,
|
|
602
701
|
branchId: input.branch_id,
|
|
@@ -609,6 +708,7 @@ const toolFactories = {
|
|
|
609
708
|
"functions.customDomains.list": (options) => fromGenerated(options, {
|
|
610
709
|
id: "functions.customDomains.list",
|
|
611
710
|
generated: "listProjectBranchCustomDomains",
|
|
711
|
+
output: z.array(CustomDomain),
|
|
612
712
|
omit: ["cursor"],
|
|
613
713
|
list: true,
|
|
614
714
|
run: (neon, input, signal) => collectPages(neon.functions.customDomains.list({
|
|
@@ -620,6 +720,7 @@ const toolFactories = {
|
|
|
620
720
|
"functions.customDomains.register": (options) => fromGenerated(options, {
|
|
621
721
|
id: "functions.customDomains.register",
|
|
622
722
|
generated: "registerProjectBranchCustomDomain",
|
|
723
|
+
output: CustomDomain,
|
|
623
724
|
run: (neon, input, signal) => neon.functions.customDomains.register({
|
|
624
725
|
projectId: input.project_id,
|
|
625
726
|
branchId: input.branch_id,
|
|
@@ -631,6 +732,7 @@ const toolFactories = {
|
|
|
631
732
|
"functions.customDomains.delete": (options) => fromGenerated(options, {
|
|
632
733
|
id: "functions.customDomains.delete",
|
|
633
734
|
generated: "deleteProjectBranchCustomDomain",
|
|
735
|
+
output: z.null(),
|
|
634
736
|
run: (neon, input, signal) => neon.functions.customDomains.delete({
|
|
635
737
|
projectId: input.project_id,
|
|
636
738
|
branchId: input.branch_id,
|
|
@@ -640,6 +742,7 @@ const toolFactories = {
|
|
|
640
742
|
"triggers.list": (options) => fromGenerated(options, {
|
|
641
743
|
id: "triggers.list",
|
|
642
744
|
generated: "listProjectBranchTriggers",
|
|
745
|
+
output: TriggersListResponse.shape.triggers,
|
|
643
746
|
run: (neon, input, signal) => neon.triggers.list({
|
|
644
747
|
projectId: input.project_id,
|
|
645
748
|
branchId: input.branch_id
|
|
@@ -648,6 +751,7 @@ const toolFactories = {
|
|
|
648
751
|
"triggers.get": (options) => fromGenerated(options, {
|
|
649
752
|
id: "triggers.get",
|
|
650
753
|
generated: "getProjectBranchTrigger",
|
|
754
|
+
output: Trigger,
|
|
651
755
|
run: (neon, input, signal) => neon.triggers.get({
|
|
652
756
|
projectId: input.project_id,
|
|
653
757
|
branchId: input.branch_id,
|
|
@@ -657,6 +761,7 @@ const toolFactories = {
|
|
|
657
761
|
"triggers.create": (options) => fromGenerated(options, {
|
|
658
762
|
id: "triggers.create",
|
|
659
763
|
generated: "createProjectBranchTrigger",
|
|
764
|
+
output: Trigger,
|
|
660
765
|
run: (neon, input, signal) => neon.triggers.create({
|
|
661
766
|
projectId: input.project_id,
|
|
662
767
|
branchId: input.branch_id,
|
|
@@ -666,6 +771,7 @@ const toolFactories = {
|
|
|
666
771
|
"triggers.update": (options) => fromGenerated(options, {
|
|
667
772
|
id: "triggers.update",
|
|
668
773
|
generated: "updateProjectBranchTrigger",
|
|
774
|
+
output: Trigger,
|
|
669
775
|
run: (neon, input, signal) => neon.triggers.update({
|
|
670
776
|
projectId: input.project_id,
|
|
671
777
|
branchId: input.branch_id,
|
|
@@ -676,6 +782,7 @@ const toolFactories = {
|
|
|
676
782
|
"triggers.delete": (options) => fromGenerated(options, {
|
|
677
783
|
id: "triggers.delete",
|
|
678
784
|
generated: "deleteProjectBranchTrigger",
|
|
785
|
+
output: z.null(),
|
|
679
786
|
run: (neon, input, signal) => neon.triggers.delete({
|
|
680
787
|
projectId: input.project_id,
|
|
681
788
|
branchId: input.branch_id,
|
|
@@ -685,6 +792,7 @@ const toolFactories = {
|
|
|
685
792
|
"credentials.list": (options) => fromGenerated(options, {
|
|
686
793
|
id: "credentials.list",
|
|
687
794
|
generated: "listCredentials",
|
|
795
|
+
output: ListCredentialsResponse.shape.credentials,
|
|
688
796
|
run: (neon, input, signal) => neon.credentials.list({
|
|
689
797
|
projectId: input.project_id,
|
|
690
798
|
branchId: input.branch_id
|
|
@@ -693,6 +801,7 @@ const toolFactories = {
|
|
|
693
801
|
"credentials.create": (options) => fromGenerated(options, {
|
|
694
802
|
id: "credentials.create",
|
|
695
803
|
generated: "createCredential",
|
|
804
|
+
output: CreateCredentialResponse,
|
|
696
805
|
run: (neon, input, signal) => neon.credentials.create({
|
|
697
806
|
projectId: input.project_id,
|
|
698
807
|
branchId: input.branch_id,
|
|
@@ -704,6 +813,7 @@ const toolFactories = {
|
|
|
704
813
|
"credentials.revoke": (options) => fromGenerated(options, {
|
|
705
814
|
id: "credentials.revoke",
|
|
706
815
|
generated: "revokeCredential",
|
|
816
|
+
output: z.null(),
|
|
707
817
|
run: (neon, input, signal) => neon.credentials.revoke({
|
|
708
818
|
projectId: input.project_id,
|
|
709
819
|
branchId: input.branch_id,
|
|
@@ -713,6 +823,7 @@ const toolFactories = {
|
|
|
713
823
|
"credentials.rotate": (options) => fromGenerated(options, {
|
|
714
824
|
id: "credentials.rotate",
|
|
715
825
|
generated: "rotateCredential",
|
|
826
|
+
output: RotateCredentialResponse,
|
|
716
827
|
annotations: {
|
|
717
828
|
readOnlyHint: false,
|
|
718
829
|
destructiveHint: true,
|
|
@@ -728,6 +839,7 @@ const toolFactories = {
|
|
|
728
839
|
"aiGateway.get": (options) => fromGenerated(options, {
|
|
729
840
|
id: "aiGateway.get",
|
|
730
841
|
generated: "getProjectBranchAiGateway",
|
|
842
|
+
output: BranchAiGateway,
|
|
731
843
|
run: (neon, input, signal) => neon.aiGateway.get({
|
|
732
844
|
projectId: input.project_id,
|
|
733
845
|
branchId: input.branch_id
|
|
@@ -736,6 +848,7 @@ const toolFactories = {
|
|
|
736
848
|
"realtime.get": (options) => fromGenerated(options, {
|
|
737
849
|
id: "realtime.get",
|
|
738
850
|
generated: "getProjectBranchRealtime",
|
|
851
|
+
output: Realtime,
|
|
739
852
|
run: (neon, input, signal) => neon.realtime.get({
|
|
740
853
|
projectId: input.project_id,
|
|
741
854
|
branchId: input.branch_id
|
|
@@ -744,6 +857,7 @@ const toolFactories = {
|
|
|
744
857
|
"realtime.enable": (options) => fromGenerated(options, {
|
|
745
858
|
id: "realtime.enable",
|
|
746
859
|
generated: "enableProjectBranchRealtime",
|
|
860
|
+
output: z.null(),
|
|
747
861
|
run: (neon, input, signal) => neon.realtime.enable({
|
|
748
862
|
projectId: input.project_id,
|
|
749
863
|
branchId: input.branch_id,
|
|
@@ -753,6 +867,7 @@ const toolFactories = {
|
|
|
753
867
|
"realtime.disable": (options) => fromGenerated(options, {
|
|
754
868
|
id: "realtime.disable",
|
|
755
869
|
generated: "disableProjectBranchRealtime",
|
|
870
|
+
output: z.null(),
|
|
756
871
|
run: (neon, input, signal) => neon.realtime.disable({
|
|
757
872
|
projectId: input.project_id,
|
|
758
873
|
branchId: input.branch_id
|
|
@@ -761,6 +876,7 @@ const toolFactories = {
|
|
|
761
876
|
"realtime.secret": (options) => fromGenerated(options, {
|
|
762
877
|
id: "realtime.secret",
|
|
763
878
|
generated: "getProjectBranchRealtimeSecret",
|
|
879
|
+
output: RealtimeSecret,
|
|
764
880
|
requiresApproval: true,
|
|
765
881
|
run: (neon, input, signal) => neon.realtime.secret({
|
|
766
882
|
projectId: input.project_id,
|
|
@@ -770,6 +886,7 @@ const toolFactories = {
|
|
|
770
886
|
"realtime.rotateSecret": (options) => fromGenerated(options, {
|
|
771
887
|
id: "realtime.rotateSecret",
|
|
772
888
|
generated: "rotateProjectBranchRealtimeSecret",
|
|
889
|
+
output: z.null(),
|
|
773
890
|
annotations: {
|
|
774
891
|
readOnlyHint: false,
|
|
775
892
|
destructiveHint: true,
|
|
@@ -784,6 +901,7 @@ const toolFactories = {
|
|
|
784
901
|
"logs.query": (options) => fromGenerated(options, {
|
|
785
902
|
id: "logs.query",
|
|
786
903
|
generated: "queryProjectBranchLogs",
|
|
904
|
+
output: z.array(ProjectBranchLogRecord),
|
|
787
905
|
omit: ["cursor"],
|
|
788
906
|
list: true,
|
|
789
907
|
annotations: logReadAnnotations,
|
|
@@ -809,6 +927,7 @@ const toolFactories = {
|
|
|
809
927
|
"logs.fields": (options) => fromGenerated(options, {
|
|
810
928
|
id: "logs.fields",
|
|
811
929
|
generated: "listProjectBranchLogFields",
|
|
930
|
+
output: ProjectBranchLogFieldsResponse.shape.fields,
|
|
812
931
|
run: (neon, input, signal) => neon.logs.fields({
|
|
813
932
|
projectId: input.project_id,
|
|
814
933
|
branchId: input.branch_id
|
|
@@ -817,6 +936,7 @@ const toolFactories = {
|
|
|
817
936
|
"logs.fieldValues": (options) => fromGenerated(options, {
|
|
818
937
|
id: "logs.fieldValues",
|
|
819
938
|
generated: "listProjectBranchLogFieldValues",
|
|
939
|
+
output: ProjectBranchLogFieldValuesResponse,
|
|
820
940
|
run: (neon, input, signal) => neon.logs.fieldValues({
|
|
821
941
|
projectId: input.project_id,
|
|
822
942
|
branchId: input.branch_id,
|
|
@@ -832,11 +952,13 @@ const toolFactories = {
|
|
|
832
952
|
"snapshots.list": (options) => fromGenerated(options, {
|
|
833
953
|
id: "snapshots.list",
|
|
834
954
|
generated: "listSnapshots",
|
|
955
|
+
output: z.array(Snapshot),
|
|
835
956
|
run: (neon, input, signal) => neon.snapshots.list({ projectId: input.project_id }, { signal })
|
|
836
957
|
}),
|
|
837
958
|
"snapshots.create": (options) => fromGenerated(options, {
|
|
838
959
|
id: "snapshots.create",
|
|
839
960
|
generated: "createSnapshot",
|
|
961
|
+
output: Snapshot,
|
|
840
962
|
run: (neon, input, signal) => neon.snapshots.create({
|
|
841
963
|
projectId: input.project_id,
|
|
842
964
|
branchId: input.branch_id,
|
|
@@ -849,6 +971,7 @@ const toolFactories = {
|
|
|
849
971
|
"snapshots.update": (options) => fromGenerated(options, {
|
|
850
972
|
id: "snapshots.update",
|
|
851
973
|
generated: "updateSnapshot",
|
|
974
|
+
output: Snapshot,
|
|
852
975
|
run: (neon, input, signal) => neon.snapshots.update({
|
|
853
976
|
projectId: input.project_id,
|
|
854
977
|
snapshotId: input.snapshot_id,
|
|
@@ -859,6 +982,7 @@ const toolFactories = {
|
|
|
859
982
|
"snapshots.delete": (options) => fromGenerated(options, {
|
|
860
983
|
id: "snapshots.delete",
|
|
861
984
|
generated: "deleteSnapshot",
|
|
985
|
+
output: z.null(),
|
|
862
986
|
run: (neon, input, signal) => neon.snapshots.delete({
|
|
863
987
|
projectId: input.project_id,
|
|
864
988
|
snapshotId: input.snapshot_id
|
|
@@ -868,6 +992,7 @@ const toolFactories = {
|
|
|
868
992
|
"snapshots.getSchedule": (options) => fromGenerated(options, {
|
|
869
993
|
id: "snapshots.getSchedule",
|
|
870
994
|
generated: "getSnapshotSchedule",
|
|
995
|
+
output: BackupSchedule,
|
|
871
996
|
run: (neon, input, signal) => neon.snapshots.getSchedule({
|
|
872
997
|
projectId: input.project_id,
|
|
873
998
|
branchId: input.branch_id
|
|
@@ -877,6 +1002,7 @@ const toolFactories = {
|
|
|
877
1002
|
"operations.list": (options) => fromGenerated(options, {
|
|
878
1003
|
id: "operations.list",
|
|
879
1004
|
generated: "listProjectOperations",
|
|
1005
|
+
output: z.array(Operation),
|
|
880
1006
|
omit: ["cursor"],
|
|
881
1007
|
list: true,
|
|
882
1008
|
run: (neon, input, signal) => collectPages(neon.operations.list({ projectId: input.project_id }, { signal }), input.limit)
|
|
@@ -884,6 +1010,7 @@ const toolFactories = {
|
|
|
884
1010
|
"operations.get": (options) => fromGenerated(options, {
|
|
885
1011
|
id: "operations.get",
|
|
886
1012
|
generated: "getProjectOperation",
|
|
1013
|
+
output: Operation,
|
|
887
1014
|
run: (neon, input, signal) => neon.operations.get({
|
|
888
1015
|
projectId: input.project_id,
|
|
889
1016
|
operationId: input.operation_id
|
|
@@ -892,6 +1019,7 @@ const toolFactories = {
|
|
|
892
1019
|
"auth.get": (options) => fromGenerated(options, {
|
|
893
1020
|
id: "auth.get",
|
|
894
1021
|
generated: "getNeonAuth",
|
|
1022
|
+
output: NeonAuthIntegration,
|
|
895
1023
|
run: (neon, input, signal) => neon.auth.get({
|
|
896
1024
|
projectId: input.project_id,
|
|
897
1025
|
branchId: input.branch_id
|
|
@@ -900,6 +1028,7 @@ const toolFactories = {
|
|
|
900
1028
|
"auth.create": (options) => fromGenerated(options, {
|
|
901
1029
|
id: "auth.create",
|
|
902
1030
|
generated: "createNeonAuth",
|
|
1031
|
+
output: NeonAuthCreateIntegrationResponse,
|
|
903
1032
|
run: (neon, input, signal) => neon.auth.create({
|
|
904
1033
|
projectId: input.project_id,
|
|
905
1034
|
branchId: input.branch_id,
|
|
@@ -910,6 +1039,7 @@ const toolFactories = {
|
|
|
910
1039
|
"auth.disable": (options) => fromGenerated(options, {
|
|
911
1040
|
id: "auth.disable",
|
|
912
1041
|
generated: "disableNeonAuth",
|
|
1042
|
+
output: z.null(),
|
|
913
1043
|
run: (neon, input, signal) => neon.auth.disable({
|
|
914
1044
|
projectId: input.project_id,
|
|
915
1045
|
branchId: input.branch_id,
|
|
@@ -919,6 +1049,7 @@ const toolFactories = {
|
|
|
919
1049
|
"auth.updateConfig": (options) => fromGenerated(options, {
|
|
920
1050
|
id: "auth.updateConfig",
|
|
921
1051
|
generated: "updateNeonAuthConfig",
|
|
1052
|
+
output: NeonAuthConfigResponse,
|
|
922
1053
|
run: (neon, input, signal) => neon.auth.updateConfig({
|
|
923
1054
|
projectId: input.project_id,
|
|
924
1055
|
branchId: input.branch_id,
|
|
@@ -928,6 +1059,7 @@ const toolFactories = {
|
|
|
928
1059
|
"auth.oauthProviders.list": (options) => fromGenerated(options, {
|
|
929
1060
|
id: "auth.oauthProviders.list",
|
|
930
1061
|
generated: "listBranchNeonAuthOauthProviders",
|
|
1062
|
+
output: ListNeonAuthOauthProvidersResponse.shape.providers,
|
|
931
1063
|
run: (neon, input, signal) => neon.auth.oauthProviders.list({
|
|
932
1064
|
projectId: input.project_id,
|
|
933
1065
|
branchId: input.branch_id
|
|
@@ -936,6 +1068,7 @@ const toolFactories = {
|
|
|
936
1068
|
"auth.oauthProviders.add": (options) => fromGenerated(options, {
|
|
937
1069
|
id: "auth.oauthProviders.add",
|
|
938
1070
|
generated: "addBranchNeonAuthOauthProvider",
|
|
1071
|
+
output: NeonAuthOauthProvider,
|
|
939
1072
|
run: (neon, input, signal) => neon.auth.oauthProviders.add({
|
|
940
1073
|
projectId: input.project_id,
|
|
941
1074
|
branchId: input.branch_id,
|
|
@@ -950,6 +1083,7 @@ const toolFactories = {
|
|
|
950
1083
|
"auth.oauthProviders.update": (options) => fromGenerated(options, {
|
|
951
1084
|
id: "auth.oauthProviders.update",
|
|
952
1085
|
generated: "updateBranchNeonAuthOauthProvider",
|
|
1086
|
+
output: NeonAuthOauthProvider,
|
|
953
1087
|
run: (neon, input, signal) => neon.auth.oauthProviders.update({
|
|
954
1088
|
projectId: input.project_id,
|
|
955
1089
|
branchId: input.branch_id,
|
|
@@ -964,6 +1098,7 @@ const toolFactories = {
|
|
|
964
1098
|
"auth.oauthProviders.delete": (options) => fromGenerated(options, {
|
|
965
1099
|
id: "auth.oauthProviders.delete",
|
|
966
1100
|
generated: "deleteBranchNeonAuthOauthProvider",
|
|
1101
|
+
output: z.null(),
|
|
967
1102
|
run: (neon, input, signal) => neon.auth.oauthProviders.delete({
|
|
968
1103
|
projectId: input.project_id,
|
|
969
1104
|
branchId: input.branch_id,
|
|
@@ -973,6 +1108,7 @@ const toolFactories = {
|
|
|
973
1108
|
"auth.oauthServer.get": (options) => fromGenerated(options, {
|
|
974
1109
|
id: "auth.oauthServer.get",
|
|
975
1110
|
generated: "getNeonAuthOAuthProviderPlugin",
|
|
1111
|
+
output: NeonAuthOAuthProviderConfig,
|
|
976
1112
|
run: (neon, input, signal) => neon.auth.oauthServer.get({
|
|
977
1113
|
projectId: input.project_id,
|
|
978
1114
|
branchId: input.branch_id
|
|
@@ -981,6 +1117,7 @@ const toolFactories = {
|
|
|
981
1117
|
"auth.oauthServer.update": (options) => fromGenerated(options, {
|
|
982
1118
|
id: "auth.oauthServer.update",
|
|
983
1119
|
generated: "updateNeonAuthOAuthProviderPlugin",
|
|
1120
|
+
output: NeonAuthOAuthProviderConfig,
|
|
984
1121
|
run: (neon, input, signal) => neon.auth.oauthServer.update({
|
|
985
1122
|
projectId: input.project_id,
|
|
986
1123
|
branchId: input.branch_id,
|
|
@@ -994,6 +1131,7 @@ const toolFactories = {
|
|
|
994
1131
|
"auth.oauthClients.list": (options) => fromGenerated(options, {
|
|
995
1132
|
id: "auth.oauthClients.list",
|
|
996
1133
|
generated: "listNeonAuthOAuthClients",
|
|
1134
|
+
output: ListNeonAuthOAuthClientsResponse.shape.clients,
|
|
997
1135
|
run: (neon, input, signal) => neon.auth.oauthClients.list({
|
|
998
1136
|
projectId: input.project_id,
|
|
999
1137
|
branchId: input.branch_id
|
|
@@ -1002,6 +1140,7 @@ const toolFactories = {
|
|
|
1002
1140
|
"auth.oauthClients.get": (options) => fromGenerated(options, {
|
|
1003
1141
|
id: "auth.oauthClients.get",
|
|
1004
1142
|
generated: "getNeonAuthOAuthClient",
|
|
1143
|
+
output: NeonAuthOAuthClient,
|
|
1005
1144
|
run: (neon, input, signal) => neon.auth.oauthClients.get({
|
|
1006
1145
|
projectId: input.project_id,
|
|
1007
1146
|
branchId: input.branch_id,
|
|
@@ -1011,6 +1150,7 @@ const toolFactories = {
|
|
|
1011
1150
|
"auth.oauthClients.create": (options) => fromGenerated(options, {
|
|
1012
1151
|
id: "auth.oauthClients.create",
|
|
1013
1152
|
generated: "createNeonAuthOAuthClient",
|
|
1153
|
+
output: NeonAuthOAuthClientCreated,
|
|
1014
1154
|
run: (neon, input, signal) => neon.auth.oauthClients.create({
|
|
1015
1155
|
projectId: input.project_id,
|
|
1016
1156
|
branchId: input.branch_id,
|
|
@@ -1024,6 +1164,7 @@ const toolFactories = {
|
|
|
1024
1164
|
"auth.oauthClients.update": (options) => fromGenerated(options, {
|
|
1025
1165
|
id: "auth.oauthClients.update",
|
|
1026
1166
|
generated: "updateNeonAuthOAuthClient",
|
|
1167
|
+
output: NeonAuthOAuthClient,
|
|
1027
1168
|
run: (neon, input, signal) => neon.auth.oauthClients.update({
|
|
1028
1169
|
projectId: input.project_id,
|
|
1029
1170
|
branchId: input.branch_id,
|
|
@@ -1038,6 +1179,7 @@ const toolFactories = {
|
|
|
1038
1179
|
"auth.oauthClients.delete": (options) => fromGenerated(options, {
|
|
1039
1180
|
id: "auth.oauthClients.delete",
|
|
1040
1181
|
generated: "deleteNeonAuthOAuthClient",
|
|
1182
|
+
output: z.null(),
|
|
1041
1183
|
run: (neon, input, signal) => neon.auth.oauthClients.delete({
|
|
1042
1184
|
projectId: input.project_id,
|
|
1043
1185
|
branchId: input.branch_id,
|
|
@@ -1047,6 +1189,7 @@ const toolFactories = {
|
|
|
1047
1189
|
"auth.oauthClients.rotateSecret": (options) => fromGenerated(options, {
|
|
1048
1190
|
id: "auth.oauthClients.rotateSecret",
|
|
1049
1191
|
generated: "rotateNeonAuthOAuthClientSecret",
|
|
1192
|
+
output: NeonAuthOAuthClientSecret,
|
|
1050
1193
|
run: (neon, input, signal) => neon.auth.oauthClients.rotateSecret({
|
|
1051
1194
|
projectId: input.project_id,
|
|
1052
1195
|
branchId: input.branch_id,
|
|
@@ -1056,6 +1199,7 @@ const toolFactories = {
|
|
|
1056
1199
|
"auth.trustedDomains.list": (options) => fromGenerated(options, {
|
|
1057
1200
|
id: "auth.trustedDomains.list",
|
|
1058
1201
|
generated: "listBranchNeonAuthTrustedDomains",
|
|
1202
|
+
output: z.array(NeonAuthRedirectURIWhitelistDomain),
|
|
1059
1203
|
run: (neon, input, signal) => neon.auth.trustedDomains.list({
|
|
1060
1204
|
projectId: input.project_id,
|
|
1061
1205
|
branchId: input.branch_id
|
|
@@ -1064,6 +1208,7 @@ const toolFactories = {
|
|
|
1064
1208
|
"auth.trustedDomains.add": (options) => fromGenerated(options, {
|
|
1065
1209
|
id: "auth.trustedDomains.add",
|
|
1066
1210
|
generated: "addBranchNeonAuthTrustedDomain",
|
|
1211
|
+
output: z.null(),
|
|
1067
1212
|
run: (neon, input, signal) => neon.auth.trustedDomains.add({
|
|
1068
1213
|
projectId: input.project_id,
|
|
1069
1214
|
branchId: input.branch_id,
|
|
@@ -1074,6 +1219,7 @@ const toolFactories = {
|
|
|
1074
1219
|
"auth.trustedDomains.delete": (options) => fromGenerated(options, {
|
|
1075
1220
|
id: "auth.trustedDomains.delete",
|
|
1076
1221
|
generated: "deleteBranchNeonAuthTrustedDomain",
|
|
1222
|
+
output: z.null(),
|
|
1077
1223
|
run: (neon, input, signal) => neon.auth.trustedDomains.delete({
|
|
1078
1224
|
projectId: input.project_id,
|
|
1079
1225
|
branchId: input.branch_id,
|
|
@@ -1084,6 +1230,7 @@ const toolFactories = {
|
|
|
1084
1230
|
"auth.users.create": (options) => fromGenerated(options, {
|
|
1085
1231
|
id: "auth.users.create",
|
|
1086
1232
|
generated: "createBranchNeonAuthNewUser",
|
|
1233
|
+
output: NeonAuthCreateNewUserResponse,
|
|
1087
1234
|
run: (neon, input, signal) => neon.auth.users.create({
|
|
1088
1235
|
projectId: input.project_id,
|
|
1089
1236
|
branchId: input.branch_id,
|
|
@@ -1094,6 +1241,7 @@ const toolFactories = {
|
|
|
1094
1241
|
"auth.users.delete": (options) => fromGenerated(options, {
|
|
1095
1242
|
id: "auth.users.delete",
|
|
1096
1243
|
generated: "deleteBranchNeonAuthUser",
|
|
1244
|
+
output: z.null(),
|
|
1097
1245
|
run: (neon, input, signal) => neon.auth.users.delete({
|
|
1098
1246
|
projectId: input.project_id,
|
|
1099
1247
|
branchId: input.branch_id,
|
|
@@ -1103,6 +1251,7 @@ const toolFactories = {
|
|
|
1103
1251
|
"auth.users.updateRole": (options) => fromGenerated(options, {
|
|
1104
1252
|
id: "auth.users.updateRole",
|
|
1105
1253
|
generated: "updateNeonAuthUserRole",
|
|
1254
|
+
output: UpdateNeonAuthUserRoleResponse,
|
|
1106
1255
|
run: (neon, input, signal) => neon.auth.users.updateRole({
|
|
1107
1256
|
projectId: input.project_id,
|
|
1108
1257
|
branchId: input.branch_id,
|
|
@@ -1113,6 +1262,7 @@ const toolFactories = {
|
|
|
1113
1262
|
"auth.allowLocalhost.get": (options) => fromGenerated(options, {
|
|
1114
1263
|
id: "auth.allowLocalhost.get",
|
|
1115
1264
|
generated: "getNeonAuthAllowLocalhost",
|
|
1265
|
+
output: NeonAuthAllowLocalhostResponse,
|
|
1116
1266
|
run: (neon, input, signal) => neon.auth.allowLocalhost.get({
|
|
1117
1267
|
projectId: input.project_id,
|
|
1118
1268
|
branchId: input.branch_id
|
|
@@ -1121,6 +1271,7 @@ const toolFactories = {
|
|
|
1121
1271
|
"auth.allowLocalhost.update": (options) => fromGenerated(options, {
|
|
1122
1272
|
id: "auth.allowLocalhost.update",
|
|
1123
1273
|
generated: "updateNeonAuthAllowLocalhost",
|
|
1274
|
+
output: NeonAuthAllowLocalhostResponse,
|
|
1124
1275
|
run: (neon, input, signal) => neon.auth.allowLocalhost.update({
|
|
1125
1276
|
projectId: input.project_id,
|
|
1126
1277
|
branchId: input.branch_id,
|
|
@@ -1130,6 +1281,7 @@ const toolFactories = {
|
|
|
1130
1281
|
"auth.emailAndPassword.get": (options) => fromGenerated(options, {
|
|
1131
1282
|
id: "auth.emailAndPassword.get",
|
|
1132
1283
|
generated: "getNeonAuthEmailAndPasswordConfig",
|
|
1284
|
+
output: NeonAuthEmailAndPasswordConfig,
|
|
1133
1285
|
run: (neon, input, signal) => neon.auth.emailAndPassword.get({
|
|
1134
1286
|
projectId: input.project_id,
|
|
1135
1287
|
branchId: input.branch_id
|
|
@@ -1138,6 +1290,7 @@ const toolFactories = {
|
|
|
1138
1290
|
"auth.emailAndPassword.update": (options) => fromGenerated(options, {
|
|
1139
1291
|
id: "auth.emailAndPassword.update",
|
|
1140
1292
|
generated: "updateNeonAuthEmailAndPasswordConfig",
|
|
1293
|
+
output: NeonAuthEmailAndPasswordConfig,
|
|
1141
1294
|
run: (neon, input, signal) => neon.auth.emailAndPassword.update({
|
|
1142
1295
|
projectId: input.project_id,
|
|
1143
1296
|
branchId: input.branch_id,
|
|
@@ -1154,6 +1307,7 @@ const toolFactories = {
|
|
|
1154
1307
|
"auth.emailProvider.get": (options) => fromGenerated(options, {
|
|
1155
1308
|
id: "auth.emailProvider.get",
|
|
1156
1309
|
generated: "getNeonAuthEmailProvider",
|
|
1310
|
+
output: NeonAuthEmailServerConfigResponse,
|
|
1157
1311
|
requiresApproval: false,
|
|
1158
1312
|
run: async (neon, input, signal) => withoutSmtpPassword(await neon.auth.emailProvider.get({
|
|
1159
1313
|
projectId: input.project_id,
|
|
@@ -1163,6 +1317,7 @@ const toolFactories = {
|
|
|
1163
1317
|
"auth.emailProvider.update": (options) => fromGenerated(options, {
|
|
1164
1318
|
id: "auth.emailProvider.update",
|
|
1165
1319
|
generated: "updateNeonAuthEmailProvider",
|
|
1320
|
+
output: NeonAuthEmailServerConfigResponse,
|
|
1166
1321
|
run: async (neon, input, signal) => withoutSmtpPassword(await neon.auth.emailProvider.update({
|
|
1167
1322
|
projectId: input.project_id,
|
|
1168
1323
|
branchId: input.branch_id,
|
|
@@ -1172,6 +1327,7 @@ const toolFactories = {
|
|
|
1172
1327
|
"auth.emailProvider.sendTest": (options) => fromGenerated(options, {
|
|
1173
1328
|
id: "auth.emailProvider.sendTest",
|
|
1174
1329
|
generated: "sendNeonAuthEmailProviderTest",
|
|
1330
|
+
output: SendNeonAuthTestEmailResponse,
|
|
1175
1331
|
run: (neon, input, signal) => neon.auth.emailProvider.sendTest({
|
|
1176
1332
|
projectId: input.project_id,
|
|
1177
1333
|
branchId: input.branch_id,
|
|
@@ -1181,6 +1337,7 @@ const toolFactories = {
|
|
|
1181
1337
|
"auth.plugins.get": (options) => fromGenerated(options, {
|
|
1182
1338
|
id: "auth.plugins.get",
|
|
1183
1339
|
generated: "getNeonAuthPluginConfigs",
|
|
1340
|
+
output: NeonAuthPluginConfigs,
|
|
1184
1341
|
requiresApproval: false,
|
|
1185
1342
|
run: async (neon, input, signal) => withoutPluginSecrets(await neon.auth.plugins.get({
|
|
1186
1343
|
projectId: input.project_id,
|
|
@@ -1190,6 +1347,7 @@ const toolFactories = {
|
|
|
1190
1347
|
"auth.plugins.magicLink.update": (options) => fromGenerated(options, {
|
|
1191
1348
|
id: "auth.plugins.magicLink.update",
|
|
1192
1349
|
generated: "updateNeonAuthMagicLinkPlugin",
|
|
1350
|
+
output: NeonAuthMagicLinkConfig,
|
|
1193
1351
|
run: (neon, input, signal) => neon.auth.plugins.magicLink.update({
|
|
1194
1352
|
projectId: input.project_id,
|
|
1195
1353
|
branchId: input.branch_id,
|
|
@@ -1201,6 +1359,7 @@ const toolFactories = {
|
|
|
1201
1359
|
"auth.plugins.organization.update": (options) => fromGenerated(options, {
|
|
1202
1360
|
id: "auth.plugins.organization.update",
|
|
1203
1361
|
generated: "updateNeonAuthOrganizationPlugin",
|
|
1362
|
+
output: NeonAuthOrganizationConfig,
|
|
1204
1363
|
run: (neon, input, signal) => neon.auth.plugins.organization.update({
|
|
1205
1364
|
projectId: input.project_id,
|
|
1206
1365
|
branchId: input.branch_id,
|
|
@@ -1214,6 +1373,7 @@ const toolFactories = {
|
|
|
1214
1373
|
"auth.plugins.phoneNumber.get": (options) => fromGenerated(options, {
|
|
1215
1374
|
id: "auth.plugins.phoneNumber.get",
|
|
1216
1375
|
generated: "getNeonAuthPhoneNumberPlugin",
|
|
1376
|
+
output: NeonAuthPhoneNumberConfig,
|
|
1217
1377
|
run: (neon, input, signal) => neon.auth.plugins.phoneNumber.get({
|
|
1218
1378
|
projectId: input.project_id,
|
|
1219
1379
|
branchId: input.branch_id
|
|
@@ -1222,6 +1382,7 @@ const toolFactories = {
|
|
|
1222
1382
|
"auth.plugins.phoneNumber.update": (options) => fromGenerated(options, {
|
|
1223
1383
|
id: "auth.plugins.phoneNumber.update",
|
|
1224
1384
|
generated: "updateNeonAuthPhoneNumberPlugin",
|
|
1385
|
+
output: NeonAuthPhoneNumberConfig,
|
|
1225
1386
|
run: (neon, input, signal) => neon.auth.plugins.phoneNumber.update({
|
|
1226
1387
|
projectId: input.project_id,
|
|
1227
1388
|
branchId: input.branch_id,
|
|
@@ -1232,6 +1393,7 @@ const toolFactories = {
|
|
|
1232
1393
|
"auth.webhooks.get": (options) => fromGenerated(options, {
|
|
1233
1394
|
id: "auth.webhooks.get",
|
|
1234
1395
|
generated: "getNeonAuthWebhookConfig",
|
|
1396
|
+
output: NeonAuthWebhookConfig,
|
|
1235
1397
|
run: (neon, input, signal) => neon.auth.webhooks.get({
|
|
1236
1398
|
projectId: input.project_id,
|
|
1237
1399
|
branchId: input.branch_id
|
|
@@ -1240,6 +1402,7 @@ const toolFactories = {
|
|
|
1240
1402
|
"auth.webhooks.update": (options) => fromGenerated(options, {
|
|
1241
1403
|
id: "auth.webhooks.update",
|
|
1242
1404
|
generated: "updateNeonAuthWebhookConfig",
|
|
1405
|
+
output: NeonAuthWebhookConfig,
|
|
1243
1406
|
run: (neon, input, signal) => neon.auth.webhooks.update({
|
|
1244
1407
|
projectId: input.project_id,
|
|
1245
1408
|
branchId: input.branch_id,
|
|
@@ -1252,6 +1415,7 @@ const toolFactories = {
|
|
|
1252
1415
|
"auth.logsExport.update": (options) => fromGenerated(options, {
|
|
1253
1416
|
id: "auth.logsExport.update",
|
|
1254
1417
|
generated: "updateNeonAuthLogsExport",
|
|
1418
|
+
output: NeonAuthLogsExportConfig,
|
|
1255
1419
|
run: (neon, input, signal) => neon.auth.logsExport.update({
|
|
1256
1420
|
projectId: input.project_id,
|
|
1257
1421
|
branchId: input.branch_id,
|
|
@@ -1261,6 +1425,7 @@ const toolFactories = {
|
|
|
1261
1425
|
"consumption.perProject": (options) => fromGenerated(options, {
|
|
1262
1426
|
id: "consumption.perProject",
|
|
1263
1427
|
generated: "getConsumptionHistoryPerProject",
|
|
1428
|
+
output: z.array(ConsumptionHistoryPerProject),
|
|
1264
1429
|
omit: ["cursor"],
|
|
1265
1430
|
list: true,
|
|
1266
1431
|
run: (neon, input, signal) => collectPages(neon.consumption.perProject({
|
|
@@ -1277,6 +1442,7 @@ const toolFactories = {
|
|
|
1277
1442
|
"consumption.perProjectV2": (options) => fromGenerated(options, {
|
|
1278
1443
|
id: "consumption.perProjectV2",
|
|
1279
1444
|
generated: "getConsumptionHistoryPerProjectV2",
|
|
1445
|
+
output: z.array(ConsumptionHistoryPerProjectV2),
|
|
1280
1446
|
omit: ["cursor"],
|
|
1281
1447
|
list: true,
|
|
1282
1448
|
run: (neon, input, signal) => collectPages(neon.consumption.perProjectV2({
|
|
@@ -1292,6 +1458,7 @@ const toolFactories = {
|
|
|
1292
1458
|
"consumption.perBranchV2": (options) => fromGenerated(options, {
|
|
1293
1459
|
id: "consumption.perBranchV2",
|
|
1294
1460
|
generated: "getConsumptionHistoryPerBranchV2",
|
|
1461
|
+
output: z.array(ConsumptionHistoryPerBranchV2),
|
|
1295
1462
|
omit: ["cursor"],
|
|
1296
1463
|
list: true,
|
|
1297
1464
|
run: (neon, input, signal) => collectPages(neon.consumption.perBranchV2({
|
|
@@ -1308,26 +1475,31 @@ const toolFactories = {
|
|
|
1308
1475
|
"apiKeys.list": (options) => fromGenerated(options, {
|
|
1309
1476
|
id: "apiKeys.list",
|
|
1310
1477
|
generated: "listApiKeys",
|
|
1478
|
+
output: z.array(ApiKeysListResponseItem),
|
|
1311
1479
|
run: (neon, _input, signal) => neon.apiKeys.list({ signal })
|
|
1312
1480
|
}),
|
|
1313
1481
|
"apiKeys.create": (options) => fromGenerated(options, {
|
|
1314
1482
|
id: "apiKeys.create",
|
|
1315
1483
|
generated: "createApiKey",
|
|
1484
|
+
output: ApiKeyCreateResponse,
|
|
1316
1485
|
run: (neon, input, signal) => neon.apiKeys.create({ keyName: input.key_name }, { signal })
|
|
1317
1486
|
}),
|
|
1318
1487
|
"apiKeys.revoke": (options) => fromGenerated(options, {
|
|
1319
1488
|
id: "apiKeys.revoke",
|
|
1320
1489
|
generated: "revokeApiKey",
|
|
1490
|
+
output: ApiKeyRevokeResponse,
|
|
1321
1491
|
run: (neon, input, signal) => neon.apiKeys.revoke({ keyId: input.key_id }, { signal })
|
|
1322
1492
|
}),
|
|
1323
1493
|
"organizations.get": (options) => fromGenerated(options, {
|
|
1324
1494
|
id: "organizations.get",
|
|
1325
1495
|
generated: "getOrganization",
|
|
1496
|
+
output: Organization,
|
|
1326
1497
|
run: (neon, input, signal) => neon.organizations.get({ orgId: input.org_id }, { signal })
|
|
1327
1498
|
}),
|
|
1328
1499
|
"organizations.members.list": (options) => fromGenerated(options, {
|
|
1329
1500
|
id: "organizations.members.list",
|
|
1330
1501
|
generated: "getOrganizationMembers",
|
|
1502
|
+
output: z.array(MemberWithUser),
|
|
1331
1503
|
omit: ["cursor"],
|
|
1332
1504
|
list: true,
|
|
1333
1505
|
run: (neon, input, signal) => collectPages(neon.organizations.members.list({
|
|
@@ -1340,6 +1512,7 @@ const toolFactories = {
|
|
|
1340
1512
|
"organizations.members.get": (options) => fromGenerated(options, {
|
|
1341
1513
|
id: "organizations.members.get",
|
|
1342
1514
|
generated: "getOrganizationMember",
|
|
1515
|
+
output: Member,
|
|
1343
1516
|
run: (neon, input, signal) => neon.organizations.members.get({
|
|
1344
1517
|
orgId: input.org_id,
|
|
1345
1518
|
memberId: input.member_id
|
|
@@ -1348,6 +1521,7 @@ const toolFactories = {
|
|
|
1348
1521
|
"organizations.members.update": (options) => fromGenerated(options, {
|
|
1349
1522
|
id: "organizations.members.update",
|
|
1350
1523
|
generated: "updateOrganizationMember",
|
|
1524
|
+
output: Member,
|
|
1351
1525
|
run: (neon, input, signal) => neon.organizations.members.update({
|
|
1352
1526
|
orgId: input.org_id,
|
|
1353
1527
|
memberId: input.member_id,
|
|
@@ -1357,6 +1531,7 @@ const toolFactories = {
|
|
|
1357
1531
|
"organizations.members.remove": (options) => fromGenerated(options, {
|
|
1358
1532
|
id: "organizations.members.remove",
|
|
1359
1533
|
generated: "removeOrganizationMember",
|
|
1534
|
+
output: z.null(),
|
|
1360
1535
|
run: (neon, input, signal) => neon.organizations.members.remove({
|
|
1361
1536
|
orgId: input.org_id,
|
|
1362
1537
|
memberId: input.member_id
|
|
@@ -1365,11 +1540,13 @@ const toolFactories = {
|
|
|
1365
1540
|
"organizations.invitations.list": (options) => fromGenerated(options, {
|
|
1366
1541
|
id: "organizations.invitations.list",
|
|
1367
1542
|
generated: "getOrganizationInvitations",
|
|
1543
|
+
output: OrganizationInvitationsResponse.shape.invitations,
|
|
1368
1544
|
run: (neon, input, signal) => neon.organizations.invitations.list({ orgId: input.org_id }, { signal })
|
|
1369
1545
|
}),
|
|
1370
1546
|
"organizations.invitations.create": (options) => fromGenerated(options, {
|
|
1371
1547
|
id: "organizations.invitations.create",
|
|
1372
1548
|
generated: "createOrganizationInvitations",
|
|
1549
|
+
output: OrganizationInvitationsResponse.shape.invitations,
|
|
1373
1550
|
run: (neon, input, signal) => neon.organizations.invitations.create({
|
|
1374
1551
|
orgId: input.org_id,
|
|
1375
1552
|
invitations: input.invitations
|
|
@@ -1378,11 +1555,13 @@ const toolFactories = {
|
|
|
1378
1555
|
"organizations.spendingLimit.get": (options) => fromGenerated(options, {
|
|
1379
1556
|
id: "organizations.spendingLimit.get",
|
|
1380
1557
|
generated: "getOrganizationSpendingLimit",
|
|
1558
|
+
output: SpendingLimitResponse,
|
|
1381
1559
|
run: (neon, input, signal) => neon.organizations.spendingLimit.get({ orgId: input.org_id }, { signal })
|
|
1382
1560
|
}),
|
|
1383
1561
|
"organizations.spendingLimit.set": (options) => fromGenerated(options, {
|
|
1384
1562
|
id: "organizations.spendingLimit.set",
|
|
1385
1563
|
generated: "setOrganizationSpendingLimit",
|
|
1564
|
+
output: SpendingLimitResponse,
|
|
1386
1565
|
run: (neon, input, signal) => neon.organizations.spendingLimit.set({
|
|
1387
1566
|
orgId: input.org_id,
|
|
1388
1567
|
spendingLimitCents: input.spending_limit_cents
|
|
@@ -1391,16 +1570,19 @@ const toolFactories = {
|
|
|
1391
1570
|
"organizations.spendingLimit.delete": (options) => fromGenerated(options, {
|
|
1392
1571
|
id: "organizations.spendingLimit.delete",
|
|
1393
1572
|
generated: "deleteOrganizationSpendingLimit",
|
|
1573
|
+
output: z.null(),
|
|
1394
1574
|
run: (neon, input, signal) => neon.organizations.spendingLimit.delete({ orgId: input.org_id }, { signal })
|
|
1395
1575
|
}),
|
|
1396
1576
|
"organizations.apiKeys.list": (options) => fromGenerated(options, {
|
|
1397
1577
|
id: "organizations.apiKeys.list",
|
|
1398
1578
|
generated: "listOrgApiKeys",
|
|
1579
|
+
output: z.array(OrgApiKeysListResponseItem),
|
|
1399
1580
|
run: (neon, input, signal) => neon.organizations.apiKeys.list({ orgId: input.org_id }, { signal })
|
|
1400
1581
|
}),
|
|
1401
1582
|
"organizations.apiKeys.create": (options) => fromGenerated(options, {
|
|
1402
1583
|
id: "organizations.apiKeys.create",
|
|
1403
1584
|
generated: "createOrgApiKey",
|
|
1585
|
+
output: OrgApiKeyCreateResponse,
|
|
1404
1586
|
run: (neon, input, signal) => neon.organizations.apiKeys.create({
|
|
1405
1587
|
orgId: input.org_id,
|
|
1406
1588
|
keyName: input.key_name,
|
|
@@ -1410,6 +1592,7 @@ const toolFactories = {
|
|
|
1410
1592
|
"organizations.apiKeys.revoke": (options) => fromGenerated(options, {
|
|
1411
1593
|
id: "organizations.apiKeys.revoke",
|
|
1412
1594
|
generated: "revokeOrgApiKey",
|
|
1595
|
+
output: OrgApiKeyRevokeResponse,
|
|
1413
1596
|
run: (neon, input, signal) => neon.organizations.apiKeys.revoke({
|
|
1414
1597
|
orgId: input.org_id,
|
|
1415
1598
|
keyId: input.key_id
|
|
@@ -1421,6 +1604,7 @@ const toolFactories = {
|
|
|
1421
1604
|
title: "List regions",
|
|
1422
1605
|
description: "Lists the regions you can create projects in. An organization API key gets 404.",
|
|
1423
1606
|
inputSchema: z.strictObject({}),
|
|
1607
|
+
outputSchema: z.array(RegionResponse),
|
|
1424
1608
|
annotations: {
|
|
1425
1609
|
readOnlyHint: true,
|
|
1426
1610
|
openWorldHint: false
|
|
@@ -1437,6 +1621,7 @@ const toolFactories = {
|
|
|
1437
1621
|
"user.me": (options) => fromGenerated(options, {
|
|
1438
1622
|
id: "user.me",
|
|
1439
1623
|
generated: "getCurrentUserInfo",
|
|
1624
|
+
output: CurrentUserInfoResponse,
|
|
1440
1625
|
run: (neon, _input, signal) => neon.user.me({ signal })
|
|
1441
1626
|
}),
|
|
1442
1627
|
"incidents.list": listIncidentsTool,
|