@neon/tools 2.12.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.
Files changed (91) hide show
  1. package/README.md +150 -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 +3 -3
  6. package/dist/index.d.ts +4 -3
  7. package/dist/index.d.ts.map +1 -1
  8. package/dist/index.js +14 -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/inspect.d.ts +75 -0
  34. package/dist/lib/custom/sql/inspect/inspect.d.ts.map +1 -0
  35. package/dist/lib/custom/sql/inspect/inspect.js +135 -0
  36. package/dist/lib/custom/sql/inspect/queries.d.ts +63 -0
  37. package/dist/lib/custom/sql/inspect/queries.d.ts.map +1 -0
  38. package/dist/lib/custom/sql/inspect/queries.js +528 -0
  39. package/dist/lib/custom/sql/inspect/report.d.ts +31 -0
  40. package/dist/lib/custom/sql/inspect/report.d.ts.map +1 -0
  41. package/dist/lib/custom/sql/inspect/report.js +43 -0
  42. package/dist/lib/custom/sql/inspect/targets.d.ts +27 -0
  43. package/dist/lib/custom/sql/inspect/targets.d.ts.map +1 -0
  44. package/dist/lib/custom/sql/inspect/targets.js +33 -0
  45. package/dist/lib/custom/sql/migrations.d.ts +69 -0
  46. package/dist/lib/custom/sql/migrations.d.ts.map +1 -0
  47. package/dist/lib/custom/sql/migrations.js +144 -0
  48. package/dist/lib/custom/sql/plan.d.ts +27 -0
  49. package/dist/lib/custom/sql/plan.d.ts.map +1 -0
  50. package/dist/lib/custom/sql/plan.js +53 -0
  51. package/dist/lib/custom/sql/query-tuning.d.ts +107 -0
  52. package/dist/lib/custom/sql/query-tuning.d.ts.map +1 -0
  53. package/dist/lib/custom/sql/query-tuning.js +129 -0
  54. package/dist/lib/custom/sql/rows.d.ts +11 -0
  55. package/dist/lib/custom/sql/rows.d.ts.map +1 -0
  56. package/dist/lib/custom/sql/rows.js +19 -0
  57. package/dist/lib/custom/sql/run.d.ts +81 -0
  58. package/dist/lib/custom/sql/run.d.ts.map +1 -0
  59. package/dist/lib/custom/sql/run.js +90 -0
  60. package/dist/lib/custom/sql/schema.d.ts +84 -0
  61. package/dist/lib/custom/sql/schema.d.ts.map +1 -0
  62. package/dist/lib/custom/sql/schema.js +201 -0
  63. package/dist/lib/custom/sql/slow-queries.d.ts +43 -0
  64. package/dist/lib/custom/sql/slow-queries.d.ts.map +1 -0
  65. package/dist/lib/custom/sql/slow-queries.js +87 -0
  66. package/dist/lib/customize.d.ts +9 -2
  67. package/dist/lib/customize.d.ts.map +1 -1
  68. package/dist/lib/customize.js +21 -7
  69. package/dist/lib/ergonomic/bind.d.ts +11 -1
  70. package/dist/lib/ergonomic/bind.d.ts.map +1 -1
  71. package/dist/lib/ergonomic/bind.js +13 -3
  72. package/dist/lib/ergonomic/catalog.d.ts +854 -39
  73. package/dist/lib/ergonomic/catalog.d.ts.map +1 -1
  74. package/dist/lib/ergonomic/catalog.js +35 -8
  75. package/dist/lib/ergonomic/composed.d.ts +4 -4
  76. package/dist/lib/ergonomic/composed.d.ts.map +1 -1
  77. package/dist/lib/ergonomic/composed.js +47 -45
  78. package/dist/lib/ergonomic/ids.d.ts +3 -1
  79. package/dist/lib/ergonomic/ids.d.ts.map +1 -1
  80. package/dist/lib/ergonomic/ids.js +41 -2
  81. package/dist/lib/ergonomic/index.d.ts +1 -1
  82. package/dist/lib/ergonomic/index.d.ts.map +1 -1
  83. package/dist/lib/ergonomic/index.js +2 -2
  84. package/dist/lib/operation.d.ts +11 -0
  85. package/dist/lib/operation.d.ts.map +1 -1
  86. package/dist/lib/references.d.ts +10 -0
  87. package/dist/lib/references.d.ts.map +1 -0
  88. package/dist/lib/references.js +28 -0
  89. package/dist/operations.gen.d.ts +2 -2
  90. package/dist/operations.gen.js +301 -301
  91. 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
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,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,29 +1919,29 @@ 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
1922
  branch_id: string;
