@neon/tools 2.11.0 → 2.13.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.
- package/README.md +150 -7
- package/dist/descriptions.gen.d.ts +10 -0
- package/dist/descriptions.gen.d.ts.map +1 -0
- package/dist/descriptions.gen.js +150 -0
- package/dist/generated/zod.gen.d.ts +33 -2
- package/dist/generated/zod.gen.d.ts.map +1 -1
- package/dist/generated/zod.gen.js +29 -11
- package/dist/index.d.ts +4 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -11
- package/dist/lib/custom/auth-config.d.ts +164 -0
- package/dist/lib/custom/auth-config.d.ts.map +1 -0
- package/dist/lib/custom/auth-config.js +177 -0
- package/dist/lib/custom/docs.d.ts +58 -0
- package/dist/lib/custom/docs.d.ts.map +1 -0
- package/dist/lib/custom/docs.js +143 -0
- package/dist/lib/custom/feedback.d.ts +15 -0
- package/dist/lib/custom/feedback.d.ts.map +1 -0
- package/dist/lib/custom/feedback.js +55 -0
- package/dist/lib/custom/fetch.d.ts +402 -0
- package/dist/lib/custom/fetch.d.ts.map +1 -0
- package/dist/lib/custom/fetch.js +198 -0
- package/dist/lib/custom/organizations.d.ts +23 -0
- package/dist/lib/custom/organizations.d.ts.map +1 -0
- package/dist/lib/custom/organizations.js +32 -0
- package/dist/lib/custom/resources.d.ts +22 -0
- package/dist/lib/custom/resources.d.ts.map +1 -0
- package/dist/lib/custom/resources.js +113 -0
- package/dist/lib/custom/sql/connection.d.ts +46 -0
- package/dist/lib/custom/sql/connection.d.ts.map +1 -0
- package/dist/lib/custom/sql/connection.js +78 -0
- package/dist/lib/custom/sql/describe-branch.d.ts +84 -0
- package/dist/lib/custom/sql/describe-branch.d.ts.map +1 -0
- package/dist/lib/custom/sql/describe-branch.js +155 -0
- package/dist/lib/custom/sql/inspect/inspect.d.ts +75 -0
- package/dist/lib/custom/sql/inspect/inspect.d.ts.map +1 -0
- package/dist/lib/custom/sql/inspect/inspect.js +135 -0
- package/dist/lib/custom/sql/inspect/queries.d.ts +63 -0
- package/dist/lib/custom/sql/inspect/queries.d.ts.map +1 -0
- package/dist/lib/custom/sql/inspect/queries.js +528 -0
- package/dist/lib/custom/sql/inspect/report.d.ts +31 -0
- package/dist/lib/custom/sql/inspect/report.d.ts.map +1 -0
- package/dist/lib/custom/sql/inspect/report.js +43 -0
- package/dist/lib/custom/sql/inspect/targets.d.ts +27 -0
- package/dist/lib/custom/sql/inspect/targets.d.ts.map +1 -0
- package/dist/lib/custom/sql/inspect/targets.js +33 -0
- package/dist/lib/custom/sql/migrations.d.ts +69 -0
- package/dist/lib/custom/sql/migrations.d.ts.map +1 -0
- package/dist/lib/custom/sql/migrations.js +144 -0
- package/dist/lib/custom/sql/plan.d.ts +27 -0
- package/dist/lib/custom/sql/plan.d.ts.map +1 -0
- package/dist/lib/custom/sql/plan.js +53 -0
- package/dist/lib/custom/sql/query-tuning.d.ts +107 -0
- package/dist/lib/custom/sql/query-tuning.d.ts.map +1 -0
- package/dist/lib/custom/sql/query-tuning.js +129 -0
- package/dist/lib/custom/sql/rows.d.ts +11 -0
- package/dist/lib/custom/sql/rows.d.ts.map +1 -0
- package/dist/lib/custom/sql/rows.js +19 -0
- package/dist/lib/custom/sql/run.d.ts +81 -0
- package/dist/lib/custom/sql/run.d.ts.map +1 -0
- package/dist/lib/custom/sql/run.js +90 -0
- package/dist/lib/custom/sql/schema.d.ts +84 -0
- package/dist/lib/custom/sql/schema.d.ts.map +1 -0
- package/dist/lib/custom/sql/schema.js +201 -0
- package/dist/lib/custom/sql/slow-queries.d.ts +43 -0
- package/dist/lib/custom/sql/slow-queries.d.ts.map +1 -0
- package/dist/lib/custom/sql/slow-queries.js +87 -0
- package/dist/lib/customize.d.ts +9 -2
- package/dist/lib/customize.d.ts.map +1 -1
- package/dist/lib/customize.js +21 -7
- package/dist/lib/ergonomic/bind.d.ts +11 -1
- package/dist/lib/ergonomic/bind.d.ts.map +1 -1
- package/dist/lib/ergonomic/bind.js +13 -3
- package/dist/lib/ergonomic/catalog.d.ts +870 -38
- package/dist/lib/ergonomic/catalog.d.ts.map +1 -1
- package/dist/lib/ergonomic/catalog.js +44 -8
- package/dist/lib/ergonomic/composed.d.ts +4 -4
- package/dist/lib/ergonomic/composed.d.ts.map +1 -1
- package/dist/lib/ergonomic/composed.js +47 -45
- package/dist/lib/ergonomic/ids.d.ts +3 -1
- package/dist/lib/ergonomic/ids.d.ts.map +1 -1
- package/dist/lib/ergonomic/ids.js +42 -2
- package/dist/lib/ergonomic/index.d.ts +1 -1
- package/dist/lib/ergonomic/index.d.ts.map +1 -1
- package/dist/lib/ergonomic/index.js +2 -2
- package/dist/lib/operation.d.ts +11 -0
- package/dist/lib/operation.d.ts.map +1 -1
- package/dist/lib/references.d.ts +10 -0
- package/dist/lib/references.d.ts.map +1 -0
- package/dist/lib/references.js +28 -0
- package/dist/operations.gen.d.ts +22 -2
- package/dist/operations.gen.d.ts.map +1 -1
- package/dist/operations.gen.js +335 -300
- package/dist/schemas.d.ts +1 -1
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +1 -1
- package/package.json +9 -6
|
@@ -5,27 +5,27 @@ import type { NeonToolId } from "./ids.js";
|
|
|
5
5
|
export type ToolFactory = (typeof toolFactories)[NeonToolId];
|
|
6
6
|
export declare const toolFactories: {
|
|
7
7
|
"projects.list": (options: ToolClientOptions) => NeonTool<z.ZodType<{
|
|
8
|
-
search?: string | undefined;
|
|
9
8
|
org_id?: string | undefined;
|
|
10
9
|
limit?: number | undefined;
|
|
10
|
+
search?: string | undefined;
|
|
11
11
|
timeout?: number | undefined;
|
|
12
12
|
recoverable?: boolean | undefined;
|
|
13
13
|
}, {
|
|
14
|
-
search?: string | undefined;
|
|
15
14
|
org_id?: string | undefined;
|
|
16
15
|
limit?: number | undefined;
|
|
16
|
+
search?: string | undefined;
|
|
17
17
|
timeout?: number | undefined;
|
|
18
18
|
recoverable?: boolean | undefined;
|
|
19
19
|
}, z.core.$ZodTypeInternals<{
|
|
20
|
-
search?: string | undefined;
|
|
21
20
|
org_id?: string | undefined;
|
|
22
21
|
limit?: number | undefined;
|
|
22
|
+
search?: string | undefined;
|
|
23
23
|
timeout?: number | undefined;
|
|
24
24
|
recoverable?: boolean | undefined;
|
|
25
25
|
}, {
|
|
26
|
-
search?: string | undefined;
|
|
27
26
|
org_id?: string | undefined;
|
|
28
27
|
limit?: number | undefined;
|
|
28
|
+
search?: string | undefined;
|
|
29
29
|
timeout?: number | undefined;
|
|
30
30
|
recoverable?: boolean | undefined;
|
|
31
31
|
}>>, "list_projects", {
|
|
@@ -827,32 +827,32 @@ export declare const toolFactories: {
|
|
|
827
827
|
org_api_key_rotation_recommended?: boolean | null | undefined;
|
|
828
828
|
}>;
|
|
829
829
|
"branches.list": (options: ToolClientOptions) => NeonTool<z.ZodType<{
|
|
830
|
-
search?: string | undefined;
|
|
831
830
|
project_id: string;
|
|
832
831
|
sort_by?: "name" | "created_at" | "updated_at" | undefined;
|
|
833
832
|
sort_order?: "asc" | "desc" | undefined;
|
|
834
833
|
limit?: number | undefined;
|
|
834
|
+
search?: string | undefined;
|
|
835
835
|
include_deleted?: boolean | undefined;
|
|
836
836
|
}, {
|
|
837
|
-
search?: string | undefined;
|
|
838
837
|
project_id: string;
|
|
839
838
|
sort_by?: "name" | "created_at" | "updated_at" | undefined;
|
|
840
839
|
sort_order?: "asc" | "desc" | undefined;
|
|
841
840
|
limit?: number | undefined;
|
|
841
|
+
search?: string | undefined;
|
|
842
842
|
include_deleted?: boolean | undefined;
|
|
843
843
|
}, z.core.$ZodTypeInternals<{
|
|
844
|
-
search?: string | undefined;
|
|
845
844
|
project_id: string;
|
|
846
845
|
sort_by?: "name" | "created_at" | "updated_at" | undefined;
|
|
847
846
|
sort_order?: "asc" | "desc" | undefined;
|
|
848
847
|
limit?: number | undefined;
|
|
848
|
+
search?: string | undefined;
|
|
849
849
|
include_deleted?: boolean | undefined;
|
|
850
850
|
}, {
|
|
851
|
-
search?: string | undefined;
|
|
852
851
|
project_id: string;
|
|
853
852
|
sort_by?: "name" | "created_at" | "updated_at" | undefined;
|
|
854
853
|
sort_order?: "asc" | "desc" | undefined;
|
|
855
854
|
limit?: number | undefined;
|
|
855
|
+
search?: string | undefined;
|
|
856
856
|
include_deleted?: boolean | undefined;
|
|
857
857
|
}>>, "list_branches", {
|
|
858
858
|
id: string;
|
|
@@ -1303,8 +1303,8 @@ export declare const toolFactories: {
|
|
|
1303
1303
|
project_id: z.ZodString;
|
|
1304
1304
|
branch_id: z.ZodOptional<z.ZodString>;
|
|
1305
1305
|
endpoint_id: z.ZodOptional<z.ZodString>;
|
|
1306
|
-
database_name: z.ZodString
|
|
1307
|
-
role_name: z.ZodString
|
|
1306
|
+
database_name: z.ZodOptional<z.ZodString>;
|
|
1307
|
+
role_name: z.ZodOptional<z.ZodString>;
|
|
1308
1308
|
pooled: z.ZodOptional<z.ZodBoolean>;
|
|
1309
1309
|
}, z.core.$strict>, "connection_string_postgres", string>;
|
|
1310
1310
|
"postgres.endpoints.list": (options: ToolClientOptions) => NeonTool<z.ZodObject<{
|
|
@@ -1830,14 +1830,18 @@ export declare const toolFactories: {
|
|
|
1830
1830
|
} | null | undefined;
|
|
1831
1831
|
available_schemas?: string[] | null | undefined;
|
|
1832
1832
|
observed_at?: string | null | undefined;
|
|
1833
|
+
auth_provider?: "neon_auth" | "external" | null | undefined;
|
|
1834
|
+
jwks_url?: string | null | undefined;
|
|
1835
|
+
provider_name?: string | null | undefined;
|
|
1836
|
+
jwt_audience?: string | null | undefined;
|
|
1833
1837
|
}>;
|
|
1834
1838
|
"postgres.dataApi.create": (options: ToolClientOptions) => NeonTool<z.ZodObject<{
|
|
1835
1839
|
project_id: z.ZodString;
|
|
1836
1840
|
branch_id: z.ZodString;
|
|
1837
1841
|
database_name: z.ZodString;
|
|
1838
1842
|
auth_provider: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
1839
|
-
external: "external";
|
|
1840
1843
|
neon_auth: "neon_auth";
|
|
1844
|
+
external: "external";
|
|
1841
1845
|
}>>>;
|
|
1842
1846
|
jwks_url: z.ZodOptional<z.ZodOptional<z.ZodURL>>;
|
|
1843
1847
|
provider_name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
@@ -1915,29 +1919,29 @@ export declare const toolFactories: {
|
|
|
1915
1919
|
bucket_name: z.ZodString;
|
|
1916
1920
|
}, z.core.$strict>, "delete_storage_buckets", null>;
|
|
1917
1921
|
"storage.objects.list": (options: ToolClientOptions) => NeonTool<z.ZodType<{
|
|
1918
|
-
project_id: string;
|
|
1919
1922
|
branch_id: string;
|
|
1923
|
+
project_id: string;
|
|
1920
1924
|
limit?: number | undefined;
|
|
1921
1925
|
prefix?: string | undefined;
|
|
1922
1926
|
bucket_name: string;
|
|
1923
1927
|
delimiter?: string | undefined;
|
|
1924
1928
|
}, {
|
|
1925
|
-
project_id: string;
|
|
1926
1929
|
branch_id: string;
|
|
1930
|
+
project_id: string;
|
|
1927
1931
|
limit?: number | undefined;
|
|
1928
1932
|
prefix?: string | undefined;
|
|
1929
1933
|
bucket_name: string;
|
|
1930
1934
|
delimiter?: string | undefined;
|
|
1931
1935
|
}, z.core.$ZodTypeInternals<{
|
|
1932
|
-
project_id: string;
|
|
1933
1936
|
branch_id: string;
|
|
1937
|
+
project_id: string;
|
|
1934
1938
|
limit?: number | undefined;
|
|
1935
1939
|
prefix?: string | undefined;
|
|
1936
1940
|
bucket_name: string;
|
|
1937
1941
|
delimiter?: string | undefined;
|
|
1938
1942
|
}, {
|
|
1939
|
-
project_id: string;
|
|
1940
1943
|
branch_id: string;
|
|
1944
|
+
project_id: string;
|
|
1941
1945
|
limit?: number | undefined;
|
|
1942
1946
|
prefix?: string | undefined;
|
|
1943
1947
|
bucket_name: string;
|
|
@@ -1986,20 +1990,20 @@ export declare const toolFactories: {
|
|
|
1986
1990
|
expires_at: string;
|
|
1987
1991
|
}>;
|
|
1988
1992
|
"functions.list": (options: ToolClientOptions) => NeonTool<z.ZodType<{
|
|
1989
|
-
project_id: string;
|
|
1990
1993
|
branch_id: string;
|
|
1994
|
+
project_id: string;
|
|
1991
1995
|
limit?: number | undefined;
|
|
1992
1996
|
}, {
|
|
1993
|
-
project_id: string;
|
|
1994
1997
|
branch_id: string;
|
|
1998
|
+
project_id: string;
|
|
1995
1999
|
limit?: number | undefined;
|
|
1996
2000
|
}, z.core.$ZodTypeInternals<{
|
|
1997
|
-
project_id: string;
|
|
1998
2001
|
branch_id: string;
|
|
2002
|
+
project_id: string;
|
|
1999
2003
|
limit?: number | undefined;
|
|
2000
2004
|
}, {
|
|
2001
|
-
project_id: string;
|
|
2002
2005
|
branch_id: string;
|
|
2006
|
+
project_id: string;
|
|
2003
2007
|
limit?: number | undefined;
|
|
2004
2008
|
}>>, "list_functions", {
|
|
2005
2009
|
id: string;
|
|
@@ -2109,20 +2113,20 @@ export declare const toolFactories: {
|
|
|
2109
2113
|
error?: string | null | undefined;
|
|
2110
2114
|
}>;
|
|
2111
2115
|
"functions.customDomains.list": (options: ToolClientOptions) => NeonTool<z.ZodType<{
|
|
2112
|
-
project_id: string;
|
|
2113
2116
|
branch_id: string;
|
|
2117
|
+
project_id: string;
|
|
2114
2118
|
limit?: number | undefined;
|
|
2115
2119
|
}, {
|
|
2116
|
-
project_id: string;
|
|
2117
2120
|
branch_id: string;
|
|
2121
|
+
project_id: string;
|
|
2118
2122
|
limit?: number | undefined;
|
|
2119
2123
|
}, z.core.$ZodTypeInternals<{
|
|
2120
|
-
project_id: string;
|
|
2121
2124
|
branch_id: string;
|
|
2125
|
+
project_id: string;
|
|
2122
2126
|
limit?: number | undefined;
|
|
2123
2127
|
}, {
|
|
2124
|
-
project_id: string;
|
|
2125
2128
|
branch_id: string;
|
|
2129
|
+
project_id: string;
|
|
2126
2130
|
limit?: number | undefined;
|
|
2127
2131
|
}>>, "list_functions_custom_domains", {
|
|
2128
2132
|
domain: string;
|
|
@@ -2421,8 +2425,8 @@ export declare const toolFactories: {
|
|
|
2421
2425
|
branch_id: z.ZodString;
|
|
2422
2426
|
}, z.core.$strict>, "rotate_secret_realtime", null>;
|
|
2423
2427
|
"logs.query": (options: ToolClientOptions) => NeonTool<z.ZodType<{
|
|
2424
|
-
project_id: string;
|
|
2425
2428
|
branch_id: string;
|
|
2429
|
+
project_id: string;
|
|
2426
2430
|
start_time?: string | undefined;
|
|
2427
2431
|
end_time?: string | undefined;
|
|
2428
2432
|
sort_order?: "asc" | "desc" | undefined;
|
|
@@ -2437,8 +2441,8 @@ export declare const toolFactories: {
|
|
|
2437
2441
|
trace_id?: string | undefined;
|
|
2438
2442
|
logql?: string | undefined;
|
|
2439
2443
|
}, {
|
|
2440
|
-
project_id: string;
|
|
2441
2444
|
branch_id: string;
|
|
2445
|
+
project_id: string;
|
|
2442
2446
|
start_time?: string | undefined;
|
|
2443
2447
|
end_time?: string | undefined;
|
|
2444
2448
|
sort_order?: "asc" | "desc" | undefined;
|
|
@@ -2453,8 +2457,8 @@ export declare const toolFactories: {
|
|
|
2453
2457
|
trace_id?: string | undefined;
|
|
2454
2458
|
logql?: string | undefined;
|
|
2455
2459
|
}, z.core.$ZodTypeInternals<{
|
|
2456
|
-
project_id: string;
|
|
2457
2460
|
branch_id: string;
|
|
2461
|
+
project_id: string;
|
|
2458
2462
|
start_time?: string | undefined;
|
|
2459
2463
|
end_time?: string | undefined;
|
|
2460
2464
|
sort_order?: "asc" | "desc" | undefined;
|
|
@@ -2469,8 +2473,8 @@ export declare const toolFactories: {
|
|
|
2469
2473
|
trace_id?: string | undefined;
|
|
2470
2474
|
logql?: string | undefined;
|
|
2471
2475
|
}, {
|
|
2472
|
-
project_id: string;
|
|
2473
2476
|
branch_id: string;
|
|
2477
|
+
project_id: string;
|
|
2474
2478
|
start_time?: string | undefined;
|
|
2475
2479
|
end_time?: string | undefined;
|
|
2476
2480
|
sort_order?: "asc" | "desc" | undefined;
|
|
@@ -2785,6 +2789,7 @@ export declare const toolFactories: {
|
|
|
2785
2789
|
microsoft: "microsoft";
|
|
2786
2790
|
vercel: "vercel";
|
|
2787
2791
|
apple: "apple";
|
|
2792
|
+
discord: "discord";
|
|
2788
2793
|
}>;
|
|
2789
2794
|
client_id: z.ZodOptional<z.ZodString>;
|
|
2790
2795
|
client_secret: z.ZodOptional<z.ZodString>;
|
|
@@ -2809,6 +2814,7 @@ export declare const toolFactories: {
|
|
|
2809
2814
|
microsoft: "microsoft";
|
|
2810
2815
|
vercel: "vercel";
|
|
2811
2816
|
apple: "apple";
|
|
2817
|
+
discord: "discord";
|
|
2812
2818
|
}>;
|
|
2813
2819
|
client_id: z.ZodOptional<z.ZodString>;
|
|
2814
2820
|
client_secret: z.ZodOptional<z.ZodString>;
|
|
@@ -2833,6 +2839,7 @@ export declare const toolFactories: {
|
|
|
2833
2839
|
microsoft: "microsoft";
|
|
2834
2840
|
vercel: "vercel";
|
|
2835
2841
|
apple: "apple";
|
|
2842
|
+
discord: "discord";
|
|
2836
2843
|
}>;
|
|
2837
2844
|
}, z.core.$strict>, "delete_auth_oauth_providers", null>;
|
|
2838
2845
|
"auth.oauthServer.get": (options: ToolClientOptions) => NeonTool<z.ZodObject<{
|
|
@@ -3178,6 +3185,9 @@ export declare const toolFactories: {
|
|
|
3178
3185
|
apple_key_id?: string | null | undefined;
|
|
3179
3186
|
}[] | null | undefined;
|
|
3180
3187
|
allow_localhost?: boolean | null | undefined;
|
|
3188
|
+
logs_export?: {
|
|
3189
|
+
enabled: boolean;
|
|
3190
|
+
} | null | undefined;
|
|
3181
3191
|
}>;
|
|
3182
3192
|
"auth.plugins.magicLink.update": (options: ToolClientOptions) => NeonTool<z.ZodObject<{
|
|
3183
3193
|
project_id: z.ZodString;
|
|
@@ -3254,6 +3264,13 @@ export declare const toolFactories: {
|
|
|
3254
3264
|
enabled_events?: ("user.before_create" | "user.created" | "send.otp" | "send.magic_link" | "organization.invitation.created" | "organization.invitation.accepted" | "phone_number.verified")[] | null | undefined;
|
|
3255
3265
|
timeout_seconds?: number | null | undefined;
|
|
3256
3266
|
}>;
|
|
3267
|
+
"auth.logsExport.update": (options: ToolClientOptions) => NeonTool<z.ZodObject<{
|
|
3268
|
+
project_id: z.ZodString;
|
|
3269
|
+
branch_id: z.ZodString;
|
|
3270
|
+
enabled: z.ZodBoolean;
|
|
3271
|
+
}, z.core.$strict>, "update_auth_logs_export", {
|
|
3272
|
+
enabled: boolean;
|
|
3273
|
+
}>;
|
|
3257
3274
|
"consumption.perProject": (options: ToolClientOptions) => NeonTool<z.ZodType<{
|
|
3258
3275
|
metrics?: string[] | undefined;
|
|
3259
3276
|
org_id?: string | undefined;
|
|
@@ -3670,17 +3687,6 @@ export declare const toolFactories: {
|
|
|
3670
3687
|
compute_seconds_limit?: number | null | undefined;
|
|
3671
3688
|
plan: string;
|
|
3672
3689
|
}>;
|
|
3673
|
-
"user.organizations": (options: ToolClientOptions) => NeonTool<z.ZodObject<{}, z.core.$strict>, "organizations_user", {
|
|
3674
|
-
id: string;
|
|
3675
|
-
name: string;
|
|
3676
|
-
handle: string;
|
|
3677
|
-
plan: string;
|
|
3678
|
-
created_at: string;
|
|
3679
|
-
managed_by: string;
|
|
3680
|
-
updated_at: string;
|
|
3681
|
-
allow_hipaa_projects?: boolean | null | undefined;
|
|
3682
|
-
require_mfa?: boolean | null | undefined;
|
|
3683
|
-
}[]>;
|
|
3684
3690
|
"incidents.list": (options: ToolClientOptions) => {
|
|
3685
3691
|
operationId: string;
|
|
3686
3692
|
id: "list_incidents";
|
|
@@ -3735,5 +3741,831 @@ export declare const toolFactories: {
|
|
|
3735
3741
|
}[];
|
|
3736
3742
|
}>>;
|
|
3737
3743
|
};
|
|
3744
|
+
"user.organizations": (options: ToolClientOptions) => NeonTool<z.ZodObject<{
|
|
3745
|
+
search: z.ZodOptional<z.ZodString>;
|
|
3746
|
+
}, z.core.$strict>, "organizations_user", {
|
|
3747
|
+
id: string;
|
|
3748
|
+
name: string;
|
|
3749
|
+
handle: string;
|
|
3750
|
+
plan: string;
|
|
3751
|
+
created_at: string;
|
|
3752
|
+
managed_by: string;
|
|
3753
|
+
updated_at: string;
|
|
3754
|
+
allow_hipaa_projects?: boolean | null | undefined;
|
|
3755
|
+
require_mfa?: boolean | null | undefined;
|
|
3756
|
+
}[]>;
|
|
3757
|
+
"auth.getConfig": (options: ToolClientOptions) => NeonTool<z.ZodObject<{
|
|
3758
|
+
project_id: z.ZodString;
|
|
3759
|
+
branch_id: z.ZodOptional<z.ZodString>;
|
|
3760
|
+
}, z.core.$strict>, "get_config_auth", {
|
|
3761
|
+
_errors?: {
|
|
3762
|
+
[x: string]: string;
|
|
3763
|
+
} | null | undefined;
|
|
3764
|
+
project_id: string;
|
|
3765
|
+
branch_id: string;
|
|
3766
|
+
branch_name: string;
|
|
3767
|
+
base_url: string | null;
|
|
3768
|
+
jwks_url: string;
|
|
3769
|
+
db_name: string;
|
|
3770
|
+
integration: {
|
|
3771
|
+
transfer_status?: import("@neon/sdk").NeonAuthProviderProjectTransferStatus | null | undefined;
|
|
3772
|
+
auth_provider: import("@neon/sdk").NeonAuthSupportedAuthProvider;
|
|
3773
|
+
auth_provider_project_id: string;
|
|
3774
|
+
branch_id: string;
|
|
3775
|
+
db_name: string;
|
|
3776
|
+
created_at: string;
|
|
3777
|
+
owned_by: import("@neon/sdk").NeonAuthProviderProjectOwnedBy;
|
|
3778
|
+
jwks_url: string;
|
|
3779
|
+
base_url: string | null;
|
|
3780
|
+
};
|
|
3781
|
+
trusted_origins: string[];
|
|
3782
|
+
allow_localhost: boolean;
|
|
3783
|
+
auth_methods: {
|
|
3784
|
+
email_password: {
|
|
3785
|
+
enabled: boolean;
|
|
3786
|
+
allow_sign_up: boolean;
|
|
3787
|
+
verify_email_on_sign_up: boolean;
|
|
3788
|
+
verify_email_on_sign_in: boolean;
|
|
3789
|
+
email_verification_method: import("@neon/sdk").NeonAuthEmailVerificationMethod;
|
|
3790
|
+
require_email_verification: boolean;
|
|
3791
|
+
auto_sign_in_after_verification: boolean;
|
|
3792
|
+
revoke_sessions_on_password_reset: boolean;
|
|
3793
|
+
};
|
|
3794
|
+
};
|
|
3795
|
+
oauth_providers: {
|
|
3796
|
+
apple_key_id?: string | null | undefined;
|
|
3797
|
+
apple_team_id?: string | null | undefined;
|
|
3798
|
+
microsoft_tenant_id?: string | null | undefined;
|
|
3799
|
+
id: import("@neon/sdk").NeonAuthOauthProviderId;
|
|
3800
|
+
type: import("@neon/sdk").NeonAuthOauthProviderType;
|
|
3801
|
+
client_id: string | null;
|
|
3802
|
+
client_secret: string | null;
|
|
3803
|
+
}[];
|
|
3804
|
+
email_provider: {
|
|
3805
|
+
type: "standard";
|
|
3806
|
+
host: string;
|
|
3807
|
+
port: number;
|
|
3808
|
+
username: string;
|
|
3809
|
+
password: string;
|
|
3810
|
+
sender_email: string;
|
|
3811
|
+
sender_name: string;
|
|
3812
|
+
} | {
|
|
3813
|
+
type: "shared";
|
|
3814
|
+
sender_email: string | null;
|
|
3815
|
+
sender_name: string | null;
|
|
3816
|
+
host?: null | undefined;
|
|
3817
|
+
port?: null | undefined;
|
|
3818
|
+
username?: null | undefined;
|
|
3819
|
+
password?: null | undefined;
|
|
3820
|
+
} | null;
|
|
3821
|
+
plugins: {
|
|
3822
|
+
organization: {
|
|
3823
|
+
enabled: boolean;
|
|
3824
|
+
organization_limit: number;
|
|
3825
|
+
membership_limit: number;
|
|
3826
|
+
creator_role: "admin" | "owner";
|
|
3827
|
+
send_invitation_email: boolean;
|
|
3828
|
+
} | null;
|
|
3829
|
+
magic_link: {
|
|
3830
|
+
enabled: boolean;
|
|
3831
|
+
expires_in: number;
|
|
3832
|
+
disable_sign_up: boolean;
|
|
3833
|
+
} | null;
|
|
3834
|
+
phone_number: {
|
|
3835
|
+
enabled: boolean;
|
|
3836
|
+
otp_expires_in?: number | null | undefined;
|
|
3837
|
+
} | null;
|
|
3838
|
+
} | null;
|
|
3839
|
+
webhook: {
|
|
3840
|
+
enabled: boolean;
|
|
3841
|
+
webhook_url?: string | null | undefined;
|
|
3842
|
+
enabled_events?: ("user.before_create" | "user.created" | "send.otp" | "send.magic_link" | "organization.invitation.created" | "organization.invitation.accepted" | "phone_number.verified")[] | null | undefined;
|
|
3843
|
+
timeout_seconds?: number | null | undefined;
|
|
3844
|
+
} | null;
|
|
3845
|
+
}>;
|
|
3846
|
+
"resources.search": (options: ToolClientOptions) => NeonTool<z.ZodObject<{
|
|
3847
|
+
query: z.ZodString;
|
|
3848
|
+
}, z.core.$strict>, "search_resources", {
|
|
3849
|
+
results: {
|
|
3850
|
+
id: string;
|
|
3851
|
+
title: string;
|
|
3852
|
+
url: string;
|
|
3853
|
+
}[];
|
|
3854
|
+
}>;
|
|
3855
|
+
"sql.run": (options: ToolClientOptions) => NeonTool<z.ZodObject<{
|
|
3856
|
+
sql: z.ZodString;
|
|
3857
|
+
project_id: z.ZodString;
|
|
3858
|
+
branch_id: z.ZodOptional<z.ZodString>;
|
|
3859
|
+
database_name: z.ZodOptional<z.ZodString>;
|
|
3860
|
+
role_name: z.ZodOptional<z.ZodString>;
|
|
3861
|
+
compute_id: z.ZodOptional<z.ZodString>;
|
|
3862
|
+
max_rows: z.ZodDefault<z.ZodNumber>;
|
|
3863
|
+
}, z.core.$strict>, "run_sql", {
|
|
3864
|
+
rows: {
|
|
3865
|
+
[x: string]: unknown;
|
|
3866
|
+
}[];
|
|
3867
|
+
totalRowCount: number;
|
|
3868
|
+
truncated: boolean;
|
|
3869
|
+
note?: string | null | undefined;
|
|
3870
|
+
}>;
|
|
3871
|
+
"sql.runTransaction": (options: ToolClientOptions) => NeonTool<z.ZodObject<{
|
|
3872
|
+
sql_statements: z.ZodArray<z.ZodString>;
|
|
3873
|
+
project_id: z.ZodString;
|
|
3874
|
+
branch_id: z.ZodOptional<z.ZodString>;
|
|
3875
|
+
database_name: z.ZodOptional<z.ZodString>;
|
|
3876
|
+
role_name: z.ZodOptional<z.ZodString>;
|
|
3877
|
+
compute_id: z.ZodOptional<z.ZodString>;
|
|
3878
|
+
max_rows: z.ZodDefault<z.ZodNumber>;
|
|
3879
|
+
}, z.core.$strict>, "run_transaction_sql", {
|
|
3880
|
+
rows: {
|
|
3881
|
+
[x: string]: unknown;
|
|
3882
|
+
}[];
|
|
3883
|
+
totalRowCount: number;
|
|
3884
|
+
truncated: boolean;
|
|
3885
|
+
note?: string | null | undefined;
|
|
3886
|
+
}[]>;
|
|
3887
|
+
"sql.explain": (options: ToolClientOptions) => NeonTool<z.ZodObject<{
|
|
3888
|
+
sql: z.ZodString;
|
|
3889
|
+
project_id: z.ZodString;
|
|
3890
|
+
branch_id: z.ZodOptional<z.ZodString>;
|
|
3891
|
+
database_name: z.ZodOptional<z.ZodString>;
|
|
3892
|
+
analyze: z.ZodDefault<z.ZodBoolean>;
|
|
3893
|
+
}, z.core.$strict>, "explain_sql", {
|
|
3894
|
+
[x: string]: unknown;
|
|
3895
|
+
}[]>;
|
|
3896
|
+
"schema.listTables": (options: ToolClientOptions) => NeonTool<z.ZodObject<{
|
|
3897
|
+
project_id: z.ZodString;
|
|
3898
|
+
branch_id: z.ZodOptional<z.ZodString>;
|
|
3899
|
+
database_name: z.ZodOptional<z.ZodString>;
|
|
3900
|
+
}, z.core.$strict>, "list_tables_schema", {
|
|
3901
|
+
[x: string]: unknown;
|
|
3902
|
+
}[]>;
|
|
3903
|
+
"schema.describeTable": (options: ToolClientOptions) => NeonTool<z.ZodObject<{
|
|
3904
|
+
table_name: z.ZodString;
|
|
3905
|
+
project_id: z.ZodString;
|
|
3906
|
+
branch_id: z.ZodOptional<z.ZodString>;
|
|
3907
|
+
database_name: z.ZodOptional<z.ZodString>;
|
|
3908
|
+
}, z.core.$strict>, "describe_table_schema", {
|
|
3909
|
+
raw: {
|
|
3910
|
+
columns: {
|
|
3911
|
+
name: string;
|
|
3912
|
+
type: string;
|
|
3913
|
+
nullable: boolean;
|
|
3914
|
+
default: string | null;
|
|
3915
|
+
description: string | null;
|
|
3916
|
+
}[];
|
|
3917
|
+
indexes: {
|
|
3918
|
+
name: string;
|
|
3919
|
+
definition: string;
|
|
3920
|
+
size: string;
|
|
3921
|
+
}[];
|
|
3922
|
+
constraints: {
|
|
3923
|
+
name: string;
|
|
3924
|
+
type: string;
|
|
3925
|
+
definition: string;
|
|
3926
|
+
}[];
|
|
3927
|
+
tableSize: string;
|
|
3928
|
+
indexSize: string;
|
|
3929
|
+
totalSize: string;
|
|
3930
|
+
};
|
|
3931
|
+
formatted: string;
|
|
3932
|
+
}>;
|
|
3933
|
+
"branches.describe": (options: ToolClientOptions) => NeonTool<z.ZodObject<{
|
|
3934
|
+
project_id: z.ZodString;
|
|
3935
|
+
branch_id: z.ZodString;
|
|
3936
|
+
database_name: z.ZodOptional<z.ZodString>;
|
|
3937
|
+
}, z.core.$strict>, "describe_branches", {
|
|
3938
|
+
branch: {
|
|
3939
|
+
id: string;
|
|
3940
|
+
project_id: string;
|
|
3941
|
+
parent_id?: string | null | undefined;
|
|
3942
|
+
parent_lsn?: string | null | undefined;
|
|
3943
|
+
parent_timestamp?: string | null | undefined;
|
|
3944
|
+
name: string;
|
|
3945
|
+
current_state: import("@neon/sdk").BranchState;
|
|
3946
|
+
pending_state?: string | null | undefined;
|
|
3947
|
+
state_changed_at: string;
|
|
3948
|
+
logical_size?: number | null | undefined;
|
|
3949
|
+
creation_source: string;
|
|
3950
|
+
primary?: boolean | null | undefined;
|
|
3951
|
+
default: boolean;
|
|
3952
|
+
protected: boolean;
|
|
3953
|
+
cpu_used_sec: number;
|
|
3954
|
+
compute_time_seconds: number;
|
|
3955
|
+
active_time_seconds: number;
|
|
3956
|
+
written_data_bytes: number;
|
|
3957
|
+
data_transfer_bytes: number;
|
|
3958
|
+
created_at: string;
|
|
3959
|
+
updated_at: string;
|
|
3960
|
+
ttl_interval_seconds?: number | null | undefined;
|
|
3961
|
+
expires_at?: string | null | undefined;
|
|
3962
|
+
last_reset_at?: string | null | undefined;
|
|
3963
|
+
created_by?: {
|
|
3964
|
+
name?: string | null | undefined;
|
|
3965
|
+
image?: string | null | undefined;
|
|
3966
|
+
} | null | undefined;
|
|
3967
|
+
init_source?: string | null | undefined;
|
|
3968
|
+
restore_status?: string | null | undefined;
|
|
3969
|
+
restored_from?: string | null | undefined;
|
|
3970
|
+
restored_as?: string | null | undefined;
|
|
3971
|
+
restricted_actions?: {
|
|
3972
|
+
name: string;
|
|
3973
|
+
reason: string;
|
|
3974
|
+
}[] | null | undefined;
|
|
3975
|
+
recovery?: {
|
|
3976
|
+
deleted_at: string;
|
|
3977
|
+
recoverable_until: string;
|
|
3978
|
+
deletion_method: "user" | "ttl";
|
|
3979
|
+
} | null | undefined;
|
|
3980
|
+
};
|
|
3981
|
+
console_url: string;
|
|
3982
|
+
text: string;
|
|
3983
|
+
database_structure: {
|
|
3984
|
+
[x: string]: unknown;
|
|
3985
|
+
}[][] | null;
|
|
3986
|
+
database_structure_error?: string | null | undefined;
|
|
3987
|
+
}>;
|
|
3988
|
+
"queries.listSlow": (options: ToolClientOptions) => NeonTool<z.ZodObject<{
|
|
3989
|
+
project_id: z.ZodString;
|
|
3990
|
+
branch_id: z.ZodOptional<z.ZodString>;
|
|
3991
|
+
database_name: z.ZodOptional<z.ZodString>;
|
|
3992
|
+
compute_id: z.ZodOptional<z.ZodString>;
|
|
3993
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
3994
|
+
min_execution_time: z.ZodDefault<z.ZodNumber>;
|
|
3995
|
+
}, z.core.$strict>, "list_slow_queries", {
|
|
3996
|
+
slow_queries: {
|
|
3997
|
+
query: unknown;
|
|
3998
|
+
calls: unknown;
|
|
3999
|
+
total_exec_time_ms: unknown;
|
|
4000
|
+
mean_exec_time_ms: unknown;
|
|
4001
|
+
rows: unknown;
|
|
4002
|
+
shared_blocks: {
|
|
4003
|
+
hit: unknown;
|
|
4004
|
+
read: unknown;
|
|
4005
|
+
written: unknown;
|
|
4006
|
+
dirtied: unknown;
|
|
4007
|
+
};
|
|
4008
|
+
temp_blocks: {
|
|
4009
|
+
read: unknown;
|
|
4010
|
+
written: unknown;
|
|
4011
|
+
};
|
|
4012
|
+
wal: {
|
|
4013
|
+
records: unknown;
|
|
4014
|
+
full_page_images: unknown;
|
|
4015
|
+
bytes: unknown;
|
|
4016
|
+
};
|
|
4017
|
+
}[];
|
|
4018
|
+
total_queries_found: number;
|
|
4019
|
+
}>;
|
|
4020
|
+
"database.inspect": (options: ToolClientOptions) => NeonTool<z.ZodObject<{
|
|
4021
|
+
check: z.ZodEnum<{
|
|
4022
|
+
"table-sizes": "table-sizes";
|
|
4023
|
+
"index-sizes": "index-sizes";
|
|
4024
|
+
"unused-indexes": "unused-indexes";
|
|
4025
|
+
"seq-scans": "seq-scans";
|
|
4026
|
+
"long-running-queries": "long-running-queries";
|
|
4027
|
+
"stalled-queries": "stalled-queries";
|
|
4028
|
+
locks: "locks";
|
|
4029
|
+
outliers: "outliers";
|
|
4030
|
+
calls: "calls";
|
|
4031
|
+
"lfc-hit-rate": "lfc-hit-rate";
|
|
4032
|
+
"working-set": "working-set";
|
|
4033
|
+
"vacuum-stats": "vacuum-stats";
|
|
4034
|
+
bloat: "bloat";
|
|
4035
|
+
"replication-slots": "replication-slots";
|
|
4036
|
+
subscriptions: "subscriptions";
|
|
4037
|
+
}>;
|
|
4038
|
+
project_id: z.ZodString;
|
|
4039
|
+
branch_id: z.ZodOptional<z.ZodString>;
|
|
4040
|
+
database_name: z.ZodOptional<z.ZodString>;
|
|
4041
|
+
compute_id: z.ZodOptional<z.ZodString>;
|
|
4042
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
4043
|
+
}, z.core.$strict>, "inspect_database", {
|
|
4044
|
+
check: import("../custom/sql/inspect/queries.js").InspectCheck;
|
|
4045
|
+
describe: string;
|
|
4046
|
+
projectId: string;
|
|
4047
|
+
branchId: string;
|
|
4048
|
+
databaseName?: string | null | undefined;
|
|
4049
|
+
databases: string[];
|
|
4050
|
+
fields: string[];
|
|
4051
|
+
totalRowCount: number;
|
|
4052
|
+
rows: {
|
|
4053
|
+
[x: string]: unknown;
|
|
4054
|
+
}[];
|
|
4055
|
+
truncated: boolean;
|
|
4056
|
+
note?: string | null | undefined;
|
|
4057
|
+
}>;
|
|
4058
|
+
"migrations.prepare": (options: ToolClientOptions) => NeonTool<z.ZodObject<{
|
|
4059
|
+
migration_sql: z.ZodString;
|
|
4060
|
+
project_id: z.ZodString;
|
|
4061
|
+
database_name: z.ZodOptional<z.ZodString>;
|
|
4062
|
+
}, z.core.$strict>, "prepare_migrations", {
|
|
4063
|
+
complete: {
|
|
4064
|
+
migration_id: `${string}-${string}-${string}-${string}-${string}`;
|
|
4065
|
+
migration_sql: string;
|
|
4066
|
+
database_name: string;
|
|
4067
|
+
project_id: string;
|
|
4068
|
+
temporary_branch_id: string;
|
|
4069
|
+
parent_branch_id: string;
|
|
4070
|
+
};
|
|
4071
|
+
temporary_branch: {
|
|
4072
|
+
id: string;
|
|
4073
|
+
name: string;
|
|
4074
|
+
parent_id: string;
|
|
4075
|
+
};
|
|
4076
|
+
migration_result: {
|
|
4077
|
+
[x: string]: unknown;
|
|
4078
|
+
}[][];
|
|
4079
|
+
}>;
|
|
4080
|
+
"migrations.complete": (options: ToolClientOptions) => NeonTool<z.ZodObject<{
|
|
4081
|
+
migration_id: z.ZodString;
|
|
4082
|
+
migration_sql: z.ZodString;
|
|
4083
|
+
database_name: z.ZodString;
|
|
4084
|
+
project_id: z.ZodString;
|
|
4085
|
+
temporary_branch_id: z.ZodString;
|
|
4086
|
+
parent_branch_id: z.ZodString;
|
|
4087
|
+
apply_changes: z.ZodDefault<z.ZodBoolean>;
|
|
4088
|
+
}, z.core.$strict>, "complete_migrations", {
|
|
4089
|
+
migrationResult?: {
|
|
4090
|
+
[x: string]: unknown;
|
|
4091
|
+
}[][] | null | undefined;
|
|
4092
|
+
deletedBranchId: string;
|
|
4093
|
+
applied: boolean;
|
|
4094
|
+
} | {
|
|
4095
|
+
migrationResult?: {
|
|
4096
|
+
[x: string]: unknown;
|
|
4097
|
+
}[][] | null | undefined;
|
|
4098
|
+
cleanupError: string;
|
|
4099
|
+
applied: boolean;
|
|
4100
|
+
}>;
|
|
4101
|
+
"queryTuning.prepare": (options: ToolClientOptions) => NeonTool<z.ZodObject<{
|
|
4102
|
+
sql: z.ZodString;
|
|
4103
|
+
database_name: z.ZodString;
|
|
4104
|
+
project_id: z.ZodString;
|
|
4105
|
+
role_name: z.ZodOptional<z.ZodString>;
|
|
4106
|
+
}, z.core.$strict>, "prepare_query_tuning", {
|
|
4107
|
+
complete: {
|
|
4108
|
+
tuning_id: `${string}-${string}-${string}-${string}-${string}`;
|
|
4109
|
+
database_name: string;
|
|
4110
|
+
project_id: string;
|
|
4111
|
+
temporary_branch_id: string;
|
|
4112
|
+
} | {
|
|
4113
|
+
role_name: string;
|
|
4114
|
+
tuning_id: `${string}-${string}-${string}-${string}-${string}`;
|
|
4115
|
+
database_name: string;
|
|
4116
|
+
project_id: string;
|
|
4117
|
+
temporary_branch_id: string;
|
|
4118
|
+
};
|
|
4119
|
+
execution_plan: {
|
|
4120
|
+
[x: string]: unknown;
|
|
4121
|
+
}[];
|
|
4122
|
+
table_schemas: {
|
|
4123
|
+
tableName: string;
|
|
4124
|
+
schema: {
|
|
4125
|
+
columns: {
|
|
4126
|
+
name: string;
|
|
4127
|
+
type: string;
|
|
4128
|
+
nullable: boolean;
|
|
4129
|
+
default: string | null;
|
|
4130
|
+
description: string | null;
|
|
4131
|
+
}[];
|
|
4132
|
+
indexes: {
|
|
4133
|
+
name: string;
|
|
4134
|
+
definition: string;
|
|
4135
|
+
size: string;
|
|
4136
|
+
}[];
|
|
4137
|
+
constraints: {
|
|
4138
|
+
name: string;
|
|
4139
|
+
type: string;
|
|
4140
|
+
definition: string;
|
|
4141
|
+
}[];
|
|
4142
|
+
tableSize: string;
|
|
4143
|
+
indexSize: string;
|
|
4144
|
+
totalSize: string;
|
|
4145
|
+
};
|
|
4146
|
+
formatted: string;
|
|
4147
|
+
}[];
|
|
4148
|
+
sql: string;
|
|
4149
|
+
baseline_metrics: {
|
|
4150
|
+
executionTime: number;
|
|
4151
|
+
planningTime: number;
|
|
4152
|
+
totalCost: number;
|
|
4153
|
+
actualRows: number;
|
|
4154
|
+
bufferUsage: {
|
|
4155
|
+
shared: {
|
|
4156
|
+
hit: number;
|
|
4157
|
+
read: number;
|
|
4158
|
+
written: number;
|
|
4159
|
+
dirtied: number;
|
|
4160
|
+
};
|
|
4161
|
+
local: {
|
|
4162
|
+
hit: number;
|
|
4163
|
+
read: number;
|
|
4164
|
+
written: number;
|
|
4165
|
+
dirtied: number;
|
|
4166
|
+
};
|
|
4167
|
+
};
|
|
4168
|
+
};
|
|
4169
|
+
}>;
|
|
4170
|
+
"queryTuning.complete": (options: ToolClientOptions) => NeonTool<z.ZodObject<{
|
|
4171
|
+
suggested_sql_statements: z.ZodArray<z.ZodString>;
|
|
4172
|
+
apply_changes: z.ZodDefault<z.ZodBoolean>;
|
|
4173
|
+
tuning_id: z.ZodString;
|
|
4174
|
+
database_name: z.ZodString;
|
|
4175
|
+
project_id: z.ZodString;
|
|
4176
|
+
role_name: z.ZodOptional<z.ZodString>;
|
|
4177
|
+
should_delete_temporary_branch: z.ZodDefault<z.ZodBoolean>;
|
|
4178
|
+
temporary_branch_id: z.ZodString;
|
|
4179
|
+
branch_id: z.ZodOptional<z.ZodString>;
|
|
4180
|
+
}, z.core.$strict>, "complete_query_tuning", {
|
|
4181
|
+
message: string;
|
|
4182
|
+
deletedBranches?: string[] | null | undefined;
|
|
4183
|
+
results?: {
|
|
4184
|
+
[x: string]: unknown;
|
|
4185
|
+
}[][] | null | undefined;
|
|
4186
|
+
appliedChanges?: string[] | null | undefined;
|
|
4187
|
+
}>;
|
|
4188
|
+
"resources.fetch": (options: ToolClientOptions) => NeonTool<z.ZodObject<{
|
|
4189
|
+
id: z.ZodString;
|
|
4190
|
+
}, z.core.$strict>, "fetch_resources", {
|
|
4191
|
+
id: string;
|
|
4192
|
+
title: string;
|
|
4193
|
+
text: string;
|
|
4194
|
+
url: string;
|
|
4195
|
+
metadata: {
|
|
4196
|
+
organization: {
|
|
4197
|
+
id: string;
|
|
4198
|
+
name: string;
|
|
4199
|
+
handle: string;
|
|
4200
|
+
plan: string;
|
|
4201
|
+
created_at: string;
|
|
4202
|
+
managed_by: string;
|
|
4203
|
+
updated_at: string;
|
|
4204
|
+
allow_hipaa_projects?: boolean | null | undefined;
|
|
4205
|
+
require_mfa?: boolean | null | undefined;
|
|
4206
|
+
};
|
|
4207
|
+
members: {
|
|
4208
|
+
member: {
|
|
4209
|
+
id: string;
|
|
4210
|
+
user_id: string;
|
|
4211
|
+
org_id: string;
|
|
4212
|
+
role: import("@neon/sdk").MemberRole;
|
|
4213
|
+
joined_at?: string | null | undefined;
|
|
4214
|
+
};
|
|
4215
|
+
user: {
|
|
4216
|
+
email: string;
|
|
4217
|
+
has_mfa?: boolean | null | undefined;
|
|
4218
|
+
deactivated_at?: string | null | undefined;
|
|
4219
|
+
};
|
|
4220
|
+
}[];
|
|
4221
|
+
projects: {
|
|
4222
|
+
id: string;
|
|
4223
|
+
platform_id: string;
|
|
4224
|
+
region_id: string;
|
|
4225
|
+
name: string;
|
|
4226
|
+
provisioner: import("@neon/sdk").Provisioner;
|
|
4227
|
+
default_endpoint_settings?: {
|
|
4228
|
+
pg_settings?: {
|
|
4229
|
+
[x: string]: string;
|
|
4230
|
+
} | null | undefined;
|
|
4231
|
+
pgbouncer_settings?: {
|
|
4232
|
+
[x: string]: string;
|
|
4233
|
+
} | null | undefined;
|
|
4234
|
+
autoscaling_limit_min_cu?: number | null | undefined;
|
|
4235
|
+
autoscaling_limit_max_cu?: number | null | undefined;
|
|
4236
|
+
suspend_timeout_seconds?: number | null | undefined;
|
|
4237
|
+
} | null | undefined;
|
|
4238
|
+
settings?: {
|
|
4239
|
+
quota?: {
|
|
4240
|
+
active_time_seconds?: number | null | undefined;
|
|
4241
|
+
compute_time_seconds?: number | null | undefined;
|
|
4242
|
+
written_data_bytes?: number | null | undefined;
|
|
4243
|
+
data_transfer_bytes?: number | null | undefined;
|
|
4244
|
+
logical_size_bytes?: number | null | undefined;
|
|
4245
|
+
} | null | undefined;
|
|
4246
|
+
allowed_ips?: {
|
|
4247
|
+
ips?: string[] | null | undefined;
|
|
4248
|
+
protected_branches_only?: boolean | null | undefined;
|
|
4249
|
+
} | null | undefined;
|
|
4250
|
+
enable_logical_replication?: boolean | null | undefined;
|
|
4251
|
+
maintenance_window?: {
|
|
4252
|
+
weekdays: number[];
|
|
4253
|
+
start_time: string;
|
|
4254
|
+
end_time: string;
|
|
4255
|
+
} | null | undefined;
|
|
4256
|
+
block_public_connections?: boolean | null | undefined;
|
|
4257
|
+
block_vpc_connections?: boolean | null | undefined;
|
|
4258
|
+
audit_log_level?: import("@neon/sdk").ProjectAuditLogLevel | null | undefined;
|
|
4259
|
+
hipaa?: boolean | null | undefined;
|
|
4260
|
+
preload_libraries?: {
|
|
4261
|
+
use_defaults?: boolean | null | undefined;
|
|
4262
|
+
enabled_libraries?: string[] | null | undefined;
|
|
4263
|
+
} | null | undefined;
|
|
4264
|
+
} | null | undefined;
|
|
4265
|
+
pg_version: import("@neon/sdk").PgVersion;
|
|
4266
|
+
proxy_host: string;
|
|
4267
|
+
branch_logical_size_limit: number;
|
|
4268
|
+
branch_logical_size_limit_bytes: number;
|
|
4269
|
+
store_passwords: boolean;
|
|
4270
|
+
active_time: number;
|
|
4271
|
+
cpu_used_sec: number;
|
|
4272
|
+
maintenance_starts_at?: string | null | undefined;
|
|
4273
|
+
creation_source: string;
|
|
4274
|
+
created_at: string;
|
|
4275
|
+
updated_at: string;
|
|
4276
|
+
synthetic_storage_size?: number | null | undefined;
|
|
4277
|
+
quota_reset_at?: string | null | undefined;
|
|
4278
|
+
owner_id: string;
|
|
4279
|
+
compute_last_active_at?: string | null | undefined;
|
|
4280
|
+
org_id?: string | null | undefined;
|
|
4281
|
+
org_name?: string | null | undefined;
|
|
4282
|
+
history_retention_seconds?: number | null | undefined;
|
|
4283
|
+
hipaa_enabled_at?: string | null | undefined;
|
|
4284
|
+
deleted_at?: string | null | undefined;
|
|
4285
|
+
recoverable_until?: string | null | undefined;
|
|
4286
|
+
effective_project_permission?: (import("@neon/sdk").ProjectPermissionLevel | null) | undefined;
|
|
4287
|
+
}[];
|
|
4288
|
+
};
|
|
4289
|
+
} | {
|
|
4290
|
+
id: string;
|
|
4291
|
+
title: string;
|
|
4292
|
+
text: string;
|
|
4293
|
+
url: string;
|
|
4294
|
+
metadata: {
|
|
4295
|
+
project: {
|
|
4296
|
+
data_storage_bytes_hour: number;
|
|
4297
|
+
data_transfer_bytes: number;
|
|
4298
|
+
written_data_bytes: number;
|
|
4299
|
+
compute_time_seconds: number;
|
|
4300
|
+
active_time_seconds: number;
|
|
4301
|
+
cpu_used_sec: number;
|
|
4302
|
+
id: string;
|
|
4303
|
+
platform_id: string;
|
|
4304
|
+
region_id: string;
|
|
4305
|
+
name: string;
|
|
4306
|
+
provisioner: import("@neon/sdk").Provisioner;
|
|
4307
|
+
default_endpoint_settings?: {
|
|
4308
|
+
pg_settings?: {
|
|
4309
|
+
[x: string]: string;
|
|
4310
|
+
} | null | undefined;
|
|
4311
|
+
pgbouncer_settings?: {
|
|
4312
|
+
[x: string]: string;
|
|
4313
|
+
} | null | undefined;
|
|
4314
|
+
autoscaling_limit_min_cu?: number | null | undefined;
|
|
4315
|
+
autoscaling_limit_max_cu?: number | null | undefined;
|
|
4316
|
+
suspend_timeout_seconds?: number | null | undefined;
|
|
4317
|
+
} | null | undefined;
|
|
4318
|
+
settings?: {
|
|
4319
|
+
quota?: {
|
|
4320
|
+
active_time_seconds?: number | null | undefined;
|
|
4321
|
+
compute_time_seconds?: number | null | undefined;
|
|
4322
|
+
written_data_bytes?: number | null | undefined;
|
|
4323
|
+
data_transfer_bytes?: number | null | undefined;
|
|
4324
|
+
logical_size_bytes?: number | null | undefined;
|
|
4325
|
+
} | null | undefined;
|
|
4326
|
+
allowed_ips?: {
|
|
4327
|
+
ips?: string[] | null | undefined;
|
|
4328
|
+
protected_branches_only?: boolean | null | undefined;
|
|
4329
|
+
} | null | undefined;
|
|
4330
|
+
enable_logical_replication?: boolean | null | undefined;
|
|
4331
|
+
maintenance_window?: {
|
|
4332
|
+
weekdays: number[];
|
|
4333
|
+
start_time: string;
|
|
4334
|
+
end_time: string;
|
|
4335
|
+
} | null | undefined;
|
|
4336
|
+
block_public_connections?: boolean | null | undefined;
|
|
4337
|
+
block_vpc_connections?: boolean | null | undefined;
|
|
4338
|
+
audit_log_level?: import("@neon/sdk").ProjectAuditLogLevel | null | undefined;
|
|
4339
|
+
hipaa?: boolean | null | undefined;
|
|
4340
|
+
preload_libraries?: {
|
|
4341
|
+
use_defaults?: boolean | null | undefined;
|
|
4342
|
+
enabled_libraries?: string[] | null | undefined;
|
|
4343
|
+
} | null | undefined;
|
|
4344
|
+
} | null | undefined;
|
|
4345
|
+
pg_version: import("@neon/sdk").PgVersion;
|
|
4346
|
+
proxy_host: string;
|
|
4347
|
+
branch_logical_size_limit: number;
|
|
4348
|
+
branch_logical_size_limit_bytes: number;
|
|
4349
|
+
store_passwords: boolean;
|
|
4350
|
+
maintenance_starts_at?: string | null | undefined;
|
|
4351
|
+
creation_source: string;
|
|
4352
|
+
history_retention_seconds: number;
|
|
4353
|
+
created_at: string;
|
|
4354
|
+
updated_at: string;
|
|
4355
|
+
synthetic_storage_size?: number | null | undefined;
|
|
4356
|
+
consumption_period_start: string;
|
|
4357
|
+
consumption_period_end: string;
|
|
4358
|
+
quota_reset_at?: string | null | undefined;
|
|
4359
|
+
owner_id: string;
|
|
4360
|
+
owner?: {
|
|
4361
|
+
email: string;
|
|
4362
|
+
name: string;
|
|
4363
|
+
branches_limit: number;
|
|
4364
|
+
subscription_type: import("@neon/sdk").BillingSubscriptionType;
|
|
4365
|
+
} | null | undefined;
|
|
4366
|
+
compute_last_active_at?: string | null | undefined;
|
|
4367
|
+
org_id?: string | null | undefined;
|
|
4368
|
+
maintenance_scheduled_for?: string | null | undefined;
|
|
4369
|
+
hipaa_enabled_at?: string | null | undefined;
|
|
4370
|
+
effective_project_permission?: (import("@neon/sdk").ProjectPermissionLevel | null) | undefined;
|
|
4371
|
+
};
|
|
4372
|
+
branches: {
|
|
4373
|
+
id: string;
|
|
4374
|
+
project_id: string;
|
|
4375
|
+
parent_id?: string | null | undefined;
|
|
4376
|
+
parent_lsn?: string | null | undefined;
|
|
4377
|
+
parent_timestamp?: string | null | undefined;
|
|
4378
|
+
name: string;
|
|
4379
|
+
current_state: import("@neon/sdk").BranchState;
|
|
4380
|
+
pending_state?: string | null | undefined;
|
|
4381
|
+
state_changed_at: string;
|
|
4382
|
+
logical_size?: number | null | undefined;
|
|
4383
|
+
creation_source: string;
|
|
4384
|
+
primary?: boolean | null | undefined;
|
|
4385
|
+
default: boolean;
|
|
4386
|
+
protected: boolean;
|
|
4387
|
+
cpu_used_sec: number;
|
|
4388
|
+
compute_time_seconds: number;
|
|
4389
|
+
active_time_seconds: number;
|
|
4390
|
+
written_data_bytes: number;
|
|
4391
|
+
data_transfer_bytes: number;
|
|
4392
|
+
created_at: string;
|
|
4393
|
+
updated_at: string;
|
|
4394
|
+
ttl_interval_seconds?: number | null | undefined;
|
|
4395
|
+
expires_at?: string | null | undefined;
|
|
4396
|
+
last_reset_at?: string | null | undefined;
|
|
4397
|
+
created_by?: {
|
|
4398
|
+
name?: string | null | undefined;
|
|
4399
|
+
image?: string | null | undefined;
|
|
4400
|
+
} | null | undefined;
|
|
4401
|
+
init_source?: string | null | undefined;
|
|
4402
|
+
restore_status?: string | null | undefined;
|
|
4403
|
+
restored_from?: string | null | undefined;
|
|
4404
|
+
restored_as?: string | null | undefined;
|
|
4405
|
+
restricted_actions?: {
|
|
4406
|
+
name: string;
|
|
4407
|
+
reason: string;
|
|
4408
|
+
}[] | null | undefined;
|
|
4409
|
+
recovery?: {
|
|
4410
|
+
deleted_at: string;
|
|
4411
|
+
recoverable_until: string;
|
|
4412
|
+
deletion_method: "user" | "ttl";
|
|
4413
|
+
} | null | undefined;
|
|
4414
|
+
}[];
|
|
4415
|
+
};
|
|
4416
|
+
} | {
|
|
4417
|
+
id: string;
|
|
4418
|
+
title: string;
|
|
4419
|
+
text: string;
|
|
4420
|
+
url: string;
|
|
4421
|
+
metadata: {
|
|
4422
|
+
endpoint: {
|
|
4423
|
+
host: string;
|
|
4424
|
+
id: string;
|
|
4425
|
+
name?: string | null | undefined;
|
|
4426
|
+
project_id: string;
|
|
4427
|
+
branch_id: string;
|
|
4428
|
+
autoscaling_limit_min_cu: import("@neon/sdk").ComputeUnit;
|
|
4429
|
+
autoscaling_limit_max_cu: import("@neon/sdk").ComputeUnit;
|
|
4430
|
+
region_id: string;
|
|
4431
|
+
type: import("@neon/sdk").EndpointType;
|
|
4432
|
+
current_state: import("@neon/sdk").EndpointState;
|
|
4433
|
+
pending_state?: import("@neon/sdk").EndpointState | null | undefined;
|
|
4434
|
+
settings: {
|
|
4435
|
+
pg_settings?: {
|
|
4436
|
+
[x: string]: string;
|
|
4437
|
+
} | null | undefined;
|
|
4438
|
+
pgbouncer_settings?: {
|
|
4439
|
+
[x: string]: string;
|
|
4440
|
+
} | null | undefined;
|
|
4441
|
+
preload_libraries?: {
|
|
4442
|
+
use_defaults?: boolean | null | undefined;
|
|
4443
|
+
enabled_libraries?: string[] | null | undefined;
|
|
4444
|
+
} | null | undefined;
|
|
4445
|
+
};
|
|
4446
|
+
pooler_enabled: boolean;
|
|
4447
|
+
pooler_mode: import("@neon/sdk").EndpointPoolerMode;
|
|
4448
|
+
disabled: boolean;
|
|
4449
|
+
passwordless_access: boolean;
|
|
4450
|
+
last_active?: string | null | undefined;
|
|
4451
|
+
creation_source: string;
|
|
4452
|
+
created_at: string;
|
|
4453
|
+
updated_at: string;
|
|
4454
|
+
started_at?: string | null | undefined;
|
|
4455
|
+
suspended_at?: string | null | undefined;
|
|
4456
|
+
proxy_host: string;
|
|
4457
|
+
suspend_timeout_seconds: import("@neon/sdk").SuspendTimeoutSeconds;
|
|
4458
|
+
provisioner: import("@neon/sdk").Provisioner;
|
|
4459
|
+
compute_release_version?: string | null | undefined;
|
|
4460
|
+
};
|
|
4461
|
+
};
|
|
4462
|
+
} | {
|
|
4463
|
+
id: string;
|
|
4464
|
+
title: string;
|
|
4465
|
+
text: string;
|
|
4466
|
+
url: string;
|
|
4467
|
+
metadata: {
|
|
4468
|
+
snapshot: {
|
|
4469
|
+
id: string;
|
|
4470
|
+
name: string;
|
|
4471
|
+
lsn?: string | null | undefined;
|
|
4472
|
+
timestamp?: string | null | undefined;
|
|
4473
|
+
source_branch_id?: string | null | undefined;
|
|
4474
|
+
created_at: string;
|
|
4475
|
+
expires_at?: string | null | undefined;
|
|
4476
|
+
manual?: boolean | null | undefined;
|
|
4477
|
+
full_size?: number | null | undefined;
|
|
4478
|
+
diff_size?: number | null | undefined;
|
|
4479
|
+
};
|
|
4480
|
+
};
|
|
4481
|
+
} | {
|
|
4482
|
+
id: string;
|
|
4483
|
+
title: string;
|
|
4484
|
+
text: string;
|
|
4485
|
+
url: string;
|
|
4486
|
+
metadata: {
|
|
4487
|
+
branch: {
|
|
4488
|
+
id: string;
|
|
4489
|
+
project_id: string;
|
|
4490
|
+
parent_id?: string | null | undefined;
|
|
4491
|
+
parent_lsn?: string | null | undefined;
|
|
4492
|
+
parent_timestamp?: string | null | undefined;
|
|
4493
|
+
name: string;
|
|
4494
|
+
current_state: import("@neon/sdk").BranchState;
|
|
4495
|
+
pending_state?: string | null | undefined;
|
|
4496
|
+
state_changed_at: string;
|
|
4497
|
+
logical_size?: number | null | undefined;
|
|
4498
|
+
creation_source: string;
|
|
4499
|
+
primary?: boolean | null | undefined;
|
|
4500
|
+
default: boolean;
|
|
4501
|
+
protected: boolean;
|
|
4502
|
+
cpu_used_sec: number;
|
|
4503
|
+
compute_time_seconds: number;
|
|
4504
|
+
active_time_seconds: number;
|
|
4505
|
+
written_data_bytes: number;
|
|
4506
|
+
data_transfer_bytes: number;
|
|
4507
|
+
created_at: string;
|
|
4508
|
+
updated_at: string;
|
|
4509
|
+
ttl_interval_seconds?: number | null | undefined;
|
|
4510
|
+
expires_at?: string | null | undefined;
|
|
4511
|
+
last_reset_at?: string | null | undefined;
|
|
4512
|
+
created_by?: {
|
|
4513
|
+
name?: string | null | undefined;
|
|
4514
|
+
image?: string | null | undefined;
|
|
4515
|
+
} | null | undefined;
|
|
4516
|
+
init_source?: string | null | undefined;
|
|
4517
|
+
restore_status?: string | null | undefined;
|
|
4518
|
+
restored_from?: string | null | undefined;
|
|
4519
|
+
restored_as?: string | null | undefined;
|
|
4520
|
+
restricted_actions?: {
|
|
4521
|
+
name: string;
|
|
4522
|
+
reason: string;
|
|
4523
|
+
}[] | null | undefined;
|
|
4524
|
+
recovery?: {
|
|
4525
|
+
deleted_at: string;
|
|
4526
|
+
recoverable_until: string;
|
|
4527
|
+
deletion_method: "user" | "ttl";
|
|
4528
|
+
} | null | undefined;
|
|
4529
|
+
};
|
|
4530
|
+
database_structure: {
|
|
4531
|
+
[x: string]: unknown;
|
|
4532
|
+
}[][] | null;
|
|
4533
|
+
database_structure_error?: string | null | undefined;
|
|
4534
|
+
};
|
|
4535
|
+
}>;
|
|
4536
|
+
"docs.search": (options: ToolClientOptions) => NeonTool<z.ZodObject<{
|
|
4537
|
+
query: z.ZodString;
|
|
4538
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
4539
|
+
docs: "docs";
|
|
4540
|
+
api: "api";
|
|
4541
|
+
postgresql: "postgresql";
|
|
4542
|
+
guides: "guides";
|
|
4543
|
+
faqs: "faqs";
|
|
4544
|
+
blog: "blog";
|
|
4545
|
+
changelog: "changelog";
|
|
4546
|
+
}>>>;
|
|
4547
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
4548
|
+
}, z.core.$strict>, "search_docs", {
|
|
4549
|
+
hits: {
|
|
4550
|
+
title: string;
|
|
4551
|
+
url: string;
|
|
4552
|
+
slug: string;
|
|
4553
|
+
category: string;
|
|
4554
|
+
breadcrumb: string[];
|
|
4555
|
+
heading: string;
|
|
4556
|
+
excerpt: string;
|
|
4557
|
+
}[];
|
|
4558
|
+
}>;
|
|
4559
|
+
"docs.get": (options: ToolClientOptions) => NeonTool<z.ZodObject<{
|
|
4560
|
+
slug: z.ZodString;
|
|
4561
|
+
}, z.core.$strict>, "get_docs", {
|
|
4562
|
+
url: string;
|
|
4563
|
+
markdown: string;
|
|
4564
|
+
}>;
|
|
4565
|
+
"feedback.send": (options: ToolClientOptions) => NeonTool<z.ZodObject<{
|
|
4566
|
+
feedback: z.ZodString;
|
|
4567
|
+
}, z.core.$strict>, "send_feedback", {
|
|
4568
|
+
message: string;
|
|
4569
|
+
}>;
|
|
3738
4570
|
};
|
|
3739
4571
|
//# sourceMappingURL=catalog.d.ts.map
|