@neon/tools 2.12.0 → 2.14.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.
Files changed (94) hide show
  1. package/README.md +152 -7
  2. package/dist/descriptions.gen.d.ts +10 -0
  3. package/dist/descriptions.gen.d.ts.map +1 -0
  4. package/dist/descriptions.gen.js +150 -0
  5. package/dist/generated/zod.gen.d.ts +6 -6
  6. package/dist/index.d.ts +7 -3
  7. package/dist/index.d.ts.map +1 -1
  8. package/dist/index.js +15 -11
  9. package/dist/lib/custom/auth-config.d.ts +164 -0
  10. package/dist/lib/custom/auth-config.d.ts.map +1 -0
  11. package/dist/lib/custom/auth-config.js +177 -0
  12. package/dist/lib/custom/docs.d.ts +58 -0
  13. package/dist/lib/custom/docs.d.ts.map +1 -0
  14. package/dist/lib/custom/docs.js +143 -0
  15. package/dist/lib/custom/feedback.d.ts +15 -0
  16. package/dist/lib/custom/feedback.d.ts.map +1 -0
  17. package/dist/lib/custom/feedback.js +55 -0
  18. package/dist/lib/custom/fetch.d.ts +402 -0
  19. package/dist/lib/custom/fetch.d.ts.map +1 -0
  20. package/dist/lib/custom/fetch.js +198 -0
  21. package/dist/lib/custom/organizations.d.ts +23 -0
  22. package/dist/lib/custom/organizations.d.ts.map +1 -0
  23. package/dist/lib/custom/organizations.js +32 -0
  24. package/dist/lib/custom/resources.d.ts +22 -0
  25. package/dist/lib/custom/resources.d.ts.map +1 -0
  26. package/dist/lib/custom/resources.js +113 -0
  27. package/dist/lib/custom/sql/connection.d.ts +46 -0
  28. package/dist/lib/custom/sql/connection.d.ts.map +1 -0
  29. package/dist/lib/custom/sql/connection.js +78 -0
  30. package/dist/lib/custom/sql/describe-branch.d.ts +84 -0
  31. package/dist/lib/custom/sql/describe-branch.d.ts.map +1 -0
  32. package/dist/lib/custom/sql/describe-branch.js +155 -0
  33. package/dist/lib/custom/sql/inspect/catalog.d.ts +22 -0
  34. package/dist/lib/custom/sql/inspect/catalog.d.ts.map +1 -0
  35. package/dist/lib/custom/sql/inspect/catalog.js +18 -0
  36. package/dist/lib/custom/sql/inspect/inspect.d.ts +75 -0
  37. package/dist/lib/custom/sql/inspect/inspect.d.ts.map +1 -0
  38. package/dist/lib/custom/sql/inspect/inspect.js +135 -0
  39. package/dist/lib/custom/sql/inspect/queries.d.ts +63 -0
  40. package/dist/lib/custom/sql/inspect/queries.d.ts.map +1 -0
  41. package/dist/lib/custom/sql/inspect/queries.js +528 -0
  42. package/dist/lib/custom/sql/inspect/report.d.ts +33 -0
  43. package/dist/lib/custom/sql/inspect/report.d.ts.map +1 -0
  44. package/dist/lib/custom/sql/inspect/report.js +45 -0
  45. package/dist/lib/custom/sql/inspect/targets.d.ts +27 -0
  46. package/dist/lib/custom/sql/inspect/targets.d.ts.map +1 -0
  47. package/dist/lib/custom/sql/inspect/targets.js +33 -0
  48. package/dist/lib/custom/sql/migrations.d.ts +69 -0
  49. package/dist/lib/custom/sql/migrations.d.ts.map +1 -0
  50. package/dist/lib/custom/sql/migrations.js +144 -0
  51. package/dist/lib/custom/sql/plan.d.ts +27 -0
  52. package/dist/lib/custom/sql/plan.d.ts.map +1 -0
  53. package/dist/lib/custom/sql/plan.js +53 -0
  54. package/dist/lib/custom/sql/query-tuning.d.ts +107 -0
  55. package/dist/lib/custom/sql/query-tuning.d.ts.map +1 -0
  56. package/dist/lib/custom/sql/query-tuning.js +129 -0
  57. package/dist/lib/custom/sql/rows.d.ts +11 -0
  58. package/dist/lib/custom/sql/rows.d.ts.map +1 -0
  59. package/dist/lib/custom/sql/rows.js +19 -0
  60. package/dist/lib/custom/sql/run.d.ts +81 -0
  61. package/dist/lib/custom/sql/run.d.ts.map +1 -0
  62. package/dist/lib/custom/sql/run.js +90 -0
  63. package/dist/lib/custom/sql/schema.d.ts +84 -0
  64. package/dist/lib/custom/sql/schema.d.ts.map +1 -0
  65. package/dist/lib/custom/sql/schema.js +201 -0
  66. package/dist/lib/custom/sql/slow-queries.d.ts +43 -0
  67. package/dist/lib/custom/sql/slow-queries.d.ts.map +1 -0
  68. package/dist/lib/custom/sql/slow-queries.js +87 -0
  69. package/dist/lib/customize.d.ts +9 -2
  70. package/dist/lib/customize.d.ts.map +1 -1
  71. package/dist/lib/customize.js +21 -7
  72. package/dist/lib/ergonomic/bind.d.ts +11 -1
  73. package/dist/lib/ergonomic/bind.d.ts.map +1 -1
  74. package/dist/lib/ergonomic/bind.js +13 -3
  75. package/dist/lib/ergonomic/catalog.d.ts +902 -87
  76. package/dist/lib/ergonomic/catalog.d.ts.map +1 -1
  77. package/dist/lib/ergonomic/catalog.js +35 -8
  78. package/dist/lib/ergonomic/composed.d.ts +4 -4
  79. package/dist/lib/ergonomic/composed.d.ts.map +1 -1
  80. package/dist/lib/ergonomic/composed.js +47 -45
  81. package/dist/lib/ergonomic/ids.d.ts +3 -1
  82. package/dist/lib/ergonomic/ids.d.ts.map +1 -1
  83. package/dist/lib/ergonomic/ids.js +41 -2
  84. package/dist/lib/ergonomic/index.d.ts +1 -1
  85. package/dist/lib/ergonomic/index.d.ts.map +1 -1
  86. package/dist/lib/ergonomic/index.js +2 -2
  87. package/dist/lib/operation.d.ts +11 -0
  88. package/dist/lib/operation.d.ts.map +1 -1
  89. package/dist/lib/references.d.ts +10 -0
  90. package/dist/lib/references.d.ts.map +1 -0
  91. package/dist/lib/references.js +28 -0
  92. package/dist/operations.gen.d.ts +2 -2
  93. package/dist/operations.gen.js +302 -302
  94. package/package.json +8 -5
