@neon/tools 2.8.0 → 2.10.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 +3 -3
- package/dist/generated/zod.gen.d.ts +312 -312
- package/dist/generated/zod.gen.d.ts.map +1 -1
- package/dist/generated/zod.gen.js +1896 -1426
- package/dist/lib/ergonomic/catalog.d.ts +25 -0
- package/dist/lib/ergonomic/catalog.d.ts.map +1 -1
- package/dist/lib/ergonomic/catalog.js +2 -1
- package/dist/lib/ergonomic/composed.d.ts +38 -0
- package/dist/lib/ergonomic/composed.d.ts.map +1 -1
- package/dist/lib/ergonomic/composed.js +44 -4
- package/dist/lib/ergonomic/ids.d.ts +2 -2
- package/dist/lib/ergonomic/ids.d.ts.map +1 -1
- package/dist/lib/ergonomic/ids.js +7 -2
- package/dist/operations.gen.js +20 -20
- package/package.json +2 -2
|
@@ -2519,6 +2519,31 @@ export declare const toolFactories: {
|
|
|
2519
2519
|
values: string[];
|
|
2520
2520
|
is_truncated: boolean;
|
|
2521
2521
|
}>;
|
|
2522
|
+
"logs.loki.queryRange": (options: ToolClientOptions) => import("../operation.js").NeonTool<z.ZodObject<{
|
|
2523
|
+
project_id: z.ZodString;
|
|
2524
|
+
branch_id: z.ZodString;
|
|
2525
|
+
query: z.ZodString;
|
|
2526
|
+
since: z.ZodOptional<z.ZodString>;
|
|
2527
|
+
start: z.ZodOptional<z.ZodString>;
|
|
2528
|
+
end: z.ZodOptional<z.ZodString>;
|
|
2529
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
2530
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
2531
|
+
forward: "forward";
|
|
2532
|
+
backward: "backward";
|
|
2533
|
+
}>>;
|
|
2534
|
+
}, z.core.$strict>, "query_range_logs_loki", {
|
|
2535
|
+
status: "success";
|
|
2536
|
+
data: {
|
|
2537
|
+
resultType: "streams";
|
|
2538
|
+
result: {
|
|
2539
|
+
stream: {
|
|
2540
|
+
[x: string]: string;
|
|
2541
|
+
};
|
|
2542
|
+
values: string[][];
|
|
2543
|
+
}[];
|
|
2544
|
+
};
|
|
2545
|
+
warnings?: string[] | null | undefined;
|
|
2546
|
+
}>;
|
|
2522
2547
|
"snapshots.list": (options: ToolClientOptions) => import("../operation.js").NeonTool<z.ZodObject<{
|
|
2523
2548
|
project_id: z.ZodString;
|
|
2524
2549
|
}, z.core.$strict>, "list_snapshots", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../../src/lib/ergonomic/catalog.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAMN,KAAK,iBAAiB,EACtB,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../../src/lib/ergonomic/catalog.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAMN,KAAK,iBAAiB,EACtB,MAAM,WAAW,CAAC;AAenB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAgC3C,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,UAAU,CAAC,CAAC;AAE7D,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+/D6C,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { decodeBase64 } from "../binary.js";
|
|
2
2
|
import { bindTool, collectObjectList, collectPages, fromGenerated, publishedId } from "./bind.js";
|
|
3
|
-
import { compareSchemaTool, connectionStringTool, createBranchAndConnectTool, createBranchTool, createProjectAndConnectTool, createProjectTool, createRoleTool, getDefaultTool, resetFromParentTool, restoreSnapshotTool, setScheduleTool } from "./composed.js";
|
|
3
|
+
import { compareSchemaTool, connectionStringTool, createBranchAndConnectTool, createBranchTool, createProjectAndConnectTool, createProjectTool, createRoleTool, getDefaultTool, lokiQueryRangeTool, resetFromParentTool, restoreSnapshotTool, setScheduleTool } from "./composed.js";
|
|
4
4
|
import * as z from "zod";
|
|
5
5
|
// src/lib/ergonomic/catalog.ts
|
|
6
6
|
const logReadAnnotations = {
|
|
@@ -784,6 +784,7 @@ const toolFactories = {
|
|
|
784
784
|
limit: input.limit
|
|
785
785
|
}, { signal })
|
|
786
786
|
}),
|
|
787
|
+
"logs.loki.queryRange": lokiQueryRangeTool,
|
|
787
788
|
"snapshots.list": (options) => fromGenerated(options, {
|
|
788
789
|
id: "snapshots.list",
|
|
789
790
|
generated: "listSnapshots",
|
|
@@ -157,6 +157,44 @@ export declare const compareSchemaInputSchema: z.ZodObject<{
|
|
|
157
157
|
base_lsn: z.ZodOptional<z.ZodString>;
|
|
158
158
|
base_timestamp: z.ZodOptional<z.ZodISODateTime>;
|
|
159
159
|
}, z.core.$strict>;
|
|
160
|
+
export declare const lokiQueryRangeInputSchema: z.ZodObject<{
|
|
161
|
+
project_id: z.ZodString;
|
|
162
|
+
branch_id: z.ZodString;
|
|
163
|
+
query: z.ZodString;
|
|
164
|
+
since: z.ZodOptional<z.ZodString>;
|
|
165
|
+
start: z.ZodOptional<z.ZodString>;
|
|
166
|
+
end: z.ZodOptional<z.ZodString>;
|
|
167
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
168
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
169
|
+
forward: "forward";
|
|
170
|
+
backward: "backward";
|
|
171
|
+
}>>;
|
|
172
|
+
}, z.core.$strict>;
|
|
173
|
+
export declare const lokiQueryRangeTool: (options: ToolClientOptions) => import("../operation.js").NeonTool<z.ZodObject<{
|
|
174
|
+
project_id: z.ZodString;
|
|
175
|
+
branch_id: z.ZodString;
|
|
176
|
+
query: z.ZodString;
|
|
177
|
+
since: z.ZodOptional<z.ZodString>;
|
|
178
|
+
start: z.ZodOptional<z.ZodString>;
|
|
179
|
+
end: z.ZodOptional<z.ZodString>;
|
|
180
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
181
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
182
|
+
forward: "forward";
|
|
183
|
+
backward: "backward";
|
|
184
|
+
}>>;
|
|
185
|
+
}, z.core.$strict>, "query_range_logs_loki", {
|
|
186
|
+
status: "success";
|
|
187
|
+
data: {
|
|
188
|
+
resultType: "streams";
|
|
189
|
+
result: {
|
|
190
|
+
stream: {
|
|
191
|
+
[x: string]: string;
|
|
192
|
+
};
|
|
193
|
+
values: string[][];
|
|
194
|
+
}[];
|
|
195
|
+
};
|
|
196
|
+
warnings?: string[] | null | undefined;
|
|
197
|
+
}>;
|
|
160
198
|
export declare const connectionStringInputSchema: z.ZodObject<{
|
|
161
199
|
project_id: z.ZodString;
|
|
162
200
|
branch_id: z.ZodOptional<z.ZodString>;
|
|
@@ -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;
|
|
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;AAsD1E,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,yBAAyB;;;;;;;;;;;;kBAmCpC,CAAC;AAEH,eAAO,MAAM,kBAAkB,GAAI,SAAS,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;EAuC3D,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;kBAOtC,CAAC;AAOH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;kBA4C/B,CAAC;AAEJ,eAAO,MAAM,0BAA0B;;;;;;kBAWrC,CAAC;AAIH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;kBAWjC,CAAC;AAEH,eAAO,MAAM,gBAAgB,GAAI,SAAS,iBA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;;;;;;;;;;;;;;;;;;EA+B5D,CAAC;AAEH,eAAO,MAAM,eAAe,GAAI,SAAS,iBAAiB;;;;;;;;;;;;;;mDA6BxD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { zBackupScheduleItem, zBranchCreateRequest, zBranchRestoreRequest, zComputeUnit, zCreateProjectBody, zCreateProjectBranchPath, zCreateProjectBranchRoleBody, zCreateProjectBranchRolePath, zGetConnectionUriPath, zGetConnectionUriQuery, zGetProjectBranchSchemaComparisonPath, zGetProjectBranchSchemaComparisonQuery, zListProjectBranchesPath, zRestoreProjectBranchPath, zRestoreSnapshotBody, zRestoreSnapshotPath, zSetSnapshotSchedulePath, zSuspendTimeoutSeconds } from "../../generated/zod.gen.js";
|
|
1
|
+
import { zBackupScheduleItem, zBranchCreateRequest, zBranchRestoreRequest, zComputeUnit, zCreateProjectBody, zCreateProjectBranchPath, zCreateProjectBranchRoleBody, zCreateProjectBranchRolePath, zGetConnectionUriPath, zGetConnectionUriQuery, zGetProjectBranchSchemaComparisonPath, zGetProjectBranchSchemaComparisonQuery, zListProjectBranchesPath, zQueryProjectBranchLogsPath, zRestoreProjectBranchPath, zRestoreSnapshotBody, zRestoreSnapshotPath, zSetSnapshotSchedulePath, zSuspendTimeoutSeconds } from "../../generated/zod.gen.js";
|
|
2
2
|
import { bindTool, publishedId } from "./bind.js";
|
|
3
3
|
import * as z from "zod";
|
|
4
4
|
// src/lib/ergonomic/composed.ts
|
|
@@ -18,7 +18,7 @@ const computeSettingsSchema = z.strictObject({
|
|
|
18
18
|
min_cu: zComputeUnit.optional(),
|
|
19
19
|
max_cu: zComputeUnit.optional(),
|
|
20
20
|
suspend_timeout_seconds: zSuspendTimeoutSeconds.optional()
|
|
21
|
-
}).optional();
|
|
21
|
+
}).describe("Autoscaling limits and suspend timeout for the read-write endpoint.").optional();
|
|
22
22
|
const mapCompute = (compute) => compute === void 0 ? void 0 : {
|
|
23
23
|
minCu: compute.min_cu,
|
|
24
24
|
maxCu: compute.max_cu,
|
|
@@ -67,6 +67,46 @@ const compareSchemaInputSchema = z.strictObject({
|
|
|
67
67
|
base_lsn: compareQuery.base_lsn,
|
|
68
68
|
base_timestamp: compareQuery.base_timestamp
|
|
69
69
|
});
|
|
70
|
+
const lokiQueryRangeInputSchema = z.strictObject({
|
|
71
|
+
project_id: zQueryProjectBranchLogsPath.shape.project_id,
|
|
72
|
+
branch_id: zQueryProjectBranchLogsPath.shape.branch_id,
|
|
73
|
+
query: z.string().min(1).describe("LogQL stream selector with optional line filters, e.g. {entity_type=\"function\"} |= \"error\". The source label is entity_type. No parsers, formatting stages, or metric queries."),
|
|
74
|
+
since: z.string().describe("Lookback as a Go duration such as 30m or 24h, ending at end or now. Defaults to 1h. start takes precedence.").optional(),
|
|
75
|
+
start: z.string().describe("Window start as RFC 3339 or Unix nanoseconds.").optional(),
|
|
76
|
+
end: z.string().describe("Window end as RFC 3339 or Unix nanoseconds. Defaults to now.").optional(),
|
|
77
|
+
limit: z.number().int().positive().describe("Maximum log lines. The server enforces its own cap.").optional(),
|
|
78
|
+
direction: z.enum(["forward", "backward"]).describe("backward (default) is newest first.").optional()
|
|
79
|
+
});
|
|
80
|
+
const lokiQueryRangeTool = (options) => bindTool(options, {
|
|
81
|
+
operationId: "logs.loki.queryRange",
|
|
82
|
+
id: publishedId("logs.loki.queryRange"),
|
|
83
|
+
title: "Query branch logs (Loki)",
|
|
84
|
+
description: "Run a LogQL range query on the branch's Loki-compatible read API. Returns Loki's response: data.result groups lines by stream labels; each value is [nanosecond timestamp string, line]. No cursor: a result with limit lines, or the 10,000-line server cap (no warning), may be incomplete, so narrow the window or selector. For structured filters and cursor pagination use the logs query tool. The log fields tools list label names and values.",
|
|
85
|
+
inputSchema: lokiQueryRangeInputSchema,
|
|
86
|
+
annotations: {
|
|
87
|
+
readOnlyHint: true,
|
|
88
|
+
destructiveHint: false,
|
|
89
|
+
idempotentHint: true,
|
|
90
|
+
openWorldHint: false
|
|
91
|
+
},
|
|
92
|
+
requiresApproval: false,
|
|
93
|
+
metadata: {
|
|
94
|
+
method: "GET",
|
|
95
|
+
path: "/telemetry/v1/projects/{project_id}/branches/{branch_id}/loki/api/v1/query_range",
|
|
96
|
+
stability: "beta",
|
|
97
|
+
deprecated: false,
|
|
98
|
+
tags: ["Branch"]
|
|
99
|
+
}
|
|
100
|
+
}, (neon, input, signal) => neon.logs.loki.queryRange({
|
|
101
|
+
projectId: input.project_id,
|
|
102
|
+
branchId: input.branch_id,
|
|
103
|
+
query: input.query,
|
|
104
|
+
since: input.since,
|
|
105
|
+
start: input.start,
|
|
106
|
+
end: input.end,
|
|
107
|
+
limit: input.limit,
|
|
108
|
+
direction: input.direction
|
|
109
|
+
}, { signal }));
|
|
70
110
|
const connectionStringInputSchema = z.strictObject({
|
|
71
111
|
project_id: zGetConnectionUriPath.shape.project_id,
|
|
72
112
|
branch_id: zGetConnectionUriQuery.shape.branch_id,
|
|
@@ -114,7 +154,7 @@ const setScheduleInputSchema = z.strictObject({
|
|
|
114
154
|
schedule: z.array(z.strictObject({
|
|
115
155
|
...zBackupScheduleItem.shape,
|
|
116
156
|
frequency: snapshotFrequency
|
|
117
|
-
}))
|
|
157
|
+
})).describe("Schedule entries defining the backup frequency.")
|
|
118
158
|
});
|
|
119
159
|
const createBranchTool = (options) => bindTool(options, {
|
|
120
160
|
operationId: "branches.create",
|
|
@@ -355,4 +395,4 @@ const setScheduleTool = (options) => bindTool(options, {
|
|
|
355
395
|
branchId: input.branch_id,
|
|
356
396
|
schedule: input.schedule
|
|
357
397
|
}, { signal }));
|
|
358
|
-
export { compareSchemaInputSchema, compareSchemaTool, connectionStringInputSchema, connectionStringTool, createBranchAndConnectInputSchema, createBranchAndConnectTool, createBranchInputSchema, createBranchTool, createProjectAndConnectInputSchema, createProjectAndConnectTool, createProjectInputSchema, createProjectTool, createRoleInputSchema, createRoleTool, getDefaultInputSchema, getDefaultTool, resetFromParentInputSchema, resetFromParentTool, restoreSnapshotInputSchema, restoreSnapshotTool, setScheduleInputSchema, setScheduleTool };
|
|
398
|
+
export { compareSchemaInputSchema, compareSchemaTool, connectionStringInputSchema, connectionStringTool, createBranchAndConnectInputSchema, createBranchAndConnectTool, createBranchInputSchema, createBranchTool, createProjectAndConnectInputSchema, createProjectAndConnectTool, createProjectInputSchema, createProjectTool, createRoleInputSchema, createRoleTool, getDefaultInputSchema, getDefaultTool, lokiQueryRangeInputSchema, lokiQueryRangeTool, resetFromParentInputSchema, resetFromParentTool, restoreSnapshotInputSchema, restoreSnapshotTool, setScheduleInputSchema, setScheduleTool };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare const hiddenToolIds: readonly ["operations.waitFor", "postgres.roles.password", "storage.objects.get", "credentials.reveal"];
|
|
1
|
+
export declare const hiddenToolIds: readonly ["operations.waitFor", "postgres.roles.password", "storage.objects.get", "credentials.reveal", "logs.loki.labels", "logs.loki.labelValues"];
|
|
2
2
|
export type HiddenToolId = (typeof hiddenToolIds)[number];
|
|
3
|
-
export declare const toolIds: readonly ["projects.list", "projects.count", "projects.get", "projects.create", "projects.createAndConnect", "projects.update", "projects.delete", "projects.recover", "projects.transfer", "projects.transferFromUser", "projects.permissions.list", "projects.permissions.grant", "projects.permissions.revoke", "projects.members.list", "projects.members.setRole", "projects.members.removeRole", "branches.list", "branches.get", "branches.create", "branches.createAndConnect", "branches.update", "branches.delete", "branches.getDefault", "branches.setDefault", "branches.resetFromParent", "branches.compareSchema", "branches.finalizeRestore", "postgres.connectionString", "postgres.endpoints.list", "postgres.endpoints.listByBranch", "postgres.endpoints.get", "postgres.endpoints.create", "postgres.endpoints.update", "postgres.endpoints.delete", "postgres.endpoints.start", "postgres.endpoints.suspend", "postgres.endpoints.restart", "postgres.roles.list", "postgres.roles.get", "postgres.roles.create", "postgres.roles.delete", "postgres.roles.resetPassword", "postgres.databases.list", "postgres.databases.get", "postgres.databases.create", "postgres.databases.update", "postgres.databases.delete", "postgres.dataApi.get", "postgres.dataApi.create", "postgres.dataApi.update", "postgres.dataApi.delete", "storage.get", "storage.buckets.list", "storage.buckets.create", "storage.buckets.delete", "storage.objects.list", "storage.objects.delete", "storage.objects.deleteByPrefix", "storage.objects.presign", "functions.list", "functions.get", "functions.update", "functions.delete", "functions.deploy", "functions.customDomains.list", "functions.customDomains.register", "functions.customDomains.delete", "triggers.list", "triggers.get", "triggers.create", "triggers.update", "triggers.delete", "credentials.list", "credentials.create", "credentials.revoke", "credentials.rotate", "aiGateway.get", "realtime.get", "realtime.enable", "realtime.disable", "realtime.secret", "realtime.rotateSecret", "logs.query", "logs.fields", "logs.fieldValues", "snapshots.list", "snapshots.create", "snapshots.update", "snapshots.delete", "snapshots.restore", "snapshots.getSchedule", "snapshots.setSchedule", "operations.list", "operations.get", "auth.get", "auth.create", "auth.disable", "auth.updateConfig", "auth.oauthProviders.list", "auth.oauthProviders.add", "auth.oauthProviders.update", "auth.oauthProviders.delete", "auth.oauthServer.get", "auth.oauthServer.update", "auth.oauthClients.list", "auth.oauthClients.get", "auth.oauthClients.create", "auth.oauthClients.update", "auth.oauthClients.delete", "auth.oauthClients.rotateSecret", "auth.trustedDomains.list", "auth.trustedDomains.add", "auth.trustedDomains.delete", "auth.users.create", "auth.users.delete", "auth.users.updateRole", "auth.allowLocalhost.get", "auth.allowLocalhost.update", "auth.emailAndPassword.get", "auth.emailAndPassword.update", "auth.emailProvider.get", "auth.emailProvider.update", "auth.emailProvider.sendTest", "auth.plugins.get", "auth.plugins.magicLink.update", "auth.plugins.organization.update", "auth.plugins.phoneNumber.get", "auth.plugins.phoneNumber.update", "auth.webhooks.get", "auth.webhooks.update", "consumption.perProject", "consumption.perProjectV2", "consumption.perBranchV2", "apiKeys.list", "apiKeys.create", "apiKeys.revoke", "organizations.get", "organizations.members.list", "organizations.members.get", "organizations.members.update", "organizations.members.remove", "organizations.invitations.list", "organizations.invitations.create", "organizations.spendingLimit.get", "organizations.spendingLimit.set", "organizations.spendingLimit.delete", "organizations.apiKeys.list", "organizations.apiKeys.create", "organizations.apiKeys.revoke", "regions.list", "user.me", "user.organizations"];
|
|
3
|
+
export declare const toolIds: readonly ["projects.list", "projects.count", "projects.get", "projects.create", "projects.createAndConnect", "projects.update", "projects.delete", "projects.recover", "projects.transfer", "projects.transferFromUser", "projects.permissions.list", "projects.permissions.grant", "projects.permissions.revoke", "projects.members.list", "projects.members.setRole", "projects.members.removeRole", "branches.list", "branches.get", "branches.create", "branches.createAndConnect", "branches.update", "branches.delete", "branches.getDefault", "branches.setDefault", "branches.resetFromParent", "branches.compareSchema", "branches.finalizeRestore", "postgres.connectionString", "postgres.endpoints.list", "postgres.endpoints.listByBranch", "postgres.endpoints.get", "postgres.endpoints.create", "postgres.endpoints.update", "postgres.endpoints.delete", "postgres.endpoints.start", "postgres.endpoints.suspend", "postgres.endpoints.restart", "postgres.roles.list", "postgres.roles.get", "postgres.roles.create", "postgres.roles.delete", "postgres.roles.resetPassword", "postgres.databases.list", "postgres.databases.get", "postgres.databases.create", "postgres.databases.update", "postgres.databases.delete", "postgres.dataApi.get", "postgres.dataApi.create", "postgres.dataApi.update", "postgres.dataApi.delete", "storage.get", "storage.buckets.list", "storage.buckets.create", "storage.buckets.delete", "storage.objects.list", "storage.objects.delete", "storage.objects.deleteByPrefix", "storage.objects.presign", "functions.list", "functions.get", "functions.update", "functions.delete", "functions.deploy", "functions.customDomains.list", "functions.customDomains.register", "functions.customDomains.delete", "triggers.list", "triggers.get", "triggers.create", "triggers.update", "triggers.delete", "credentials.list", "credentials.create", "credentials.revoke", "credentials.rotate", "aiGateway.get", "realtime.get", "realtime.enable", "realtime.disable", "realtime.secret", "realtime.rotateSecret", "logs.query", "logs.fields", "logs.fieldValues", "logs.loki.queryRange", "snapshots.list", "snapshots.create", "snapshots.update", "snapshots.delete", "snapshots.restore", "snapshots.getSchedule", "snapshots.setSchedule", "operations.list", "operations.get", "auth.get", "auth.create", "auth.disable", "auth.updateConfig", "auth.oauthProviders.list", "auth.oauthProviders.add", "auth.oauthProviders.update", "auth.oauthProviders.delete", "auth.oauthServer.get", "auth.oauthServer.update", "auth.oauthClients.list", "auth.oauthClients.get", "auth.oauthClients.create", "auth.oauthClients.update", "auth.oauthClients.delete", "auth.oauthClients.rotateSecret", "auth.trustedDomains.list", "auth.trustedDomains.add", "auth.trustedDomains.delete", "auth.users.create", "auth.users.delete", "auth.users.updateRole", "auth.allowLocalhost.get", "auth.allowLocalhost.update", "auth.emailAndPassword.get", "auth.emailAndPassword.update", "auth.emailProvider.get", "auth.emailProvider.update", "auth.emailProvider.sendTest", "auth.plugins.get", "auth.plugins.magicLink.update", "auth.plugins.organization.update", "auth.plugins.phoneNumber.get", "auth.plugins.phoneNumber.update", "auth.webhooks.get", "auth.webhooks.update", "consumption.perProject", "consumption.perProjectV2", "consumption.perBranchV2", "apiKeys.list", "apiKeys.create", "apiKeys.revoke", "organizations.get", "organizations.members.list", "organizations.members.get", "organizations.members.update", "organizations.members.remove", "organizations.invitations.list", "organizations.invitations.create", "organizations.spendingLimit.get", "organizations.spendingLimit.set", "organizations.spendingLimit.delete", "organizations.apiKeys.list", "organizations.apiKeys.create", "organizations.apiKeys.revoke", "regions.list", "user.me", "user.organizations"];
|
|
4
4
|
export type NeonToolId = (typeof toolIds)[number];
|
|
5
5
|
export declare const isNeonToolId: (id: string) => id is NeonToolId;
|
|
6
6
|
export declare const unpublishedToolError: (id: string) => TypeError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ids.d.ts","sourceRoot":"","sources":["../../../src/lib/ergonomic/ids.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"ids.d.ts","sourceRoot":"","sources":["../../../src/lib/ergonomic/ids.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,sJAOhB,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1D,eAAO,MAAM,OAAO,+tHA0JV,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC;AAElD,eAAO,MAAM,YAAY,GAAI,IAAI,MAAM,KAAG,EAAE,IAAI,UACJ,CAAC;AAc7C,eAAO,MAAM,oBAAoB,GAAI,IAAI,MAAM,KAAG,SAOjD,CAAC"}
|
|
@@ -3,7 +3,9 @@ const hiddenToolIds = [
|
|
|
3
3
|
"operations.waitFor",
|
|
4
4
|
"postgres.roles.password",
|
|
5
5
|
"storage.objects.get",
|
|
6
|
-
"credentials.reveal"
|
|
6
|
+
"credentials.reveal",
|
|
7
|
+
"logs.loki.labels",
|
|
8
|
+
"logs.loki.labelValues"
|
|
7
9
|
];
|
|
8
10
|
const toolIds = [
|
|
9
11
|
"projects.list",
|
|
@@ -91,6 +93,7 @@ const toolIds = [
|
|
|
91
93
|
"logs.query",
|
|
92
94
|
"logs.fields",
|
|
93
95
|
"logs.fieldValues",
|
|
96
|
+
"logs.loki.queryRange",
|
|
94
97
|
"snapshots.list",
|
|
95
98
|
"snapshots.create",
|
|
96
99
|
"snapshots.update",
|
|
@@ -164,7 +167,9 @@ const hiddenToolHint = {
|
|
|
164
167
|
"operations.waitFor": "Write tools wait for readiness. operations.waitFor is not a tool.",
|
|
165
168
|
"postgres.roles.password": "Role passwords are not published as a tool.",
|
|
166
169
|
"storage.objects.get": "Object bytes are not published as a tool.",
|
|
167
|
-
"credentials.reveal": "Credential secrets are not published as a tool."
|
|
170
|
+
"credentials.reveal": "Credential secrets are not published as a tool.",
|
|
171
|
+
"logs.loki.labels": "Loki labels are the log fields. Use logs.fields to discover them.",
|
|
172
|
+
"logs.loki.labelValues": "Loki label values are log field values. Use logs.fieldValues to list them."
|
|
168
173
|
};
|
|
169
174
|
const unpublishedToolError = (id) => {
|
|
170
175
|
if (hiddenToolIds.includes(id)) return /* @__PURE__ */ new TypeError(`Neon tool "${id}" is not published. ${hiddenToolHint[id]}`);
|
package/dist/operations.gen.js
CHANGED
|
@@ -634,7 +634,7 @@ const operationFactories = {
|
|
|
634
634
|
"project_id": zCreateCredentialPath.shape.project_id,
|
|
635
635
|
"branch_id": zCreateCredentialPath.shape.branch_id,
|
|
636
636
|
"name": zCreateCredentialBody.shape.name,
|
|
637
|
-
"scopes": zCreateCredentialBody.shape.scopes,
|
|
637
|
+
"scopes": zCreateCredentialBody.shape.scopes.describe("Capabilities to grant. The credential may only perform actions in these scopes."),
|
|
638
638
|
"principal_type": zCreateCredentialBody.shape.principal_type
|
|
639
639
|
}),
|
|
640
640
|
annotations: {
|
|
@@ -1180,8 +1180,8 @@ const operationFactories = {
|
|
|
1180
1180
|
"project_id": zCreateProjectBranchFunctionDeploymentPath.shape.project_id,
|
|
1181
1181
|
"branch_id": zCreateProjectBranchFunctionDeploymentPath.shape.branch_id,
|
|
1182
1182
|
"slug": zCreateProjectBranchFunctionDeploymentPath.shape.slug,
|
|
1183
|
-
"zip": z.base64().describe("Base64-encoded
|
|
1184
|
-
"runtime": zCreateProjectBranchFunctionDeploymentBody.shape.runtime,
|
|
1183
|
+
"zip": z.base64().describe("Base64-encoded ZIP of the function source. Omit to reuse the latest bundle; required for the first deployment.").optional(),
|
|
1184
|
+
"runtime": zCreateProjectBranchFunctionDeploymentBody.shape.runtime.describe("The Node.js runtime for the deployment."),
|
|
1185
1185
|
"environment": zCreateProjectBranchFunctionDeploymentBody.shape.environment
|
|
1186
1186
|
}),
|
|
1187
1187
|
annotations: {
|
|
@@ -1259,7 +1259,7 @@ const operationFactories = {
|
|
|
1259
1259
|
inputSchema: z.strictObject({
|
|
1260
1260
|
"project_id": zCreateProjectBranchTriggerPath.shape.project_id,
|
|
1261
1261
|
"branch_id": zCreateProjectBranchTriggerPath.shape.branch_id,
|
|
1262
|
-
"body": zCreateProjectBranchTriggerBody
|
|
1262
|
+
"body": zCreateProjectBranchTriggerBody.describe("Trigger creation payload discriminated by `type`.")
|
|
1263
1263
|
}),
|
|
1264
1264
|
annotations: {
|
|
1265
1265
|
readOnlyHint: false,
|
|
@@ -3873,7 +3873,7 @@ const operationFactories = {
|
|
|
3873
3873
|
title: "Grant project access",
|
|
3874
3874
|
description: "Grants project access to the account associated with the specified email address.",
|
|
3875
3875
|
inputSchema: z.strictObject({
|
|
3876
|
-
"project_id": zGrantPermissionToProjectPath.shape.project_id,
|
|
3876
|
+
"project_id": zGrantPermissionToProjectPath.shape.project_id.describe("The Neon project ID"),
|
|
3877
3877
|
"email": zGrantPermissionToProjectBody.shape.email
|
|
3878
3878
|
}),
|
|
3879
3879
|
annotations: {
|
|
@@ -4621,7 +4621,7 @@ const operationFactories = {
|
|
|
4621
4621
|
title: "List org members and their project roles",
|
|
4622
4622
|
description: "Lists organization members and their per-project roles for an org-owned project.",
|
|
4623
4623
|
inputSchema: z.strictObject({
|
|
4624
|
-
"project_id": zListProjectMembersPath.shape.project_id,
|
|
4624
|
+
"project_id": zListProjectMembersPath.shape.project_id.describe("The Neon project ID"),
|
|
4625
4625
|
"cursor": zListProjectMembersQuery.shape.cursor.optional(),
|
|
4626
4626
|
"limit": zListProjectMembersQuery.shape.limit.optional()
|
|
4627
4627
|
}),
|
|
@@ -4686,7 +4686,7 @@ const operationFactories = {
|
|
|
4686
4686
|
id: "list_project_permissions",
|
|
4687
4687
|
title: "List project access",
|
|
4688
4688
|
description: "Retrieves details about users who have access to the project, including the permission `id`, the granted-to email address, and the date project access was granted.",
|
|
4689
|
-
inputSchema: z.strictObject({ "project_id": zListProjectPermissionsPath.shape.project_id }),
|
|
4689
|
+
inputSchema: z.strictObject({ "project_id": zListProjectPermissionsPath.shape.project_id.describe("The Neon project ID") }),
|
|
4690
4690
|
annotations: {
|
|
4691
4691
|
readOnlyHint: true,
|
|
4692
4692
|
openWorldHint: false
|
|
@@ -5040,9 +5040,9 @@ const operationFactories = {
|
|
|
5040
5040
|
title: "Remove an org member's role on a project",
|
|
5041
5041
|
description: "Idempotently removes the explicit project grant.",
|
|
5042
5042
|
inputSchema: z.strictObject({
|
|
5043
|
-
"project_id": zRemoveProjectMemberRolePath.shape.project_id,
|
|
5044
|
-
"member_id": zRemoveProjectMemberRolePath.shape.member_id,
|
|
5045
|
-
"confirm_self_lockout": zRemoveProjectMemberRoleQuery.shape.confirm_self_lockout.optional()
|
|
5043
|
+
"project_id": zRemoveProjectMemberRolePath.shape.project_id.describe("The Neon project ID"),
|
|
5044
|
+
"member_id": zRemoveProjectMemberRolePath.shape.member_id.describe("The organization member ID"),
|
|
5045
|
+
"confirm_self_lockout": zRemoveProjectMemberRoleQuery.shape.confirm_self_lockout.describe("Set true to remove your own grant when you would lose manage access.").optional()
|
|
5046
5046
|
}),
|
|
5047
5047
|
annotations: {
|
|
5048
5048
|
readOnlyHint: false,
|
|
@@ -5348,8 +5348,8 @@ const operationFactories = {
|
|
|
5348
5348
|
title: "Revoke project access",
|
|
5349
5349
|
description: "Revokes project access from the user associated with the specified permission `id`.",
|
|
5350
5350
|
inputSchema: z.strictObject({
|
|
5351
|
-
"project_id": zRevokePermissionFromProjectPath.shape.project_id,
|
|
5352
|
-
"permission_id": zRevokePermissionFromProjectPath.shape.permission_id
|
|
5351
|
+
"project_id": zRevokePermissionFromProjectPath.shape.project_id.describe("The Neon project ID"),
|
|
5352
|
+
"permission_id": zRevokePermissionFromProjectPath.shape.permission_id.describe("The permission `id` from listing project access.")
|
|
5353
5353
|
}),
|
|
5354
5354
|
annotations: {
|
|
5355
5355
|
readOnlyHint: false,
|
|
@@ -5624,9 +5624,9 @@ const operationFactories = {
|
|
|
5624
5624
|
title: "Set an org member's role on a project",
|
|
5625
5625
|
description: "Idempotently sets or updates the explicit project grant of the specified org member.",
|
|
5626
5626
|
inputSchema: z.strictObject({
|
|
5627
|
-
"project_id": zSetProjectMemberRolePath.shape.project_id,
|
|
5628
|
-
"member_id": zSetProjectMemberRolePath.shape.member_id,
|
|
5629
|
-
"confirm_self_demotion": zSetProjectMemberRoleQuery.shape.confirm_self_demotion.optional(),
|
|
5627
|
+
"project_id": zSetProjectMemberRolePath.shape.project_id.describe("The Neon project ID"),
|
|
5628
|
+
"member_id": zSetProjectMemberRolePath.shape.member_id.describe("The organization member ID"),
|
|
5629
|
+
"confirm_self_demotion": zSetProjectMemberRoleQuery.shape.confirm_self_demotion.describe("Set true to lower your own role on the project.").optional(),
|
|
5630
5630
|
"role": zSetProjectMemberRoleBody.shape.role
|
|
5631
5631
|
}),
|
|
5632
5632
|
annotations: {
|
|
@@ -6088,7 +6088,7 @@ const operationFactories = {
|
|
|
6088
6088
|
inputSchema: z.strictObject({
|
|
6089
6089
|
"project_id": zUpdateNeonAuthEmailProviderPath.shape.project_id,
|
|
6090
6090
|
"branch_id": zUpdateNeonAuthEmailProviderPath.shape.branch_id,
|
|
6091
|
-
"body": zUpdateNeonAuthEmailProviderBody
|
|
6091
|
+
"body": zUpdateNeonAuthEmailProviderBody.describe("Email provider configuration for the branch's Neon Auth integration.")
|
|
6092
6092
|
}),
|
|
6093
6093
|
annotations: {
|
|
6094
6094
|
readOnlyHint: false,
|
|
@@ -6560,7 +6560,7 @@ const operationFactories = {
|
|
|
6560
6560
|
"branch_id": zUpdateProjectBranchPath.shape.branch_id,
|
|
6561
6561
|
"name": zUpdateProjectBranchBody.shape.branch.shape.name,
|
|
6562
6562
|
"protected": zUpdateProjectBranchBody.shape.branch.shape.protected,
|
|
6563
|
-
"expires_at": zUpdateProjectBranchBody.shape.branch.shape.expires_at
|
|
6563
|
+
"expires_at": zUpdateProjectBranchBody.shape.branch.shape.expires_at.describe("The timestamp when the branch is scheduled to expire and be automatically deleted.")
|
|
6564
6564
|
}),
|
|
6565
6565
|
annotations: {
|
|
6566
6566
|
readOnlyHint: false,
|
|
@@ -6695,7 +6695,7 @@ const operationFactories = {
|
|
|
6695
6695
|
"project_id": zUpdateProjectBranchFunctionPath.shape.project_id,
|
|
6696
6696
|
"branch_id": zUpdateProjectBranchFunctionPath.shape.branch_id,
|
|
6697
6697
|
"slug": zUpdateProjectBranchFunctionPath.shape.slug,
|
|
6698
|
-
"name": zUpdateProjectBranchFunctionBody.shape.name
|
|
6698
|
+
"name": zUpdateProjectBranchFunctionBody.shape.name.describe("New display name for the function.")
|
|
6699
6699
|
}),
|
|
6700
6700
|
annotations: {
|
|
6701
6701
|
readOnlyHint: false,
|
|
@@ -6731,7 +6731,7 @@ const operationFactories = {
|
|
|
6731
6731
|
"project_id": zUpdateProjectBranchTriggerPath.shape.project_id,
|
|
6732
6732
|
"branch_id": zUpdateProjectBranchTriggerPath.shape.branch_id,
|
|
6733
6733
|
"trigger_id": zUpdateProjectBranchTriggerPath.shape.trigger_id,
|
|
6734
|
-
"body": zUpdateProjectBranchTriggerBody
|
|
6734
|
+
"body": zUpdateProjectBranchTriggerBody.describe("Partial trigger update discriminated by `type`.")
|
|
6735
6735
|
}),
|
|
6736
6736
|
annotations: {
|
|
6737
6737
|
readOnlyHint: false,
|
|
@@ -6823,7 +6823,7 @@ const operationFactories = {
|
|
|
6823
6823
|
"project_id": zUpdateSnapshotPath.shape.project_id,
|
|
6824
6824
|
"snapshot_id": zUpdateSnapshotPath.shape.snapshot_id,
|
|
6825
6825
|
"name": zUpdateSnapshotBody.shape.snapshot.shape.name,
|
|
6826
|
-
"expires_at": zUpdateSnapshotBody.shape.snapshot.shape.expires_at
|
|
6826
|
+
"expires_at": zUpdateSnapshotBody.shape.snapshot.shape.expires_at.describe("The date and time when the snapshot will expire.")
|
|
6827
6827
|
}),
|
|
6828
6828
|
annotations: {
|
|
6829
6829
|
readOnlyHint: false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neon/tools",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.10.0",
|
|
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.5.4",
|
|
72
|
-
"@neon/sdk": "7.
|
|
72
|
+
"@neon/sdk": "7.11.0"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@hey-api/openapi-ts": "0.98.2",
|