@neon/tools 2.13.0 → 2.14.1
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 +2 -0
- package/dist/descriptions.gen.d.ts.map +1 -1
- package/dist/descriptions.gen.js +13 -12
- package/dist/generated/zod.gen.d.ts +3 -3
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/lib/custom/auth-config.d.ts +4 -0
- package/dist/lib/custom/auth-config.d.ts.map +1 -1
- package/dist/lib/custom/auth-config.js +2 -1
- package/dist/lib/custom/sql/inspect/catalog.d.ts +22 -0
- package/dist/lib/custom/sql/inspect/catalog.d.ts.map +1 -0
- package/dist/lib/custom/sql/inspect/catalog.js +18 -0
- package/dist/lib/custom/sql/inspect/inspect.js +3 -3
- package/dist/lib/custom/sql/inspect/queries.js +1 -1
- package/dist/lib/custom/sql/inspect/report.d.ts +2 -0
- package/dist/lib/custom/sql/inspect/report.d.ts.map +1 -1
- package/dist/lib/custom/sql/inspect/report.js +4 -2
- package/dist/lib/ergonomic/catalog.d.ts +52 -49
- package/dist/lib/ergonomic/catalog.d.ts.map +1 -1
- package/dist/lib/ergonomic/composed.js +1 -1
- package/dist/operations.gen.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -206,6 +206,8 @@ The SQL tools resolve a connection from `project_id` (required), then `branch_id
|
|
|
206
206
|
|
|
207
207
|
A Postgres error rejects with the `NeonDbError` from `@neondatabase/serverless`, carrying `code` (SQLSTATE), `position`, `detail`, `hint`, and `where`. `database.inspect` throws `InspectDiagnosticError` (exported from `@neon/tools`, with `check` and the `NeonDbError` as `cause`) when Postgres rejects one of its own diagnostic queries, which is a bug in this package rather than in the input. A caller-side problem, such as a missing extension, a missing database, or a refused connection, keeps its own class.
|
|
208
208
|
|
|
209
|
+
`inspectChecks` lists every `database.inspect` check from the catalog the tool runs, as frozen objects with `id`, `scope` (`database` or `compute`), `requiresExtension`, `fields`, `sqlLimit`, and the `emptyNote` an empty result carries (`emptyNoteAllDatabases` when `database_name` is omitted).
|
|
210
|
+
|
|
209
211
|
`migrations.prepare` and `queryTuning.prepare` delete the temporary branch when anything after its creation fails, including the readiness wait (a `wait` timeout, a failed operation, or an aborted `signal`). Cleanup waits up to 60 seconds for the branch to finish provisioning before deleting it, regardless of `wait` and `signal`. `migrations.complete` applies first; if that fails the temporary branch stays so the call can be retried, and a failed delete after a successful apply is reported as `cleanupError`.
|
|
210
212
|
|
|
211
213
|
### Execution context
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"descriptions.gen.d.ts","sourceRoot":"","sources":["../src/descriptions.gen.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEzD,wFAAwF;AACxF,eAAO,MAAM,gBAAgB,EAAE,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"descriptions.gen.d.ts","sourceRoot":"","sources":["../src/descriptions.gen.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEzD,wFAAwF;AACxF,eAAO,MAAM,gBAAgB,EAAE,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC,CA6I1E,CAAC;AAEF,gEAAgE;AAChE,eAAO,MAAM,qBAAqB;;;;CAIxB,CAAC"}
|
package/dist/descriptions.gen.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
const toolDescriptions = {
|
|
4
4
|
"projects.list": "Lists the projects in an organization; search filters by name or id. To also find branches, computes, or snapshots, use {{resources.search}}.",
|
|
5
5
|
"projects.count": "Counts an organization's active projects without listing them; ones being created or deleted are not counted.",
|
|
6
|
-
"projects.get": "Gets a project's settings,
|
|
6
|
+
"projects.get": "Gets a project's settings, owner, and usage. For branches, use {{branches.list}}.",
|
|
7
7
|
"projects.update": "Updates a project's name, settings, default compute settings, or history retention.",
|
|
8
8
|
"projects.delete": "Deletes a project with all its branches, computes, databases, and roles. NEVER run autonomously; always ask the user first. {{projects.recover}} undoes it within 7 days. For one branch, use {{branches.delete}}.",
|
|
9
9
|
"projects.recover": "Recovers a project deleted in the last 7 days; {{projects.list}} with recoverable true finds them. Some integrations need setting up again.",
|
|
@@ -23,7 +23,7 @@ const toolDescriptions = {
|
|
|
23
23
|
"branches.finalizeRestore": "Finalizes a branch restored with finalize false: moves the original branch's computes onto it, restarting them, and takes over its name.",
|
|
24
24
|
"postgres.endpoints.list": "Lists the compute endpoints of every branch in a project. For one branch, use {{postgres.endpoints.listByBranch}}.",
|
|
25
25
|
"postgres.endpoints.listByBranch": "Lists a branch's compute endpoints. For every branch in the project, use {{postgres.endpoints.list}}.",
|
|
26
|
-
"postgres.endpoints.get": "Gets a compute endpoint (ep-...)
|
|
26
|
+
"postgres.endpoints.get": "Gets a compute endpoint (ep-...), including its host and state.",
|
|
27
27
|
"postgres.endpoints.create": "Creates a compute endpoint on a branch; a branch takes one read-write endpoint and any number of read-only. Returns no connection string; use {{postgres.connectionString}}.",
|
|
28
28
|
"postgres.endpoints.update": "Updates a compute endpoint's settings.",
|
|
29
29
|
"postgres.endpoints.delete": "Deletes a compute endpoint and drops its connections.",
|
|
@@ -39,7 +39,7 @@ const toolDescriptions = {
|
|
|
39
39
|
"postgres.databases.create": "Creates a database on a branch, owned by owner_name.",
|
|
40
40
|
"postgres.databases.update": "Renames a database or changes its owner.",
|
|
41
41
|
"postgres.databases.delete": "Deletes a database and its data from a branch.",
|
|
42
|
-
"postgres.dataApi.get": "Gets the Neon Data API configuration for one database on a branch
|
|
42
|
+
"postgres.dataApi.get": "Gets the Neon Data API configuration for one database on a branch.",
|
|
43
43
|
"postgres.dataApi.create": "Creates the Neon Data API, a REST interface over database_name, on a branch.",
|
|
44
44
|
"postgres.dataApi.update": "Updates the Neon Data API settings for a database and refreshes its schema cache.",
|
|
45
45
|
"postgres.dataApi.delete": "Deletes the Neon Data API for a database; requests to its endpoint start failing.",
|
|
@@ -83,7 +83,7 @@ const toolDescriptions = {
|
|
|
83
83
|
"snapshots.delete": "Deletes a snapshot.",
|
|
84
84
|
"snapshots.getSchedule": "Gets a branch's automatic snapshot schedule.",
|
|
85
85
|
"operations.list": "Lists a project's operations; ones older than six months may be gone.",
|
|
86
|
-
"operations.get": "Gets one operation
|
|
86
|
+
"operations.get": "Gets one operation and its status.",
|
|
87
87
|
"auth.get": "Gets a branch's Neon Auth integration record: provider, base URL, JWKS URL, and database. Prefer {{auth.getConfig}}, which adds the auth settings, unless you only need the record.",
|
|
88
88
|
"auth.create": "Enables Neon Auth on a branch and creates the neon_auth schema in its database.",
|
|
89
89
|
"auth.disable": "Disables Neon Auth on a branch. delete_data also drops the neon_auth schema and its tables.",
|
|
@@ -93,10 +93,10 @@ const toolDescriptions = {
|
|
|
93
93
|
"auth.oauthProviders.update": "Updates a social login provider on a branch's Neon Auth. For Apple, send a new client_secret (.p8 key) together with its apple_key_id.",
|
|
94
94
|
"auth.oauthProviders.delete": "Removes a social login provider from a branch's Neon Auth.",
|
|
95
95
|
"auth.oauthServer.get": "Gets a branch's Neon Auth OAuth 2.1 server settings (oauth_provider plugin), for example for MCP clients. For social login, use {{auth.oauthProviders.list}}.",
|
|
96
|
-
"auth.oauthServer.update": "Configures a branch's Neon Auth as an OAuth 2.1 server (oauth_provider plugin); root branch only. Enabling needs login_page, consent_page, and a resource or MCP resource. resources replaces the stored list, so send the full list from {{auth.oauthServer.get}}.
|
|
96
|
+
"auth.oauthServer.update": "Configures a branch's Neon Auth as an OAuth 2.1 server (oauth_provider plugin); root branch only. Enabling needs login_page, consent_page, and a resource or MCP resource. resources replaces the stored list, so send the full list from {{auth.oauthServer.get}}.",
|
|
97
97
|
"auth.oauthClients.list": "Lists the OAuth clients (apps, MCP clients) of a branch's Neon Auth OAuth server, without secrets; not social login providers.",
|
|
98
98
|
"auth.oauthClients.get": "Gets an OAuth client of a branch's Neon Auth OAuth server, without its secret.",
|
|
99
|
-
"auth.oauthClients.create": "Registers an OAuth client with a branch's Neon Auth OAuth server. A confidential client's client_secret is returned once: show it to the user and tell them to store it. resources must already be on the server ({{auth.oauthServer.get}}). type is permanent.",
|
|
99
|
+
"auth.oauthClients.create": "Registers an OAuth client with a branch's Neon Auth OAuth server. A confidential client's client_secret is returned once: show it to the user and tell them to store it. resources must already be on the server, or be its MCP resource ({{auth.oauthServer.get}}). type is permanent.",
|
|
100
100
|
"auth.oauthClients.update": "Updates an OAuth client of Neon Auth's OAuth server; redirect_uris and resources replace the stored lists, and type cannot change.",
|
|
101
101
|
"auth.oauthClients.delete": "Deletes an OAuth client from Neon Auth's OAuth server, irreversibly; tokens already issued stay valid.",
|
|
102
102
|
"auth.oauthClients.rotateSecret": "Issues a new secret for a confidential OAuth client; the old one stops working at once. The new client_secret is returned once: show it to the user and tell them to store it.",
|
|
@@ -112,13 +112,13 @@ const toolDescriptions = {
|
|
|
112
112
|
"auth.emailAndPassword.update": "Updates a branch's Neon Auth email and password sign-in; omitted fields keep their value. Current values: {{auth.getConfig}}.",
|
|
113
113
|
"auth.emailProvider.get": "Gets a branch's Neon Auth email provider; the SMTP password comes back empty.",
|
|
114
114
|
"auth.emailProvider.update": "Sets the email provider for Neon Auth's emails: body.type \"shared\" for Neon's sender, or \"standard\" with your SMTP details. Test it with {{auth.emailProvider.sendTest}}.",
|
|
115
|
-
"auth.emailProvider.sendTest": "Sends a test email through the branch's saved SMTP provider to recipient_email. Only send to an address the user gave you. A failed send returns success false with error_message, not an error.",
|
|
116
|
-
"auth.plugins.get": "Gets all Neon Auth plugin settings of a branch
|
|
115
|
+
"auth.emailProvider.sendTest": "Sends a test email through the branch's saved standard SMTP provider to recipient_email. Only send to an address the user gave you. A failed send returns success false with error_message, not an error.",
|
|
116
|
+
"auth.plugins.get": "Gets all Neon Auth plugin settings of a branch. OAuth and SMTP secrets come back empty.",
|
|
117
117
|
"auth.plugins.magicLink.update": "Updates the Neon Auth magic link plugin; omitted fields keep their value. Current values: {{auth.getConfig}}.",
|
|
118
|
-
"auth.plugins.organization.update": "Updates the Neon Auth organization plugin, which lets your app's users form organizations (not Neon organizations). Omitted fields keep their value.",
|
|
118
|
+
"auth.plugins.organization.update": "Updates the Neon Auth organization plugin, which lets your app's users form organizations (not Neon organizations). Omitted fields keep their value. Current values: {{auth.getConfig}}.",
|
|
119
119
|
"auth.plugins.phoneNumber.get": "Gets a branch's Neon Auth SMS OTP plugin settings.",
|
|
120
|
-
"auth.plugins.phoneNumber.update": "Updates the Neon Auth SMS OTP plugin; omitted fields keep their value. SMS needs a webhook with the send.otp event ({{auth.webhooks.update}}).",
|
|
121
|
-
"auth.webhooks.get": "Gets a branch's Neon Auth webhook
|
|
120
|
+
"auth.plugins.phoneNumber.update": "Updates the Neon Auth SMS OTP plugin; omitted fields keep their value. SMS needs a webhook with the send.otp event ({{auth.webhooks.update}}). Current values: {{auth.getConfig}}.",
|
|
121
|
+
"auth.webhooks.get": "Gets a branch's Neon Auth webhook configuration.",
|
|
122
122
|
"auth.webhooks.update": "Replaces a branch's Neon Auth webhook configuration; omitted fields reset, so { enabled: false } alone clears webhook_url and enabled_events. Send every field to keep, read from {{auth.getConfig}}.",
|
|
123
123
|
"consumption.perProject": "Returns per-project consumption on legacy Scale, Business, and Enterprise billing. For current plans, use {{consumption.perProjectV2}}.",
|
|
124
124
|
"consumption.perProjectV2": "Returns per-project consumption in an organization. metrics: every name {{consumption.perBranchV2}} takes, plus extra_branches_month and snapshot_storage_bytes_month. Launch, Scale, Agent, Business, or Enterprise plans; others get 403.",
|
|
@@ -139,7 +139,8 @@ const toolDescriptions = {
|
|
|
139
139
|
"organizations.apiKeys.list": "Lists an organization's API keys, without their tokens.",
|
|
140
140
|
"organizations.apiKeys.create": "Creates an organization API key, optionally limited to one project. The key is returned once: show it to the user and tell them to store it.",
|
|
141
141
|
"organizations.apiKeys.revoke": "Revokes an organization API key. Irreversible.",
|
|
142
|
-
"user.me": "Gets the authenticated Neon user: ids, plan, and linked login accounts. An organization API key gets 404."
|
|
142
|
+
"user.me": "Gets the authenticated Neon user: ids, plan, and linked login accounts. An organization API key gets 404.",
|
|
143
|
+
"auth.logsExport.update": "Turns the export of a branch's Neon Auth events to Neon Platform logs on or off. A project without logs export accepts only enabled: false; enabling there returns 404 feature not available. {{auth.getConfig}} reports the current value as logs_export, or null where logs export is not available."
|
|
143
144
|
};
|
|
144
145
|
/** Descriptions every operation gives these path parameters. */
|
|
145
146
|
const pathInputDescriptions = {
|
|
@@ -2882,8 +2882,8 @@ export declare const zNeonAuthSupportedAuthProvider: z.ZodEnum<{
|
|
|
2882
2882
|
better_auth: "better_auth";
|
|
2883
2883
|
}>;
|
|
2884
2884
|
export declare const zNeonAuthProviderProjectOwnedBy: z.ZodEnum<{
|
|
2885
|
-
user: "user";
|
|
2886
2885
|
neon: "neon";
|
|
2886
|
+
user: "user";
|
|
2887
2887
|
}>;
|
|
2888
2888
|
export declare const zNeonAuthProviderProjectTransferStatus: z.ZodEnum<{
|
|
2889
2889
|
finished: "finished";
|
|
@@ -3450,8 +3450,8 @@ export declare const zNeonAuthIntegration: z.ZodObject<{
|
|
|
3450
3450
|
db_name: z.ZodString;
|
|
3451
3451
|
created_at: z.ZodISODateTime;
|
|
3452
3452
|
owned_by: z.ZodEnum<{
|
|
3453
|
-
user: "user";
|
|
3454
3453
|
neon: "neon";
|
|
3454
|
+
user: "user";
|
|
3455
3455
|
}>;
|
|
3456
3456
|
transfer_status: z.ZodOptional<z.ZodEnum<{
|
|
3457
3457
|
finished: "finished";
|
|
@@ -3473,8 +3473,8 @@ export declare const zListNeonAuthIntegrationsResponse: z.ZodObject<{
|
|
|
3473
3473
|
db_name: z.ZodString;
|
|
3474
3474
|
created_at: z.ZodISODateTime;
|
|
3475
3475
|
owned_by: z.ZodEnum<{
|
|
3476
|
-
user: "user";
|
|
3477
3476
|
neon: "neon";
|
|
3477
|
+
user: "user";
|
|
3478
3478
|
}>;
|
|
3479
3479
|
transfer_status: z.ZodOptional<z.ZodEnum<{
|
|
3480
3480
|
finished: "finished";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { NeonError } from "@neon/sdk";
|
|
2
|
+
import { inspectChecks } from "./lib/custom/sql/inspect/catalog.js";
|
|
2
3
|
import { InspectDiagnosticError } from "./lib/custom/sql/inspect/inspect.js";
|
|
3
4
|
import { type InjectedNeonTool, type NeonToolCustomizeOptions, type NeonToolInjectOptions, type NeonToolNameOverrides } from "./lib/customize.js";
|
|
4
5
|
import { customToolIds, type NeonToolId, type PublishedId, publishedId, type ToolClientOptions, toolFactories, toolIds } from "./lib/ergonomic/index.js";
|
|
5
6
|
export type { NeonBearerCredential } from "./lib/auth.js";
|
|
7
|
+
export type { InspectCheckInfo } from "./lib/custom/sql/inspect/catalog.js";
|
|
8
|
+
export type { InspectCheck } from "./lib/custom/sql/inspect/queries.js";
|
|
6
9
|
export type { InjectedNeonTool, NeonToolCustomizeOptions, NeonToolDescriptionOverrides, NeonToolDescriptionSource, NeonToolInjectOptions, NeonToolInjectValue, NeonToolNameOverrides, NeonToolNameSource, NeonToolOnExecute, NeonToolOnExecuteEvent, } from "./lib/customize.js";
|
|
7
10
|
export type { JsonSafe, JsonSafeBlob, NeonTool, NeonToolAnnotations, NeonToolCaller, NeonToolExecutionContext, NeonToolMetadata, NeonToolResult, } from "./lib/operation.js";
|
|
8
11
|
export type { NeonToolId, PublishedId };
|
|
9
|
-
export { customToolIds, InspectDiagnosticError, NeonError, publishedId, toolIds, };
|
|
12
|
+
export { customToolIds, InspectDiagnosticError, inspectChecks, NeonError, publishedId, toolIds, };
|
|
10
13
|
type ToolFactories = typeof toolFactories;
|
|
11
14
|
export type NeonTools<Tools extends readonly NeonToolId[] = []> = {
|
|
12
15
|
[Tool in Tools[number]]: ReturnType<ToolFactories[Tool]>;
|
package/dist/index.d.ts.map
CH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MAAM,SAAS,qBAAqB,GAAG,SAAS,GAAG,SAAS,EAElE,EAAE,EAAE,EAAE,EACN,OAAO,EAAE,sBAAsB,GAAG;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,CACA;IAAE,IAAI,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,qBAAqB,CAAA;CAAE,GAC/D;IAAE,KAAK,EAAE,qBAAqB,CAAC;IAAC,IAAI,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,MAAM,CAAA;CAAE,CACjE,GACA,aAAa,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;AAC7B,wBAAgB,cAAc,CAC7B,KAAK,CAAC,EAAE,SAAS,UAAU,EAC3B,KAAK,CAAC,MAAM,SAAS,qBAAqB,GAAG,SAAS,GAAG,SAAS,EAElE,EAAE,EAAE,EAAE,EACN,OAAO,EAAE,sBAAsB,GAAG;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,GACnD,MAAM,SAAS,qBAAqB,GACpC,gBAAgB,CAAC,SAAS,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC,GACvC,SAAS,CAAC,EAAE,CAAC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { inspectChecks } from "./lib/custom/sql/inspect/catalog.js";
|
|
1
2
|
import { publishedId } from "./lib/ergonomic/bind.js";
|
|
2
3
|
import { InspectDiagnosticError } from "./lib/custom/sql/inspect/inspect.js";
|
|
3
4
|
import { customToolIds, isNeonToolId, toolIds, unpublishedToolError } from "./lib/ergonomic/ids.js";
|
|
@@ -56,4 +57,4 @@ function createNeonTool(id, options) {
|
|
|
56
57
|
const publishedIds = /* @__PURE__ */ new Map([[id, publishedToolId(tool, options)]]);
|
|
57
58
|
return applyToolCustomization(tool, options, publishedIds);
|
|
58
59
|
}
|
|
59
|
-
export { InspectDiagnosticError, NeonError, createNeonTool, createNeonTools, customToolIds, publishedId, toolIds };
|
|
60
|
+
export { InspectDiagnosticError, NeonError, createNeonTool, createNeonTools, customToolIds, inspectChecks, publishedId, toolIds };
|
|
@@ -71,6 +71,7 @@ export declare const readAuthConfig: (neon: NeonClient<true>, input: z.output<ty
|
|
|
71
71
|
phone_number: import("@neon/sdk").NeonAuthPhoneNumberConfig | null;
|
|
72
72
|
} | null;
|
|
73
73
|
webhook: NeonAuthWebhookConfig | null;
|
|
74
|
+
logs_export: import("@neon/sdk").NeonAuthLogsExportConfig | null;
|
|
74
75
|
}>;
|
|
75
76
|
export declare const getAuthConfigTool: (options: ToolClientOptions) => import("../operation.js").NeonTool<z.ZodObject<{
|
|
76
77
|
project_id: z.ZodString;
|
|
@@ -160,5 +161,8 @@ export declare const getAuthConfigTool: (options: ToolClientOptions) => import("
|
|
|
160
161
|
enabled_events?: ("user.before_create" | "user.created" | "send.otp" | "send.magic_link" | "organization.invitation.created" | "organization.invitation.accepted" | "phone_number.verified")[] | null | undefined;
|
|
161
162
|
timeout_seconds?: number | null | undefined;
|
|
162
163
|
} | null;
|
|
164
|
+
logs_export: {
|
|
165
|
+
enabled: boolean;
|
|
166
|
+
} | null;
|
|
163
167
|
}>;
|
|
164
168
|
//# sourceMappingURL=auth-config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-config.d.ts","sourceRoot":"","sources":["../../../src/lib/custom/auth-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAON,KAAK,qBAAqB,EAC1B,KAAK,UAAU,EACf,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAGN,KAAK,iBAAiB,EACtB,MAAM,sBAAsB,CAAC;AAE9B,eAAO,MAAM,eAAe,mBAAmB,CAAC;AAEhD,eAAO,MAAM,wBAAwB;;;kBASnC,CAAC;AA0GH,eAAO,MAAM,cAAc,GAC1B,MAAM,UAAU,CAAC,IAAI,CAAC,EACtB,OAAO,CAAC,CAAC,MAAM,CAAC,OAAO,wBAAwB,CAAC,EAChD,SAAS,WAAW
|
|
1
|
+
{"version":3,"file":"auth-config.d.ts","sourceRoot":"","sources":["../../../src/lib/custom/auth-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAON,KAAK,qBAAqB,EAC1B,KAAK,UAAU,EACf,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAGN,KAAK,iBAAiB,EACtB,MAAM,sBAAsB,CAAC;AAE9B,eAAO,MAAM,eAAe,mBAAmB,CAAC;AAEhD,eAAO,MAAM,wBAAwB;;;kBASnC,CAAC;AA0GH,eAAO,MAAM,cAAc,GAC1B,MAAM,UAAU,CAAC,IAAI,CAAC,EACtB,OAAO,CAAC,CAAC,MAAM,CAAC,OAAO,wBAAwB,CAAC,EAChD,SAAS,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyFpB,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,SAAS,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0B1D,CAAC"}
|
|
@@ -150,6 +150,7 @@ const readAuthConfig = async (neon, input, signal) => {
|
|
|
150
150
|
email_provider: emailProviderValue,
|
|
151
151
|
plugins: pluginsValue,
|
|
152
152
|
webhook: webhookValue,
|
|
153
|
+
logs_export: plugins.ok ? plugins.data.logs_export ?? null : null,
|
|
153
154
|
...Object.keys(errors).length > 0 && { _errors: errors }
|
|
154
155
|
};
|
|
155
156
|
};
|
|
@@ -157,7 +158,7 @@ const getAuthConfigTool = (options) => bindTool(options, {
|
|
|
157
158
|
operationId: "auth.getConfig",
|
|
158
159
|
id: publishedId("auth.getConfig"),
|
|
159
160
|
title: "Get Neon Auth configuration",
|
|
160
|
-
description: "Returns a branch's Neon Auth integration and settings: trusted origins, localhost, email and password, OAuth and email providers, plugins, and
|
|
161
|
+
description: "Returns a branch's Neon Auth integration and settings: trusted origins, localhost, email and password, OAuth and email providers, plugins, webhook, and logs export, with secrets redacted. Needs Neon Auth on the branch ({{auth.create}}).",
|
|
161
162
|
inputSchema: getAuthConfigInputSchema,
|
|
162
163
|
annotations: {
|
|
163
164
|
readOnlyHint: true,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type InspectCheck } from "./queries.js";
|
|
2
|
+
import type { InspectQueryScope } from "./targets.js";
|
|
3
|
+
export interface InspectCheckInfo {
|
|
4
|
+
readonly id: InspectCheck;
|
|
5
|
+
/** The `describe` text the result carries. */
|
|
6
|
+
readonly description: string;
|
|
7
|
+
/** `compute` checks run once for the whole compute, whatever `database_name` is. */
|
|
8
|
+
readonly scope: InspectQueryScope;
|
|
9
|
+
/** The extension the check needs; without it the tool throws before running SQL. */
|
|
10
|
+
readonly requiresExtension?: string;
|
|
11
|
+
/** Output columns in order. A run over every database adds `database` first. */
|
|
12
|
+
readonly fields: readonly string[];
|
|
13
|
+
/** Rows the SQL returns at most, per database. */
|
|
14
|
+
readonly sqlLimit?: number;
|
|
15
|
+
/** The `note` of an empty result for one database, or for a `compute` check. */
|
|
16
|
+
readonly emptyNote: string;
|
|
17
|
+
/** The `note` of an empty result when `database_name` is omitted. Only `database` checks have it. */
|
|
18
|
+
readonly emptyNoteAllDatabases?: string;
|
|
19
|
+
}
|
|
20
|
+
/** The checks `database.inspect` runs, in the order its `check` input lists them. */
|
|
21
|
+
export declare const inspectChecks: readonly InspectCheckInfo[];
|
|
22
|
+
//# sourceMappingURL=catalog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../../../../src/lib/custom/sql/inspect/catalog.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,KAAK,YAAY,EACjB,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEtD,MAAM,WAAW,gBAAgB;IAChC,QAAQ,CAAC,EAAE,EAAE,YAAY,CAAC;IAC1B,8CAA8C;IAC9C,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,oFAAoF;IACpF,QAAQ,CAAC,KAAK,EAAE,iBAAiB,CAAC;IAClC,oFAAoF;IACpF,QAAQ,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IACpC,gFAAgF;IAChF,QAAQ,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;IACnC,kDAAkD;IAClD,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,gFAAgF;IAChF,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,qGAAqG;IACrG,QAAQ,CAAC,qBAAqB,CAAC,EAAE,MAAM,CAAC;CACxC;AAED,qFAAqF;AACrF,eAAO,MAAM,aAAa,EAAE,SAAS,gBAAgB,EAoBpD,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { INSPECT_CHECKS, INSPECT_QUERIES } from "./queries.js";
|
|
2
|
+
import { emptyResultNote } from "./report.js";
|
|
3
|
+
// src/lib/custom/sql/inspect/catalog.ts
|
|
4
|
+
/** The checks `database.inspect` runs, in the order its `check` input lists them. */
|
|
5
|
+
const inspectChecks = Object.freeze(INSPECT_CHECKS.map((id) => {
|
|
6
|
+
const query = INSPECT_QUERIES[id];
|
|
7
|
+
return Object.freeze({
|
|
8
|
+
id,
|
|
9
|
+
description: query.describe,
|
|
10
|
+
scope: query.scope,
|
|
11
|
+
...query.requiresExtension === void 0 ? {} : { requiresExtension: query.requiresExtension },
|
|
12
|
+
fields: Object.freeze([...query.fields]),
|
|
13
|
+
...query.sqlLimit === void 0 ? {} : { sqlLimit: query.sqlLimit },
|
|
14
|
+
emptyNote: emptyResultNote(query, false),
|
|
15
|
+
...query.scope === "database" ? { emptyNoteAllDatabases: emptyResultNote(query, true) } : {}
|
|
16
|
+
});
|
|
17
|
+
}));
|
|
18
|
+
export { inspectChecks };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { INSPECT_CHECKS, INSPECT_MAX_LIMIT, INSPECT_QUERIES } from "./queries.js";
|
|
2
|
+
import { assembleInspectReport } from "./report.js";
|
|
1
3
|
import { bindTool, publishedId } from "../../../ergonomic/bind.js";
|
|
2
4
|
import { SQL_METADATA, branchIdField, computeIdField, projectIdField, resolveConnection, sqlClient } from "../connection.js";
|
|
3
5
|
import { sqlReadAnnotations } from "../schema.js";
|
|
4
|
-
import { INSPECT_CHECKS, INSPECT_MAX_LIMIT, INSPECT_QUERIES } from "./queries.js";
|
|
5
|
-
import { assembleInspectReport } from "./report.js";
|
|
6
6
|
import { formatInspectQueryError, selectInspectTargets } from "./targets.js";
|
|
7
7
|
import { NeonClientError } from "@neon/sdk";
|
|
8
8
|
import { NeonDbError } from "@neondatabase/serverless";
|
|
@@ -70,7 +70,7 @@ const inspectDatabaseTool = (options) => bindTool(options, {
|
|
|
70
70
|
operationId: "database.inspect",
|
|
71
71
|
id: publishedId("database.inspect"),
|
|
72
72
|
title: "Inspect Database",
|
|
73
|
-
description: "Runs one read-only neon inspect db check; some are compute-wide.
|
|
73
|
+
description: "Runs one read-only neon inspect db check; some are compute-wide. outliers ranks queries by total time and calls by count, both via pg_stat_statements; lfc-hit-rate and working-set need the neon extension. If one is missing, the error gives the CREATE EXTENSION; ask before running it. Other SQL: {{sql.run}}; one plan: {{sql.explain}}; new indexes: {{queryTuning.prepare}}.",
|
|
74
74
|
inputSchema: inspectDatabaseInputSchema,
|
|
75
75
|
annotations: sqlReadAnnotations,
|
|
76
76
|
requiresApproval: false,
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { type InspectCheck, type InspectQuery } from "./queries.js";
|
|
2
|
+
/** The note an empty result carries; `includeDatabaseColumn` is set when the run covered every database. */
|
|
3
|
+
export declare const emptyResultNote: (query: InspectQuery, includeDatabaseColumn: boolean) => string;
|
|
2
4
|
export type InspectDatabaseBatch = {
|
|
3
5
|
database: string;
|
|
4
6
|
rows: Record<string, unknown>[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report.d.ts","sourceRoot":"","sources":["../../../../../src/lib/custom/sql/inspect/report.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,MAAM,cAAc,CAAC;AAEtB,MAAM,MAAM,oBAAoB,GAAG;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IACnC,KAAK,EAAE,YAAY,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;IAC1B,aAAa,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;IAChC,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,KAAK,0BAA0B,GAAG;IACjC,KAAK,EAAE,YAAY,CAAC;IACpB,KAAK,EAAE,YAAY,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,oBAAoB,EAAE,CAAC;IAChC,qBAAqB,EAAE,OAAO,CAAC;IAC/B,mBAAmB,EAAE,OAAO,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;CACd,CAAC;AAuCF,wBAAgB,qBAAqB,CAAC,EACrC,KAAK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,KAAK,EAAE,MAAM,CAAC;CACd,CAAC;AAuCF,wBAAgB,qBAAqB,CAAC,EACrC,KAAK,EACL,KAAK,EACL,SAAS,EACT,QAAQ,EACR,OAAO,EACP,qBAAqB,EACrB,mBAAmB,EACnB,KAAK,GACL,EAAE,0BAA0B,GAAG,qBAAqB,CAsDpD"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import "./queries.js";
|
|
2
2
|
// src/lib/custom/sql/inspect/report.ts
|
|
3
|
+
/** The note an empty result carries; `includeDatabaseColumn` is set when the run covered every database. */
|
|
4
|
+
const emptyResultNote = (query, includeDatabaseColumn) => includeDatabaseColumn ? query.emptyMessageAll ?? query.emptyMessage : query.emptyMessage;
|
|
3
5
|
function databasesIn(rows) {
|
|
4
6
|
const names = [];
|
|
5
7
|
for (const row of rows) if (typeof row.database === "string" && !names.includes(row.database)) names.push(row.database);
|
|
@@ -20,7 +22,7 @@ function assembleInspectReport({ check, query, projectId, branchId, batches, inc
|
|
|
20
22
|
const truncated = rows.length > limit;
|
|
21
23
|
const displayed = truncated ? rows.slice(0, limit) : rows;
|
|
22
24
|
let note;
|
|
23
|
-
if (rows.length === 0) note =
|
|
25
|
+
if (rows.length === 0) note = emptyResultNote(query, includeDatabaseColumn);
|
|
24
26
|
else if (truncated) note = truncationNote(displayed, rows.length, limit, includeDatabaseColumn, databases, rows);
|
|
25
27
|
if (query.sqlLimit !== void 0 && batches.some((batch) => batch.rows.length === query.sqlLimit)) {
|
|
26
28
|
const sqlCapNote = includeDatabaseColumn ? `The \`${check}\` check returns at most ${query.sqlLimit} rows per database, and at least one database hit that cap, so there may be more. Run your own SQL for the full ranking.` : `The \`${check}\` check returns at most ${query.sqlLimit} rows, and hit that cap, so there may be more. Run your own SQL for the full ranking.`;
|
|
@@ -40,4 +42,4 @@ function assembleInspectReport({ check, query, projectId, branchId, batches, inc
|
|
|
40
42
|
...note !== void 0 && { note }
|
|
41
43
|
};
|
|
42
44
|
}
|
|
43
|
-
export { assembleInspectReport };
|
|
45
|
+
export { assembleInspectReport, emptyResultNote };
|
|
@@ -5,26 +5,26 @@ import type { NeonToolId } from "./ids.js";
|
|
|
5
5
|
export type ToolFactory = (typeof toolFactories)[NeonToolId];
|
|
6
6
|
export declare const toolFactories: {
|
|
7
7
|
"projects.list": (options: ToolClientOptions) => NeonTool<z.ZodType<{
|
|
8
|
-
org_id?: string | undefined;
|
|
9
8
|
limit?: number | undefined;
|
|
9
|
+
org_id?: string | undefined;
|
|
10
10
|
search?: string | undefined;
|
|
11
11
|
timeout?: number | undefined;
|
|
12
12
|
recoverable?: boolean | undefined;
|
|
13
13
|
}, {
|
|
14
|
-
org_id?: string | undefined;
|
|
15
14
|
limit?: number | undefined;
|
|
15
|
+
org_id?: string | undefined;
|
|
16
16
|
search?: string | undefined;
|
|
17
17
|
timeout?: number | undefined;
|
|
18
18
|
recoverable?: boolean | undefined;
|
|
19
19
|
}, z.core.$ZodTypeInternals<{
|
|
20
|
-
org_id?: string | undefined;
|
|
21
20
|
limit?: number | undefined;
|
|
21
|
+
org_id?: string | undefined;
|
|
22
22
|
search?: string | undefined;
|
|
23
23
|
timeout?: number | undefined;
|
|
24
24
|
recoverable?: boolean | undefined;
|
|
25
25
|
}, {
|
|
26
|
-
org_id?: string | undefined;
|
|
27
26
|
limit?: number | undefined;
|
|
27
|
+
org_id?: string | undefined;
|
|
28
28
|
search?: string | undefined;
|
|
29
29
|
timeout?: number | undefined;
|
|
30
30
|
recoverable?: boolean | undefined;
|
|
@@ -762,17 +762,17 @@ export declare const toolFactories: {
|
|
|
762
762
|
revoked_at?: string | null | undefined;
|
|
763
763
|
}>;
|
|
764
764
|
"projects.members.list": (options: ToolClientOptions) => NeonTool<z.ZodType<{
|
|
765
|
-
project_id: string;
|
|
766
765
|
limit?: number | undefined;
|
|
767
|
-
}, {
|
|
768
766
|
project_id: string;
|
|
767
|
+
}, {
|
|
769
768
|
limit?: number | undefined;
|
|
770
|
-
}, z.core.$ZodTypeInternals<{
|
|
771
769
|
project_id: string;
|
|
770
|
+
}, z.core.$ZodTypeInternals<{
|
|
772
771
|
limit?: number | undefined;
|
|
773
|
-
}, {
|
|
774
772
|
project_id: string;
|
|
773
|
+
}, {
|
|
775
774
|
limit?: number | undefined;
|
|
775
|
+
project_id: string;
|
|
776
776
|
}>>, "list_projects_members", {
|
|
777
777
|
member_id: string;
|
|
778
778
|
user_id: string;
|
|
@@ -827,31 +827,31 @@ export declare const toolFactories: {
|
|
|
827
827
|
org_api_key_rotation_recommended?: boolean | null | undefined;
|
|
828
828
|
}>;
|
|
829
829
|
"branches.list": (options: ToolClientOptions) => NeonTool<z.ZodType<{
|
|
830
|
+
limit?: number | undefined;
|
|
830
831
|
project_id: string;
|
|
831
832
|
sort_by?: "name" | "created_at" | "updated_at" | undefined;
|
|
832
833
|
sort_order?: "asc" | "desc" | undefined;
|
|
833
|
-
limit?: number | undefined;
|
|
834
834
|
search?: string | undefined;
|
|
835
835
|
include_deleted?: boolean | undefined;
|
|
836
836
|
}, {
|
|
837
|
+
limit?: number | undefined;
|
|
837
838
|
project_id: string;
|
|
838
839
|
sort_by?: "name" | "created_at" | "updated_at" | undefined;
|
|
839
840
|
sort_order?: "asc" | "desc" | undefined;
|
|
840
|
-
limit?: number | undefined;
|
|
841
841
|
search?: string | undefined;
|
|
842
842
|
include_deleted?: boolean | undefined;
|
|
843
843
|
}, z.core.$ZodTypeInternals<{
|
|
844
|
+
limit?: number | undefined;
|
|
844
845
|
project_id: string;
|
|
845
846
|
sort_by?: "name" | "created_at" | "updated_at" | undefined;
|
|
846
847
|
sort_order?: "asc" | "desc" | undefined;
|
|
847
|
-
limit?: number | undefined;
|
|
848
848
|
search?: string | undefined;
|
|
849
849
|
include_deleted?: boolean | undefined;
|
|
850
850
|
}, {
|
|
851
|
+
limit?: number | undefined;
|
|
851
852
|
project_id: string;
|
|
852
853
|
sort_by?: "name" | "created_at" | "updated_at" | undefined;
|
|
853
854
|
sort_order?: "asc" | "desc" | undefined;
|
|
854
|
-
limit?: number | undefined;
|
|
855
855
|
search?: string | undefined;
|
|
856
856
|
include_deleted?: boolean | undefined;
|
|
857
857
|
}>>, "list_branches", {
|
|
@@ -1919,30 +1919,30 @@ export declare const toolFactories: {
|
|
|
1919
1919
|
bucket_name: z.ZodString;
|
|
1920
1920
|
}, z.core.$strict>, "delete_storage_buckets", null>;
|
|
1921
1921
|
"storage.objects.list": (options: ToolClientOptions) => NeonTool<z.ZodType<{
|
|
1922
|
+
limit?: number | undefined;
|
|
1922
1923
|
branch_id: string;
|
|
1923
1924
|
project_id: string;
|
|
1924
|
-
limit?: number | undefined;
|
|
1925
1925
|
prefix?: string | undefined;
|
|
1926
1926
|
bucket_name: string;
|
|
1927
1927
|
delimiter?: string | undefined;
|
|
1928
1928
|
}, {
|
|
1929
|
+
limit?: number | undefined;
|
|
1929
1930
|
branch_id: string;
|
|
1930
1931
|
project_id: string;
|
|
1931
|
-
limit?: number | undefined;
|
|
1932
1932
|
prefix?: string | undefined;
|
|
1933
1933
|
bucket_name: string;
|
|
1934
1934
|
delimiter?: string | undefined;
|
|
1935
1935
|
}, z.core.$ZodTypeInternals<{
|
|
1936
|
+
limit?: number | undefined;
|
|
1936
1937
|
branch_id: string;
|
|
1937
1938
|
project_id: string;
|
|
1938
|
-
limit?: number | undefined;
|
|
1939
1939
|
prefix?: string | undefined;
|
|
1940
1940
|
bucket_name: string;
|
|
1941
1941
|
delimiter?: string | undefined;
|
|
1942
1942
|
}, {
|
|
1943
|
+
limit?: number | undefined;
|
|
1943
1944
|
branch_id: string;
|
|
1944
1945
|
project_id: string;
|
|
1945
|
-
limit?: number | undefined;
|
|
1946
1946
|
prefix?: string | undefined;
|
|
1947
1947
|
bucket_name: string;
|
|
1948
1948
|
delimiter?: string | undefined;
|
|
@@ -1990,21 +1990,21 @@ export declare const toolFactories: {
|
|
|
1990
1990
|
expires_at: string;
|
|
1991
1991
|
}>;
|
|
1992
1992
|
"functions.list": (options: ToolClientOptions) => NeonTool<z.ZodType<{
|
|
1993
|
+
limit?: number | undefined;
|
|
1993
1994
|
branch_id: string;
|
|
1994
1995
|
project_id: string;
|
|
1995
|
-
limit?: number | undefined;
|
|
1996
1996
|
}, {
|
|
1997
|
+
limit?: number | undefined;
|
|
1997
1998
|
branch_id: string;
|
|
1998
1999
|
project_id: string;
|
|
1999
|
-
limit?: number | undefined;
|
|
2000
2000
|
}, z.core.$ZodTypeInternals<{
|
|
2001
|
+
limit?: number | undefined;
|
|
2001
2002
|
branch_id: string;
|
|
2002
2003
|
project_id: string;
|
|
2003
|
-
limit?: number | undefined;
|
|
2004
2004
|
}, {
|
|
2005
|
+
limit?: number | undefined;
|
|
2005
2006
|
branch_id: string;
|
|
2006
2007
|
project_id: string;
|
|
2007
|
-
limit?: number | undefined;
|
|
2008
2008
|
}>>, "list_functions", {
|
|
2009
2009
|
id: string;
|
|
2010
2010
|
slug: string;
|
|
@@ -2113,21 +2113,21 @@ export declare const toolFactories: {
|
|
|
2113
2113
|
error?: string | null | undefined;
|
|
2114
2114
|
}>;
|
|
2115
2115
|
"functions.customDomains.list": (options: ToolClientOptions) => NeonTool<z.ZodType<{
|
|
2116
|
+
limit?: number | undefined;
|
|
2116
2117
|
branch_id: string;
|
|
2117
2118
|
project_id: string;
|
|
2118
|
-
limit?: number | undefined;
|
|
2119
2119
|
}, {
|
|
2120
|
+
limit?: number | undefined;
|
|
2120
2121
|
branch_id: string;
|
|
2121
2122
|
project_id: string;
|
|
2122
|
-
limit?: number | undefined;
|
|
2123
2123
|
}, z.core.$ZodTypeInternals<{
|
|
2124
|
+
limit?: number | undefined;
|
|
2124
2125
|
branch_id: string;
|
|
2125
2126
|
project_id: string;
|
|
2126
|
-
limit?: number | undefined;
|
|
2127
2127
|
}, {
|
|
2128
|
+
limit?: number | undefined;
|
|
2128
2129
|
branch_id: string;
|
|
2129
2130
|
project_id: string;
|
|
2130
|
-
limit?: number | undefined;
|
|
2131
2131
|
}>>, "list_functions_custom_domains", {
|
|
2132
2132
|
domain: string;
|
|
2133
2133
|
entity_type: string;
|
|
@@ -2425,13 +2425,13 @@ export declare const toolFactories: {
|
|
|
2425
2425
|
branch_id: z.ZodString;
|
|
2426
2426
|
}, z.core.$strict>, "rotate_secret_realtime", null>;
|
|
2427
2427
|
"logs.query": (options: ToolClientOptions) => NeonTool<z.ZodType<{
|
|
2428
|
+
limit?: number | undefined;
|
|
2428
2429
|
branch_id: string;
|
|
2429
2430
|
project_id: string;
|
|
2430
2431
|
start_time?: string | undefined;
|
|
2431
2432
|
end_time?: string | undefined;
|
|
2432
2433
|
sort_order?: "asc" | "desc" | undefined;
|
|
2433
2434
|
since?: string | undefined;
|
|
2434
|
-
limit?: number | undefined;
|
|
2435
2435
|
source?: "function" | "storage" | "pg_endpoint" | undefined;
|
|
2436
2436
|
service_name?: string | undefined;
|
|
2437
2437
|
scope_name?: string | undefined;
|
|
@@ -2441,13 +2441,13 @@ export declare const toolFactories: {
|
|
|
2441
2441
|
trace_id?: string | undefined;
|
|
2442
2442
|
logql?: string | undefined;
|
|
2443
2443
|
}, {
|
|
2444
|
+
limit?: number | undefined;
|
|
2444
2445
|
branch_id: string;
|
|
2445
2446
|
project_id: string;
|
|
2446
2447
|
start_time?: string | undefined;
|
|
2447
2448
|
end_time?: string | undefined;
|
|
2448
2449
|
sort_order?: "asc" | "desc" | undefined;
|
|
2449
2450
|
since?: string | undefined;
|
|
2450
|
-
limit?: number | undefined;
|
|
2451
2451
|
source?: "function" | "storage" | "pg_endpoint" | undefined;
|
|
2452
2452
|
service_name?: string | undefined;
|
|
2453
2453
|
scope_name?: string | undefined;
|
|
@@ -2457,13 +2457,13 @@ export declare const toolFactories: {
|
|
|
2457
2457
|
trace_id?: string | undefined;
|
|
2458
2458
|
logql?: string | undefined;
|
|
2459
2459
|
}, z.core.$ZodTypeInternals<{
|
|
2460
|
+
limit?: number | undefined;
|
|
2460
2461
|
branch_id: string;
|
|
2461
2462
|
project_id: string;
|
|
2462
2463
|
start_time?: string | undefined;
|
|
2463
2464
|
end_time?: string | undefined;
|
|
2464
2465
|
sort_order?: "asc" | "desc" | undefined;
|
|
2465
2466
|
since?: string | undefined;
|
|
2466
|
-
limit?: number | undefined;
|
|
2467
2467
|
source?: "function" | "storage" | "pg_endpoint" | undefined;
|
|
2468
2468
|
service_name?: string | undefined;
|
|
2469
2469
|
scope_name?: string | undefined;
|
|
@@ -2473,13 +2473,13 @@ export declare const toolFactories: {
|
|
|
2473
2473
|
trace_id?: string | undefined;
|
|
2474
2474
|
logql?: string | undefined;
|
|
2475
2475
|
}, {
|
|
2476
|
+
limit?: number | undefined;
|
|
2476
2477
|
branch_id: string;
|
|
2477
2478
|
project_id: string;
|
|
2478
2479
|
start_time?: string | undefined;
|
|
2479
2480
|
end_time?: string | undefined;
|
|
2480
2481
|
sort_order?: "asc" | "desc" | undefined;
|
|
2481
2482
|
since?: string | undefined;
|
|
2482
|
-
limit?: number | undefined;
|
|
2483
2483
|
source?: "function" | "storage" | "pg_endpoint" | undefined;
|
|
2484
2484
|
service_name?: string | undefined;
|
|
2485
2485
|
scope_name?: string | undefined;
|
|
@@ -2680,17 +2680,17 @@ export declare const toolFactories: {
|
|
|
2680
2680
|
}, z.core.$strict>>;
|
|
2681
2681
|
}, z.core.$strict>, "set_schedule_snapshots", null>;
|
|
2682
2682
|
"operations.list": (options: ToolClientOptions) => NeonTool<z.ZodType<{
|
|
2683
|
-
project_id: string;
|
|
2684
2683
|
limit?: number | undefined;
|
|
2685
|
-
}, {
|
|
2686
2684
|
project_id: string;
|
|
2685
|
+
}, {
|
|
2687
2686
|
limit?: number | undefined;
|
|
2688
|
-
}, z.core.$ZodTypeInternals<{
|
|
2689
2687
|
project_id: string;
|
|
2688
|
+
}, z.core.$ZodTypeInternals<{
|
|
2690
2689
|
limit?: number | undefined;
|
|
2691
|
-
}, {
|
|
2692
2690
|
project_id: string;
|
|
2691
|
+
}, {
|
|
2693
2692
|
limit?: number | undefined;
|
|
2693
|
+
project_id: string;
|
|
2694
2694
|
}>>, "list_operations", {
|
|
2695
2695
|
id: string;
|
|
2696
2696
|
project_id: string;
|
|
@@ -3272,37 +3272,37 @@ export declare const toolFactories: {
|
|
|
3272
3272
|
enabled: boolean;
|
|
3273
3273
|
}>;
|
|
3274
3274
|
"consumption.perProject": (options: ToolClientOptions) => NeonTool<z.ZodType<{
|
|
3275
|
+
limit?: number | undefined;
|
|
3275
3276
|
metrics?: string[] | undefined;
|
|
3276
3277
|
org_id?: string | undefined;
|
|
3277
3278
|
project_ids?: string[] | undefined;
|
|
3278
|
-
limit?: number | undefined;
|
|
3279
3279
|
from: string;
|
|
3280
3280
|
to: string;
|
|
3281
3281
|
granularity: "hourly" | "daily" | "monthly";
|
|
3282
3282
|
include_v1_metrics?: boolean | undefined;
|
|
3283
3283
|
}, {
|
|
3284
|
+
limit?: number | undefined;
|
|
3284
3285
|
metrics?: string[] | undefined;
|
|
3285
3286
|
org_id?: string | undefined;
|
|
3286
3287
|
project_ids?: string[] | undefined;
|
|
3287
|
-
limit?: number | undefined;
|
|
3288
3288
|
from: string;
|
|
3289
3289
|
to: string;
|
|
3290
3290
|
granularity: "hourly" | "daily" | "monthly";
|
|
3291
3291
|
include_v1_metrics?: boolean | undefined;
|
|
3292
3292
|
}, z.core.$ZodTypeInternals<{
|
|
3293
|
+
limit?: number | undefined;
|
|
3293
3294
|
metrics?: string[] | undefined;
|
|
3294
3295
|
org_id?: string | undefined;
|
|
3295
3296
|
project_ids?: string[] | undefined;
|
|
3296
|
-
limit?: number | undefined;
|
|
3297
3297
|
from: string;
|
|
3298
3298
|
to: string;
|
|
3299
3299
|
granularity: "hourly" | "daily" | "monthly";
|
|
3300
3300
|
include_v1_metrics?: boolean | undefined;
|
|
3301
3301
|
}, {
|
|
3302
|
+
limit?: number | undefined;
|
|
3302
3303
|
metrics?: string[] | undefined;
|
|
3303
3304
|
org_id?: string | undefined;
|
|
3304
3305
|
project_ids?: string[] | undefined;
|
|
3305
|
-
limit?: number | undefined;
|
|
3306
3306
|
from: string;
|
|
3307
3307
|
to: string;
|
|
3308
3308
|
granularity: "hourly" | "daily" | "monthly";
|
|
@@ -3328,34 +3328,34 @@ export declare const toolFactories: {
|
|
|
3328
3328
|
}[];
|
|
3329
3329
|
}[]>;
|
|
3330
3330
|
"consumption.perProjectV2": (options: ToolClientOptions) => NeonTool<z.ZodType<{
|
|
3331
|
+
limit?: number | undefined;
|
|
3331
3332
|
metrics: string[];
|
|
3332
3333
|
org_id: string;
|
|
3333
3334
|
project_ids?: string[] | undefined;
|
|
3334
|
-
limit?: number | undefined;
|
|
3335
3335
|
from: string;
|
|
3336
3336
|
to: string;
|
|
3337
3337
|
granularity: "hourly" | "daily" | "monthly";
|
|
3338
3338
|
}, {
|
|
3339
|
+
limit?: number | undefined;
|
|
3339
3340
|
metrics: string[];
|
|
3340
3341
|
org_id: string;
|
|
3341
3342
|
project_ids?: string[] | undefined;
|
|
3342
|
-
limit?: number | undefined;
|
|
3343
3343
|
from: string;
|
|
3344
3344
|
to: string;
|
|
3345
3345
|
granularity: "hourly" | "daily" | "monthly";
|
|
3346
3346
|
}, z.core.$ZodTypeInternals<{
|
|
3347
|
+
limit?: number | undefined;
|
|
3347
3348
|
metrics: string[];
|
|
3348
3349
|
org_id: string;
|
|
3349
3350
|
project_ids?: string[] | undefined;
|
|
3350
|
-
limit?: number | undefined;
|
|
3351
3351
|
from: string;
|
|
3352
3352
|
to: string;
|
|
3353
3353
|
granularity: "hourly" | "daily" | "monthly";
|
|
3354
3354
|
}, {
|
|
3355
|
+
limit?: number | undefined;
|
|
3355
3356
|
metrics: string[];
|
|
3356
3357
|
org_id: string;
|
|
3357
3358
|
project_ids?: string[] | undefined;
|
|
3358
|
-
limit?: number | undefined;
|
|
3359
3359
|
from: string;
|
|
3360
3360
|
to: string;
|
|
3361
3361
|
granularity: "hourly" | "daily" | "monthly";
|
|
@@ -3377,37 +3377,37 @@ export declare const toolFactories: {
|
|
|
3377
3377
|
}[];
|
|
3378
3378
|
}[]>;
|
|
3379
3379
|
"consumption.perBranchV2": (options: ToolClientOptions) => NeonTool<z.ZodType<{
|
|
3380
|
+
limit?: number | undefined;
|
|
3380
3381
|
metrics: string[];
|
|
3381
3382
|
org_id: string;
|
|
3382
3383
|
project_ids: string[];
|
|
3383
|
-
limit?: number | undefined;
|
|
3384
3384
|
from: string;
|
|
3385
3385
|
to: string;
|
|
3386
3386
|
granularity: "hourly" | "daily" | "monthly";
|
|
3387
3387
|
branch_ids?: string[] | undefined;
|
|
3388
3388
|
}, {
|
|
3389
|
+
limit?: number | undefined;
|
|
3389
3390
|
metrics: string[];
|
|
3390
3391
|
org_id: string;
|
|
3391
3392
|
project_ids: string[];
|
|
3392
|
-
limit?: number | undefined;
|
|
3393
3393
|
from: string;
|
|
3394
3394
|
to: string;
|
|
3395
3395
|
granularity: "hourly" | "daily" | "monthly";
|
|
3396
3396
|
branch_ids?: string[] | undefined;
|
|
3397
3397
|
}, z.core.$ZodTypeInternals<{
|
|
3398
|
+
limit?: number | undefined;
|
|
3398
3399
|
metrics: string[];
|
|
3399
3400
|
org_id: string;
|
|
3400
3401
|
project_ids: string[];
|
|
3401
|
-
limit?: number | undefined;
|
|
3402
3402
|
from: string;
|
|
3403
3403
|
to: string;
|
|
3404
3404
|
granularity: "hourly" | "daily" | "monthly";
|
|
3405
3405
|
branch_ids?: string[] | undefined;
|
|
3406
3406
|
}, {
|
|
3407
|
+
limit?: number | undefined;
|
|
3407
3408
|
metrics: string[];
|
|
3408
3409
|
org_id: string;
|
|
3409
3410
|
project_ids: string[];
|
|
3410
|
-
limit?: number | undefined;
|
|
3411
3411
|
from: string;
|
|
3412
3412
|
to: string;
|
|
3413
3413
|
granularity: "hourly" | "daily" | "monthly";
|
|
@@ -3476,25 +3476,25 @@ export declare const toolFactories: {
|
|
|
3476
3476
|
require_mfa?: boolean | null | undefined;
|
|
3477
3477
|
}>;
|
|
3478
3478
|
"organizations.members.list": (options: ToolClientOptions) => NeonTool<z.ZodType<{
|
|
3479
|
+
limit?: number | undefined;
|
|
3479
3480
|
org_id: string;
|
|
3480
3481
|
sort_by?: "email" | "role" | "joined_at" | undefined;
|
|
3481
3482
|
sort_order?: "asc" | "desc" | undefined;
|
|
3482
|
-
limit?: number | undefined;
|
|
3483
3483
|
}, {
|
|
3484
|
+
limit?: number | undefined;
|
|
3484
3485
|
org_id: string;
|
|
3485
3486
|
sort_by?: "email" | "role" | "joined_at" | undefined;
|
|
3486
3487
|
sort_order?: "asc" | "desc" | undefined;
|
|
3487
|
-
limit?: number | undefined;
|
|
3488
3488
|
}, z.core.$ZodTypeInternals<{
|
|
3489
|
+
limit?: number | undefined;
|
|
3489
3490
|
org_id: string;
|
|
3490
3491
|
sort_by?: "email" | "role" | "joined_at" | undefined;
|
|
3491
3492
|
sort_order?: "asc" | "desc" | undefined;
|
|
3492
|
-
limit?: number | undefined;
|
|
3493
3493
|
}, {
|
|
3494
|
+
limit?: number | undefined;
|
|
3494
3495
|
org_id: string;
|
|
3495
3496
|
sort_by?: "email" | "role" | "joined_at" | undefined;
|
|
3496
3497
|
sort_order?: "asc" | "desc" | undefined;
|
|
3497
|
-
limit?: number | undefined;
|
|
3498
3498
|
}>>, "list_organizations_members", {
|
|
3499
3499
|
member: {
|
|
3500
3500
|
id: string;
|
|
@@ -3842,6 +3842,9 @@ export declare const toolFactories: {
|
|
|
3842
3842
|
enabled_events?: ("user.before_create" | "user.created" | "send.otp" | "send.magic_link" | "organization.invitation.created" | "organization.invitation.accepted" | "phone_number.verified")[] | null | undefined;
|
|
3843
3843
|
timeout_seconds?: number | null | undefined;
|
|
3844
3844
|
} | null;
|
|
3845
|
+
logs_export: {
|
|
3846
|
+
enabled: boolean;
|
|
3847
|
+
} | null;
|
|
3845
3848
|
}>;
|
|
3846
3849
|
"resources.search": (options: ToolClientOptions) => NeonTool<z.ZodObject<{
|
|
3847
3850
|
query: z.ZodString;
|
|
@@ -4041,7 +4044,7 @@ export declare const toolFactories: {
|
|
|
4041
4044
|
compute_id: z.ZodOptional<z.ZodString>;
|
|
4042
4045
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
4043
4046
|
}, z.core.$strict>, "inspect_database", {
|
|
4044
|
-
check: import("
|
|
4047
|
+
check: import("../../index.js").InspectCheck;
|
|
4045
4048
|
describe: string;
|
|
4046
4049
|
projectId: string;
|
|
4047
4050
|
branchId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../../src/lib/ergonomic/catalog.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAyBzB,OAAO,KAAK,EAAE,QAAQ,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAE1E,OAAO,EAMN,KAAK,iBAAiB,EACtB,MAAM,WAAW,CAAC;AAenB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAwE3C,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,UAAU,CAAC,CAAC;AAE7D,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;CA4iEK,CAAC"}
|
|
@@ -307,7 +307,7 @@ const connectionStringTool = (options) => bindTool(options, {
|
|
|
307
307
|
operationId: "postgres.connectionString",
|
|
308
308
|
id: publishedId("postgres.connectionString"),
|
|
309
309
|
title: "Get connection string",
|
|
310
|
-
description: "Returns a Postgres connection string with a role password. Omitted inputs resolve like the SQL tools: default branch, neondb or the first database, and its owner. Call it after {{projects.create}} or {{branches.create}}, which return none.",
|
|
310
|
+
description: "Returns a Postgres connection string with a role password; the branch needs a compute. Omitted inputs resolve like the SQL tools: default branch, neondb or the first database, and its owner. Call it after {{projects.create}} or {{branches.create}}, which return none.",
|
|
311
311
|
inputSchema: connectionStringInputSchema,
|
|
312
312
|
annotations: readAnnotations,
|
|
313
313
|
requiresApproval: true,
|
package/dist/operations.gen.js
CHANGED
|
@@ -6320,7 +6320,7 @@ const operationFactories = {
|
|
|
6320
6320
|
"enabled": zUpdateNeonAuthOAuthProviderPluginBody.shape.enabled,
|
|
6321
6321
|
"login_page": zUpdateNeonAuthOAuthProviderPluginBody.shape.login_page,
|
|
6322
6322
|
"consent_page": zUpdateNeonAuthOAuthProviderPluginBody.shape.consent_page,
|
|
6323
|
-
"mcp": zUpdateNeonAuthOAuthProviderPluginBody.shape.mcp,
|
|
6323
|
+
"mcp": zUpdateNeonAuthOAuthProviderPluginBody.shape.mcp.describe("Needs resource; resource \"\" removes the MCP configuration. Omitted booleans keep their value. Prefer client_id_metadata_documents over the deprecated dynamic_registration."),
|
|
6324
6324
|
"resources": zUpdateNeonAuthOAuthProviderPluginBody.shape.resources
|
|
6325
6325
|
}),
|
|
6326
6326
|
annotations: {
|