@neon/tools 2.14.0 → 2.14.2

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.
@@ -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,CA4I1E,CAAC;AAEF,gEAAgE;AAChE,eAAO,MAAM,qBAAqB;;;;CAIxB,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"}
@@ -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 = {
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuFpB,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,SAAS,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0B1D,CAAC"}
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 webhook, with secrets redacted. Needs Neon Auth on the branch ({{auth.create}}).",
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,
@@ -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;
@@ -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"}
@@ -1 +1 @@
1
- {"version":3,"file":"result.d.ts","sourceRoot":"","sources":["../../src/lib/result.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAsC/D,eAAO,MAAM,YAAY,GAAU,KAAK,EACvC,OAAO,KAAK,KACV,OAAO,CAAC,cAAc,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAExC,CAAC"}
1
+ {"version":3,"file":"result.d.ts","sourceRoot":"","sources":["../../src/lib/result.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AA8C/D,eAAO,MAAM,YAAY,GAAU,KAAK,EACvC,OAAO,KAAK,KACV,OAAO,CAAC,cAAc,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAExC,CAAC"}
@@ -7,6 +7,7 @@ async function toJsonSafe(value) {
7
7
  if (value instanceof Blob) return encodeBlob(value);
8
8
  if (value instanceof Date) return value.toISOString();
9
9
  if (Array.isArray(value)) return Promise.all(value.map(toJsonSafe));
10
+ if (typeof value === "object" && "toJSON" in value && typeof value.toJSON === "function") return toJsonSafe(value.toJSON());
10
11
  if (typeof value === "object") {
11
12
  const entries = await Promise.all(Object.entries(value).map(async ([key, child]) => [key, await toJsonSafe(child)]));
12
13
  return Object.fromEntries(entries);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neon/tools",
3
- "version": "2.14.0",
3
+ "version": "2.14.2",
4
4
  "description": "Agent tools for the Neon SDK ergonomic client, compatible with MCP, Eve, and Mastra.",
5
5
  "keywords": [
6
6
  "neon",