@neon/tools 2.7.0 → 2.9.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.
@@ -2983,6 +2983,251 @@ export declare const toolFactories: {
2983
2983
  }, z.core.$strict>, "update_role_auth_users", {
2984
2984
  id: string;
2985
2985
  }>;
2986
+ "auth.allowLocalhost.get": (options: ToolClientOptions) => import("../operation.js").NeonTool<z.ZodObject<{
2987
+ project_id: z.ZodString;
2988
+ branch_id: z.ZodString;
2989
+ }, z.core.$strict>, "get_auth_allow_localhost", {
2990
+ allow_localhost: boolean;
2991
+ }>;
2992
+ "auth.allowLocalhost.update": (options: ToolClientOptions) => import("../operation.js").NeonTool<z.ZodObject<{
2993
+ project_id: z.ZodString;
2994
+ branch_id: z.ZodString;
2995
+ allow_localhost: z.ZodBoolean;
2996
+ }, z.core.$strict>, "update_auth_allow_localhost", {
2997
+ allow_localhost: boolean;
2998
+ }>;
2999
+ "auth.emailAndPassword.get": (options: ToolClientOptions) => import("../operation.js").NeonTool<z.ZodObject<{
3000
+ project_id: z.ZodString;
3001
+ branch_id: z.ZodString;
3002
+ }, z.core.$strict>, "get_auth_email_and_password", {
3003
+ enabled: boolean;
3004
+ email_verification_method: import("@neon/sdk").NeonAuthEmailVerificationMethod;
3005
+ require_email_verification: boolean;
3006
+ auto_sign_in_after_verification: boolean;
3007
+ send_verification_email_on_sign_up: boolean;
3008
+ send_verification_email_on_sign_in: boolean;
3009
+ disable_sign_up: boolean;
3010
+ revoke_sessions_on_password_reset: boolean;
3011
+ }>;
3012
+ "auth.emailAndPassword.update": (options: ToolClientOptions) => import("../operation.js").NeonTool<z.ZodObject<{
3013
+ project_id: z.ZodString;
3014
+ branch_id: z.ZodString;
3015
+ enabled: z.ZodOptional<z.ZodBoolean>;
3016
+ email_verification_method: z.ZodOptional<z.ZodEnum<{
3017
+ link: "link";
3018
+ otp: "otp";
3019
+ }>>;
3020
+ require_email_verification: z.ZodOptional<z.ZodBoolean>;
3021
+ auto_sign_in_after_verification: z.ZodOptional<z.ZodBoolean>;
3022
+ send_verification_email_on_sign_up: z.ZodOptional<z.ZodBoolean>;
3023
+ send_verification_email_on_sign_in: z.ZodOptional<z.ZodBoolean>;
3024
+ disable_sign_up: z.ZodOptional<z.ZodBoolean>;
3025
+ revoke_sessions_on_password_reset: z.ZodOptional<z.ZodBoolean>;
3026
+ }, z.core.$strict>, "update_auth_email_and_password", {
3027
+ enabled: boolean;
3028
+ email_verification_method: import("@neon/sdk").NeonAuthEmailVerificationMethod;
3029
+ require_email_verification: boolean;
3030
+ auto_sign_in_after_verification: boolean;
3031
+ send_verification_email_on_sign_up: boolean;
3032
+ send_verification_email_on_sign_in: boolean;
3033
+ disable_sign_up: boolean;
3034
+ revoke_sessions_on_password_reset: boolean;
3035
+ }>;
3036
+ "auth.emailProvider.get": (options: ToolClientOptions) => import("../operation.js").NeonTool<z.ZodObject<{
3037
+ project_id: z.ZodString;
3038
+ branch_id: z.ZodString;
3039
+ }, z.core.$strict>, "get_auth_email_provider", {
3040
+ type: "standard";
3041
+ host: string;
3042
+ port: number;
3043
+ username: string;
3044
+ password: string;
3045
+ sender_email: string;
3046
+ sender_name: string;
3047
+ } | {
3048
+ type: "shared";
3049
+ sender_email?: string | null | undefined;
3050
+ sender_name?: string | null | undefined;
3051
+ }>;
3052
+ "auth.emailProvider.update": (options: ToolClientOptions) => import("../operation.js").NeonTool<z.ZodObject<{
3053
+ project_id: z.ZodString;
3054
+ branch_id: z.ZodString;
3055
+ body: z.ZodDiscriminatedUnion<[z.ZodObject<{
3056
+ host: z.ZodOptional<z.ZodString>;
3057
+ port: z.ZodOptional<z.ZodInt>;
3058
+ username: z.ZodOptional<z.ZodString>;
3059
+ password: z.ZodOptional<z.ZodString>;
3060
+ sender_email: z.ZodOptional<z.ZodString>;
3061
+ sender_name: z.ZodOptional<z.ZodString>;
3062
+ type: z.ZodLiteral<"standard">;
3063
+ }, z.core.$strict>, z.ZodObject<{
3064
+ sender_email: z.ZodOptional<z.ZodString>;
3065
+ sender_name: z.ZodOptional<z.ZodString>;
3066
+ type: z.ZodLiteral<"shared">;
3067
+ }, z.core.$strict>], "type">;
3068
+ }, z.core.$strict>, "update_auth_email_provider", {
3069
+ type: "standard";
3070
+ host: string;
3071
+ port: number;
3072
+ username: string;
3073
+ password: string;
3074
+ sender_email: string;
3075
+ sender_name: string;
3076
+ } | {
3077
+ type: "shared";
3078
+ sender_email?: string | null | undefined;
3079
+ sender_name?: string | null | undefined;
3080
+ }>;
3081
+ "auth.emailProvider.sendTest": (options: ToolClientOptions) => import("../operation.js").NeonTool<z.ZodObject<{
3082
+ project_id: z.ZodString;
3083
+ branch_id: z.ZodString;
3084
+ recipient_email: z.ZodEmail;
3085
+ }, z.core.$strict>, "send_test_auth_email_provider", {
3086
+ success: boolean;
3087
+ error_message?: string | null | undefined;
3088
+ }>;
3089
+ "auth.plugins.get": (options: ToolClientOptions) => import("../operation.js").NeonTool<z.ZodObject<{
3090
+ project_id: z.ZodString;
3091
+ branch_id: z.ZodString;
3092
+ }, z.core.$strict>, "get_auth_plugins", {
3093
+ organization?: {
3094
+ enabled: boolean;
3095
+ organization_limit: number;
3096
+ membership_limit: number;
3097
+ creator_role: "admin" | "owner";
3098
+ send_invitation_email: boolean;
3099
+ } | null | undefined;
3100
+ magic_link?: {
3101
+ enabled: boolean;
3102
+ expires_in: number;
3103
+ disable_sign_up: boolean;
3104
+ } | null | undefined;
3105
+ phone_number?: {
3106
+ enabled: boolean;
3107
+ otp_expires_in?: number | null | undefined;
3108
+ } | null | undefined;
3109
+ oauth_provider?: {
3110
+ enabled: boolean;
3111
+ login_page?: string | null | undefined;
3112
+ consent_page?: string | null | undefined;
3113
+ mcp?: {
3114
+ resource?: string | null | undefined;
3115
+ dynamic_registration?: boolean | null | undefined;
3116
+ client_id_metadata_documents?: boolean | null | undefined;
3117
+ } | null | undefined;
3118
+ resources?: {
3119
+ identifier: string;
3120
+ }[] | null | undefined;
3121
+ } | null | undefined;
3122
+ email_provider?: {
3123
+ type: "standard";
3124
+ host: string;
3125
+ port: number;
3126
+ username: string;
3127
+ password: string;
3128
+ sender_email: string;
3129
+ sender_name: string;
3130
+ } | {
3131
+ type: "shared";
3132
+ sender_email?: string | null | undefined;
3133
+ sender_name?: string | null | undefined;
3134
+ } | null | undefined;
3135
+ email_and_password?: {
3136
+ enabled: boolean;
3137
+ email_verification_method: import("@neon/sdk").NeonAuthEmailVerificationMethod;
3138
+ require_email_verification: boolean;
3139
+ auto_sign_in_after_verification: boolean;
3140
+ send_verification_email_on_sign_up: boolean;
3141
+ send_verification_email_on_sign_in: boolean;
3142
+ disable_sign_up: boolean;
3143
+ revoke_sessions_on_password_reset: boolean;
3144
+ } | null | undefined;
3145
+ oauth_providers?: {
3146
+ id: import("@neon/sdk").NeonAuthOauthProviderId;
3147
+ type: import("@neon/sdk").NeonAuthOauthProviderType;
3148
+ client_id?: string | null | undefined;
3149
+ client_secret?: string | null | undefined;
3150
+ microsoft_tenant_id?: string | null | undefined;
3151
+ apple_team_id?: string | null | undefined;
3152
+ apple_key_id?: string | null | undefined;
3153
+ }[] | null | undefined;
3154
+ allow_localhost?: boolean | null | undefined;
3155
+ }>;
3156
+ "auth.plugins.magicLink.update": (options: ToolClientOptions) => import("../operation.js").NeonTool<z.ZodObject<{
3157
+ project_id: z.ZodString;
3158
+ branch_id: z.ZodString;
3159
+ enabled: z.ZodOptional<z.ZodBoolean>;
3160
+ expires_in: z.ZodOptional<z.ZodInt>;
3161
+ disable_sign_up: z.ZodOptional<z.ZodBoolean>;
3162
+ }, z.core.$strict>, "update_auth_plugins_magic_link", {
3163
+ enabled: boolean;
3164
+ expires_in: number;
3165
+ disable_sign_up: boolean;
3166
+ }>;
3167
+ "auth.plugins.organization.update": (options: ToolClientOptions) => import("../operation.js").NeonTool<z.ZodObject<{
3168
+ project_id: z.ZodString;
3169
+ branch_id: z.ZodString;
3170
+ enabled: z.ZodOptional<z.ZodBoolean>;
3171
+ organization_limit: z.ZodOptional<z.ZodInt>;
3172
+ membership_limit: z.ZodOptional<z.ZodInt>;
3173
+ creator_role: z.ZodOptional<z.ZodEnum<{
3174
+ admin: "admin";
3175
+ owner: "owner";
3176
+ }>>;
3177
+ send_invitation_email: z.ZodOptional<z.ZodBoolean>;
3178
+ }, z.core.$strict>, "update_auth_plugins_organization", {
3179
+ enabled: boolean;
3180
+ organization_limit: number;
3181
+ membership_limit: number;
3182
+ creator_role: "admin" | "owner";
3183
+ send_invitation_email: boolean;
3184
+ }>;
3185
+ "auth.plugins.phoneNumber.get": (options: ToolClientOptions) => import("../operation.js").NeonTool<z.ZodObject<{
3186
+ project_id: z.ZodString;
3187
+ branch_id: z.ZodString;
3188
+ }, z.core.$strict>, "get_auth_plugins_phone_number", {
3189
+ enabled: boolean;
3190
+ otp_expires_in?: number | null | undefined;
3191
+ }>;
3192
+ "auth.plugins.phoneNumber.update": (options: ToolClientOptions) => import("../operation.js").NeonTool<z.ZodObject<{
3193
+ project_id: z.ZodString;
3194
+ branch_id: z.ZodString;
3195
+ enabled: z.ZodOptional<z.ZodBoolean>;
3196
+ otp_expires_in: z.ZodOptional<z.ZodInt>;
3197
+ }, z.core.$strict>, "update_auth_plugins_phone_number", {
3198
+ enabled: boolean;
3199
+ otp_expires_in?: number | null | undefined;
3200
+ }>;
3201
+ "auth.webhooks.get": (options: ToolClientOptions) => import("../operation.js").NeonTool<z.ZodObject<{
3202
+ project_id: z.ZodString;
3203
+ branch_id: z.ZodString;
3204
+ }, z.core.$strict>, "get_auth_webhooks", {
3205
+ enabled: boolean;
3206
+ webhook_url?: string | null | undefined;
3207
+ enabled_events?: ("user.before_create" | "user.created" | "send.otp" | "send.magic_link" | "organization.invitation.created" | "organization.invitation.accepted" | "phone_number.verified")[] | null | undefined;
3208
+ timeout_seconds?: number | null | undefined;
3209
+ }>;
3210
+ "auth.webhooks.update": (options: ToolClientOptions) => import("../operation.js").NeonTool<z.ZodObject<{
3211
+ project_id: z.ZodString;
3212
+ branch_id: z.ZodString;
3213
+ enabled: z.ZodBoolean;
3214
+ webhook_url: z.ZodOptional<z.ZodString>;
3215
+ enabled_events: z.ZodOptional<z.ZodArray<z.ZodEnum<{
3216
+ "user.before_create": "user.before_create";
3217
+ "user.created": "user.created";
3218
+ "send.otp": "send.otp";
3219
+ "send.magic_link": "send.magic_link";
3220
+ "organization.invitation.created": "organization.invitation.created";
3221
+ "organization.invitation.accepted": "organization.invitation.accepted";
3222
+ "phone_number.verified": "phone_number.verified";
3223
+ }>>>;
3224
+ timeout_seconds: z.ZodOptional<z.ZodInt>;
3225
+ }, z.core.$strict>, "update_auth_webhooks", {
3226
+ enabled: boolean;
3227
+ webhook_url?: string | null | undefined;
3228
+ enabled_events?: ("user.before_create" | "user.created" | "send.otp" | "send.magic_link" | "organization.invitation.created" | "organization.invitation.accepted" | "phone_number.verified")[] | null | undefined;
3229
+ timeout_seconds?: number | null | undefined;
3230
+ }>;
2986
3231
  "consumption.perProject": (options: ToolClientOptions) => import("../operation.js").NeonTool<z.ZodType<{
2987
3232
  metrics?: string[] | undefined;
2988
3233
  org_id?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../../src/lib/ergonomic/catalog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAMN,KAAK,iBAAiB,EACtB,MAAM,WAAW,CAAC;AAcnB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAS3C,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,UAAU,CAAC,CAAC;AAE7D,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8/D6C,CAAC"}
@@ -9,6 +9,18 @@ const logReadAnnotations = {
9
9
  idempotentHint: true,
10
10
  openWorldHint: false
11
11
  };
12
+ const withoutSmtpPassword = (config) => config.type === "standard" ? {
13
+ ...config,
14
+ password: ""
15
+ } : config;
16
+ const withoutPluginSecrets = (plugins) => ({
17
+ ...plugins,
18
+ ...plugins.email_provider && { email_provider: withoutSmtpPassword(plugins.email_provider) },
19
+ ...plugins.oauth_providers && { oauth_providers: plugins.oauth_providers.map((provider) => provider.client_secret === void 0 ? provider : {
20
+ ...provider,
21
+ client_secret: ""
22
+ }) }
23
+ });
12
24
  const toolFactories = {
13
25
  "projects.list": (options) => fromGenerated(options, {
14
26
  id: "projects.list",
@@ -1053,6 +1065,145 @@ const toolFactories = {
1053
1065
  roles: input.roles
1054
1066
  }, { signal })
1055
1067
  }),
1068
+ "auth.allowLocalhost.get": (options) => fromGenerated(options, {
1069
+ id: "auth.allowLocalhost.get",
1070
+ generated: "getNeonAuthAllowLocalhost",
1071
+ run: (neon, input, signal) => neon.auth.allowLocalhost.get({
1072
+ projectId: input.project_id,
1073
+ branchId: input.branch_id
1074
+ }, { signal })
1075
+ }),
1076
+ "auth.allowLocalhost.update": (options) => fromGenerated(options, {
1077
+ id: "auth.allowLocalhost.update",
1078
+ generated: "updateNeonAuthAllowLocalhost",
1079
+ run: (neon, input, signal) => neon.auth.allowLocalhost.update({
1080
+ projectId: input.project_id,
1081
+ branchId: input.branch_id,
1082
+ allow_localhost: input.allow_localhost
1083
+ }, { signal })
1084
+ }),
1085
+ "auth.emailAndPassword.get": (options) => fromGenerated(options, {
1086
+ id: "auth.emailAndPassword.get",
1087
+ generated: "getNeonAuthEmailAndPasswordConfig",
1088
+ run: (neon, input, signal) => neon.auth.emailAndPassword.get({
1089
+ projectId: input.project_id,
1090
+ branchId: input.branch_id
1091
+ }, { signal })
1092
+ }),
1093
+ "auth.emailAndPassword.update": (options) => fromGenerated(options, {
1094
+ id: "auth.emailAndPassword.update",
1095
+ generated: "updateNeonAuthEmailAndPasswordConfig",
1096
+ run: (neon, input, signal) => neon.auth.emailAndPassword.update({
1097
+ projectId: input.project_id,
1098
+ branchId: input.branch_id,
1099
+ enabled: input.enabled,
1100
+ email_verification_method: input.email_verification_method,
1101
+ require_email_verification: input.require_email_verification,
1102
+ auto_sign_in_after_verification: input.auto_sign_in_after_verification,
1103
+ send_verification_email_on_sign_up: input.send_verification_email_on_sign_up,
1104
+ send_verification_email_on_sign_in: input.send_verification_email_on_sign_in,
1105
+ disable_sign_up: input.disable_sign_up,
1106
+ revoke_sessions_on_password_reset: input.revoke_sessions_on_password_reset
1107
+ }, { signal })
1108
+ }),
1109
+ "auth.emailProvider.get": (options) => fromGenerated(options, {
1110
+ id: "auth.emailProvider.get",
1111
+ generated: "getNeonAuthEmailProvider",
1112
+ requiresApproval: false,
1113
+ run: async (neon, input, signal) => withoutSmtpPassword(await neon.auth.emailProvider.get({
1114
+ projectId: input.project_id,
1115
+ branchId: input.branch_id
1116
+ }, { signal }))
1117
+ }),
1118
+ "auth.emailProvider.update": (options) => fromGenerated(options, {
1119
+ id: "auth.emailProvider.update",
1120
+ generated: "updateNeonAuthEmailProvider",
1121
+ run: async (neon, input, signal) => withoutSmtpPassword(await neon.auth.emailProvider.update({
1122
+ projectId: input.project_id,
1123
+ branchId: input.branch_id,
1124
+ ...input.body
1125
+ }, { signal }))
1126
+ }),
1127
+ "auth.emailProvider.sendTest": (options) => fromGenerated(options, {
1128
+ id: "auth.emailProvider.sendTest",
1129
+ generated: "sendNeonAuthEmailProviderTest",
1130
+ run: (neon, input, signal) => neon.auth.emailProvider.sendTest({
1131
+ projectId: input.project_id,
1132
+ branchId: input.branch_id,
1133
+ recipient_email: input.recipient_email
1134
+ }, { signal })
1135
+ }),
1136
+ "auth.plugins.get": (options) => fromGenerated(options, {
1137
+ id: "auth.plugins.get",
1138
+ generated: "getNeonAuthPluginConfigs",
1139
+ requiresApproval: false,
1140
+ run: async (neon, input, signal) => withoutPluginSecrets(await neon.auth.plugins.get({
1141
+ projectId: input.project_id,
1142
+ branchId: input.branch_id
1143
+ }, { signal }))
1144
+ }),
1145
+ "auth.plugins.magicLink.update": (options) => fromGenerated(options, {
1146
+ id: "auth.plugins.magicLink.update",
1147
+ generated: "updateNeonAuthMagicLinkPlugin",
1148
+ run: (neon, input, signal) => neon.auth.plugins.magicLink.update({
1149
+ projectId: input.project_id,
1150
+ branchId: input.branch_id,
1151
+ enabled: input.enabled,
1152
+ expires_in: input.expires_in,
1153
+ disable_sign_up: input.disable_sign_up
1154
+ }, { signal })
1155
+ }),
1156
+ "auth.plugins.organization.update": (options) => fromGenerated(options, {
1157
+ id: "auth.plugins.organization.update",
1158
+ generated: "updateNeonAuthOrganizationPlugin",
1159
+ run: (neon, input, signal) => neon.auth.plugins.organization.update({
1160
+ projectId: input.project_id,
1161
+ branchId: input.branch_id,
1162
+ enabled: input.enabled,
1163
+ organization_limit: input.organization_limit,
1164
+ membership_limit: input.membership_limit,
1165
+ creator_role: input.creator_role,
1166
+ send_invitation_email: input.send_invitation_email
1167
+ }, { signal })
1168
+ }),
1169
+ "auth.plugins.phoneNumber.get": (options) => fromGenerated(options, {
1170
+ id: "auth.plugins.phoneNumber.get",
1171
+ generated: "getNeonAuthPhoneNumberPlugin",
1172
+ run: (neon, input, signal) => neon.auth.plugins.phoneNumber.get({
1173
+ projectId: input.project_id,
1174
+ branchId: input.branch_id
1175
+ }, { signal })
1176
+ }),
1177
+ "auth.plugins.phoneNumber.update": (options) => fromGenerated(options, {
1178
+ id: "auth.plugins.phoneNumber.update",
1179
+ generated: "updateNeonAuthPhoneNumberPlugin",
1180
+ run: (neon, input, signal) => neon.auth.plugins.phoneNumber.update({
1181
+ projectId: input.project_id,
1182
+ branchId: input.branch_id,
1183
+ enabled: input.enabled,
1184
+ otp_expires_in: input.otp_expires_in
1185
+ }, { signal })
1186
+ }),
1187
+ "auth.webhooks.get": (options) => fromGenerated(options, {
1188
+ id: "auth.webhooks.get",
1189
+ generated: "getNeonAuthWebhookConfig",
1190
+ run: (neon, input, signal) => neon.auth.webhooks.get({
1191
+ projectId: input.project_id,
1192
+ branchId: input.branch_id
1193
+ }, { signal })
1194
+ }),
1195
+ "auth.webhooks.update": (options) => fromGenerated(options, {
1196
+ id: "auth.webhooks.update",
1197
+ generated: "updateNeonAuthWebhookConfig",
1198
+ run: (neon, input, signal) => neon.auth.webhooks.update({
1199
+ projectId: input.project_id,
1200
+ branchId: input.branch_id,
1201
+ enabled: input.enabled,
1202
+ webhook_url: input.webhook_url,
1203
+ enabled_events: input.enabled_events,
1204
+ timeout_seconds: input.timeout_seconds
1205
+ }, { signal })
1206
+ }),
1056
1207
  "consumption.perProject": (options) => fromGenerated(options, {
1057
1208
  id: "consumption.perProject",
1058
1209
  generated: "getConsumptionHistoryPerProject",
@@ -1 +1 @@
1
- {"version":3,"file":"composed.d.ts","sourceRoot":"","sources":["../../../src/lib/ergonomic/composed.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAyB,KAAK,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAmD1E,eAAO,MAAM,uBAAuB;;;;;;;;;;kBAqBjC,CAAC;AAEJ,eAAO,MAAM,iCAAiC;;;;;;;;;;kBAM5C,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAEnC,CAAC;AAEH,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAG7C,CAAC;AAEH,eAAO,MAAM,qBAAqB;;kBAEhC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;kBAOrC,CAAC;AAIH,eAAO,MAAM,wBAAwB;;;;;;;;;kBASnC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;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;;;;;;;;;;;;;EA+B5D,CAAC;AAEH,eAAO,MAAM,eAAe,GAAI,SAAS,iBAAiB;;;;;;;;;;;;;;mDA6BxD,CAAC"}
@@ -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,
@@ -114,7 +114,7 @@ const setScheduleInputSchema = z.strictObject({
114
114
  schedule: z.array(z.strictObject({
115
115
  ...zBackupScheduleItem.shape,
116
116
  frequency: snapshotFrequency
117
- }))
117
+ })).describe("Schedule entries defining the backup frequency.")
118
118
  });
119
119
  const createBranchTool = (options) => bindTool(options, {
120
120
  operationId: "branches.create",
@@ -1,6 +1,6 @@
1
1
  export declare const hiddenToolIds: readonly ["operations.waitFor", "postgres.roles.password", "storage.objects.get", "credentials.reveal"];
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", "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", "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,yGAKhB,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1D,eAAO,MAAM,OAAO,kzGA2IV,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;AAU7C,eAAO,MAAM,oBAAoB,GAAI,IAAI,MAAM,KAAG,SAOjD,CAAC"}
1
+ {"version":3,"file":"ids.d.ts","sourceRoot":"","sources":["../../../src/lib/ergonomic/ids.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,yGAKhB,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1D,eAAO,MAAM,OAAO,usHAyJV,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;AAU7C,eAAO,MAAM,oBAAoB,GAAI,IAAI,MAAM,KAAG,SAOjD,CAAC"}
@@ -122,6 +122,20 @@ const toolIds = [
122
122
  "auth.users.create",
123
123
  "auth.users.delete",
124
124
  "auth.users.updateRole",
125
+ "auth.allowLocalhost.get",
126
+ "auth.allowLocalhost.update",
127
+ "auth.emailAndPassword.get",
128
+ "auth.emailAndPassword.update",
129
+ "auth.emailProvider.get",
130
+ "auth.emailProvider.update",
131
+ "auth.emailProvider.sendTest",
132
+ "auth.plugins.get",
133
+ "auth.plugins.magicLink.update",
134
+ "auth.plugins.organization.update",
135
+ "auth.plugins.phoneNumber.get",
136
+ "auth.plugins.phoneNumber.update",
137
+ "auth.webhooks.get",
138
+ "auth.webhooks.update",
125
139
  "consumption.perProject",
126
140
  "consumption.perProjectV2",
127
141
  "consumption.perBranchV2",
@@ -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 binary file contents.").optional(),
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,