@neon/tools 2.6.1 → 2.7.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.
|
@@ -3174,6 +3174,168 @@ export declare const toolFactories: {
|
|
|
3174
3174
|
last_used_from_addr: string;
|
|
3175
3175
|
revoked: boolean;
|
|
3176
3176
|
}>;
|
|
3177
|
+
"organizations.get": (options: ToolClientOptions) => import("../operation.js").NeonTool<z.ZodObject<{
|
|
3178
|
+
org_id: z.ZodString;
|
|
3179
|
+
}, z.core.$strict>, "get_organizations", {
|
|
3180
|
+
id: string;
|
|
3181
|
+
name: string;
|
|
3182
|
+
handle: string;
|
|
3183
|
+
plan: string;
|
|
3184
|
+
created_at: string;
|
|
3185
|
+
managed_by: string;
|
|
3186
|
+
updated_at: string;
|
|
3187
|
+
allow_hipaa_projects?: boolean | null | undefined;
|
|
3188
|
+
require_mfa?: boolean | null | undefined;
|
|
3189
|
+
}>;
|
|
3190
|
+
"organizations.members.list": (options: ToolClientOptions) => import("../operation.js").NeonTool<z.ZodType<{
|
|
3191
|
+
org_id: string;
|
|
3192
|
+
sort_by?: "email" | "role" | "joined_at" | undefined;
|
|
3193
|
+
sort_order?: "asc" | "desc" | undefined;
|
|
3194
|
+
limit?: number | undefined;
|
|
3195
|
+
}, {
|
|
3196
|
+
org_id: string;
|
|
3197
|
+
sort_by?: "email" | "role" | "joined_at" | undefined;
|
|
3198
|
+
sort_order?: "asc" | "desc" | undefined;
|
|
3199
|
+
limit?: number | undefined;
|
|
3200
|
+
}, z.core.$ZodTypeInternals<{
|
|
3201
|
+
org_id: string;
|
|
3202
|
+
sort_by?: "email" | "role" | "joined_at" | undefined;
|
|
3203
|
+
sort_order?: "asc" | "desc" | undefined;
|
|
3204
|
+
limit?: number | undefined;
|
|
3205
|
+
}, {
|
|
3206
|
+
org_id: string;
|
|
3207
|
+
sort_by?: "email" | "role" | "joined_at" | undefined;
|
|
3208
|
+
sort_order?: "asc" | "desc" | undefined;
|
|
3209
|
+
limit?: number | undefined;
|
|
3210
|
+
}>>, "list_organizations_members", {
|
|
3211
|
+
member: {
|
|
3212
|
+
id: string;
|
|
3213
|
+
user_id: string;
|
|
3214
|
+
org_id: string;
|
|
3215
|
+
role: import("@neon/sdk").MemberRole;
|
|
3216
|
+
joined_at?: string | null | undefined;
|
|
3217
|
+
};
|
|
3218
|
+
user: {
|
|
3219
|
+
email: string;
|
|
3220
|
+
has_mfa?: boolean | null | undefined;
|
|
3221
|
+
deactivated_at?: string | null | undefined;
|
|
3222
|
+
};
|
|
3223
|
+
}[]>;
|
|
3224
|
+
"organizations.members.get": (options: ToolClientOptions) => import("../operation.js").NeonTool<z.ZodObject<{
|
|
3225
|
+
org_id: z.ZodString;
|
|
3226
|
+
member_id: z.ZodUUID;
|
|
3227
|
+
}, z.core.$strict>, "get_organizations_members", {
|
|
3228
|
+
id: string;
|
|
3229
|
+
user_id: string;
|
|
3230
|
+
org_id: string;
|
|
3231
|
+
role: import("@neon/sdk").MemberRole;
|
|
3232
|
+
joined_at?: string | null | undefined;
|
|
3233
|
+
}>;
|
|
3234
|
+
"organizations.members.update": (options: ToolClientOptions) => import("../operation.js").NeonTool<z.ZodObject<{
|
|
3235
|
+
org_id: z.ZodString;
|
|
3236
|
+
member_id: z.ZodUUID;
|
|
3237
|
+
role: z.ZodEnum<{
|
|
3238
|
+
viewer: "viewer";
|
|
3239
|
+
editor: "editor";
|
|
3240
|
+
admin: "admin";
|
|
3241
|
+
member: "member";
|
|
3242
|
+
collaborator: "collaborator";
|
|
3243
|
+
}>;
|
|
3244
|
+
}, z.core.$strict>, "update_organizations_members", {
|
|
3245
|
+
id: string;
|
|
3246
|
+
user_id: string;
|
|
3247
|
+
org_id: string;
|
|
3248
|
+
role: import("@neon/sdk").MemberRole;
|
|
3249
|
+
joined_at?: string | null | undefined;
|
|
3250
|
+
}>;
|
|
3251
|
+
"organizations.members.remove": (options: ToolClientOptions) => import("../operation.js").NeonTool<z.ZodObject<{
|
|
3252
|
+
org_id: z.ZodString;
|
|
3253
|
+
member_id: z.ZodUUID;
|
|
3254
|
+
}, z.core.$strict>, "remove_organizations_members", null>;
|
|
3255
|
+
"organizations.invitations.list": (options: ToolClientOptions) => import("../operation.js").NeonTool<z.ZodObject<{
|
|
3256
|
+
org_id: z.ZodString;
|
|
3257
|
+
}, z.core.$strict>, "list_organizations_invitations", {
|
|
3258
|
+
id: string;
|
|
3259
|
+
email: string;
|
|
3260
|
+
org_id: string;
|
|
3261
|
+
invited_by: string;
|
|
3262
|
+
invited_at: string;
|
|
3263
|
+
role: import("@neon/sdk").MemberRole;
|
|
3264
|
+
}[]>;
|
|
3265
|
+
"organizations.invitations.create": (options: ToolClientOptions) => import("../operation.js").NeonTool<z.ZodObject<{
|
|
3266
|
+
org_id: z.ZodString;
|
|
3267
|
+
invitations: z.ZodArray<z.ZodObject<{
|
|
3268
|
+
email: z.ZodEmail;
|
|
3269
|
+
role: z.ZodEnum<{
|
|
3270
|
+
viewer: "viewer";
|
|
3271
|
+
editor: "editor";
|
|
3272
|
+
admin: "admin";
|
|
3273
|
+
member: "member";
|
|
3274
|
+
collaborator: "collaborator";
|
|
3275
|
+
}>;
|
|
3276
|
+
}, z.core.$strict>>;
|
|
3277
|
+
}, z.core.$strict>, "create_organizations_invitations", {
|
|
3278
|
+
id: string;
|
|
3279
|
+
email: string;
|
|
3280
|
+
org_id: string;
|
|
3281
|
+
invited_by: string;
|
|
3282
|
+
invited_at: string;
|
|
3283
|
+
role: import("@neon/sdk").MemberRole;
|
|
3284
|
+
}[]>;
|
|
3285
|
+
"organizations.spendingLimit.get": (options: ToolClientOptions) => import("../operation.js").NeonTool<z.ZodObject<{
|
|
3286
|
+
org_id: z.ZodString;
|
|
3287
|
+
}, z.core.$strict>, "get_organizations_spending_limit", {
|
|
3288
|
+
spending_limit_cents: number | null;
|
|
3289
|
+
}>;
|
|
3290
|
+
"organizations.spendingLimit.set": (options: ToolClientOptions) => import("../operation.js").NeonTool<z.ZodObject<{
|
|
3291
|
+
org_id: z.ZodString;
|
|
3292
|
+
spending_limit_cents: z.ZodInt;
|
|
3293
|
+
}, z.core.$strict>, "set_organizations_spending_limit", {
|
|
3294
|
+
spending_limit_cents: number | null;
|
|
3295
|
+
}>;
|
|
3296
|
+
"organizations.spendingLimit.delete": (options: ToolClientOptions) => import("../operation.js").NeonTool<z.ZodObject<{
|
|
3297
|
+
org_id: z.ZodString;
|
|
3298
|
+
}, z.core.$strict>, "delete_organizations_spending_limit", null>;
|
|
3299
|
+
"organizations.apiKeys.list": (options: ToolClientOptions) => import("../operation.js").NeonTool<z.ZodObject<{
|
|
3300
|
+
org_id: z.ZodString;
|
|
3301
|
+
}, z.core.$strict>, "list_organizations_api_keys", {
|
|
3302
|
+
id: number;
|
|
3303
|
+
name: string;
|
|
3304
|
+
created_at: string;
|
|
3305
|
+
created_by: {
|
|
3306
|
+
id: string;
|
|
3307
|
+
name: string;
|
|
3308
|
+
image: string;
|
|
3309
|
+
};
|
|
3310
|
+
last_used_at?: string | null | undefined;
|
|
3311
|
+
last_used_from_addr: string;
|
|
3312
|
+
project_id?: string | null | undefined;
|
|
3313
|
+
}[]>;
|
|
3314
|
+
"organizations.apiKeys.create": (options: ToolClientOptions) => import("../operation.js").NeonTool<z.ZodObject<{
|
|
3315
|
+
org_id: z.ZodString;
|
|
3316
|
+
key_name: z.ZodString;
|
|
3317
|
+
project_id: z.ZodOptional<z.ZodString>;
|
|
3318
|
+
}, z.core.$strict>, "create_organizations_api_keys", {
|
|
3319
|
+
id: number;
|
|
3320
|
+
key: string;
|
|
3321
|
+
name: string;
|
|
3322
|
+
created_at: string;
|
|
3323
|
+
created_by: string;
|
|
3324
|
+
project_id?: string | null | undefined;
|
|
3325
|
+
}>;
|
|
3326
|
+
"organizations.apiKeys.revoke": (options: ToolClientOptions) => import("../operation.js").NeonTool<z.ZodObject<{
|
|
3327
|
+
org_id: z.ZodString;
|
|
3328
|
+
key_id: z.ZodInt;
|
|
3329
|
+
}, z.core.$strict>, "revoke_organizations_api_keys", {
|
|
3330
|
+
id: number;
|
|
3331
|
+
name: string;
|
|
3332
|
+
created_at: string;
|
|
3333
|
+
created_by: string;
|
|
3334
|
+
last_used_at?: string | null | undefined;
|
|
3335
|
+
last_used_from_addr: string;
|
|
3336
|
+
revoked: boolean;
|
|
3337
|
+
project_id?: string | null | undefined;
|
|
3338
|
+
}>;
|
|
3177
3339
|
"regions.list": (options: ToolClientOptions) => import("../operation.js").NeonTool<z.ZodObject<{}, z.core.$strict>, "list_regions", {
|
|
3178
3340
|
region_id: string;
|
|
3179
3341
|
name: string;
|
|
@@ -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
|
|
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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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6yD6C,CAAC"}
|
|
@@ -1115,6 +1115,101 @@ const toolFactories = {
|
|
|
1115
1115
|
generated: "revokeApiKey",
|
|
1116
1116
|
run: (neon, input, signal) => neon.apiKeys.revoke({ keyId: input.key_id }, { signal })
|
|
1117
1117
|
}),
|
|
1118
|
+
"organizations.get": (options) => fromGenerated(options, {
|
|
1119
|
+
id: "organizations.get",
|
|
1120
|
+
generated: "getOrganization",
|
|
1121
|
+
run: (neon, input, signal) => neon.organizations.get({ orgId: input.org_id }, { signal })
|
|
1122
|
+
}),
|
|
1123
|
+
"organizations.members.list": (options) => fromGenerated(options, {
|
|
1124
|
+
id: "organizations.members.list",
|
|
1125
|
+
generated: "getOrganizationMembers",
|
|
1126
|
+
omit: ["cursor"],
|
|
1127
|
+
list: true,
|
|
1128
|
+
run: (neon, input, signal) => collectPages(neon.organizations.members.list({
|
|
1129
|
+
orgId: input.org_id,
|
|
1130
|
+
sort_by: input.sort_by,
|
|
1131
|
+
sort_order: input.sort_order,
|
|
1132
|
+
limit: input.limit
|
|
1133
|
+
}, { signal }), input.limit)
|
|
1134
|
+
}),
|
|
1135
|
+
"organizations.members.get": (options) => fromGenerated(options, {
|
|
1136
|
+
id: "organizations.members.get",
|
|
1137
|
+
generated: "getOrganizationMember",
|
|
1138
|
+
run: (neon, input, signal) => neon.organizations.members.get({
|
|
1139
|
+
orgId: input.org_id,
|
|
1140
|
+
memberId: input.member_id
|
|
1141
|
+
}, { signal })
|
|
1142
|
+
}),
|
|
1143
|
+
"organizations.members.update": (options) => fromGenerated(options, {
|
|
1144
|
+
id: "organizations.members.update",
|
|
1145
|
+
generated: "updateOrganizationMember",
|
|
1146
|
+
run: (neon, input, signal) => neon.organizations.members.update({
|
|
1147
|
+
orgId: input.org_id,
|
|
1148
|
+
memberId: input.member_id,
|
|
1149
|
+
role: input.role
|
|
1150
|
+
}, { signal })
|
|
1151
|
+
}),
|
|
1152
|
+
"organizations.members.remove": (options) => fromGenerated(options, {
|
|
1153
|
+
id: "organizations.members.remove",
|
|
1154
|
+
generated: "removeOrganizationMember",
|
|
1155
|
+
run: (neon, input, signal) => neon.organizations.members.remove({
|
|
1156
|
+
orgId: input.org_id,
|
|
1157
|
+
memberId: input.member_id
|
|
1158
|
+
}, { signal })
|
|
1159
|
+
}),
|
|
1160
|
+
"organizations.invitations.list": (options) => fromGenerated(options, {
|
|
1161
|
+
id: "organizations.invitations.list",
|
|
1162
|
+
generated: "getOrganizationInvitations",
|
|
1163
|
+
run: (neon, input, signal) => neon.organizations.invitations.list({ orgId: input.org_id }, { signal })
|
|
1164
|
+
}),
|
|
1165
|
+
"organizations.invitations.create": (options) => fromGenerated(options, {
|
|
1166
|
+
id: "organizations.invitations.create",
|
|
1167
|
+
generated: "createOrganizationInvitations",
|
|
1168
|
+
run: (neon, input, signal) => neon.organizations.invitations.create({
|
|
1169
|
+
orgId: input.org_id,
|
|
1170
|
+
invitations: input.invitations
|
|
1171
|
+
}, { signal })
|
|
1172
|
+
}),
|
|
1173
|
+
"organizations.spendingLimit.get": (options) => fromGenerated(options, {
|
|
1174
|
+
id: "organizations.spendingLimit.get",
|
|
1175
|
+
generated: "getOrganizationSpendingLimit",
|
|
1176
|
+
run: (neon, input, signal) => neon.organizations.spendingLimit.get({ orgId: input.org_id }, { signal })
|
|
1177
|
+
}),
|
|
1178
|
+
"organizations.spendingLimit.set": (options) => fromGenerated(options, {
|
|
1179
|
+
id: "organizations.spendingLimit.set",
|
|
1180
|
+
generated: "setOrganizationSpendingLimit",
|
|
1181
|
+
run: (neon, input, signal) => neon.organizations.spendingLimit.set({
|
|
1182
|
+
orgId: input.org_id,
|
|
1183
|
+
spendingLimitCents: input.spending_limit_cents
|
|
1184
|
+
}, { signal })
|
|
1185
|
+
}),
|
|
1186
|
+
"organizations.spendingLimit.delete": (options) => fromGenerated(options, {
|
|
1187
|
+
id: "organizations.spendingLimit.delete",
|
|
1188
|
+
generated: "deleteOrganizationSpendingLimit",
|
|
1189
|
+
run: (neon, input, signal) => neon.organizations.spendingLimit.delete({ orgId: input.org_id }, { signal })
|
|
1190
|
+
}),
|
|
1191
|
+
"organizations.apiKeys.list": (options) => fromGenerated(options, {
|
|
1192
|
+
id: "organizations.apiKeys.list",
|
|
1193
|
+
generated: "listOrgApiKeys",
|
|
1194
|
+
run: (neon, input, signal) => neon.organizations.apiKeys.list({ orgId: input.org_id }, { signal })
|
|
1195
|
+
}),
|
|
1196
|
+
"organizations.apiKeys.create": (options) => fromGenerated(options, {
|
|
1197
|
+
id: "organizations.apiKeys.create",
|
|
1198
|
+
generated: "createOrgApiKey",
|
|
1199
|
+
run: (neon, input, signal) => neon.organizations.apiKeys.create({
|
|
1200
|
+
orgId: input.org_id,
|
|
1201
|
+
keyName: input.key_name,
|
|
1202
|
+
projectId: input.project_id
|
|
1203
|
+
}, { signal })
|
|
1204
|
+
}),
|
|
1205
|
+
"organizations.apiKeys.revoke": (options) => fromGenerated(options, {
|
|
1206
|
+
id: "organizations.apiKeys.revoke",
|
|
1207
|
+
generated: "revokeOrgApiKey",
|
|
1208
|
+
run: (neon, input, signal) => neon.organizations.apiKeys.revoke({
|
|
1209
|
+
orgId: input.org_id,
|
|
1210
|
+
keyId: input.key_id
|
|
1211
|
+
}, { signal })
|
|
1212
|
+
}),
|
|
1118
1213
|
"regions.list": (options) => bindTool(options, {
|
|
1119
1214
|
operationId: "regions.list",
|
|
1120
1215
|
id: publishedId("regions.list"),
|
|
@@ -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", "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", "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,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"}
|
|
@@ -128,6 +128,19 @@ const toolIds = [
|
|
|
128
128
|
"apiKeys.list",
|
|
129
129
|
"apiKeys.create",
|
|
130
130
|
"apiKeys.revoke",
|
|
131
|
+
"organizations.get",
|
|
132
|
+
"organizations.members.list",
|
|
133
|
+
"organizations.members.get",
|
|
134
|
+
"organizations.members.update",
|
|
135
|
+
"organizations.members.remove",
|
|
136
|
+
"organizations.invitations.list",
|
|
137
|
+
"organizations.invitations.create",
|
|
138
|
+
"organizations.spendingLimit.get",
|
|
139
|
+
"organizations.spendingLimit.set",
|
|
140
|
+
"organizations.spendingLimit.delete",
|
|
141
|
+
"organizations.apiKeys.list",
|
|
142
|
+
"organizations.apiKeys.create",
|
|
143
|
+
"organizations.apiKeys.revoke",
|
|
131
144
|
"regions.list",
|
|
132
145
|
"user.me",
|
|
133
146
|
"user.organizations"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neon/tools",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.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.9.0"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@hey-api/openapi-ts": "0.98.2",
|