@neon/tools 2.7.0 → 2.8.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":"
|
|
1
|
+
{"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../../src/lib/ergonomic/catalog.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAMN,KAAK,iBAAiB,EACtB,MAAM,WAAW,CAAC;AAcnB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAgC3C,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,UAAU,CAAC,CAAC;AAE7D,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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@@ 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,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,
|
|
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",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neon/tools",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.0",
|
|
4
4
|
"description": "Agent tools for the Neon SDK ergonomic client, compatible with MCP, Eve, and Mastra.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"neon",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
],
|
|
70
70
|
"dependencies": {
|
|
71
71
|
"zod": "^4.5.4",
|
|
72
|
-
"@neon/sdk": "7.
|
|
72
|
+
"@neon/sdk": "7.10.0"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@hey-api/openapi-ts": "0.98.2",
|