1923
+ project_id: string;
1924
1924
  limit?: number | undefined;
1925
1925
  prefix?: string | undefined;
1926
1926
  bucket_name: string;
1927
1927
  delimiter?: string | undefined;
1928
1928
  }, {
1929
- project_id: string;
1930
1929
  branch_id: string;
1930
+ project_id: string;
1931
1931
  limit?: number | undefined;
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
1936
  branch_id: string;
1937
+ project_id: string;
1938
1938
  limit?: number | undefined;
1939
1939
  prefix?: string | undefined;
1940
1940
  bucket_name: string;
1941
1941
  delimiter?: string | undefined;
1942
1942
  }, {
1943
- project_id: string;
1944
1943
  branch_id: string;
1944
+ project_id: string;
1945
1945
  limit?: number | undefined;
1946
1946
  prefix?: string | undefined;
1947
1947
  bucket_name: string;
@@ -1990,20 +1990,20 @@ 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
1993
  branch_id: string;
1994
+ project_id: string;
1995
1995
  limit?: number | undefined;
1996
1996
  }, {
1997
- project_id: string;
1998
1997
  branch_id: string;
1998
+ project_id: string;
1999
1999
  limit?: number | undefined;
2000
2000
  }, z.core.$ZodTypeInternals<{
2001
- project_id: string;
2002
2001
  branch_id: string;
2002
+ project_id: string;
2003
2003
  limit?: number | undefined;
2004
2004
  }, {
2005
- project_id: string;
2006
2005
  branch_id: string;
2006
+ project_id: string;
2007
2007
  limit?: number | undefined;
2008
2008
  }>>, "list_functions", {
2009
2009
  id: string;
@@ -2113,20 +2113,20 @@ 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
2116
  branch_id: string;
2117
+ project_id: string;
2118
2118
  limit?: number | undefined;
2119
2119
  }, {
2120
- project_id: string;
2121
2120
  branch_id: string;
2121
+ project_id: string;
2122
2122
  limit?: number | undefined;
2123
2123
  }, z.core.$ZodTypeInternals<{
2124
- project_id: string;
2125
2124
  branch_id: string;
2125
+ project_id: string;
2126
2126
  limit?: number | undefined;
2127
2127
  }, {
2128
- project_id: string;
2129
2128
  branch_id: string;
2129
+ project_id: string;
2130
2130
  limit?: number | undefined;
2131
2131
  }>>, "list_functions_custom_domains", {
2132
2132
  domain: string;
@@ -2425,8 +2425,8 @@ 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;
2429
2428
  branch_id: string;
2429
+ project_id: string;
2430
2430
  start_time?: string | undefined;
2431
2431
  end_time?: string | undefined;
2432
2432
  sort_order?: "asc" | "desc" | undefined;
@@ -2441,8 +2441,8 @@ export declare const toolFactories: {
2441
2441
  trace_id?: string | undefined;
2442
2442
  logql?: string | undefined;
2443
2443
  }, {
2444
- project_id: string;
2445
2444
  branch_id: string;
2445
+ project_id: string;
2446
2446
  start_time?: string | undefined;
2447
2447
  end_time?: string | undefined;
2448
2448
  sort_order?: "asc" | "desc" | undefined;
@@ -2457,8 +2457,8 @@ export declare const toolFactories: {
2457
2457
  trace_id?: string | undefined;
2458
2458
  logql?: string | undefined;
2459
2459
  }, z.core.$ZodTypeInternals<{
2460
- project_id: string;
2461
2460
  branch_id: string;
2461
+ project_id: string;
2462
2462
  start_time?: string | undefined;
2463
2463
  end_time?: string | undefined;
2464
2464
  sort_order?: "asc" | "desc" | undefined;
@@ -2473,8 +2473,8 @@ export declare const toolFactories: {
2473
2473
  trace_id?: string | undefined;
2474
2474
  logql?: string | undefined;
2475
2475
  }, {
2476
- project_id: string;
2477
2476
  branch_id: string;
2477
+ project_id: string;
2478
2478
  start_time?: string | undefined;
2479
2479
  end_time?: string | undefined;
2480
2480
  sort_order?: "asc" | "desc" | undefined;
@@ -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("../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
+ }>;
3755
4570
  };
3756
4571
  //# sourceMappingURL=catalog.d.ts.map