@@ -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
- org_id?: string | undefined;
10
8
  limit?: number | undefined;
9
+ org_id?: string | undefined;
10
+ search?: string | undefined;
11
11
  timeout?: number | undefined;
12
12
  recoverable?: boolean | undefined;
13
13
  }, {
14
- search?: string | undefined;
15
- org_id?: string | undefined;
16
14
  limit?: number | undefined;
15
+ org_id?: string | 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
- org_id?: string | undefined;
22
20
  limit?: number | undefined;
21
+ org_id?: string | undefined;
22
+ search?: string | undefined;
23
23
  timeout?: number | undefined;
24
24
  recoverable?: boolean | undefined;
25
25
  }, {
26
- search?: string | undefined;
27
- org_id?: string | undefined;
28
26
  limit?: number | undefined;
27
+ org_id?: string | undefined;
28
+ search?: string | undefined;
29
29
  timeout?: number | undefined;
30
30
  recoverable?: boolean | undefined;
31
31
  }>>, "list_projects", {
@@ -762,17 +762,17 @@ export declare const toolFactories: {
762
762
  revoked_at?: string | null | undefined;
763
763
  }>;
764
764
  "projects.members.list": (options: ToolClientOptions) => NeonTool<z.ZodType<{
765
- project_id: string;
766
765
  limit?: number | undefined;
767
- }, {
768
766
  project_id: string;
767
+ }, {
769
768
  limit?: number | undefined;
770
- }, z.core.$ZodTypeInternals<{
771
769
  project_id: string;
770
+ }, z.core.$ZodTypeInternals<{
772
771
  limit?: number | undefined;
773
- }, {
774
772
  project_id: string;
773
+ }, {
775
774
  limit?: number | undefined;
775
+ project_id: string;
776
776
  }>>, "list_projects_members", {
777
777
  member_id: string;
778
778
  user_id: string;
@@ -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;
830
+ limit?: number | undefined;
831
831
  project_id: string;
832
832
  sort_by?: "name" | "created_at" | "updated_at" | undefined;
833
833
  sort_order?: "asc" | "desc" | undefined;
834
- limit?: number | undefined;
834
+ search?: string | undefined;
835
835
  include_deleted?: boolean | undefined;
836
836
  }, {
837
- search?: string | undefined;
837
+ limit?: number | undefined;
838
838
  project_id: string;
839
839
  sort_by?: "name" | "created_at" | "updated_at" | undefined;
840
840
  sort_order?: "asc" | "desc" | undefined;
841
- limit?: number | undefined;
841
+ search?: string | undefined;
842
842
  include_deleted?: boolean | undefined;
843
843
  }, z.core.$ZodTypeInternals<{
844
- search?: string | undefined;
844
+ limit?: number | undefined;
845
845
  project_id: string;
846
846
  sort_by?: "name" | "created_at" | "updated_at" | undefined;
847
847
  sort_order?: "asc" | "desc" | undefined;
848
- limit?: number | undefined;
848
+ search?: string | undefined;
849
849
  include_deleted?: boolean | undefined;
850
850
  }, {
851
- search?: string | undefined;
851
+ limit?: number | undefined;
852
852
  project_id: string;
853
853
  sort_by?: "name" | "created_at" | "updated_at" | undefined;
854
854
  sort_order?: "asc" | "desc" | undefined;
855
- 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,7 +1830,7 @@ 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?: "external" | "neon_auth" | null | undefined;
1833
+ auth_provider?: "neon_auth" | "external" | null | undefined;
1834
1834
  jwks_url?: string | null | undefined;
1835
1835
  provider_name?: string | null | undefined;
1836
1836
  jwt_audience?: string | null | undefined;
@@ -1840,8 +1840,8 @@ export declare const toolFactories: {
1840
1840
  branch_id: z.ZodString;
1841
1841
  database_name: z.ZodString;
1842
1842
  auth_provider: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
1843
- external: "external";
1844
1843
  neon_auth: "neon_auth";
1844
+ external: "external";
1845
1845
  }>>>;
1846
1846
  jwks_url: z.ZodOptional<z.ZodOptional<z.ZodURL>>;
1847
1847
  provider_name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
@@ -1919,30 +1919,30 @@ export declare const toolFactories: {
1919
1919
  bucket_name: z.ZodString;
1920
1920
  }, z.core.$strict>, "delete_storage_buckets", null>;
1921
1921
  "storage.objects.list": (options: ToolClientOptions) => NeonTool<z.ZodType<{
1922
- project_id: string;
1923
- branch_id: string;
1924
1922
  limit?: number | undefined;
1923
+ branch_id: string;
1924
+ project_id: string;
1925
1925
  prefix?: string | undefined;
1926
1926
  bucket_name: string;
1927
1927
  delimiter?: string | undefined;
1928
1928
  }, {
1929
- project_id: string;
1930
- branch_id: string;
1931
1929
  limit?: number | undefined;
1930
+ branch_id: string;
1931
+ project_id: string;
1932
1932
  prefix?: string | undefined;
1933
1933
  bucket_name: string;
1934
1934
  delimiter?: string | undefined;
1935
1935
  }, z.core.$ZodTypeInternals<{
1936
- project_id: string;
1937
- branch_id: string;
1938
1936
  limit?: number | undefined;
1937
+ branch_id: string;
1938
+ project_id: string;
1939
1939
  prefix?: string | undefined;
1940
1940
  bucket_name: string;
1941
1941
  delimiter?: string | undefined;
1942
1942
  }, {
1943
- project_id: string;
1944
- branch_id: string;
1945
1943
  limit?: number | undefined;
1944
+ branch_id: string;
1945
+ project_id: string;
1946
1946
  prefix?: string | undefined;
1947
1947
  bucket_name: string;
1948
1948
  delimiter?: string | undefined;
@@ -1990,21 +1990,21 @@ export declare const toolFactories: {
1990
1990
  expires_at: string;
1991
1991
  }>;
1992
1992
  "functions.list": (options: ToolClientOptions) => NeonTool<z.ZodType<{
1993
- project_id: string;
1994
- branch_id: string;
1995
1993
  limit?: number | undefined;
1996
- }, {
1997
- project_id: string;
1998
1994
  branch_id: string;
1999
- limit?: number | undefined;
2000
- }, z.core.$ZodTypeInternals<{
2001
1995
  project_id: string;
2002
- branch_id: string;
2003
- limit?: number | undefined;
2004
1996
  }, {
1997
+ limit?: number | undefined;
1998
+ branch_id: string;
2005
1999
  project_id: string;
2000
+ }, z.core.$ZodTypeInternals<{
2001
+ limit?: number | undefined;
2006
2002
  branch_id: string;
2003
+ project_id: string;
2004
+ }, {
2007
2005
  limit?: number | undefined;
2006
+ branch_id: string;
2007
+ project_id: string;
2008
2008
  }>>, "list_functions", {
2009
2009
  id: string;
2010
2010
  slug: string;
@@ -2113,21 +2113,21 @@ export declare const toolFactories: {
2113
2113
  error?: string | null | undefined;
2114
2114
  }>;
2115
2115
  "functions.customDomains.list": (options: ToolClientOptions) => NeonTool<z.ZodType<{
2116
- project_id: string;
2117
- branch_id: string;
2118
2116
  limit?: number | undefined;
2119
- }, {
2120
- project_id: string;
2121
2117
  branch_id: string;
2122
- limit?: number | undefined;
2123
- }, z.core.$ZodTypeInternals<{
2124
2118
  project_id: string;
2125
- branch_id: string;
2126
- limit?: number | undefined;
2127
2119
  }, {
2120
+ limit?: number | undefined;
2121
+ branch_id: string;
2128
2122
  project_id: string;
2123
+ }, z.core.$ZodTypeInternals<{
2124
+ limit?: number | undefined;
2129
2125
  branch_id: string;
2126
+ project_id: string;
2127
+ }, {
2130
2128
  limit?: number | undefined;
2129
+ branch_id: string;
2130
+ project_id: string;
2131
2131
  }>>, "list_functions_custom_domains", {
2132
2132
  domain: string;
2133
2133
  entity_type: string;
@@ -2425,13 +2425,13 @@ export declare const toolFactories: {
2425
2425
  branch_id: z.ZodString;
2426
2426
  }, z.core.$strict>, "rotate_secret_realtime", null>;
2427
2427
  "logs.query": (options: ToolClientOptions) => NeonTool<z.ZodType<{
2428
- project_id: string;
2428
+ limit?: number | undefined;
2429
2429
  branch_id: string;
2430
+ project_id: string;
2430
2431
  start_time?: string | undefined;
2431
2432
  end_time?: string | undefined;
2432
2433
  sort_order?: "asc" | "desc" | undefined;
2433
2434
  since?: string | undefined;
2434
- limit?: number | undefined;
2435
2435
  source?: "function" | "storage" | "pg_endpoint" | undefined;
2436
2436
  service_name?: string | undefined;
2437
2437
  scope_name?: string | undefined;
@@ -2441,13 +2441,13 @@ export declare const toolFactories: {
2441
2441
  trace_id?: string | undefined;
2442
2442
  logql?: string | undefined;
2443
2443
  }, {
2444
- project_id: string;
2444
+ limit?: number | undefined;
2445
2445
  branch_id: string;
2446
+ project_id: string;
2446
2447
  start_time?: string | undefined;
2447
2448
  end_time?: string | undefined;
2448
2449
  sort_order?: "asc" | "desc" | undefined;
2449
2450
  since?: string | undefined;
2450
- limit?: number | undefined;
2451
2451
  source?: "function" | "storage" | "pg_endpoint" | undefined;
2452
2452
  service_name?: string | undefined;
2453
2453
  scope_name?: string | undefined;
@@ -2457,13 +2457,13 @@ export declare const toolFactories: {
2457
2457
  trace_id?: string | undefined;
2458
2458
  logql?: string | undefined;
2459
2459
  }, z.core.$ZodTypeInternals<{
2460
- project_id: string;
2460
+ limit?: number | undefined;
2461
2461
  branch_id: string;
2462
+ project_id: string;
2462
2463
  start_time?: string | undefined;
2463
2464
  end_time?: string | undefined;
2464
2465
  sort_order?: "asc" | "desc" | undefined;
2465
2466
  since?: string | undefined;
2466
- limit?: number | undefined;
2467
2467
  source?: "function" | "storage" | "pg_endpoint" | undefined;
2468
2468
  service_name?: string | undefined;
2469
2469
  scope_name?: string | undefined;
@@ -2473,13 +2473,13 @@ export declare const toolFactories: {
2473
2473
  trace_id?: string | undefined;
2474
2474
  logql?: string | undefined;
2475
2475
  }, {
2476
- project_id: string;
2476
+ limit?: number | undefined;
2477
2477
  branch_id: string;
2478
+ project_id: string;
2478
2479
  start_time?: string | undefined;
2479
2480
  end_time?: string | undefined;
2480
2481
  sort_order?: "asc" | "desc" | undefined;
2481
2482
  since?: string | undefined;
2482
- limit?: number | undefined;
2483
2483
  source?: "function" | "storage" | "pg_endpoint" | undefined;
2484
2484
  service_name?: string | undefined;
2485
2485
  scope_name?: string | undefined;
@@ -2680,17 +2680,17 @@ export declare const toolFactories: {
2680
2680
  }, z.core.$strict>>;
2681
2681
  }, z.core.$strict>, "set_schedule_snapshots", null>;
2682
2682
  "operations.list": (options: ToolClientOptions) => NeonTool<z.ZodType<{
2683
- project_id: string;
2684
2683
  limit?: number | undefined;
2685
- }, {
2686
2684
  project_id: string;
2685
+ }, {
2687
2686
  limit?: number | undefined;
2688
- }, z.core.$ZodTypeInternals<{
2689
2687
  project_id: string;
2688
+ }, z.core.$ZodTypeInternals<{
2690
2689
  limit?: number | undefined;
2691
- }, {
2692
2690
  project_id: string;
2691
+ }, {
2693
2692
  limit?: number | undefined;
2693
+ project_id: string;
2694
2694
  }>>, "list_operations", {
2695
2695
  id: string;
2696
2696
  project_id: string;
@@ -3272,37 +3272,37 @@ export declare const toolFactories: {
3272
3272
  enabled: boolean;
3273
3273
  }>;
3274
3274
  "consumption.perProject": (options: ToolClientOptions) => NeonTool<z.ZodType<{
3275
+ limit?: number | undefined;
3275
3276
  metrics?: string[] | undefined;
3276
3277
  org_id?: string | undefined;
3277
3278
  project_ids?: string[] | undefined;
3278
- limit?: number | undefined;
3279
3279
  from: string;
3280
3280
  to: string;
3281
3281
  granularity: "hourly" | "daily" | "monthly";
3282
3282
  include_v1_metrics?: boolean | undefined;
3283
3283
  }, {
3284
+ limit?: number | undefined;
3284
3285
  metrics?: string[] | undefined;
3285
3286
  org_id?: string | undefined;
3286
3287
  project_ids?: string[] | undefined;
3287
- limit?: number | undefined;
3288
3288
  from: string;
3289
3289
  to: string;
3290
3290
  granularity: "hourly" | "daily" | "monthly";
3291
3291
  include_v1_metrics?: boolean | undefined;
3292
3292
  }, z.core.$ZodTypeInternals<{
3293
+ limit?: number | undefined;
3293
3294
  metrics?: string[] | undefined;
3294
3295
  org_id?: string | undefined;
3295
3296
  project_ids?: string[] | undefined;
3296
- limit?: number | undefined;
3297
3297
  from: string;
3298
3298
  to: string;
3299
3299
  granularity: "hourly" | "daily" | "monthly";
3300
3300
  include_v1_metrics?: boolean | undefined;
3301
3301
  }, {
3302
+ limit?: number | undefined;
3302
3303
  metrics?: string[] | undefined;
3303
3304
  org_id?: string | undefined;
3304
3305
  project_ids?: string[] | undefined;
3305
- limit?: number | undefined;
3306
3306
  from: string;
3307
3307
  to: string;
3308
3308
  granularity: "hourly" | "daily" | "monthly";
@@ -3328,34 +3328,34 @@ export declare const toolFactories: {
3328
3328
  }[];
3329
3329
  }[]>;
3330
3330
  "consumption.perProjectV2": (options: ToolClientOptions) => NeonTool<z.ZodType<{
3331
+ limit?: number | undefined;
3331
3332
  metrics: string[];
3332
3333
  org_id: string;
3333
3334
  project_ids?: string[] | undefined;
3334
- limit?: number | undefined;
3335
3335
  from: string;
3336
3336
  to: string;
3337
3337
  granularity: "hourly" | "daily" | "monthly";
3338
3338
  }, {
3339
+ limit?: number | undefined;
3339
3340
  metrics: string[];
3340
3341
  org_id: string;
3341
3342
  project_ids?: string[] | undefined;
3342
- limit?: number | undefined;
3343
3343
  from: string;
3344
3344
  to: string;
3345
3345
  granularity: "hourly" | "daily" | "monthly";
3346
3346
  }, z.core.$ZodTypeInternals<{
3347
+ limit?: number | undefined;
3347
3348
  metrics: string[];
3348
3349
  org_id: string;
3349
3350
  project_ids?: string[] | undefined;
3350
- limit?: number | undefined;
3351
3351
  from: string;
3352
3352
  to: string;
3353
3353
  granularity: "hourly" | "daily" | "monthly";
3354
3354
  }, {
3355
+ limit?: number | undefined;
3355
3356
  metrics: string[];
3356
3357
  org_id: string;
3357
3358
  project_ids?: string[] | undefined;
3358
- limit?: number | undefined;
3359
3359
  from: string;
3360
3360
  to: string;
3361
3361
  granularity: "hourly" | "daily" | "monthly";
@@ -3377,37 +3377,37 @@ export declare const toolFactories: {
3377
3377
  }[];
3378
3378
  }[]>;
3379
3379
  "consumption.perBranchV2": (options: ToolClientOptions) => NeonTool<z.ZodType<{
3380
+ limit?: number | undefined;
3380
3381
  metrics: string[];
3381
3382
  org_id: string;
3382
3383
  project_ids: string[];
3383
- limit?: number | undefined;
3384
3384
  from: string;
3385
3385
  to: string;
3386
3386
  granularity: "hourly" | "daily" | "monthly";
3387
3387
  branch_ids?: string[] | undefined;
3388
3388
  }, {
3389
+ limit?: number | undefined;
3389
3390
  metrics: string[];
3390
3391
  org_id: string;
3391
3392
  project_ids: string[];
3392
- limit?: number | undefined;
3393
3393
  from: string;
3394
3394
  to: string;
3395
3395
  granularity: "hourly" | "daily" | "monthly";
3396
3396
  branch_ids?: string[] | undefined;
3397
3397
  }, z.core.$ZodTypeInternals<{
3398
+ limit?: number | undefined;
3398
3399
  metrics: string[];
3399
3400
  org_id: string;
3400
3401
  project_ids: string[];
3401
- limit?: number | undefined;
3402
3402
  from: string;
3403
3403
  to: string;
3404
3404
  granularity: "hourly" | "daily" | "monthly";
3405
3405
  branch_ids?: string[] | undefined;
3406
3406
  }, {
3407
+ limit?: number | undefined;
3407
3408
  metrics: string[];
3408
3409
  org_id: string;
3409
3410
  project_ids: string[];
3410
- limit?: number | undefined;
3411
3411
  from: string;
3412
3412
  to: string;
3413
3413
  granularity: "hourly" | "daily" | "monthly";
@@ -3476,25 +3476,25 @@ export declare const toolFactories: {
3476
3476
  require_mfa?: boolean | null | undefined;
3477
3477
  }>;
3478
3478
  "organizations.members.list": (options: ToolClientOptions) => NeonTool<z.ZodType<{
3479
+ limit?: number | undefined;
3479
3480
  org_id: string;
3480
3481
  sort_by?: "email" | "role" | "joined_at" | undefined;
3481
3482
  sort_order?: "asc" | "desc" | undefined;
3482
- limit?: number | undefined;
3483
3483
  }, {
3484
+ limit?: number | undefined;
3484
3485
  org_id: string;
3485
3486
  sort_by?: "email" | "role" | "joined_at" | undefined;
3486
3487
  sort_order?: "asc" | "desc" | undefined;
3487
- limit?: number | undefined;
3488
3488
  }, z.core.$ZodTypeInternals<{
3489
+ limit?: number | undefined;
3489
3490
  org_id: string;
3490
3491
  sort_by?: "email" | "role" | "joined_at" | undefined;
3491
3492
  sort_order?: "asc" | "desc" | undefined;
3492
- limit?: number | undefined;
3493
3493
  }, {
3494
+ limit?: number | undefined;
3494
3495
  org_id: string;
3495
3496
  sort_by?: "email" | "role" | "joined_at" | undefined;
3496
3497
  sort_order?: "asc" | "desc" | undefined;
3497
- limit?: number | undefined;
3498
3498
  }>>, "list_organizations_members", {
3499
3499
  member: {
3500
3500
  id: string;
@@ -3687,17 +3687,6 @@ export declare const toolFactories: {
3687
3687
  compute_seconds_limit?: number | null | undefined;
3688
3688
  plan: string;
3689
3689
  }>;
3690
- "user.organizations": (options: ToolClientOptions) => NeonTool<z.ZodObject<{}, z.core.$strict>, "organizations_user", {
3691
- id: string;
3692
- name: string;
3693
- handle: string;
3694
- plan: string;
3695
- created_at: string;
3696
- managed_by: string;
3697
- updated_at: string;
3698
- allow_hipaa_projects?: boolean | null | undefined;
3699
- require_mfa?: boolean | null | undefined;
3700
- }[]>;
3701
3690
  "incidents.list": (options: ToolClientOptions) => {
3702
3691
  operationId: string;
3703
3692
  id: "list_incidents";
@@ -3752,5 +3741,831 @@ export declare const toolFactories: {
3752
3741
  }[];
3753
3742
  }>>;
3754
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("../../index.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
+ }>;
3755
4570
  };
3756
4571
  //# sourceMappingURL=catalog.d.ts.map