@neon/tools 1.3.2 → 1.3.4
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.
|
@@ -39,7 +39,10 @@ const collectObjectList = async (neon, input, signal) => {
|
|
|
39
39
|
let prefix = "";
|
|
40
40
|
let cursor;
|
|
41
41
|
for (;;) {
|
|
42
|
-
const page = objectListPage(await neon.storage.objects.list(
|
|
42
|
+
const page = objectListPage(await neon.storage.objects.list({
|
|
43
|
+
projectId: input.project_id,
|
|
44
|
+
branchId: input.branch_id,
|
|
45
|
+
bucketName: input.bucket_name,
|
|
43
46
|
...input.prefix === void 0 ? {} : { prefix: input.prefix },
|
|
44
47
|
...input.delimiter === void 0 ? {} : { delimiter: input.delimiter },
|
|
45
48
|
...input.limit === void 0 ? {} : { limit: input.limit },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../../src/lib/ergonomic/catalog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAMN,KAAK,iBAAiB,EACtB,MAAM,WAAW,CAAC;AAanB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAS3C,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,UAAU,CAAC,CAAC;AAE7D,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAo+C6C,CAAC"}
|
|
@@ -26,14 +26,15 @@ const toolFactories = {
|
|
|
26
26
|
"projects.get": (options) => fromGenerated(options, {
|
|
27
27
|
id: "projects.get",
|
|
28
28
|
generated: "getProject",
|
|
29
|
-
run: (neon, input, signal) => neon.projects.get(input.project_id, { signal })
|
|
29
|
+
run: (neon, input, signal) => neon.projects.get({ projectId: input.project_id }, { signal })
|
|
30
30
|
}),
|
|
31
31
|
"projects.create": createProjectTool,
|
|
32
32
|
"projects.createAndConnect": createProjectAndConnectTool,
|
|
33
33
|
"projects.update": (options) => fromGenerated(options, {
|
|
34
34
|
id: "projects.update",
|
|
35
35
|
generated: "updateProject",
|
|
36
|
-
run: (neon, input, signal) => neon.projects.update(
|
|
36
|
+
run: (neon, input, signal) => neon.projects.update({
|
|
37
|
+
projectId: input.project_id,
|
|
37
38
|
settings: input.settings,
|
|
38
39
|
name: input.name,
|
|
39
40
|
default_endpoint_settings: input.default_endpoint_settings,
|
|
@@ -43,12 +44,12 @@ const toolFactories = {
|
|
|
43
44
|
"projects.delete": (options) => fromGenerated(options, {
|
|
44
45
|
id: "projects.delete",
|
|
45
46
|
generated: "deleteProject",
|
|
46
|
-
run: (neon, input, signal) => neon.projects.delete(input.project_id, { signal })
|
|
47
|
+
run: (neon, input, signal) => neon.projects.delete({ projectId: input.project_id }, { signal })
|
|
47
48
|
}),
|
|
48
49
|
"projects.recover": (options) => fromGenerated(options, {
|
|
49
50
|
id: "projects.recover",
|
|
50
51
|
generated: "recoverProject",
|
|
51
|
-
run: (neon, input, signal) => neon.projects.recover(input.project_id, { signal })
|
|
52
|
+
run: (neon, input, signal) => neon.projects.recover({ projectId: input.project_id }, { signal })
|
|
52
53
|
}),
|
|
53
54
|
"projects.transfer": (options) => fromGenerated(options, {
|
|
54
55
|
id: "projects.transfer",
|
|
@@ -70,47 +71,60 @@ const toolFactories = {
|
|
|
70
71
|
"projects.permissions.list": (options) => fromGenerated(options, {
|
|
71
72
|
id: "projects.permissions.list",
|
|
72
73
|
generated: "listProjectPermissions",
|
|
73
|
-
run: (neon, input, signal) => neon.projects.permissions.list(input.project_id, { signal })
|
|
74
|
+
run: (neon, input, signal) => neon.projects.permissions.list({ projectId: input.project_id }, { signal })
|
|
74
75
|
}),
|
|
75
76
|
"projects.permissions.grant": (options) => fromGenerated(options, {
|
|
76
77
|
id: "projects.permissions.grant",
|
|
77
78
|
generated: "grantPermissionToProject",
|
|
78
|
-
run: (neon, input, signal) => neon.projects.permissions.grant(
|
|
79
|
+
run: (neon, input, signal) => neon.projects.permissions.grant({
|
|
80
|
+
projectId: input.project_id,
|
|
81
|
+
email: input.email
|
|
82
|
+
}, { signal })
|
|
79
83
|
}),
|
|
80
84
|
"projects.permissions.revoke": (options) => fromGenerated(options, {
|
|
81
85
|
id: "projects.permissions.revoke",
|
|
82
86
|
generated: "revokePermissionFromProject",
|
|
83
|
-
run: (neon, input, signal) => neon.projects.permissions.revoke(
|
|
87
|
+
run: (neon, input, signal) => neon.projects.permissions.revoke({
|
|
88
|
+
projectId: input.project_id,
|
|
89
|
+
permissionId: input.permission_id
|
|
90
|
+
}, { signal })
|
|
84
91
|
}),
|
|
85
92
|
"projects.members.list": (options) => fromGenerated(options, {
|
|
86
93
|
id: "projects.members.list",
|
|
87
94
|
generated: "listProjectMembers",
|
|
88
95
|
omit: ["cursor"],
|
|
89
96
|
list: true,
|
|
90
|
-
run: (neon, input, signal) => collectPages(neon.projects.members.list(
|
|
97
|
+
run: (neon, input, signal) => collectPages(neon.projects.members.list({
|
|
98
|
+
projectId: input.project_id,
|
|
99
|
+
limit: input.limit
|
|
100
|
+
}, { signal }), input.limit)
|
|
91
101
|
}),
|
|
92
102
|
"projects.members.setRole": (options) => fromGenerated(options, {
|
|
93
103
|
id: "projects.members.setRole",
|
|
94
104
|
generated: "setProjectMemberRole",
|
|
95
|
-
run: (neon, input, signal) => neon.projects.members.setRole(
|
|
96
|
-
|
|
105
|
+
run: (neon, input, signal) => neon.projects.members.setRole({
|
|
106
|
+
projectId: input.project_id,
|
|
107
|
+
memberId: input.member_id,
|
|
108
|
+
role: input.role,
|
|
97
109
|
...input.confirm_self_demotion ? { confirmSelfDemotion: true } : {}
|
|
98
|
-
})
|
|
110
|
+
}, { signal })
|
|
99
111
|
}),
|
|
100
112
|
"projects.members.removeRole": (options) => fromGenerated(options, {
|
|
101
113
|
id: "projects.members.removeRole",
|
|
102
114
|
generated: "removeProjectMemberRole",
|
|
103
|
-
run: (neon, input, signal) => neon.projects.members.removeRole(
|
|
104
|
-
|
|
115
|
+
run: (neon, input, signal) => neon.projects.members.removeRole({
|
|
116
|
+
projectId: input.project_id,
|
|
117
|
+
memberId: input.member_id,
|
|
105
118
|
...input.confirm_self_lockout ? { confirmSelfLockout: true } : {}
|
|
106
|
-
})
|
|
119
|
+
}, { signal })
|
|
107
120
|
}),
|
|
108
121
|
"branches.list": (options) => fromGenerated(options, {
|
|
109
122
|
id: "branches.list",
|
|
110
123
|
generated: "listProjectBranches",
|
|
111
124
|
omit: ["cursor"],
|
|
112
125
|
list: true,
|
|
113
|
-
run: (neon, input, signal) => collectPages(neon.branches.list(
|
|
126
|
+
run: (neon, input, signal) => collectPages(neon.branches.list({
|
|
127
|
+
projectId: input.project_id,
|
|
114
128
|
search: input.search,
|
|
115
129
|
sort_by: input.sort_by,
|
|
116
130
|
sort_order: input.sort_order,
|
|
@@ -121,14 +135,19 @@ const toolFactories = {
|
|
|
121
135
|
"branches.get": (options) => fromGenerated(options, {
|
|
122
136
|
id: "branches.get",
|
|
123
137
|
generated: "getProjectBranch",
|
|
124
|
-
run: (neon, input, signal) => neon.branches.get(
|
|
138
|
+
run: (neon, input, signal) => neon.branches.get({
|
|
139
|
+
projectId: input.project_id,
|
|
140
|
+
branchId: input.branch_id
|
|
141
|
+
}, { signal })
|
|
125
142
|
}),
|
|
126
143
|
"branches.create": createBranchTool,
|
|
127
144
|
"branches.createAndConnect": createBranchAndConnectTool,
|
|
128
145
|
"branches.update": (options) => fromGenerated(options, {
|
|
129
146
|
id: "branches.update",
|
|
130
147
|
generated: "updateProjectBranch",
|
|
131
|
-
run: (neon, input, signal) => neon.branches.update(
|
|
148
|
+
run: (neon, input, signal) => neon.branches.update({
|
|
149
|
+
projectId: input.project_id,
|
|
150
|
+
branchId: input.branch_id,
|
|
132
151
|
name: input.name,
|
|
133
152
|
protected: input.protected,
|
|
134
153
|
expires_at: input.expires_at
|
|
@@ -137,41 +156,58 @@ const toolFactories = {
|
|
|
137
156
|
"branches.delete": (options) => fromGenerated(options, {
|
|
138
157
|
id: "branches.delete",
|
|
139
158
|
generated: "deleteProjectBranch",
|
|
140
|
-
run: (neon, input, signal) => neon.branches.delete(
|
|
159
|
+
run: (neon, input, signal) => neon.branches.delete({
|
|
160
|
+
projectId: input.project_id,
|
|
161
|
+
branchId: input.branch_id
|
|
162
|
+
}, { signal })
|
|
141
163
|
}),
|
|
142
164
|
"branches.getDefault": getDefaultTool,
|
|
143
165
|
"branches.setDefault": (options) => fromGenerated(options, {
|
|
144
166
|
id: "branches.setDefault",
|
|
145
167
|
generated: "setDefaultProjectBranch",
|
|
146
|
-
run: (neon, input, signal) => neon.branches.setDefault(
|
|
168
|
+
run: (neon, input, signal) => neon.branches.setDefault({
|
|
169
|
+
projectId: input.project_id,
|
|
170
|
+
branchId: input.branch_id
|
|
171
|
+
}, { signal })
|
|
147
172
|
}),
|
|
148
173
|
"branches.resetFromParent": resetFromParentTool,
|
|
149
174
|
"branches.compareSchema": compareSchemaTool,
|
|
150
175
|
"branches.finalizeRestore": (options) => fromGenerated(options, {
|
|
151
176
|
id: "branches.finalizeRestore",
|
|
152
177
|
generated: "finalizeRestoreBranch",
|
|
153
|
-
run: (neon, input, signal) => neon.branches.finalizeRestore(
|
|
178
|
+
run: (neon, input, signal) => neon.branches.finalizeRestore({
|
|
179
|
+
projectId: input.project_id,
|
|
180
|
+
branchId: input.branch_id,
|
|
181
|
+
name: input.name
|
|
182
|
+
}, { signal })
|
|
154
183
|
}),
|
|
155
184
|
"postgres.connectionString": connectionStringTool,
|
|
156
185
|
"postgres.endpoints.list": (options) => fromGenerated(options, {
|
|
157
186
|
id: "postgres.endpoints.list",
|
|
158
187
|
generated: "listProjectEndpoints",
|
|
159
|
-
run: (neon, input, signal) => neon.postgres.endpoints.list(input.project_id, { signal })
|
|
188
|
+
run: (neon, input, signal) => neon.postgres.endpoints.list({ projectId: input.project_id }, { signal })
|
|
160
189
|
}),
|
|
161
190
|
"postgres.endpoints.listByBranch": (options) => fromGenerated(options, {
|
|
162
191
|
id: "postgres.endpoints.listByBranch",
|
|
163
192
|
generated: "listProjectBranchEndpoints",
|
|
164
|
-
run: (neon, input, signal) => neon.postgres.endpoints.listByBranch(
|
|
193
|
+
run: (neon, input, signal) => neon.postgres.endpoints.listByBranch({
|
|
194
|
+
projectId: input.project_id,
|
|
195
|
+
branchId: input.branch_id
|
|
196
|
+
}, { signal })
|
|
165
197
|
}),
|
|
166
198
|
"postgres.endpoints.get": (options) => fromGenerated(options, {
|
|
167
199
|
id: "postgres.endpoints.get",
|
|
168
200
|
generated: "getProjectEndpoint",
|
|
169
|
-
run: (neon, input, signal) => neon.postgres.endpoints.get(
|
|
201
|
+
run: (neon, input, signal) => neon.postgres.endpoints.get({
|
|
202
|
+
projectId: input.project_id,
|
|
203
|
+
endpointId: input.endpoint_id
|
|
204
|
+
}, { signal })
|
|
170
205
|
}),
|
|
171
206
|
"postgres.endpoints.create": (options) => fromGenerated(options, {
|
|
172
207
|
id: "postgres.endpoints.create",
|
|
173
208
|
generated: "createProjectEndpoint",
|
|
174
|
-
run: (neon, input, signal) => neon.postgres.endpoints.create(
|
|
209
|
+
run: (neon, input, signal) => neon.postgres.endpoints.create({
|
|
210
|
+
projectId: input.project_id,
|
|
175
211
|
branch_id: input.branch_id,
|
|
176
212
|
region_id: input.region_id,
|
|
177
213
|
type: input.type,
|
|
@@ -190,7 +226,9 @@ const toolFactories = {
|
|
|
190
226
|
"postgres.endpoints.update": (options) => fromGenerated(options, {
|
|
191
227
|
id: "postgres.endpoints.update",
|
|
192
228
|
generated: "updateProjectEndpoint",
|
|
193
|
-
run: (neon, input, signal) => neon.postgres.endpoints.update(
|
|
229
|
+
run: (neon, input, signal) => neon.postgres.endpoints.update({
|
|
230
|
+
projectId: input.project_id,
|
|
231
|
+
endpointId: input.endpoint_id,
|
|
194
232
|
branch_id: input.branch_id,
|
|
195
233
|
autoscaling_limit_min_cu: input.autoscaling_limit_min_cu,
|
|
196
234
|
autoscaling_limit_max_cu: input.autoscaling_limit_max_cu,
|
|
@@ -207,37 +245,58 @@ const toolFactories = {
|
|
|
207
245
|
"postgres.endpoints.delete": (options) => fromGenerated(options, {
|
|
208
246
|
id: "postgres.endpoints.delete",
|
|
209
247
|
generated: "deleteProjectEndpoint",
|
|
210
|
-
run: (neon, input, signal) => neon.postgres.endpoints.delete(
|
|
248
|
+
run: (neon, input, signal) => neon.postgres.endpoints.delete({
|
|
249
|
+
projectId: input.project_id,
|
|
250
|
+
endpointId: input.endpoint_id
|
|
251
|
+
}, { signal })
|
|
211
252
|
}),
|
|
212
253
|
"postgres.endpoints.start": (options) => fromGenerated(options, {
|
|
213
254
|
id: "postgres.endpoints.start",
|
|
214
255
|
generated: "startProjectEndpoint",
|
|
215
|
-
run: (neon, input, signal) => neon.postgres.endpoints.start(
|
|
256
|
+
run: (neon, input, signal) => neon.postgres.endpoints.start({
|
|
257
|
+
projectId: input.project_id,
|
|
258
|
+
endpointId: input.endpoint_id
|
|
259
|
+
}, { signal })
|
|
216
260
|
}),
|
|
217
261
|
"postgres.endpoints.suspend": (options) => fromGenerated(options, {
|
|
218
262
|
id: "postgres.endpoints.suspend",
|
|
219
263
|
generated: "suspendProjectEndpoint",
|
|
220
|
-
run: (neon, input, signal) => neon.postgres.endpoints.suspend(
|
|
264
|
+
run: (neon, input, signal) => neon.postgres.endpoints.suspend({
|
|
265
|
+
projectId: input.project_id,
|
|
266
|
+
endpointId: input.endpoint_id
|
|
267
|
+
}, { signal })
|
|
221
268
|
}),
|
|
222
269
|
"postgres.endpoints.restart": (options) => fromGenerated(options, {
|
|
223
270
|
id: "postgres.endpoints.restart",
|
|
224
271
|
generated: "restartProjectEndpoint",
|
|
225
|
-
run: (neon, input, signal) => neon.postgres.endpoints.restart(
|
|
272
|
+
run: (neon, input, signal) => neon.postgres.endpoints.restart({
|
|
273
|
+
projectId: input.project_id,
|
|
274
|
+
endpointId: input.endpoint_id
|
|
275
|
+
}, { signal })
|
|
226
276
|
}),
|
|
227
277
|
"postgres.roles.list": (options) => fromGenerated(options, {
|
|
228
278
|
id: "postgres.roles.list",
|
|
229
279
|
generated: "listProjectBranchRoles",
|
|
230
|
-
run: (neon, input, signal) => neon.postgres.roles.list(
|
|
280
|
+
run: (neon, input, signal) => neon.postgres.roles.list({
|
|
281
|
+
projectId: input.project_id,
|
|
282
|
+
branchId: input.branch_id
|
|
283
|
+
}, { signal })
|
|
231
284
|
}),
|
|
232
285
|
"postgres.roles.get": (options) => fromGenerated(options, {
|
|
233
286
|
id: "postgres.roles.get",
|
|
234
287
|
generated: "getProjectBranchRole",
|
|
235
|
-
run: (neon, input, signal) => neon.postgres.roles.get(
|
|
288
|
+
run: (neon, input, signal) => neon.postgres.roles.get({
|
|
289
|
+
projectId: input.project_id,
|
|
290
|
+
branchId: input.branch_id,
|
|
291
|
+
roleName: input.role_name
|
|
292
|
+
}, { signal })
|
|
236
293
|
}),
|
|
237
294
|
"postgres.roles.create": (options) => fromGenerated(options, {
|
|
238
295
|
id: "postgres.roles.create",
|
|
239
296
|
generated: "createProjectBranchRole",
|
|
240
|
-
run: (neon, input, signal) => neon.postgres.roles.create(
|
|
297
|
+
run: (neon, input, signal) => neon.postgres.roles.create({
|
|
298
|
+
projectId: input.project_id,
|
|
299
|
+
branchId: input.branch_id,
|
|
241
300
|
name: input.name,
|
|
242
301
|
no_login: input.no_login
|
|
243
302
|
}, { signal })
|
|
@@ -245,27 +304,44 @@ const toolFactories = {
|
|
|
245
304
|
"postgres.roles.delete": (options) => fromGenerated(options, {
|
|
246
305
|
id: "postgres.roles.delete",
|
|
247
306
|
generated: "deleteProjectBranchRole",
|
|
248
|
-
run: (neon, input, signal) => neon.postgres.roles.delete(
|
|
307
|
+
run: (neon, input, signal) => neon.postgres.roles.delete({
|
|
308
|
+
projectId: input.project_id,
|
|
309
|
+
branchId: input.branch_id,
|
|
310
|
+
roleName: input.role_name
|
|
311
|
+
}, { signal })
|
|
249
312
|
}),
|
|
250
313
|
"postgres.roles.resetPassword": (options) => fromGenerated(options, {
|
|
251
314
|
id: "postgres.roles.resetPassword",
|
|
252
315
|
generated: "resetProjectBranchRolePassword",
|
|
253
|
-
run: (neon, input, signal) => neon.postgres.roles.resetPassword(
|
|
316
|
+
run: (neon, input, signal) => neon.postgres.roles.resetPassword({
|
|
317
|
+
projectId: input.project_id,
|
|
318
|
+
branchId: input.branch_id,
|
|
319
|
+
roleName: input.role_name
|
|
320
|
+
}, { signal })
|
|
254
321
|
}),
|
|
255
322
|
"postgres.databases.list": (options) => fromGenerated(options, {
|
|
256
323
|
id: "postgres.databases.list",
|
|
257
324
|
generated: "listProjectBranchDatabases",
|
|
258
|
-
run: (neon, input, signal) => neon.postgres.databases.list(
|
|
325
|
+
run: (neon, input, signal) => neon.postgres.databases.list({
|
|
326
|
+
projectId: input.project_id,
|
|
327
|
+
branchId: input.branch_id
|
|
328
|
+
}, { signal })
|
|
259
329
|
}),
|
|
260
330
|
"postgres.databases.get": (options) => fromGenerated(options, {
|
|
261
331
|
id: "postgres.databases.get",
|
|
262
332
|
generated: "getProjectBranchDatabase",
|
|
263
|
-
run: (neon, input, signal) => neon.postgres.databases.get(
|
|
333
|
+
run: (neon, input, signal) => neon.postgres.databases.get({
|
|
334
|
+
projectId: input.project_id,
|
|
335
|
+
branchId: input.branch_id,
|
|
336
|
+
databaseName: input.database_name
|
|
337
|
+
}, { signal })
|
|
264
338
|
}),
|
|
265
339
|
"postgres.databases.create": (options) => fromGenerated(options, {
|
|
266
340
|
id: "postgres.databases.create",
|
|
267
341
|
generated: "createProjectBranchDatabase",
|
|
268
|
-
run: (neon, input, signal) => neon.postgres.databases.create(
|
|
342
|
+
run: (neon, input, signal) => neon.postgres.databases.create({
|
|
343
|
+
projectId: input.project_id,
|
|
344
|
+
branchId: input.branch_id,
|
|
269
345
|
name: input.name,
|
|
270
346
|
owner_name: input.owner_name
|
|
271
347
|
}, { signal })
|
|
@@ -273,7 +349,10 @@ const toolFactories = {
|
|
|
273
349
|
"postgres.databases.update": (options) => fromGenerated(options, {
|
|
274
350
|
id: "postgres.databases.update",
|
|
275
351
|
generated: "updateProjectBranchDatabase",
|
|
276
|
-
run: (neon, input, signal) => neon.postgres.databases.update(
|
|
352
|
+
run: (neon, input, signal) => neon.postgres.databases.update({
|
|
353
|
+
projectId: input.project_id,
|
|
354
|
+
branchId: input.branch_id,
|
|
355
|
+
databaseName: input.database_name,
|
|
277
356
|
name: input.name,
|
|
278
357
|
owner_name: input.owner_name
|
|
279
358
|
}, { signal })
|
|
@@ -281,17 +360,28 @@ const toolFactories = {
|
|
|
281
360
|
"postgres.databases.delete": (options) => fromGenerated(options, {
|
|
282
361
|
id: "postgres.databases.delete",
|
|
283
362
|
generated: "deleteProjectBranchDatabase",
|
|
284
|
-
run: (neon, input, signal) => neon.postgres.databases.delete(
|
|
363
|
+
run: (neon, input, signal) => neon.postgres.databases.delete({
|
|
364
|
+
projectId: input.project_id,
|
|
365
|
+
branchId: input.branch_id,
|
|
366
|
+
databaseName: input.database_name
|
|
367
|
+
}, { signal })
|
|
285
368
|
}),
|
|
286
369
|
"postgres.dataApi.get": (options) => fromGenerated(options, {
|
|
287
370
|
id: "postgres.dataApi.get",
|
|
288
371
|
generated: "getProjectBranchDataAPI",
|
|
289
|
-
run: (neon, input, signal) => neon.postgres.dataApi.get(
|
|
372
|
+
run: (neon, input, signal) => neon.postgres.dataApi.get({
|
|
373
|
+
projectId: input.project_id,
|
|
374
|
+
branchId: input.branch_id,
|
|
375
|
+
databaseName: input.database_name
|
|
376
|
+
}, { signal })
|
|
290
377
|
}),
|
|
291
378
|
"postgres.dataApi.create": (options) => fromGenerated(options, {
|
|
292
379
|
id: "postgres.dataApi.create",
|
|
293
380
|
generated: "createProjectBranchDataAPI",
|
|
294
|
-
run: (neon, input, signal) => neon.postgres.dataApi.create(
|
|
381
|
+
run: (neon, input, signal) => neon.postgres.dataApi.create({
|
|
382
|
+
projectId: input.project_id,
|
|
383
|
+
branchId: input.branch_id,
|
|
384
|
+
databaseName: input.database_name,
|
|
295
385
|
auth_provider: input.auth_provider,
|
|
296
386
|
jwks_url: input.jwks_url,
|
|
297
387
|
provider_name: input.provider_name,
|
|
@@ -304,38 +394,55 @@ const toolFactories = {
|
|
|
304
394
|
"postgres.dataApi.update": (options) => fromGenerated(options, {
|
|
305
395
|
id: "postgres.dataApi.update",
|
|
306
396
|
generated: "updateProjectBranchDataAPI",
|
|
307
|
-
run: (neon, input, signal) => neon.postgres.dataApi.update(
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
397
|
+
run: (neon, input, signal) => neon.postgres.dataApi.update({
|
|
398
|
+
projectId: input.project_id,
|
|
399
|
+
branchId: input.branch_id,
|
|
400
|
+
databaseName: input.database_name,
|
|
401
|
+
settings: {
|
|
402
|
+
db_aggregates_enabled: input.db_aggregates_enabled,
|
|
403
|
+
db_anon_role: input.db_anon_role,
|
|
404
|
+
db_extra_search_path: input.db_extra_search_path,
|
|
405
|
+
db_max_rows: input.db_max_rows,
|
|
406
|
+
db_schemas: input.db_schemas,
|
|
407
|
+
jwt_role_claim_key: input.jwt_role_claim_key,
|
|
408
|
+
jwt_cache_max_lifetime: input.jwt_cache_max_lifetime,
|
|
409
|
+
openapi_mode: input.openapi_mode,
|
|
410
|
+
server_cors_allowed_origins: input.server_cors_allowed_origins,
|
|
411
|
+
server_timing_enabled: input.server_timing_enabled
|
|
412
|
+
}
|
|
413
|
+
}, { signal })
|
|
319
414
|
}),
|
|
320
415
|
"postgres.dataApi.delete": (options) => fromGenerated(options, {
|
|
321
416
|
id: "postgres.dataApi.delete",
|
|
322
417
|
generated: "deleteProjectBranchDataAPI",
|
|
323
|
-
run: (neon, input, signal) => neon.postgres.dataApi.delete(
|
|
418
|
+
run: (neon, input, signal) => neon.postgres.dataApi.delete({
|
|
419
|
+
projectId: input.project_id,
|
|
420
|
+
branchId: input.branch_id,
|
|
421
|
+
databaseName: input.database_name
|
|
422
|
+
}, { signal })
|
|
324
423
|
}),
|
|
325
424
|
"storage.get": (options) => fromGenerated(options, {
|
|
326
425
|
id: "storage.get",
|
|
327
426
|
generated: "getProjectBranchStorage",
|
|
328
|
-
run: (neon, input, signal) => neon.storage.get(
|
|
427
|
+
run: (neon, input, signal) => neon.storage.get({
|
|
428
|
+
projectId: input.project_id,
|
|
429
|
+
branchId: input.branch_id
|
|
430
|
+
}, { signal })
|
|
329
431
|
}),
|
|
330
432
|
"storage.buckets.list": (options) => fromGenerated(options, {
|
|
331
433
|
id: "storage.buckets.list",
|
|
332
434
|
generated: "listProjectBranchBuckets",
|
|
333
|
-
run: (neon, input, signal) => neon.storage.buckets.list(
|
|
435
|
+
run: (neon, input, signal) => neon.storage.buckets.list({
|
|
436
|
+
projectId: input.project_id,
|
|
437
|
+
branchId: input.branch_id
|
|
438
|
+
}, { signal })
|
|
334
439
|
}),
|
|
335
440
|
"storage.buckets.create": (options) => fromGenerated(options, {
|
|
336
441
|
id: "storage.buckets.create",
|
|
337
442
|
generated: "createProjectBranchBucket",
|
|
338
|
-
run: (neon, input, signal) => neon.storage.buckets.create(
|
|
443
|
+
run: (neon, input, signal) => neon.storage.buckets.create({
|
|
444
|
+
projectId: input.project_id,
|
|
445
|
+
branchId: input.branch_id,
|
|
339
446
|
name: input.name,
|
|
340
447
|
access_level: input.access_level
|
|
341
448
|
}, { signal })
|
|
@@ -343,7 +450,11 @@ const toolFactories = {
|
|
|
343
450
|
"storage.buckets.delete": (options) => fromGenerated(options, {
|
|
344
451
|
id: "storage.buckets.delete",
|
|
345
452
|
generated: "deleteProjectBranchBucket",
|
|
346
|
-
run: (neon, input, signal) => neon.storage.buckets.delete(
|
|
453
|
+
run: (neon, input, signal) => neon.storage.buckets.delete({
|
|
454
|
+
projectId: input.project_id,
|
|
455
|
+
branchId: input.branch_id,
|
|
456
|
+
bucketName: input.bucket_name
|
|
457
|
+
}, { signal })
|
|
347
458
|
}),
|
|
348
459
|
"storage.objects.list": (options) => fromGenerated(options, {
|
|
349
460
|
id: "storage.objects.list",
|
|
@@ -362,17 +473,31 @@ const toolFactories = {
|
|
|
362
473
|
"storage.objects.delete": (options) => fromGenerated(options, {
|
|
363
474
|
id: "storage.objects.delete",
|
|
364
475
|
generated: "deleteProjectBranchBucketObject",
|
|
365
|
-
run: (neon, input, signal) => neon.storage.objects.delete(
|
|
476
|
+
run: (neon, input, signal) => neon.storage.objects.delete({
|
|
477
|
+
projectId: input.project_id,
|
|
478
|
+
branchId: input.branch_id,
|
|
479
|
+
bucketName: input.bucket_name,
|
|
480
|
+
objectKey: input.object_key
|
|
481
|
+
}, { signal })
|
|
366
482
|
}),
|
|
367
483
|
"storage.objects.deleteByPrefix": (options) => fromGenerated(options, {
|
|
368
484
|
id: "storage.objects.deleteByPrefix",
|
|
369
485
|
generated: "deleteProjectBranchBucketObjectsByPrefix",
|
|
370
|
-
run: (neon, input, signal) => neon.storage.objects.deleteByPrefix(
|
|
486
|
+
run: (neon, input, signal) => neon.storage.objects.deleteByPrefix({
|
|
487
|
+
projectId: input.project_id,
|
|
488
|
+
branchId: input.branch_id,
|
|
489
|
+
bucketName: input.bucket_name,
|
|
490
|
+
prefix: input.prefix
|
|
491
|
+
}, { signal })
|
|
371
492
|
}),
|
|
372
493
|
"storage.objects.presign": (options) => fromGenerated(options, {
|
|
373
494
|
id: "storage.objects.presign",
|
|
374
495
|
generated: "presignProjectBranchBucketObject",
|
|
375
|
-
run: (neon, input, signal) => neon.storage.objects.presign(
|
|
496
|
+
run: (neon, input, signal) => neon.storage.objects.presign({
|
|
497
|
+
projectId: input.project_id,
|
|
498
|
+
branchId: input.branch_id,
|
|
499
|
+
bucketName: input.bucket_name,
|
|
500
|
+
objectKey: input.object_key,
|
|
376
501
|
operation: input.operation,
|
|
377
502
|
content_type: input.content_type,
|
|
378
503
|
expires_in_seconds: input.expires_in_seconds
|
|
@@ -383,27 +508,47 @@ const toolFactories = {
|
|
|
383
508
|
generated: "listProjectBranchFunctions",
|
|
384
509
|
omit: ["cursor"],
|
|
385
510
|
list: true,
|
|
386
|
-
run: (neon, input, signal) => collectPages(neon.functions.list(
|
|
511
|
+
run: (neon, input, signal) => collectPages(neon.functions.list({
|
|
512
|
+
projectId: input.project_id,
|
|
513
|
+
branchId: input.branch_id,
|
|
514
|
+
limit: input.limit
|
|
515
|
+
}, { signal }), input.limit)
|
|
387
516
|
}),
|
|
388
517
|
"functions.get": (options) => fromGenerated(options, {
|
|
389
518
|
id: "functions.get",
|
|
390
519
|
generated: "getProjectBranchFunction",
|
|
391
|
-
run: (neon, input, signal) => neon.functions.get(
|
|
520
|
+
run: (neon, input, signal) => neon.functions.get({
|
|
521
|
+
projectId: input.project_id,
|
|
522
|
+
branchId: input.branch_id,
|
|
523
|
+
slug: input.slug
|
|
524
|
+
}, { signal })
|
|
392
525
|
}),
|
|
393
526
|
"functions.update": (options) => fromGenerated(options, {
|
|
394
527
|
id: "functions.update",
|
|
395
528
|
generated: "updateProjectBranchFunction",
|
|
396
|
-
run: (neon, input, signal) => neon.functions.update(
|
|
529
|
+
run: (neon, input, signal) => neon.functions.update({
|
|
530
|
+
projectId: input.project_id,
|
|
531
|
+
branchId: input.branch_id,
|
|
532
|
+
slug: input.slug,
|
|
533
|
+
name: input.name
|
|
534
|
+
}, { signal })
|
|
397
535
|
}),
|
|
398
536
|
"functions.delete": (options) => fromGenerated(options, {
|
|
399
537
|
id: "functions.delete",
|
|
400
538
|
generated: "deleteProjectBranchFunction",
|
|
401
|
-
run: (neon, input, signal) => neon.functions.delete(
|
|
539
|
+
run: (neon, input, signal) => neon.functions.delete({
|
|
540
|
+
projectId: input.project_id,
|
|
541
|
+
branchId: input.branch_id,
|
|
542
|
+
slug: input.slug
|
|
543
|
+
}, { signal })
|
|
402
544
|
}),
|
|
403
545
|
"functions.deploy": (options) => fromGenerated(options, {
|
|
404
546
|
id: "functions.deploy",
|
|
405
547
|
generated: "createProjectBranchFunctionDeployment",
|
|
406
|
-
run: (neon, input, signal) => neon.functions.deploy(
|
|
548
|
+
run: (neon, input, signal) => neon.functions.deploy({
|
|
549
|
+
projectId: input.project_id,
|
|
550
|
+
branchId: input.branch_id,
|
|
551
|
+
slug: input.slug,
|
|
407
552
|
zip: input.zip === void 0 ? void 0 : decodeBase64(input.zip),
|
|
408
553
|
runtime: input.runtime,
|
|
409
554
|
environment: input.environment
|
|
@@ -414,12 +559,18 @@ const toolFactories = {
|
|
|
414
559
|
generated: "listProjectBranchCustomDomains",
|
|
415
560
|
omit: ["cursor"],
|
|
416
561
|
list: true,
|
|
417
|
-
run: (neon, input, signal) => collectPages(neon.functions.customDomains.list(
|
|
562
|
+
run: (neon, input, signal) => collectPages(neon.functions.customDomains.list({
|
|
563
|
+
projectId: input.project_id,
|
|
564
|
+
branchId: input.branch_id,
|
|
565
|
+
limit: input.limit
|
|
566
|
+
}, { signal }), input.limit)
|
|
418
567
|
}),
|
|
419
568
|
"functions.customDomains.register": (options) => fromGenerated(options, {
|
|
420
569
|
id: "functions.customDomains.register",
|
|
421
570
|
generated: "registerProjectBranchCustomDomain",
|
|
422
|
-
run: (neon, input, signal) => neon.functions.customDomains.register(
|
|
571
|
+
run: (neon, input, signal) => neon.functions.customDomains.register({
|
|
572
|
+
projectId: input.project_id,
|
|
573
|
+
branchId: input.branch_id,
|
|
423
574
|
domain: input.domain,
|
|
424
575
|
entity_type: input.entity_type,
|
|
425
576
|
entity_id: input.entity_id
|
|
@@ -428,42 +579,71 @@ const toolFactories = {
|
|
|
428
579
|
"functions.customDomains.delete": (options) => fromGenerated(options, {
|
|
429
580
|
id: "functions.customDomains.delete",
|
|
430
581
|
generated: "deleteProjectBranchCustomDomain",
|
|
431
|
-
run: (neon, input, signal) => neon.functions.customDomains.delete(
|
|
582
|
+
run: (neon, input, signal) => neon.functions.customDomains.delete({
|
|
583
|
+
projectId: input.project_id,
|
|
584
|
+
branchId: input.branch_id,
|
|
585
|
+
domain: input.domain
|
|
586
|
+
}, { signal })
|
|
432
587
|
}),
|
|
433
588
|
"triggers.list": (options) => fromGenerated(options, {
|
|
434
589
|
id: "triggers.list",
|
|
435
590
|
generated: "listProjectBranchTriggers",
|
|
436
|
-
run: (neon, input, signal) => neon.triggers.list(
|
|
591
|
+
run: (neon, input, signal) => neon.triggers.list({
|
|
592
|
+
projectId: input.project_id,
|
|
593
|
+
branchId: input.branch_id
|
|
594
|
+
}, { signal })
|
|
437
595
|
}),
|
|
438
596
|
"triggers.get": (options) => fromGenerated(options, {
|
|
439
597
|
id: "triggers.get",
|
|
440
598
|
generated: "getProjectBranchTrigger",
|
|
441
|
-
run: (neon, input, signal) => neon.triggers.get(
|
|
599
|
+
run: (neon, input, signal) => neon.triggers.get({
|
|
600
|
+
projectId: input.project_id,
|
|
601
|
+
branchId: input.branch_id,
|
|
602
|
+
triggerId: input.trigger_id
|
|
603
|
+
}, { signal })
|
|
442
604
|
}),
|
|
443
605
|
"triggers.create": (options) => fromGenerated(options, {
|
|
444
606
|
id: "triggers.create",
|
|
445
607
|
generated: "createProjectBranchTrigger",
|
|
446
|
-
run: (neon, input, signal) => neon.triggers.create(
|
|
608
|
+
run: (neon, input, signal) => neon.triggers.create({
|
|
609
|
+
projectId: input.project_id,
|
|
610
|
+
branchId: input.branch_id,
|
|
611
|
+
...input.body
|
|
612
|
+
}, { signal })
|
|
447
613
|
}),
|
|
448
614
|
"triggers.update": (options) => fromGenerated(options, {
|
|
449
615
|
id: "triggers.update",
|
|
450
616
|
generated: "updateProjectBranchTrigger",
|
|
451
|
-
run: (neon, input, signal) => neon.triggers.update(
|
|
617
|
+
run: (neon, input, signal) => neon.triggers.update({
|
|
618
|
+
projectId: input.project_id,
|
|
619
|
+
branchId: input.branch_id,
|
|
620
|
+
triggerId: input.trigger_id,
|
|
621
|
+
...input.body
|
|
622
|
+
}, { signal })
|
|
452
623
|
}),
|
|
453
624
|
"triggers.delete": (options) => fromGenerated(options, {
|
|
454
625
|
id: "triggers.delete",
|
|
455
626
|
generated: "deleteProjectBranchTrigger",
|
|
456
|
-
run: (neon, input, signal) => neon.triggers.delete(
|
|
627
|
+
run: (neon, input, signal) => neon.triggers.delete({
|
|
628
|
+
projectId: input.project_id,
|
|
629
|
+
branchId: input.branch_id,
|
|
630
|
+
triggerId: input.trigger_id
|
|
631
|
+
}, { signal })
|
|
457
632
|
}),
|
|
458
633
|
"credentials.list": (options) => fromGenerated(options, {
|
|
459
634
|
id: "credentials.list",
|
|
460
635
|
generated: "listCredentials",
|
|
461
|
-
run: (neon, input, signal) => neon.credentials.list(
|
|
636
|
+
run: (neon, input, signal) => neon.credentials.list({
|
|
637
|
+
projectId: input.project_id,
|
|
638
|
+
branchId: input.branch_id
|
|
639
|
+
}, { signal })
|
|
462
640
|
}),
|
|
463
641
|
"credentials.create": (options) => fromGenerated(options, {
|
|
464
642
|
id: "credentials.create",
|
|
465
643
|
generated: "createCredential",
|
|
466
|
-
run: (neon, input, signal) => neon.credentials.create(
|
|
644
|
+
run: (neon, input, signal) => neon.credentials.create({
|
|
645
|
+
projectId: input.project_id,
|
|
646
|
+
branchId: input.branch_id,
|
|
467
647
|
name: input.name,
|
|
468
648
|
scopes: input.scopes,
|
|
469
649
|
principal_type: input.principal_type
|
|
@@ -472,7 +652,11 @@ const toolFactories = {
|
|
|
472
652
|
"credentials.revoke": (options) => fromGenerated(options, {
|
|
473
653
|
id: "credentials.revoke",
|
|
474
654
|
generated: "revokeCredential",
|
|
475
|
-
run: (neon, input, signal) => neon.credentials.revoke(
|
|
655
|
+
run: (neon, input, signal) => neon.credentials.revoke({
|
|
656
|
+
projectId: input.project_id,
|
|
657
|
+
branchId: input.branch_id,
|
|
658
|
+
tokenId: input.token_id
|
|
659
|
+
}, { signal })
|
|
476
660
|
}),
|
|
477
661
|
"credentials.rotate": (options) => fromGenerated(options, {
|
|
478
662
|
id: "credentials.rotate",
|
|
@@ -483,12 +667,19 @@ const toolFactories = {
|
|
|
483
667
|
idempotentHint: false,
|
|
484
668
|
openWorldHint: false
|
|
485
669
|
},
|
|
486
|
-
run: (neon, input, signal) => neon.credentials.rotate(
|
|
670
|
+
run: (neon, input, signal) => neon.credentials.rotate({
|
|
671
|
+
projectId: input.project_id,
|
|
672
|
+
branchId: input.branch_id,
|
|
673
|
+
tokenId: input.token_id
|
|
674
|
+
}, { signal })
|
|
487
675
|
}),
|
|
488
676
|
"aiGateway.get": (options) => fromGenerated(options, {
|
|
489
677
|
id: "aiGateway.get",
|
|
490
678
|
generated: "getProjectBranchAiGateway",
|
|
491
|
-
run: (neon, input, signal) => neon.aiGateway.get(
|
|
679
|
+
run: (neon, input, signal) => neon.aiGateway.get({
|
|
680
|
+
projectId: input.project_id,
|
|
681
|
+
branchId: input.branch_id
|
|
682
|
+
}, { signal })
|
|
492
683
|
}),
|
|
493
684
|
"logs.query": (options) => fromGenerated(options, {
|
|
494
685
|
id: "logs.query",
|
|
@@ -497,7 +688,9 @@ const toolFactories = {
|
|
|
497
688
|
list: true,
|
|
498
689
|
annotations: logReadAnnotations,
|
|
499
690
|
requiresApproval: false,
|
|
500
|
-
run: (neon, input, signal) => collectPages(neon.logs.query(
|
|
691
|
+
run: (neon, input, signal) => collectPages(neon.logs.query({
|
|
692
|
+
projectId: input.project_id,
|
|
693
|
+
branchId: input.branch_id,
|
|
501
694
|
since: input.since,
|
|
502
695
|
start_time: input.start_time,
|
|
503
696
|
end_time: input.end_time,
|
|
@@ -516,12 +709,18 @@ const toolFactories = {
|
|
|
516
709
|
"logs.fields": (options) => fromGenerated(options, {
|
|
517
710
|
id: "logs.fields",
|
|
518
711
|
generated: "listProjectBranchLogFields",
|
|
519
|
-
run: (neon, input, signal) => neon.logs.fields(
|
|
712
|
+
run: (neon, input, signal) => neon.logs.fields({
|
|
713
|
+
projectId: input.project_id,
|
|
714
|
+
branchId: input.branch_id
|
|
715
|
+
}, { signal })
|
|
520
716
|
}),
|
|
521
717
|
"logs.fieldValues": (options) => fromGenerated(options, {
|
|
522
718
|
id: "logs.fieldValues",
|
|
523
719
|
generated: "listProjectBranchLogFieldValues",
|
|
524
|
-
run: (neon, input, signal) => neon.logs.fieldValues(
|
|
720
|
+
run: (neon, input, signal) => neon.logs.fieldValues({
|
|
721
|
+
projectId: input.project_id,
|
|
722
|
+
branchId: input.branch_id,
|
|
723
|
+
fieldName: input.field_name,
|
|
525
724
|
since: input.since,
|
|
526
725
|
start_time: input.start_time,
|
|
527
726
|
end_time: input.end_time,
|
|
@@ -532,12 +731,14 @@ const toolFactories = {
|
|
|
532
731
|
"snapshots.list": (options) => fromGenerated(options, {
|
|
533
732
|
id: "snapshots.list",
|
|
534
733
|
generated: "listSnapshots",
|
|
535
|
-
run: (neon, input, signal) => neon.snapshots.list(input.project_id, { signal })
|
|
734
|
+
run: (neon, input, signal) => neon.snapshots.list({ projectId: input.project_id }, { signal })
|
|
536
735
|
}),
|
|
537
736
|
"snapshots.create": (options) => fromGenerated(options, {
|
|
538
737
|
id: "snapshots.create",
|
|
539
738
|
generated: "createSnapshot",
|
|
540
|
-
run: (neon, input, signal) => neon.snapshots.create(
|
|
739
|
+
run: (neon, input, signal) => neon.snapshots.create({
|
|
740
|
+
projectId: input.project_id,
|
|
741
|
+
branchId: input.branch_id,
|
|
541
742
|
name: input.name,
|
|
542
743
|
timestamp: input.timestamp,
|
|
543
744
|
lsn: input.lsn,
|
|
@@ -547,7 +748,9 @@ const toolFactories = {
|
|
|
547
748
|
"snapshots.update": (options) => fromGenerated(options, {
|
|
548
749
|
id: "snapshots.update",
|
|
549
750
|
generated: "updateSnapshot",
|
|
550
|
-
run: (neon, input, signal) => neon.snapshots.update(
|
|
751
|
+
run: (neon, input, signal) => neon.snapshots.update({
|
|
752
|
+
projectId: input.project_id,
|
|
753
|
+
snapshotId: input.snapshot_id,
|
|
551
754
|
name: input.name,
|
|
552
755
|
expiresAt: input.expires_at
|
|
553
756
|
}, { signal })
|
|
@@ -555,13 +758,19 @@ const toolFactories = {
|
|
|
555
758
|
"snapshots.delete": (options) => fromGenerated(options, {
|
|
556
759
|
id: "snapshots.delete",
|
|
557
760
|
generated: "deleteSnapshot",
|
|
558
|
-
run: (neon, input, signal) => neon.snapshots.delete(
|
|
761
|
+
run: (neon, input, signal) => neon.snapshots.delete({
|
|
762
|
+
projectId: input.project_id,
|
|
763
|
+
snapshotId: input.snapshot_id
|
|
764
|
+
}, { signal })
|
|
559
765
|
}),
|
|
560
766
|
"snapshots.restore": restoreSnapshotTool,
|
|
561
767
|
"snapshots.getSchedule": (options) => fromGenerated(options, {
|
|
562
768
|
id: "snapshots.getSchedule",
|
|
563
769
|
generated: "getSnapshotSchedule",
|
|
564
|
-
run: (neon, input, signal) => neon.snapshots.getSchedule(
|
|
770
|
+
run: (neon, input, signal) => neon.snapshots.getSchedule({
|
|
771
|
+
projectId: input.project_id,
|
|
772
|
+
branchId: input.branch_id
|
|
773
|
+
}, { signal })
|
|
565
774
|
}),
|
|
566
775
|
"snapshots.setSchedule": setScheduleTool,
|
|
567
776
|
"operations.list": (options) => fromGenerated(options, {
|
|
@@ -569,22 +778,30 @@ const toolFactories = {
|
|
|
569
778
|
generated: "listProjectOperations",
|
|
570
779
|
omit: ["cursor"],
|
|
571
780
|
list: true,
|
|
572
|
-
run: (neon, input, signal) => collectPages(neon.operations.list(input.project_id, { signal }), input.limit)
|
|
781
|
+
run: (neon, input, signal) => collectPages(neon.operations.list({ projectId: input.project_id }, { signal }), input.limit)
|
|
573
782
|
}),
|
|
574
783
|
"operations.get": (options) => fromGenerated(options, {
|
|
575
784
|
id: "operations.get",
|
|
576
785
|
generated: "getProjectOperation",
|
|
577
|
-
run: (neon, input, signal) => neon.operations.get(
|
|
786
|
+
run: (neon, input, signal) => neon.operations.get({
|
|
787
|
+
projectId: input.project_id,
|
|
788
|
+
operationId: input.operation_id
|
|
789
|
+
}, { signal })
|
|
578
790
|
}),
|
|
579
791
|
"auth.get": (options) => fromGenerated(options, {
|
|
580
792
|
id: "auth.get",
|
|
581
793
|
generated: "getNeonAuth",
|
|
582
|
-
run: (neon, input, signal) => neon.auth.get(
|
|
794
|
+
run: (neon, input, signal) => neon.auth.get({
|
|
795
|
+
projectId: input.project_id,
|
|
796
|
+
branchId: input.branch_id
|
|
797
|
+
}, { signal })
|
|
583
798
|
}),
|
|
584
799
|
"auth.create": (options) => fromGenerated(options, {
|
|
585
800
|
id: "auth.create",
|
|
586
801
|
generated: "createNeonAuth",
|
|
587
|
-
run: (neon, input, signal) => neon.auth.create(
|
|
802
|
+
run: (neon, input, signal) => neon.auth.create({
|
|
803
|
+
projectId: input.project_id,
|
|
804
|
+
branchId: input.branch_id,
|
|
588
805
|
auth_provider: input.auth_provider,
|
|
589
806
|
database_name: input.database_name
|
|
590
807
|
}, { signal })
|
|
@@ -592,22 +809,35 @@ const toolFactories = {
|
|
|
592
809
|
"auth.disable": (options) => fromGenerated(options, {
|
|
593
810
|
id: "auth.disable",
|
|
594
811
|
generated: "disableNeonAuth",
|
|
595
|
-
run: (neon, input, signal) => neon.auth.disable(
|
|
812
|
+
run: (neon, input, signal) => neon.auth.disable({
|
|
813
|
+
projectId: input.project_id,
|
|
814
|
+
branchId: input.branch_id,
|
|
815
|
+
deleteData: input.delete_data
|
|
816
|
+
}, { signal })
|
|
596
817
|
}),
|
|
597
818
|
"auth.updateConfig": (options) => fromGenerated(options, {
|
|
598
819
|
id: "auth.updateConfig",
|
|
599
820
|
generated: "updateNeonAuthConfig",
|
|
600
|
-
run: (neon, input, signal) => neon.auth.updateConfig(
|
|
821
|
+
run: (neon, input, signal) => neon.auth.updateConfig({
|
|
822
|
+
projectId: input.project_id,
|
|
823
|
+
branchId: input.branch_id,
|
|
824
|
+
name: input.name
|
|
825
|
+
}, { signal })
|
|
601
826
|
}),
|
|
602
827
|
"auth.oauthProviders.list": (options) => fromGenerated(options, {
|
|
603
828
|
id: "auth.oauthProviders.list",
|
|
604
829
|
generated: "listBranchNeonAuthOauthProviders",
|
|
605
|
-
run: (neon, input, signal) => neon.auth.oauthProviders.list(
|
|
830
|
+
run: (neon, input, signal) => neon.auth.oauthProviders.list({
|
|
831
|
+
projectId: input.project_id,
|
|
832
|
+
branchId: input.branch_id
|
|
833
|
+
}, { signal })
|
|
606
834
|
}),
|
|
607
835
|
"auth.oauthProviders.add": (options) => fromGenerated(options, {
|
|
608
836
|
id: "auth.oauthProviders.add",
|
|
609
837
|
generated: "addBranchNeonAuthOauthProvider",
|
|
610
|
-
run: (neon, input, signal) => neon.auth.oauthProviders.add(
|
|
838
|
+
run: (neon, input, signal) => neon.auth.oauthProviders.add({
|
|
839
|
+
projectId: input.project_id,
|
|
840
|
+
branchId: input.branch_id,
|
|
611
841
|
id: input.id,
|
|
612
842
|
client_id: input.client_id,
|
|
613
843
|
client_secret: input.client_secret,
|
|
@@ -617,7 +847,10 @@ const toolFactories = {
|
|
|
617
847
|
"auth.oauthProviders.update": (options) => fromGenerated(options, {
|
|
618
848
|
id: "auth.oauthProviders.update",
|
|
619
849
|
generated: "updateBranchNeonAuthOauthProvider",
|
|
620
|
-
run: (neon, input, signal) => neon.auth.oauthProviders.update(
|
|
850
|
+
run: (neon, input, signal) => neon.auth.oauthProviders.update({
|
|
851
|
+
projectId: input.project_id,
|
|
852
|
+
branchId: input.branch_id,
|
|
853
|
+
providerId: input.oauth_provider_id,
|
|
621
854
|
client_id: input.client_id,
|
|
622
855
|
client_secret: input.client_secret,
|
|
623
856
|
microsoft_tenant_id: input.microsoft_tenant_id
|
|
@@ -626,17 +859,26 @@ const toolFactories = {
|
|
|
626
859
|
"auth.oauthProviders.delete": (options) => fromGenerated(options, {
|
|
627
860
|
id: "auth.oauthProviders.delete",
|
|
628
861
|
generated: "deleteBranchNeonAuthOauthProvider",
|
|
629
|
-
run: (neon, input, signal) => neon.auth.oauthProviders.delete(
|
|
862
|
+
run: (neon, input, signal) => neon.auth.oauthProviders.delete({
|
|
863
|
+
projectId: input.project_id,
|
|
864
|
+
branchId: input.branch_id,
|
|
865
|
+
providerId: input.oauth_provider_id
|
|
866
|
+
}, { signal })
|
|
630
867
|
}),
|
|
631
868
|
"auth.trustedDomains.list": (options) => fromGenerated(options, {
|
|
632
869
|
id: "auth.trustedDomains.list",
|
|
633
870
|
generated: "listBranchNeonAuthTrustedDomains",
|
|
634
|
-
run: (neon, input, signal) => neon.auth.trustedDomains.list(
|
|
871
|
+
run: (neon, input, signal) => neon.auth.trustedDomains.list({
|
|
872
|
+
projectId: input.project_id,
|
|
873
|
+
branchId: input.branch_id
|
|
874
|
+
}, { signal })
|
|
635
875
|
}),
|
|
636
876
|
"auth.trustedDomains.add": (options) => fromGenerated(options, {
|
|
637
877
|
id: "auth.trustedDomains.add",
|
|
638
878
|
generated: "addBranchNeonAuthTrustedDomain",
|
|
639
|
-
run: (neon, input, signal) => neon.auth.trustedDomains.add(
|
|
879
|
+
run: (neon, input, signal) => neon.auth.trustedDomains.add({
|
|
880
|
+
projectId: input.project_id,
|
|
881
|
+
branchId: input.branch_id,
|
|
640
882
|
domain: input.domain,
|
|
641
883
|
auth_provider: input.auth_provider
|
|
642
884
|
}, { signal })
|
|
@@ -644,7 +886,9 @@ const toolFactories = {
|
|
|
644
886
|
"auth.trustedDomains.delete": (options) => fromGenerated(options, {
|
|
645
887
|
id: "auth.trustedDomains.delete",
|
|
646
888
|
generated: "deleteBranchNeonAuthTrustedDomain",
|
|
647
|
-
run: (neon, input, signal) => neon.auth.trustedDomains.delete(
|
|
889
|
+
run: (neon, input, signal) => neon.auth.trustedDomains.delete({
|
|
890
|
+
projectId: input.project_id,
|
|
891
|
+
branchId: input.branch_id,
|
|
648
892
|
auth_provider: input.auth_provider,
|
|
649
893
|
domains: input.domains
|
|
650
894
|
}, { signal })
|
|
@@ -652,7 +896,9 @@ const toolFactories = {
|
|
|
652
896
|
"auth.users.create": (options) => fromGenerated(options, {
|
|
653
897
|
id: "auth.users.create",
|
|
654
898
|
generated: "createBranchNeonAuthNewUser",
|
|
655
|
-
run: (neon, input, signal) => neon.auth.users.create(
|
|
899
|
+
run: (neon, input, signal) => neon.auth.users.create({
|
|
900
|
+
projectId: input.project_id,
|
|
901
|
+
branchId: input.branch_id,
|
|
656
902
|
email: input.email,
|
|
657
903
|
name: input.name
|
|
658
904
|
}, { signal })
|
|
@@ -660,12 +906,21 @@ const toolFactories = {
|
|
|
660
906
|
"auth.users.delete": (options) => fromGenerated(options, {
|
|
661
907
|
id: "auth.users.delete",
|
|
662
908
|
generated: "deleteBranchNeonAuthUser",
|
|
663
|
-
run: (neon, input, signal) => neon.auth.users.delete(
|
|
909
|
+
run: (neon, input, signal) => neon.auth.users.delete({
|
|
910
|
+
projectId: input.project_id,
|
|
911
|
+
branchId: input.branch_id,
|
|
912
|
+
authUserId: input.auth_user_id
|
|
913
|
+
}, { signal })
|
|
664
914
|
}),
|
|
665
915
|
"auth.users.updateRole": (options) => fromGenerated(options, {
|
|
666
916
|
id: "auth.users.updateRole",
|
|
667
917
|
generated: "updateNeonAuthUserRole",
|
|
668
|
-
run: (neon, input, signal) => neon.auth.users.updateRole(
|
|
918
|
+
run: (neon, input, signal) => neon.auth.users.updateRole({
|
|
919
|
+
projectId: input.project_id,
|
|
920
|
+
branchId: input.branch_id,
|
|
921
|
+
authUserId: input.auth_user_id,
|
|
922
|
+
roles: input.roles
|
|
923
|
+
}, { signal })
|
|
669
924
|
}),
|
|
670
925
|
"consumption.perProject": (options) => fromGenerated(options, {
|
|
671
926
|
id: "consumption.perProject",
|
|
@@ -722,12 +977,12 @@ const toolFactories = {
|
|
|
722
977
|
"apiKeys.create": (options) => fromGenerated(options, {
|
|
723
978
|
id: "apiKeys.create",
|
|
724
979
|
generated: "createApiKey",
|
|
725
|
-
run: (neon, input, signal) => neon.apiKeys.create(input.key_name, { signal })
|
|
980
|
+
run: (neon, input, signal) => neon.apiKeys.create({ keyName: input.key_name }, { signal })
|
|
726
981
|
}),
|
|
727
982
|
"apiKeys.revoke": (options) => fromGenerated(options, {
|
|
728
983
|
id: "apiKeys.revoke",
|
|
729
984
|
generated: "revokeApiKey",
|
|
730
|
-
run: (neon, input, signal) => neon.apiKeys.revoke(input.key_id, { signal })
|
|
985
|
+
run: (neon, input, signal) => neon.apiKeys.revoke({ keyId: input.key_id }, { signal })
|
|
731
986
|
}),
|
|
732
987
|
"regions.list": (options) => bindTool(options, {
|
|
733
988
|
operationId: "regions.list",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"composed.d.ts","sourceRoot":"","sources":["../../../src/lib/ergonomic/composed.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAyB,KAAK,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAmD1E,eAAO,MAAM,uBAAuB;;;;;;;;;;kBAqBjC,CAAC;AAEJ,eAAO,MAAM,iCAAiC;;;;;;;;;;kBAM5C,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAEnC,CAAC;AAEH,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAG7C,CAAC;AAEH,eAAO,MAAM,qBAAqB;;kBAEhC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;kBAOrC,CAAC;AAIH,eAAO,MAAM,wBAAwB;;;;;;;;;kBASnC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;kBAOtC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;kBAWrC,CAAC;AAIH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;kBASjC,CAAC;AAEH,eAAO,MAAM,gBAAgB,GAAI,SAAS,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0CzD,CAAC;AAEH,eAAO,MAAM,0BAA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,eAAO,MAAM,iBAAiB,GAAI,SAAS,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqB1D,CAAC;AAEH,eAAO,MAAM,2BAA2B,GAAI,SAAS,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsBpE,CAAC;AAEH,eAAO,MAAM,cAAc,GAAI,SAAS,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyBvD,CAAC;AAEH,eAAO,MAAM,mBAAmB,GAAI,SAAS,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+B5D,CAAC;AAEH,eAAO,MAAM,iBAAiB,GAAI,SAAS,iBAAiB;;;;;;;;;;;EA0C1D,CAAC;AAEH,eAAO,MAAM,oBAAoB,GAAI,SAAS,iBAAiB;;;;;;;yDA0C7D,CAAC;AAEH,eAAO,MAAM,mBAAmB,GAAI,SAAS,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+B5D,CAAC;AAEH,eAAO,MAAM,eAAe,GAAI,SAAS,iBAAiB;;;;;;;;;;;;;;mDA6BxD,CAAC"}
|
|
@@ -111,12 +111,14 @@ const createBranchTool = (options) => bindTool(options, {
|
|
|
111
111
|
tags: ["Branch"]
|
|
112
112
|
}
|
|
113
113
|
}, (neon, input, signal) => {
|
|
114
|
-
if (input.no_compute === true) return neon.branches.create(
|
|
114
|
+
if (input.no_compute === true) return neon.branches.create({
|
|
115
|
+
projectId: input.project_id,
|
|
115
116
|
name: input.name,
|
|
116
117
|
parent_id: input.parent_id,
|
|
117
118
|
noCompute: true
|
|
118
119
|
}, { signal });
|
|
119
|
-
return neon.branches.create(
|
|
120
|
+
return neon.branches.create({
|
|
121
|
+
projectId: input.project_id,
|
|
120
122
|
name: input.name,
|
|
121
123
|
parent_id: input.parent_id,
|
|
122
124
|
compute: mapCompute(input.compute)
|
|
@@ -137,14 +139,13 @@ const createBranchAndConnectTool = (options) => bindTool(options, {
|
|
|
137
139
|
deprecated: false,
|
|
138
140
|
tags: ["Branch"]
|
|
139
141
|
}
|
|
140
|
-
}, (neon, input, signal) => neon.branches.createAndConnect(
|
|
142
|
+
}, (neon, input, signal) => neon.branches.createAndConnect({
|
|
143
|
+
projectId: input.project_id,
|
|
141
144
|
name: input.name,
|
|
142
145
|
parentId: input.parent_id,
|
|
143
|
-
compute: mapCompute(input.compute)
|
|
144
|
-
}, {
|
|
145
|
-
signal,
|
|
146
|
+
compute: mapCompute(input.compute),
|
|
146
147
|
...input.pooled === void 0 ? {} : { pooled: input.pooled }
|
|
147
|
-
}));
|
|
148
|
+
}, { signal }));
|
|
148
149
|
const createProjectTool = (options) => bindTool(options, {
|
|
149
150
|
operationId: "projects.create",
|
|
150
151
|
id: publishedId("projects.create"),
|
|
@@ -176,13 +177,7 @@ const createProjectAndConnectTool = (options) => bindTool(options, {
|
|
|
176
177
|
deprecated: false,
|
|
177
178
|
tags: ["Project"]
|
|
178
179
|
}
|
|
179
|
-
}, (neon, input, signal) => {
|
|
180
|
-
const { pooled, ...project } = input;
|
|
181
|
-
return neon.projects.createAndConnect(project, {
|
|
182
|
-
signal,
|
|
183
|
-
...pooled === void 0 ? {} : { pooled }
|
|
184
|
-
});
|
|
185
|
-
});
|
|
180
|
+
}, (neon, input, signal) => neon.projects.createAndConnect(input, { signal }));
|
|
186
181
|
const getDefaultTool = (options) => bindTool(options, {
|
|
187
182
|
operationId: "branches.getDefault",
|
|
188
183
|
id: publishedId("branches.getDefault"),
|
|
@@ -198,7 +193,7 @@ const getDefaultTool = (options) => bindTool(options, {
|
|
|
198
193
|
deprecated: false,
|
|
199
194
|
tags: ["Branch"]
|
|
200
195
|
}
|
|
201
|
-
}, (neon, input, signal) => neon.branches.getDefault(input.project_id, { signal }));
|
|
196
|
+
}, (neon, input, signal) => neon.branches.getDefault({ projectId: input.project_id }, { signal }));
|
|
202
197
|
const resetFromParentTool = (options) => bindTool(options, {
|
|
203
198
|
operationId: "branches.resetFromParent",
|
|
204
199
|
id: publishedId("branches.resetFromParent"),
|
|
@@ -214,7 +209,11 @@ const resetFromParentTool = (options) => bindTool(options, {
|
|
|
214
209
|
deprecated: false,
|
|
215
210
|
tags: ["Branch"]
|
|
216
211
|
}
|
|
217
|
-
}, (neon, input, signal) => neon.branches.resetFromParent(
|
|
212
|
+
}, (neon, input, signal) => neon.branches.resetFromParent({
|
|
213
|
+
projectId: input.project_id,
|
|
214
|
+
branchId: input.branch_id,
|
|
215
|
+
...input.preserve_under_name === void 0 ? void 0 : { preserveUnderName: input.preserve_under_name }
|
|
216
|
+
}, { signal }));
|
|
218
217
|
const compareSchemaTool = (options) => bindTool(options, {
|
|
219
218
|
operationId: "branches.compareSchema",
|
|
220
219
|
id: publishedId("branches.compareSchema"),
|
|
@@ -230,7 +229,9 @@ const compareSchemaTool = (options) => bindTool(options, {
|
|
|
230
229
|
deprecated: false,
|
|
231
230
|
tags: ["Branch"]
|
|
232
231
|
}
|
|
233
|
-
}, (neon, input, signal) => neon.branches.compareSchema(
|
|
232
|
+
}, (neon, input, signal) => neon.branches.compareSchema({
|
|
233
|
+
projectId: input.project_id,
|
|
234
|
+
branchId: input.branch_id,
|
|
234
235
|
databaseName: input.database_name,
|
|
235
236
|
...input.base_branch_id === void 0 ? {} : { baseBranchId: input.base_branch_id },
|
|
236
237
|
...input.lsn === void 0 ? {} : { lsn: input.lsn },
|
|
@@ -276,7 +277,9 @@ const restoreSnapshotTool = (options) => bindTool(options, {
|
|
|
276
277
|
deprecated: false,
|
|
277
278
|
tags: ["Snapshot"]
|
|
278
279
|
}
|
|
279
|
-
}, (neon, input, signal) => neon.snapshots.restore(
|
|
280
|
+
}, (neon, input, signal) => neon.snapshots.restore({
|
|
281
|
+
projectId: input.project_id,
|
|
282
|
+
snapshotId: input.snapshot_id,
|
|
280
283
|
name: input.name,
|
|
281
284
|
targetBranchId: input.target_branch_id,
|
|
282
285
|
finalize: input.finalize
|
|
@@ -296,6 +299,10 @@ const setScheduleTool = (options) => bindTool(options, {
|
|
|
296
299
|
deprecated: false,
|
|
297
300
|
tags: ["Snapshot"]
|
|
298
301
|
}
|
|
299
|
-
}, (neon, input, signal) => neon.snapshots.setSchedule(
|
|
302
|
+
}, (neon, input, signal) => neon.snapshots.setSchedule({
|
|
303
|
+
projectId: input.project_id,
|
|
304
|
+
branchId: input.branch_id,
|
|
305
|
+
schedule: input.schedule
|
|
306
|
+
}, { signal }));
|
|
300
307
|
//#endregion
|
|
301
308
|
export { compareSchemaInputSchema, compareSchemaTool, connectionStringInputSchema, connectionStringTool, createBranchAndConnectInputSchema, createBranchAndConnectTool, createBranchInputSchema, createBranchTool, createProjectAndConnectInputSchema, createProjectAndConnectTool, createProjectInputSchema, createProjectTool, getDefaultInputSchema, getDefaultTool, resetFromParentInputSchema, resetFromParentTool, restoreSnapshotInputSchema, restoreSnapshotTool, setScheduleInputSchema, setScheduleTool };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neon/tools",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.4",
|
|
4
4
|
"description": "Agent tools for the Neon SDK ergonomic client, compatible with MCP, Eve, and Mastra.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"neon",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
],
|
|
70
70
|
"dependencies": {
|
|
71
71
|
"zod": "^4.4.3",
|
|
72
|
-
"@neon/sdk": "
|
|
72
|
+
"@neon/sdk": "5.0.0"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@hey-api/openapi-ts": "0.98.2",
|