@neon/tools 0.0.0 → 0.3.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 (45) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +306 -1
  3. package/dist/eve.d.ts +19 -0
  4. package/dist/eve.d.ts.map +1 -0
  5. package/dist/eve.js +9 -0
  6. package/dist/generated/zod.gen.d.ts +6018 -0
  7. package/dist/generated/zod.gen.d.ts.map +1 -0
  8. package/dist/generated/zod.gen.js +2394 -0
  9. package/dist/index.d.ts +56 -0
  10. package/dist/index.d.ts.map +1 -0
  11. package/dist/index.js +62 -0
  12. package/dist/lib/auth.d.ts +5 -0
  13. package/dist/lib/auth.d.ts.map +1 -0
  14. package/dist/lib/auth.js +15 -0
  15. package/dist/lib/binary.d.ts +7 -0
  16. package/dist/lib/binary.d.ts.map +1 -0
  17. package/dist/lib/binary.js +19 -0
  18. package/dist/lib/customize.d.ts +52 -0
  19. package/dist/lib/customize.d.ts.map +1 -0
  20. package/dist/lib/customize.js +158 -0
  21. package/dist/lib/envelope.d.ts +5 -0
  22. package/dist/lib/envelope.d.ts.map +1 -0
  23. package/dist/lib/envelope.js +22 -0
  24. package/dist/lib/operation.d.ts +56 -0
  25. package/dist/lib/operation.d.ts.map +1 -0
  26. package/dist/lib/operation.js +30 -0
  27. package/dist/lib/result.d.ts +3 -0
  28. package/dist/lib/result.d.ts.map +1 -0
  29. package/dist/lib/result.js +18 -0
  30. package/dist/mastra.d.ts +32 -0
  31. package/dist/mastra.d.ts.map +1 -0
  32. package/dist/mastra.js +19 -0
  33. package/dist/mcp-v1.d.ts +3 -0
  34. package/dist/mcp-v1.d.ts.map +1 -0
  35. package/dist/mcp-v1.js +2 -0
  36. package/dist/mcp.d.ts +14 -0
  37. package/dist/mcp.d.ts.map +1 -0
  38. package/dist/mcp.js +60 -0
  39. package/dist/operations.gen.d.ts +4437 -0
  40. package/dist/operations.gen.d.ts.map +1 -0
  41. package/dist/operations.gen.js +5951 -0
  42. package/dist/schemas.d.ts +2 -0
  43. package/dist/schemas.d.ts.map +1 -0
  44. package/dist/schemas.js +2 -0
  45. package/package.json +100 -3
@@ -0,0 +1,4437 @@
1
+ import type { Client } from "@neon/sdk/raw";
2
+ import * as raw from "@neon/sdk/raw";
3
+ import * as z from "zod";
4
+ export declare const operationIds: readonly ["acceptProjectTransferRequest", "addBranchNeonAuthOauthProvider", "addBranchNeonAuthTrustedDomain", "addNeonAuthDomainToRedirectURIWhitelist", "addNeonAuthOauthProvider", "addProjectJWKS", "assignOrganizationVPCEndpoint", "assignProjectVPCEndpoint", "countProjectBranches", "createApiKey", "createBranchNeonAuthNewUser", "createCredential", "createNeonAuth", "createNeonAuthIntegration", "createNeonAuthNewUser", "createNeonAuthProviderSDKKeys", "createOrganizationInvitations", "createOrgApiKey", "createProject", "createProjectBranch", "createProjectBranchAnonymized", "createProjectBranchBucket", "createProjectBranchDataAPI", "createProjectBranchDatabase", "createProjectBranchFunctionDeployment", "createProjectBranchRole", "createProjectEndpoint", "createProjectTransferRequest", "createSnapshot", "deleteBranchNeonAuthOauthProvider", "deleteBranchNeonAuthTrustedDomain", "deleteBranchNeonAuthUser", "deleteNeonAuthDomainFromRedirectURIWhitelist", "deleteNeonAuthIntegration", "deleteNeonAuthOauthProvider", "deleteNeonAuthUser", "deleteOrganizationSpendingLimit", "deleteOrganizationVPCEndpoint", "deleteProject", "deleteProjectBranch", "deleteProjectBranchBucket", "deleteProjectBranchBucketObject", "deleteProjectBranchBucketObjectsByPrefix", "deleteProjectBranchDataAPI", "deleteProjectBranchDatabase", "deleteProjectBranchFunction", "deleteProjectBranchRole", "deleteProjectEndpoint", "deleteProjectJWKS", "deleteProjectVPCEndpoint", "deleteSnapshot", "disableNeonAuth", "finalizeRestoreBranch", "getActiveRegions", "getAnonymizedBranchStatus", "getAuthDetails", "getAvailablePreloadLibraries", "getConnectionURI", "getConsumptionHistoryPerBranchV2", "getConsumptionHistoryPerProject", "getConsumptionHistoryPerProjectV2", "getCurrentUserInfo", "getCurrentUserOrganizations", "getMaskingRules", "getNeonAuth", "getNeonAuthAllowLocalhost", "getNeonAuthEmailAndPasswordConfig", "getNeonAuthEmailProvider", "getNeonAuthEmailServer", "getNeonAuthPhoneNumberPlugin", "getNeonAuthPluginConfigs", "getNeonAuthWebhookConfig", "getOrganization", "getOrganizationInvitations", "getOrganizationMember", "getOrganizationMembers", "getOrganizationSpendingLimit", "getOrganizationVPCEndpointDetails", "getProject", "getProjectAdvisorSecurityIssues", "getProjectBranch", "getProjectBranchAiGateway", "getProjectBranchBucketObject", "getProjectBranchDataAPI", "getProjectBranchDatabase", "getProjectBranchFunction", "getProjectBranchRole", "getProjectBranchRolePassword", "getProjectBranchSchema", "getProjectBranchSchemaComparison", "getProjectBranchStorage", "getProjectEndpoint", "getProjectJWKS", "getProjectOperation", "getSnapshotSchedule", "grantPermissionToProject", "listApiKeys", "listBranchNeonAuthOauthProviders", "listBranchNeonAuthTrustedDomains", "listCredentials", "listNeonAuthIntegrations", "listNeonAuthOauthProviders", "listNeonAuthRedirectURIWhitelistDomains", "listOrganizationVPCEndpoints", "listOrganizationVPCEndpointsAllRegions", "listOrgApiKeys", "listProjectBranchBucketObjects", "listProjectBranchBuckets", "listProjectBranchDatabases", "listProjectBranchEndpoints", "listProjectBranches", "listProjectBranchFunctions", "listProjectBranchLogFields", "listProjectBranchLogFieldValues", "listProjectBranchRoles", "listProjectEndpoints", "listProjectMembers", "listProjectOperations", "listProjectPermissions", "listProjects", "listProjectVPCEndpoints", "listSharedProjects", "listSnapshots", "presignProjectBranchBucketObject", "queryProjectBranchLogs", "recoverProject", "removeOrganizationMember", "removeProjectMemberRole", "resetProjectBranchRolePassword", "restartProjectEndpoint", "restoreProjectBranch", "restoreSnapshot", "revokeApiKey", "revokeCredential", "revokeOrgApiKey", "revokePermissionFromProject", "sendNeonAuthTestEmail", "setDefaultProjectBranch", "setOrganizationSpendingLimit", "setProjectMemberRole", "setSnapshotSchedule", "startAnonymization", "startProjectEndpoint", "suspendProjectEndpoint", "transferNeonAuthProviderProject", "transferProjectsFromOrgToOrg", "transferProjectsFromUserToOrg", "updateBranchNeonAuthOauthProvider", "updateMaskingRules", "updateNeonAuthAllowLocalhost", "updateNeonAuthConfig", "updateNeonAuthEmailAndPasswordConfig", "updateNeonAuthEmailProvider", "updateNeonAuthEmailServer", "updateNeonAuthMagicLinkPlugin", "updateNeonAuthOauthProvider", "updateNeonAuthOrganizationPlugin", "updateNeonAuthPhoneNumberPlugin", "updateNeonAuthUserRole", "updateNeonAuthWebhookConfig", "updateOrganizationMember", "updateProject", "updateProjectBranch", "updateProjectBranchDataAPI", "updateProjectBranchDatabase", "updateProjectBranchFunction", "updateProjectEndpoint", "updateSnapshot"];
5
+ export type NeonOperationId = (typeof operationIds)[number];
6
+ export declare const operationFactories: {
7
+ readonly acceptProjectTransferRequest: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
8
+ project_id: z.ZodString;
9
+ request_id: z.ZodString;
10
+ org_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
11
+ }, z.core.$strict>, "accept_project_transfer_request", null>;
12
+ readonly addBranchNeonAuthOauthProvider: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
13
+ project_id: z.ZodString;
14
+ branch_id: z.ZodString;
15
+ id: z.ZodEnum<{
16
+ github: "github";
17
+ google: "google";
18
+ microsoft: "microsoft";
19
+ vercel: "vercel";
20
+ }>;
21
+ client_id: z.ZodOptional<z.ZodString>;
22
+ client_secret: z.ZodOptional<z.ZodString>;
23
+ microsoft_tenant_id: z.ZodOptional<z.ZodString>;
24
+ }, z.core.$strict>, "add_branch_neon_auth_oauth_provider", {
25
+ id: raw.NeonAuthOauthProviderId;
26
+ type: raw.NeonAuthOauthProviderType;
27
+ client_id?: string | null | undefined;
28
+ client_secret?: string | null | undefined;
29
+ }>;
30
+ readonly addBranchNeonAuthTrustedDomain: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
31
+ project_id: z.ZodString;
32
+ branch_id: z.ZodString;
33
+ domain: z.ZodURL;
34
+ auth_provider: z.ZodEnum<{
35
+ mock: "mock";
36
+ stack: "stack";
37
+ better_auth: "better_auth";
38
+ }>;
39
+ }, z.core.$strict>, "add_branch_neon_auth_trusted_domain", unknown>;
40
+ readonly addNeonAuthDomainToRedirectURIWhitelist: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
41
+ project_id: z.ZodString;
42
+ domain: z.ZodURL;
43
+ auth_provider: z.ZodEnum<{
44
+ mock: "mock";
45
+ stack: "stack";
46
+ better_auth: "better_auth";
47
+ }>;
48
+ }, z.core.$strict>, "add_neon_auth_domain_to_redirect_uri_whitelist", unknown>;
49
+ readonly addNeonAuthOauthProvider: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
50
+ project_id: z.ZodString;
51
+ id: z.ZodEnum<{
52
+ github: "github";
53
+ google: "google";
54
+ microsoft: "microsoft";
55
+ vercel: "vercel";
56
+ }>;
57
+ client_id: z.ZodOptional<z.ZodString>;
58
+ client_secret: z.ZodOptional<z.ZodString>;
59
+ microsoft_tenant_id: z.ZodOptional<z.ZodString>;
60
+ }, z.core.$strict>, "add_neon_auth_oauth_provider", {
61
+ id: raw.NeonAuthOauthProviderId;
62
+ type: raw.NeonAuthOauthProviderType;
63
+ client_id?: string | null | undefined;
64
+ client_secret?: string | null | undefined;
65
+ }>;
66
+ readonly addProjectJWKS: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
67
+ project_id: z.ZodString;
68
+ jwks_url: z.ZodString;
69
+ provider_name: z.ZodString;
70
+ branch_id: z.ZodOptional<z.ZodString>;
71
+ jwt_audience: z.ZodOptional<z.ZodString>;
72
+ role_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
73
+ skip_role_creation: z.ZodOptional<z.ZodBoolean>;
74
+ }, z.core.$strict>, "add_project_jwks", {
75
+ jwks: {
76
+ id: string;
77
+ project_id: string;
78
+ branch_id?: string | null | undefined;
79
+ jwks_url: string;
80
+ provider_name: string;
81
+ created_at: string;
82
+ updated_at: string;
83
+ jwt_audience?: string | null | undefined;
84
+ role_names?: string[] | null | undefined;
85
+ };
86
+ operations: {
87
+ id: string;
88
+ project_id: string;
89
+ branch_id?: string | null | undefined;
90
+ endpoint_id?: string | null | undefined;
91
+ action: raw.OperationAction;
92
+ status: raw.OperationStatus;
93
+ error?: string | null | undefined;
94
+ failures_count: number;
95
+ retry_at?: string | null | undefined;
96
+ created_at: string;
97
+ updated_at: string;
98
+ total_duration_ms: number;
99
+ }[];
100
+ }>;
101
+ readonly assignOrganizationVPCEndpoint: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
102
+ org_id: z.ZodString;
103
+ region_id: z.ZodString;
104
+ vpc_endpoint_id: z.ZodString;
105
+ label: z.ZodString;
106
+ }, z.core.$strict>, "assign_organization_vpc_endpoint", unknown>;
107
+ readonly assignProjectVPCEndpoint: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
108
+ project_id: z.ZodString;
109
+ vpc_endpoint_id: z.ZodString;
110
+ label: z.ZodString;
111
+ }, z.core.$strict>, "assign_project_vpc_endpoint", unknown>;
112
+ readonly countProjectBranches: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
113
+ project_id: z.ZodString;
114
+ search: z.ZodOptional<z.ZodOptional<z.ZodString>>;
115
+ }, z.core.$strict>, "count_project_branches", {
116
+ count: number;
117
+ }>;
118
+ readonly createApiKey: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
119
+ key_name: z.ZodString;
120
+ }, z.core.$strict>, "create_api_key", {
121
+ id: number;
122
+ key: string;
123
+ name: string;
124
+ created_at: string;
125
+ created_by: string;
126
+ }>;
127
+ readonly createBranchNeonAuthNewUser: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
128
+ project_id: z.ZodString;
129
+ branch_id: z.ZodString;
130
+ email: z.ZodEmail;
131
+ name: z.ZodOptional<z.ZodString>;
132
+ }, z.core.$strict>, "create_branch_neon_auth_new_user", {
133
+ id: string;
134
+ }>;
135
+ readonly createCredential: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
136
+ project_id: z.ZodString;
137
+ branch_id: z.ZodString;
138
+ name: z.ZodOptional<z.ZodString>;
139
+ scopes: z.ZodArray<z.ZodEnum<{
140
+ "storage:read": "storage:read";
141
+ "storage:write": "storage:write";
142
+ "ai_gateway:invoke": "ai_gateway:invoke";
143
+ "functions:invoke": "functions:invoke";
144
+ }>>;
145
+ principal_type: z.ZodEnum<{
146
+ user: "user";
147
+ }>;
148
+ }, z.core.$strict>, "create_credential", {
149
+ token_id: string;
150
+ token_id_short: string;
151
+ name?: string | null | undefined;
152
+ api_token: string;
153
+ s3_secret_access_key: string;
154
+ scopes: raw.CredentialScope[];
155
+ branch_id: string;
156
+ created_at: string;
157
+ expires_at?: string | null | undefined;
158
+ }>;
159
+ readonly createNeonAuth: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
160
+ project_id: z.ZodString;
161
+ branch_id: z.ZodString;
162
+ auth_provider: z.ZodEnum<{
163
+ mock: "mock";
164
+ stack: "stack";
165
+ better_auth: "better_auth";
166
+ }>;
167
+ database_name: z.ZodOptional<z.ZodString>;
168
+ }, z.core.$strict>, "create_neon_auth", {
169
+ auth_provider: raw.NeonAuthSupportedAuthProvider;
170
+ auth_provider_project_id: string;
171
+ pub_client_key: string;
172
+ secret_server_key: string;
173
+ jwks_url: string;
174
+ schema_name: string;
175
+ table_name: string;
176
+ base_url?: string | null | undefined;
177
+ }>;
178
+ readonly createNeonAuthIntegration: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
179
+ auth_provider: z.ZodEnum<{
180
+ mock: "mock";
181
+ stack: "stack";
182
+ better_auth: "better_auth";
183
+ }>;
184
+ project_id: z.ZodString;
185
+ branch_id: z.ZodString;
186
+ database_name: z.ZodOptional<z.ZodString>;
187
+ role_name: z.ZodOptional<z.ZodString>;
188
+ }, z.core.$strict>, "create_neon_auth_integration", {
189
+ auth_provider: raw.NeonAuthSupportedAuthProvider;
190
+ auth_provider_project_id: string;
191
+ pub_client_key: string;
192
+ secret_server_key: string;
193
+ jwks_url: string;
194
+ schema_name: string;
195
+ table_name: string;
196
+ base_url?: string | null | undefined;
197
+ }>;
198
+ readonly createNeonAuthNewUser: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
199
+ project_id: z.ZodString;
200
+ auth_provider: z.ZodEnum<{
201
+ mock: "mock";
202
+ stack: "stack";
203
+ better_auth: "better_auth";
204
+ }>;
205
+ email: z.ZodEmail;
206
+ name: z.ZodOptional<z.ZodString>;
207
+ }, z.core.$strict>, "create_neon_auth_new_user", {
208
+ id: string;
209
+ }>;
210
+ readonly createNeonAuthProviderSDKKeys: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
211
+ project_id: z.ZodString;
212
+ auth_provider: z.ZodEnum<{
213
+ mock: "mock";
214
+ stack: "stack";
215
+ better_auth: "better_auth";
216
+ }>;
217
+ }, z.core.$strict>, "create_neon_auth_provider_sdk_keys", {
218
+ auth_provider: raw.NeonAuthSupportedAuthProvider;
219
+ auth_provider_project_id: string;
220
+ pub_client_key: string;
221
+ secret_server_key: string;
222
+ jwks_url: string;
223
+ schema_name: string;
224
+ table_name: string;
225
+ base_url?: string | null | undefined;
226
+ }>;
227
+ readonly createOrganizationInvitations: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
228
+ org_id: z.ZodString;
229
+ invitations: z.ZodArray<z.ZodObject<{
230
+ email: z.ZodEmail;
231
+ role: z.ZodEnum<{
232
+ viewer: "viewer";
233
+ editor: "editor";
234
+ admin: "admin";
235
+ member: "member";
236
+ collaborator: "collaborator";
237
+ }>;
238
+ }, z.core.$strict>>;
239
+ }, z.core.$strict>, "create_organization_invitations", {
240
+ invitations: {
241
+ id: string;
242
+ email: string;
243
+ org_id: string;
244
+ invited_by: string;
245
+ invited_at: string;
246
+ role: raw.MemberRole;
247
+ }[];
248
+ }>;
249
+ readonly createOrgApiKey: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
250
+ org_id: z.ZodString;
251
+ key_name: z.ZodString;
252
+ project_id: z.ZodOptional<z.ZodString>;
253
+ }, z.core.$strict>, "create_org_api_key", {
254
+ id: number;
255
+ key: string;
256
+ name: string;
257
+ created_at: string;
258
+ created_by: string;
259
+ project_id?: string | null | undefined;
260
+ }>;
261
+ readonly createProject: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
262
+ settings: z.ZodOptional<z.ZodObject<{
263
+ quota: z.ZodOptional<z.ZodObject<{
264
+ active_time_seconds: z.ZodOptional<z.ZodInt>;
265
+ compute_time_seconds: z.ZodOptional<z.ZodInt>;
266
+ written_data_bytes: z.ZodOptional<z.ZodInt>;
267
+ data_transfer_bytes: z.ZodOptional<z.ZodInt>;
268
+ logical_size_bytes: z.ZodOptional<z.ZodInt>;
269
+ }, z.core.$strict>>;
270
+ allowed_ips: z.ZodOptional<z.ZodObject<{
271
+ ips: z.ZodOptional<z.ZodArray<z.ZodString>>;
272
+ protected_branches_only: z.ZodOptional<z.ZodBoolean>;
273
+ }, z.core.$strict>>;
274
+ enable_logical_replication: z.ZodOptional<z.ZodBoolean>;
275
+ maintenance_window: z.ZodOptional<z.ZodObject<{
276
+ weekdays: z.ZodArray<z.ZodInt>;
277
+ start_time: z.ZodString;
278
+ end_time: z.ZodString;
279
+ }, z.core.$strict>>;
280
+ block_public_connections: z.ZodOptional<z.ZodBoolean>;
281
+ block_vpc_connections: z.ZodOptional<z.ZodBoolean>;
282
+ audit_log_level: z.ZodOptional<z.ZodEnum<{
283
+ base: "base";
284
+ extended: "extended";
285
+ full: "full";
286
+ }>>;
287
+ hipaa: z.ZodOptional<z.ZodBoolean>;
288
+ preload_libraries: z.ZodOptional<z.ZodObject<{
289
+ use_defaults: z.ZodOptional<z.ZodBoolean>;
290
+ enabled_libraries: z.ZodOptional<z.ZodArray<z.ZodString>>;
291
+ }, z.core.$strict>>;
292
+ }, z.core.$strict>>;
293
+ name: z.ZodOptional<z.ZodString>;
294
+ branch: z.ZodOptional<z.ZodObject<{
295
+ name: z.ZodOptional<z.ZodString>;
296
+ role_name: z.ZodOptional<z.ZodString>;
297
+ database_name: z.ZodOptional<z.ZodString>;
298
+ annotations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
299
+ }, z.core.$strict>>;
300
+ autoscaling_limit_min_cu: z.ZodOptional<z.ZodNumber>;
301
+ autoscaling_limit_max_cu: z.ZodOptional<z.ZodNumber>;
302
+ provisioner: z.ZodOptional<z.ZodString>;
303
+ region_id: z.ZodOptional<z.ZodString>;
304
+ default_endpoint_settings: z.ZodOptional<z.ZodObject<{
305
+ pg_settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
306
+ pgbouncer_settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
307
+ autoscaling_limit_min_cu: z.ZodOptional<z.ZodNumber>;
308
+ autoscaling_limit_max_cu: z.ZodOptional<z.ZodNumber>;
309
+ suspend_timeout_seconds: z.ZodOptional<z.ZodInt>;
310
+ }, z.core.$strict>>;
311
+ pg_version: z.ZodOptional<z.ZodInt>;
312
+ store_passwords: z.ZodOptional<z.ZodBoolean>;
313
+ history_retention_seconds: z.ZodOptional<z.ZodInt>;
314
+ org_id: z.ZodOptional<z.ZodString>;
315
+ }, z.core.$strict>, "create_project", {
316
+ project: {
317
+ data_storage_bytes_hour: number;
318
+ data_transfer_bytes: number;
319
+ written_data_bytes: number;
320
+ compute_time_seconds: number;
321
+ active_time_seconds: number;
322
+ cpu_used_sec: number;
323
+ id: string;
324
+ platform_id: string;
325
+ region_id: string;
326
+ name: string;
327
+ provisioner: raw.Provisioner;
328
+ default_endpoint_settings?: {
329
+ pg_settings?: {
330
+ [x: string]: string;
331
+ } | null | undefined;
332
+ pgbouncer_settings?: {
333
+ [x: string]: string;
334
+ } | null | undefined;
335
+ autoscaling_limit_min_cu?: number | null | undefined;
336
+ autoscaling_limit_max_cu?: number | null | undefined;
337
+ suspend_timeout_seconds?: number | null | undefined;
338
+ } | null | undefined;
339
+ settings?: {
340
+ quota?: {
341
+ active_time_seconds?: number | null | undefined;
342
+ compute_time_seconds?: number | null | undefined;
343
+ written_data_bytes?: number | null | undefined;
344
+ data_transfer_bytes?: number | null | undefined;
345
+ logical_size_bytes?: number | null | undefined;
346
+ } | null | undefined;
347
+ allowed_ips?: {
348
+ ips?: string[] | null | undefined;
349
+ protected_branches_only?: boolean | null | undefined;
350
+ } | null | undefined;
351
+ enable_logical_replication?: boolean | null | undefined;
352
+ maintenance_window?: {
353
+ weekdays: number[];
354
+ start_time: string;
355
+ end_time: string;
356
+ } | null | undefined;
357
+ block_public_connections?: boolean | null | undefined;
358
+ block_vpc_connections?: boolean | null | undefined;
359
+ audit_log_level?: raw.ProjectAuditLogLevel | null | undefined;
360
+ hipaa?: boolean | null | undefined;
361
+ preload_libraries?: {
362
+ use_defaults?: boolean | null | undefined;
363
+ enabled_libraries?: string[] | null | undefined;
364
+ } | null | undefined;
365
+ } | null | undefined;
366
+ pg_version: raw.PgVersion;
367
+ proxy_host: string;
368
+ branch_logical_size_limit: number;
369
+ branch_logical_size_limit_bytes: number;
370
+ store_passwords: boolean;
371
+ maintenance_starts_at?: string | null | undefined;
372
+ creation_source: string;
373
+ history_retention_seconds: number;
374
+ created_at: string;
375
+ updated_at: string;
376
+ synthetic_storage_size?: number | null | undefined;
377
+ consumption_period_start: string;
378
+ consumption_period_end: string;
379
+ quota_reset_at?: string | null | undefined;
380
+ owner_id: string;
381
+ owner?: {
382
+ email: string;
383
+ name: string;
384
+ branches_limit: number;
385
+ subscription_type: raw.BillingSubscriptionType;
386
+ } | null | undefined;
387
+ compute_last_active_at?: string | null | undefined;
388
+ org_id?: string | null | undefined;
389
+ maintenance_scheduled_for?: string | null | undefined;
390
+ hipaa_enabled_at?: string | null | undefined;
391
+ effective_project_permission?: (raw.ProjectPermissionLevel | null) | undefined;
392
+ };
393
+ connection_uris: {
394
+ connection_uri: string;
395
+ connection_parameters: {
396
+ database: string;
397
+ password: string;
398
+ role: string;
399
+ host: string;
400
+ pooler_host: string;
401
+ };
402
+ }[];
403
+ roles: {
404
+ branch_id: string;
405
+ name: string;
406
+ password?: string | null | undefined;
407
+ protected?: boolean | null | undefined;
408
+ authentication_method?: string | null | undefined;
409
+ created_at: string;
410
+ updated_at: string;
411
+ }[];
412
+ databases: {
413
+ id: number;
414
+ branch_id: string;
415
+ name: string;
416
+ owner_name: string;
417
+ created_at: string;
418
+ updated_at: string;
419
+ }[];
420
+ operations: {
421
+ id: string;
422
+ project_id: string;
423
+ branch_id?: string | null | undefined;
424
+ endpoint_id?: string | null | undefined;
425
+ action: raw.OperationAction;
426
+ status: raw.OperationStatus;
427
+ error?: string | null | undefined;
428
+ failures_count: number;
429
+ retry_at?: string | null | undefined;
430
+ created_at: string;
431
+ updated_at: string;
432
+ total_duration_ms: number;
433
+ }[];
434
+ branch: {
435
+ id: string;
436
+ project_id: string;
437
+ parent_id?: string | null | undefined;
438
+ parent_lsn?: string | null | undefined;
439
+ parent_timestamp?: string | null | undefined;
440
+ name: string;
441
+ current_state: raw.BranchState;
442
+ pending_state?: string | null | undefined;
443
+ state_changed_at: string;
444
+ logical_size?: number | null | undefined;
445
+ creation_source: string;
446
+ primary?: boolean | null | undefined;
447
+ default: boolean;
448
+ protected: boolean;
449
+ cpu_used_sec: number;
450
+ compute_time_seconds: number;
451
+ active_time_seconds: number;
452
+ written_data_bytes: number;
453
+ data_transfer_bytes: number;
454
+ created_at: string;
455
+ updated_at: string;
456
+ ttl_interval_seconds?: number | null | undefined;
457
+ expires_at?: string | null | undefined;
458
+ last_reset_at?: string | null | undefined;
459
+ created_by?: {
460
+ name?: string | null | undefined;
461
+ image?: string | null | undefined;
462
+ } | null | undefined;
463
+ init_source?: string | null | undefined;
464
+ restore_status?: string | null | undefined;
465
+ restored_from?: string | null | undefined;
466
+ restored_as?: string | null | undefined;
467
+ restricted_actions?: {
468
+ name: string;
469
+ reason: string;
470
+ }[] | null | undefined;
471
+ recovery?: {
472
+ deleted_at: string;
473
+ recoverable_until: string;
474
+ deletion_method: "user" | "ttl";
475
+ } | null | undefined;
476
+ };
477
+ endpoints: {
478
+ host: string;
479
+ id: string;
480
+ name?: string | null | undefined;
481
+ project_id: string;
482
+ branch_id: string;
483
+ autoscaling_limit_min_cu: raw.ComputeUnit;
484
+ autoscaling_limit_max_cu: raw.ComputeUnit;
485
+ region_id: string;
486
+ type: raw.EndpointType;
487
+ current_state: raw.EndpointState;
488
+ pending_state?: raw.EndpointState | null | undefined;
489
+ settings: {
490
+ pg_settings?: {
491
+ [x: string]: string;
492
+ } | null | undefined;
493
+ pgbouncer_settings?: {
494
+ [x: string]: string;
495
+ } | null | undefined;
496
+ preload_libraries?: {
497
+ use_defaults?: boolean | null | undefined;
498
+ enabled_libraries?: string[] | null | undefined;
499
+ } | null | undefined;
500
+ };
501
+ pooler_enabled: boolean;
502
+ pooler_mode: raw.EndpointPoolerMode;
503
+ disabled: boolean;
504
+ passwordless_access: boolean;
505
+ last_active?: string | null | undefined;
506
+ creation_source: string;
507
+ created_at: string;
508
+ updated_at: string;
509
+ started_at?: string | null | undefined;
510
+ suspended_at?: string | null | undefined;
511
+ proxy_host: string;
512
+ suspend_timeout_seconds: raw.SuspendTimeoutSeconds;
513
+ provisioner: raw.Provisioner;
514
+ compute_release_version?: string | null | undefined;
515
+ }[];
516
+ }>;
517
+ readonly createProjectBranch: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
518
+ project_id: z.ZodString;
519
+ endpoints: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
520
+ type: z.ZodEnum<{
521
+ read_only: "read_only";
522
+ read_write: "read_write";
523
+ }>;
524
+ settings: z.ZodOptional<z.ZodObject<{
525
+ pg_settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
526
+ pgbouncer_settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
527
+ preload_libraries: z.ZodOptional<z.ZodObject<{
528
+ use_defaults: z.ZodOptional<z.ZodBoolean>;
529
+ enabled_libraries: z.ZodOptional<z.ZodArray<z.ZodString>>;
530
+ }, z.core.$strict>>;
531
+ }, z.core.$strict>>;
532
+ autoscaling_limit_min_cu: z.ZodOptional<z.ZodNumber>;
533
+ autoscaling_limit_max_cu: z.ZodOptional<z.ZodNumber>;
534
+ provisioner: z.ZodOptional<z.ZodString>;
535
+ suspend_timeout_seconds: z.ZodOptional<z.ZodInt>;
536
+ }, z.core.$strict>>>>;
537
+ branch: z.ZodOptional<z.ZodOptional<z.ZodObject<{
538
+ parent_id: z.ZodOptional<z.ZodString>;
539
+ name: z.ZodOptional<z.ZodString>;
540
+ parent_lsn: z.ZodOptional<z.ZodString>;
541
+ parent_timestamp: z.ZodOptional<z.ZodISODateTime>;
542
+ protected: z.ZodOptional<z.ZodBoolean>;
543
+ archived: z.ZodOptional<z.ZodBoolean>;
544
+ init_source: z.ZodOptional<z.ZodString>;
545
+ expires_at: z.ZodOptional<z.ZodISODateTime>;
546
+ }, z.core.$strict>>>;
547
+ annotation_value: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
548
+ }, z.core.$strict>, "create_project_branch", {
549
+ branch: {
550
+ id: string;
551
+ project_id: string;
552
+ parent_id?: string | null | undefined;
553
+ parent_lsn?: string | null | undefined;
554
+ parent_timestamp?: string | null | undefined;
555
+ name: string;
556
+ current_state: raw.BranchState;
557
+ pending_state?: string | null | undefined;
558
+ state_changed_at: string;
559
+ logical_size?: number | null | undefined;
560
+ creation_source: string;
561
+ primary?: boolean | null | undefined;
562
+ default: boolean;
563
+ protected: boolean;
564
+ cpu_used_sec: number;
565
+ compute_time_seconds: number;
566
+ active_time_seconds: number;
567
+ written_data_bytes: number;
568
+ data_transfer_bytes: number;
569
+ created_at: string;
570
+ updated_at: string;
571
+ ttl_interval_seconds?: number | null | undefined;
572
+ expires_at?: string | null | undefined;
573
+ last_reset_at?: string | null | undefined;
574
+ created_by?: {
575
+ name?: string | null | undefined;
576
+ image?: string | null | undefined;
577
+ } | null | undefined;
578
+ init_source?: string | null | undefined;
579
+ restore_status?: string | null | undefined;
580
+ restored_from?: string | null | undefined;
581
+ restored_as?: string | null | undefined;
582
+ restricted_actions?: {
583
+ name: string;
584
+ reason: string;
585
+ }[] | null | undefined;
586
+ recovery?: {
587
+ deleted_at: string;
588
+ recoverable_until: string;
589
+ deletion_method: "user" | "ttl";
590
+ } | null | undefined;
591
+ };
592
+ endpoints: {
593
+ host: string;
594
+ id: string;
595
+ name?: string | null | undefined;
596
+ project_id: string;
597
+ branch_id: string;
598
+ autoscaling_limit_min_cu: raw.ComputeUnit;
599
+ autoscaling_limit_max_cu: raw.ComputeUnit;
600
+ region_id: string;
601
+ type: raw.EndpointType;
602
+ current_state: raw.EndpointState;
603
+ pending_state?: raw.EndpointState | null | undefined;
604
+ settings: {
605
+ pg_settings?: {
606
+ [x: string]: string;
607
+ } | null | undefined;
608
+ pgbouncer_settings?: {
609
+ [x: string]: string;
610
+ } | null | undefined;
611
+ preload_libraries?: {
612
+ use_defaults?: boolean | null | undefined;
613
+ enabled_libraries?: string[] | null | undefined;
614
+ } | null | undefined;
615
+ };
616
+ pooler_enabled: boolean;
617
+ pooler_mode: raw.EndpointPoolerMode;
618
+ disabled: boolean;
619
+ passwordless_access: boolean;
620
+ last_active?: string | null | undefined;
621
+ creation_source: string;
622
+ created_at: string;
623
+ updated_at: string;
624
+ started_at?: string | null | undefined;
625
+ suspended_at?: string | null | undefined;
626
+ proxy_host: string;
627
+ suspend_timeout_seconds: raw.SuspendTimeoutSeconds;
628
+ provisioner: raw.Provisioner;
629
+ compute_release_version?: string | null | undefined;
630
+ }[];
631
+ operations: {
632
+ id: string;
633
+ project_id: string;
634
+ branch_id?: string | null | undefined;
635
+ endpoint_id?: string | null | undefined;
636
+ action: raw.OperationAction;
637
+ status: raw.OperationStatus;
638
+ error?: string | null | undefined;
639
+ failures_count: number;
640
+ retry_at?: string | null | undefined;
641
+ created_at: string;
642
+ updated_at: string;
643
+ total_duration_ms: number;
644
+ }[];
645
+ roles: {
646
+ branch_id: string;
647
+ name: string;
648
+ password?: string | null | undefined;
649
+ protected?: boolean | null | undefined;
650
+ authentication_method?: string | null | undefined;
651
+ created_at: string;
652
+ updated_at: string;
653
+ }[];
654
+ databases: {
655
+ id: number;
656
+ branch_id: string;
657
+ name: string;
658
+ owner_name: string;
659
+ created_at: string;
660
+ updated_at: string;
661
+ }[];
662
+ connection_uris?: {
663
+ connection_uri: string;
664
+ connection_parameters: {
665
+ database: string;
666
+ password: string;
667
+ role: string;
668
+ host: string;
669
+ pooler_host: string;
670
+ };
671
+ }[] | null | undefined;
672
+ }>;
673
+ readonly createProjectBranchAnonymized: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
674
+ project_id: z.ZodString;
675
+ annotation_value: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
676
+ branch_create: z.ZodOptional<z.ZodObject<{
677
+ endpoints: z.ZodOptional<z.ZodArray<z.ZodObject<{
678
+ type: z.ZodEnum<{
679
+ read_only: "read_only";
680
+ read_write: "read_write";
681
+ }>;
682
+ settings: z.ZodOptional<z.ZodObject<{
683
+ pg_settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
684
+ pgbouncer_settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
685
+ preload_libraries: z.ZodOptional<z.ZodObject<{
686
+ use_defaults: z.ZodOptional<z.ZodBoolean>;
687
+ enabled_libraries: z.ZodOptional<z.ZodArray<z.ZodString>>;
688
+ }, z.core.$strict>>;
689
+ }, z.core.$strict>>;
690
+ autoscaling_limit_min_cu: z.ZodOptional<z.ZodNumber>;
691
+ autoscaling_limit_max_cu: z.ZodOptional<z.ZodNumber>;
692
+ provisioner: z.ZodOptional<z.ZodString>;
693
+ suspend_timeout_seconds: z.ZodOptional<z.ZodInt>;
694
+ }, z.core.$strict>>>;
695
+ branch: z.ZodOptional<z.ZodObject<{
696
+ parent_id: z.ZodOptional<z.ZodString>;
697
+ name: z.ZodOptional<z.ZodString>;
698
+ parent_lsn: z.ZodOptional<z.ZodString>;
699
+ parent_timestamp: z.ZodOptional<z.ZodISODateTime>;
700
+ protected: z.ZodOptional<z.ZodBoolean>;
701
+ archived: z.ZodOptional<z.ZodBoolean>;
702
+ init_source: z.ZodOptional<z.ZodString>;
703
+ expires_at: z.ZodOptional<z.ZodISODateTime>;
704
+ }, z.core.$strict>>;
705
+ }, z.core.$strict>>;
706
+ masking_rules: z.ZodOptional<z.ZodArray<z.ZodObject<{
707
+ database_name: z.ZodString;
708
+ schema_name: z.ZodString;
709
+ table_name: z.ZodString;
710
+ column_name: z.ZodString;
711
+ masking_function: z.ZodOptional<z.ZodString>;
712
+ masking_value: z.ZodOptional<z.ZodString>;
713
+ }, z.core.$strict>>>;
714
+ start_anonymization: z.ZodOptional<z.ZodBoolean>;
715
+ }, z.core.$strict>, "create_project_branch_anonymized", {
716
+ branch: {
717
+ id: string;
718
+ project_id: string;
719
+ parent_id?: string | null | undefined;
720
+ parent_lsn?: string | null | undefined;
721
+ parent_timestamp?: string | null | undefined;
722
+ name: string;
723
+ current_state: raw.BranchState;
724
+ pending_state?: string | null | undefined;
725
+ state_changed_at: string;
726
+ logical_size?: number | null | undefined;
727
+ creation_source: string;
728
+ primary?: boolean | null | undefined;
729
+ default: boolean;
730
+ protected: boolean;
731
+ cpu_used_sec: number;
732
+ compute_time_seconds: number;
733
+ active_time_seconds: number;
734
+ written_data_bytes: number;
735
+ data_transfer_bytes: number;
736
+ created_at: string;
737
+ updated_at: string;
738
+ ttl_interval_seconds?: number | null | undefined;
739
+ expires_at?: string | null | undefined;
740
+ last_reset_at?: string | null | undefined;
741
+ created_by?: {
742
+ name?: string | null | undefined;
743
+ image?: string | null | undefined;
744
+ } | null | undefined;
745
+ init_source?: string | null | undefined;
746
+ restore_status?: string | null | undefined;
747
+ restored_from?: string | null | undefined;
748
+ restored_as?: string | null | undefined;
749
+ restricted_actions?: {
750
+ name: string;
751
+ reason: string;
752
+ }[] | null | undefined;
753
+ recovery?: {
754
+ deleted_at: string;
755
+ recoverable_until: string;
756
+ deletion_method: "user" | "ttl";
757
+ } | null | undefined;
758
+ };
759
+ endpoints: {
760
+ host: string;
761
+ id: string;
762
+ name?: string | null | undefined;
763
+ project_id: string;
764
+ branch_id: string;
765
+ autoscaling_limit_min_cu: raw.ComputeUnit;
766
+ autoscaling_limit_max_cu: raw.ComputeUnit;
767
+ region_id: string;
768
+ type: raw.EndpointType;
769
+ current_state: raw.EndpointState;
770
+ pending_state?: raw.EndpointState | null | undefined;
771
+ settings: {
772
+ pg_settings?: {
773
+ [x: string]: string;
774
+ } | null | undefined;
775
+ pgbouncer_settings?: {
776
+ [x: string]: string;
777
+ } | null | undefined;
778
+ preload_libraries?: {
779
+ use_defaults?: boolean | null | undefined;
780
+ enabled_libraries?: string[] | null | undefined;
781
+ } | null | undefined;
782
+ };
783
+ pooler_enabled: boolean;
784
+ pooler_mode: raw.EndpointPoolerMode;
785
+ disabled: boolean;
786
+ passwordless_access: boolean;
787
+ last_active?: string | null | undefined;
788
+ creation_source: string;
789
+ created_at: string;
790
+ updated_at: string;
791
+ started_at?: string | null | undefined;
792
+ suspended_at?: string | null | undefined;
793
+ proxy_host: string;
794
+ suspend_timeout_seconds: raw.SuspendTimeoutSeconds;
795
+ provisioner: raw.Provisioner;
796
+ compute_release_version?: string | null | undefined;
797
+ }[];
798
+ operations: {
799
+ id: string;
800
+ project_id: string;
801
+ branch_id?: string | null | undefined;
802
+ endpoint_id?: string | null | undefined;
803
+ action: raw.OperationAction;
804
+ status: raw.OperationStatus;
805
+ error?: string | null | undefined;
806
+ failures_count: number;
807
+ retry_at?: string | null | undefined;
808
+ created_at: string;
809
+ updated_at: string;
810
+ total_duration_ms: number;
811
+ }[];
812
+ roles: {
813
+ branch_id: string;
814
+ name: string;
815
+ password?: string | null | undefined;
816
+ protected?: boolean | null | undefined;
817
+ authentication_method?: string | null | undefined;
818
+ created_at: string;
819
+ updated_at: string;
820
+ }[];
821
+ databases: {
822
+ id: number;
823
+ branch_id: string;
824
+ name: string;
825
+ owner_name: string;
826
+ created_at: string;
827
+ updated_at: string;
828
+ }[];
829
+ connection_uris?: {
830
+ connection_uri: string;
831
+ connection_parameters: {
832
+ database: string;
833
+ password: string;
834
+ role: string;
835
+ host: string;
836
+ pooler_host: string;
837
+ };
838
+ }[] | null | undefined;
839
+ }>;
840
+ readonly createProjectBranchBucket: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
841
+ project_id: z.ZodString;
842
+ branch_id: z.ZodString;
843
+ name: z.ZodString;
844
+ access_level: z.ZodOptional<z.ZodEnum<{
845
+ private: "private";
846
+ public_read: "public_read";
847
+ }>>;
848
+ }, z.core.$strict>, "create_project_branch_bucket", {
849
+ bucket: {
850
+ name: string;
851
+ access_level: raw.BucketAccessLevel;
852
+ created_at: string;
853
+ };
854
+ }>;
855
+ readonly createProjectBranchDataAPI: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
856
+ project_id: z.ZodString;
857
+ branch_id: z.ZodString;
858
+ database_name: z.ZodString;
859
+ auth_provider: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
860
+ external: "external";
861
+ neon_auth: "neon_auth";
862
+ }>>>;
863
+ jwks_url: z.ZodOptional<z.ZodOptional<z.ZodURL>>;
864
+ provider_name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
865
+ jwt_audience: z.ZodOptional<z.ZodOptional<z.ZodString>>;
866
+ add_default_grants: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
867
+ skip_auth_schema: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
868
+ settings: z.ZodOptional<z.ZodOptional<z.ZodObject<{
869
+ db_aggregates_enabled: z.ZodOptional<z.ZodBoolean>;
870
+ db_anon_role: z.ZodOptional<z.ZodString>;
871
+ db_extra_search_path: z.ZodOptional<z.ZodString>;
872
+ db_max_rows: z.ZodOptional<z.ZodInt>;
873
+ db_schemas: z.ZodOptional<z.ZodArray<z.ZodString>>;
874
+ jwt_role_claim_key: z.ZodOptional<z.ZodString>;
875
+ jwt_cache_max_lifetime: z.ZodOptional<z.ZodInt>;
876
+ openapi_mode: z.ZodOptional<z.ZodString>;
877
+ server_cors_allowed_origins: z.ZodOptional<z.ZodString>;
878
+ server_timing_enabled: z.ZodOptional<z.ZodBoolean>;
879
+ }, z.core.$strict>>>;
880
+ }, z.core.$strict>, "create_project_branch_data_api", {
881
+ url: string;
882
+ }>;
883
+ readonly createProjectBranchDatabase: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
884
+ project_id: z.ZodString;
885
+ branch_id: z.ZodString;
886
+ name: z.ZodString;
887
+ owner_name: z.ZodString;
888
+ }, z.core.$strict>, "create_project_branch_database", {
889
+ database: {
890
+ id: number;
891
+ branch_id: string;
892
+ name: string;
893
+ owner_name: string;
894
+ created_at: string;
895
+ updated_at: string;
896
+ };
897
+ operations: {
898
+ id: string;
899
+ project_id: string;
900
+ branch_id?: string | null | undefined;
901
+ endpoint_id?: string | null | undefined;
902
+ action: raw.OperationAction;
903
+ status: raw.OperationStatus;
904
+ error?: string | null | undefined;
905
+ failures_count: number;
906
+ retry_at?: string | null | undefined;
907
+ created_at: string;
908
+ updated_at: string;
909
+ total_duration_ms: number;
910
+ }[];
911
+ }>;
912
+ readonly createProjectBranchFunctionDeployment: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
913
+ project_id: z.ZodString;
914
+ branch_id: z.ZodString;
915
+ slug: z.ZodString;
916
+ zip: z.ZodOptional<z.ZodBase64>;
917
+ runtime: z.ZodOptional<z.ZodEnum<{
918
+ nodejs24: "nodejs24";
919
+ }>>;
920
+ environment: z.ZodOptional<z.ZodString>;
921
+ }, z.core.$strict>, "create_project_branch_function_deployment", {
922
+ deployment: {
923
+ id: number;
924
+ status: "pending" | "building" | "completed" | "failed";
925
+ memory_mib: number;
926
+ runtime: string;
927
+ created_at: string;
928
+ environment?: string[] | null | undefined;
929
+ error?: string | null | undefined;
930
+ };
931
+ }>;
932
+ readonly createProjectBranchRole: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
933
+ project_id: z.ZodString;
934
+ branch_id: z.ZodString;
935
+ name: z.ZodString;
936
+ no_login: z.ZodOptional<z.ZodBoolean>;
937
+ }, z.core.$strict>, "create_project_branch_role", {
938
+ role: {
939
+ branch_id: string;
940
+ name: string;
941
+ password?: string | null | undefined;
942
+ protected?: boolean | null | undefined;
943
+ authentication_method?: string | null | undefined;
944
+ created_at: string;
945
+ updated_at: string;
946
+ };
947
+ operations: {
948
+ id: string;
949
+ project_id: string;
950
+ branch_id?: string | null | undefined;
951
+ endpoint_id?: string | null | undefined;
952
+ action: raw.OperationAction;
953
+ status: raw.OperationStatus;
954
+ error?: string | null | undefined;
955
+ failures_count: number;
956
+ retry_at?: string | null | undefined;
957
+ created_at: string;
958
+ updated_at: string;
959
+ total_duration_ms: number;
960
+ }[];
961
+ }>;
962
+ readonly createProjectEndpoint: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
963
+ project_id: z.ZodString;
964
+ branch_id: z.ZodString;
965
+ region_id: z.ZodOptional<z.ZodString>;
966
+ type: z.ZodEnum<{
967
+ read_only: "read_only";
968
+ read_write: "read_write";
969
+ }>;
970
+ settings: z.ZodOptional<z.ZodObject<{
971
+ pg_settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
972
+ pgbouncer_settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
973
+ preload_libraries: z.ZodOptional<z.ZodObject<{
974
+ use_defaults: z.ZodOptional<z.ZodBoolean>;
975
+ enabled_libraries: z.ZodOptional<z.ZodArray<z.ZodString>>;
976
+ }, z.core.$strict>>;
977
+ }, z.core.$strict>>;
978
+ autoscaling_limit_min_cu: z.ZodOptional<z.ZodNumber>;
979
+ autoscaling_limit_max_cu: z.ZodOptional<z.ZodNumber>;
980
+ provisioner: z.ZodOptional<z.ZodString>;
981
+ pooler_enabled: z.ZodOptional<z.ZodBoolean>;
982
+ pooler_mode: z.ZodOptional<z.ZodEnum<{
983
+ transaction: "transaction";
984
+ }>>;
985
+ disabled: z.ZodOptional<z.ZodBoolean>;
986
+ passwordless_access: z.ZodOptional<z.ZodBoolean>;
987
+ suspend_timeout_seconds: z.ZodOptional<z.ZodInt>;
988
+ name: z.ZodOptional<z.ZodString>;
989
+ }, z.core.$strict>, "create_project_endpoint", {
990
+ endpoint: {
991
+ host: string;
992
+ id: string;
993
+ name?: string | null | undefined;
994
+ project_id: string;
995
+ branch_id: string;
996
+ autoscaling_limit_min_cu: raw.ComputeUnit;
997
+ autoscaling_limit_max_cu: raw.ComputeUnit;
998
+ region_id: string;
999
+ type: raw.EndpointType;
1000
+ current_state: raw.EndpointState;
1001
+ pending_state?: raw.EndpointState | null | undefined;
1002
+ settings: {
1003
+ pg_settings?: {
1004
+ [x: string]: string;
1005
+ } | null | undefined;
1006
+ pgbouncer_settings?: {
1007
+ [x: string]: string;
1008
+ } | null | undefined;
1009
+ preload_libraries?: {
1010
+ use_defaults?: boolean | null | undefined;
1011
+ enabled_libraries?: string[] | null | undefined;
1012
+ } | null | undefined;
1013
+ };
1014
+ pooler_enabled: boolean;
1015
+ pooler_mode: raw.EndpointPoolerMode;
1016
+ disabled: boolean;
1017
+ passwordless_access: boolean;
1018
+ last_active?: string | null | undefined;
1019
+ creation_source: string;
1020
+ created_at: string;
1021
+ updated_at: string;
1022
+ started_at?: string | null | undefined;
1023
+ suspended_at?: string | null | undefined;
1024
+ proxy_host: string;
1025
+ suspend_timeout_seconds: raw.SuspendTimeoutSeconds;
1026
+ provisioner: raw.Provisioner;
1027
+ compute_release_version?: string | null | undefined;
1028
+ };
1029
+ operations: {
1030
+ id: string;
1031
+ project_id: string;
1032
+ branch_id?: string | null | undefined;
1033
+ endpoint_id?: string | null | undefined;
1034
+ action: raw.OperationAction;
1035
+ status: raw.OperationStatus;
1036
+ error?: string | null | undefined;
1037
+ failures_count: number;
1038
+ retry_at?: string | null | undefined;
1039
+ created_at: string;
1040
+ updated_at: string;
1041
+ total_duration_ms: number;
1042
+ }[];
1043
+ }>;
1044
+ readonly createProjectTransferRequest: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
1045
+ project_id: z.ZodString;
1046
+ ttl_seconds: z.ZodOptional<z.ZodOptional<z.ZodInt>>;
1047
+ }, z.core.$strict>, "create_project_transfer_request", {
1048
+ id: string;
1049
+ project_id: string;
1050
+ created_at: string;
1051
+ expires_at: string;
1052
+ }>;
1053
+ readonly createSnapshot: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
1054
+ project_id: z.ZodString;
1055
+ branch_id: z.ZodString;
1056
+ lsn: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1057
+ timestamp: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1058
+ name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1059
+ expires_at: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1060
+ }, z.core.$strict>, "create_snapshot", {
1061
+ snapshot: {
1062
+ id: string;
1063
+ name: string;
1064
+ lsn?: string | null | undefined;
1065
+ timestamp?: string | null | undefined;
1066
+ source_branch_id?: string | null | undefined;
1067
+ created_at: string;
1068
+ expires_at?: string | null | undefined;
1069
+ manual?: boolean | null | undefined;
1070
+ full_size?: number | null | undefined;
1071
+ diff_size?: number | null | undefined;
1072
+ };
1073
+ operations: {
1074
+ id: string;
1075
+ project_id: string;
1076
+ branch_id?: string | null | undefined;
1077
+ endpoint_id?: string | null | undefined;
1078
+ action: raw.OperationAction;
1079
+ status: raw.OperationStatus;
1080
+ error?: string | null | undefined;
1081
+ failures_count: number;
1082
+ retry_at?: string | null | undefined;
1083
+ created_at: string;
1084
+ updated_at: string;
1085
+ total_duration_ms: number;
1086
+ }[];
1087
+ }>;
1088
+ readonly deleteBranchNeonAuthOauthProvider: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
1089
+ project_id: z.ZodString;
1090
+ branch_id: z.ZodString;
1091
+ oauth_provider_id: z.ZodEnum<{
1092
+ github: "github";
1093
+ google: "google";
1094
+ microsoft: "microsoft";
1095
+ vercel: "vercel";
1096
+ }>;
1097
+ }, z.core.$strict>, "delete_branch_neon_auth_oauth_provider", unknown>;
1098
+ readonly deleteBranchNeonAuthTrustedDomain: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
1099
+ project_id: z.ZodString;
1100
+ branch_id: z.ZodString;
1101
+ auth_provider: z.ZodEnum<{
1102
+ mock: "mock";
1103
+ stack: "stack";
1104
+ better_auth: "better_auth";
1105
+ }>;
1106
+ domains: z.ZodArray<z.ZodObject<{
1107
+ domain: z.ZodURL;
1108
+ }, z.core.$strict>>;
1109
+ }, z.core.$strict>, "delete_branch_neon_auth_trusted_domain", unknown>;
1110
+ readonly deleteBranchNeonAuthUser: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
1111
+ project_id: z.ZodString;
1112
+ branch_id: z.ZodString;
1113
+ auth_user_id: z.ZodString;
1114
+ }, z.core.$strict>, "delete_branch_neon_auth_user", null>;
1115
+ readonly deleteNeonAuthDomainFromRedirectURIWhitelist: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
1116
+ project_id: z.ZodString;
1117
+ auth_provider: z.ZodEnum<{
1118
+ mock: "mock";
1119
+ stack: "stack";
1120
+ better_auth: "better_auth";
1121
+ }>;
1122
+ domains: z.ZodArray<z.ZodObject<{
1123
+ domain: z.ZodURL;
1124
+ }, z.core.$strict>>;
1125
+ }, z.core.$strict>, "delete_neon_auth_domain_from_redirect_uri_whitelist", unknown>;
1126
+ readonly deleteNeonAuthIntegration: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
1127
+ project_id: z.ZodString;
1128
+ auth_provider: z.ZodEnum<{
1129
+ mock: "mock";
1130
+ stack: "stack";
1131
+ better_auth: "better_auth";
1132
+ }>;
1133
+ delete_data: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1134
+ }, z.core.$strict>, "delete_neon_auth_integration", unknown>;
1135
+ readonly deleteNeonAuthOauthProvider: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
1136
+ project_id: z.ZodString;
1137
+ oauth_provider_id: z.ZodEnum<{
1138
+ github: "github";
1139
+ google: "google";
1140
+ microsoft: "microsoft";
1141
+ vercel: "vercel";
1142
+ }>;
1143
+ }, z.core.$strict>, "delete_neon_auth_oauth_provider", unknown>;
1144
+ readonly deleteNeonAuthUser: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
1145
+ project_id: z.ZodString;
1146
+ auth_user_id: z.ZodString;
1147
+ }, z.core.$strict>, "delete_neon_auth_user", null>;
1148
+ readonly deleteOrganizationSpendingLimit: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
1149
+ org_id: z.ZodString;
1150
+ }, z.core.$strict>, "delete_organization_spending_limit", {
1151
+ [x: string]: unknown;
1152
+ }>;
1153
+ readonly deleteOrganizationVPCEndpoint: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
1154
+ org_id: z.ZodString;
1155
+ region_id: z.ZodString;
1156
+ vpc_endpoint_id: z.ZodString;
1157
+ }, z.core.$strict>, "delete_organization_vpc_endpoint", unknown>;
1158
+ readonly deleteProject: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
1159
+ project_id: z.ZodString;
1160
+ }, z.core.$strict>, "delete_project", {
1161
+ project: {
1162
+ data_storage_bytes_hour: number;
1163
+ data_transfer_bytes: number;
1164
+ written_data_bytes: number;
1165
+ compute_time_seconds: number;
1166
+ active_time_seconds: number;
1167
+ cpu_used_sec: number;
1168
+ id: string;
1169
+ platform_id: string;
1170
+ region_id: string;
1171
+ name: string;
1172
+ provisioner: raw.Provisioner;
1173
+ default_endpoint_settings?: {
1174
+ pg_settings?: {
1175
+ [x: string]: string;
1176
+ } | null | undefined;
1177
+ pgbouncer_settings?: {
1178
+ [x: string]: string;
1179
+ } | null | undefined;
1180
+ autoscaling_limit_min_cu?: number | null | undefined;
1181
+ autoscaling_limit_max_cu?: number | null | undefined;
1182
+ suspend_timeout_seconds?: number | null | undefined;
1183
+ } | null | undefined;
1184
+ settings?: {
1185
+ quota?: {
1186
+ active_time_seconds?: number | null | undefined;
1187
+ compute_time_seconds?: number | null | undefined;
1188
+ written_data_bytes?: number | null | undefined;
1189
+ data_transfer_bytes?: number | null | undefined;
1190
+ logical_size_bytes?: number | null | undefined;
1191
+ } | null | undefined;
1192
+ allowed_ips?: {
1193
+ ips?: string[] | null | undefined;
1194
+ protected_branches_only?: boolean | null | undefined;
1195
+ } | null | undefined;
1196
+ enable_logical_replication?: boolean | null | undefined;
1197
+ maintenance_window?: {
1198
+ weekdays: number[];
1199
+ start_time: string;
1200
+ end_time: string;
1201
+ } | null | undefined;
1202
+ block_public_connections?: boolean | null | undefined;
1203
+ block_vpc_connections?: boolean | null | undefined;
1204
+ audit_log_level?: raw.ProjectAuditLogLevel | null | undefined;
1205
+ hipaa?: boolean | null | undefined;
1206
+ preload_libraries?: {
1207
+ use_defaults?: boolean | null | undefined;
1208
+ enabled_libraries?: string[] | null | undefined;
1209
+ } | null | undefined;
1210
+ } | null | undefined;
1211
+ pg_version: raw.PgVersion;
1212
+ proxy_host: string;
1213
+ branch_logical_size_limit: number;
1214
+ branch_logical_size_limit_bytes: number;
1215
+ store_passwords: boolean;
1216
+ maintenance_starts_at?: string | null | undefined;
1217
+ creation_source: string;
1218
+ history_retention_seconds: number;
1219
+ created_at: string;
1220
+ updated_at: string;
1221
+ synthetic_storage_size?: number | null | undefined;
1222
+ consumption_period_start: string;
1223
+ consumption_period_end: string;
1224
+ quota_reset_at?: string | null | undefined;
1225
+ owner_id: string;
1226
+ owner?: {
1227
+ email: string;
1228
+ name: string;
1229
+ branches_limit: number;
1230
+ subscription_type: raw.BillingSubscriptionType;
1231
+ } | null | undefined;
1232
+ compute_last_active_at?: string | null | undefined;
1233
+ org_id?: string | null | undefined;
1234
+ maintenance_scheduled_for?: string | null | undefined;
1235
+ hipaa_enabled_at?: string | null | undefined;
1236
+ effective_project_permission?: (raw.ProjectPermissionLevel | null) | undefined;
1237
+ };
1238
+ }>;
1239
+ readonly deleteProjectBranch: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
1240
+ project_id: z.ZodString;
1241
+ branch_id: z.ZodString;
1242
+ hard_delete: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1243
+ }, z.core.$strict>, "delete_project_branch", {
1244
+ branch: {
1245
+ id: string;
1246
+ project_id: string;
1247
+ parent_id?: string | null | undefined;
1248
+ parent_lsn?: string | null | undefined;
1249
+ parent_timestamp?: string | null | undefined;
1250
+ name: string;
1251
+ current_state: raw.BranchState;
1252
+ pending_state?: string | null | undefined;
1253
+ state_changed_at: string;
1254
+ logical_size?: number | null | undefined;
1255
+ creation_source: string;
1256
+ primary?: boolean | null | undefined;
1257
+ default: boolean;
1258
+ protected: boolean;
1259
+ cpu_used_sec: number;
1260
+ compute_time_seconds: number;
1261
+ active_time_seconds: number;
1262
+ written_data_bytes: number;
1263
+ data_transfer_bytes: number;
1264
+ created_at: string;
1265
+ updated_at: string;
1266
+ ttl_interval_seconds?: number | null | undefined;
1267
+ expires_at?: string | null | undefined;
1268
+ last_reset_at?: string | null | undefined;
1269
+ created_by?: {
1270
+ name?: string | null | undefined;
1271
+ image?: string | null | undefined;
1272
+ } | null | undefined;
1273
+ init_source?: string | null | undefined;
1274
+ restore_status?: string | null | undefined;
1275
+ restored_from?: string | null | undefined;
1276
+ restored_as?: string | null | undefined;
1277
+ restricted_actions?: {
1278
+ name: string;
1279
+ reason: string;
1280
+ }[] | null | undefined;
1281
+ recovery?: {
1282
+ deleted_at: string;
1283
+ recoverable_until: string;
1284
+ deletion_method: "user" | "ttl";
1285
+ } | null | undefined;
1286
+ };
1287
+ operations: {
1288
+ id: string;
1289
+ project_id: string;
1290
+ branch_id?: string | null | undefined;
1291
+ endpoint_id?: string | null | undefined;
1292
+ action: raw.OperationAction;
1293
+ status: raw.OperationStatus;
1294
+ error?: string | null | undefined;
1295
+ failures_count: number;
1296
+ retry_at?: string | null | undefined;
1297
+ created_at: string;
1298
+ updated_at: string;
1299
+ total_duration_ms: number;
1300
+ }[];
1301
+ } | null>;
1302
+ readonly deleteProjectBranchBucket: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
1303
+ project_id: z.ZodString;
1304
+ branch_id: z.ZodString;
1305
+ bucket_name: z.ZodString;
1306
+ }, z.core.$strict>, "delete_project_branch_bucket", null>;
1307
+ readonly deleteProjectBranchBucketObject: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
1308
+ project_id: z.ZodString;
1309
+ branch_id: z.ZodString;
1310
+ bucket_name: z.ZodString;
1311
+ object_key: z.ZodString;
1312
+ }, z.core.$strict>, "delete_project_branch_bucket_object", null>;
1313
+ readonly deleteProjectBranchBucketObjectsByPrefix: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
1314
+ project_id: z.ZodString;
1315
+ branch_id: z.ZodString;
1316
+ bucket_name: z.ZodString;
1317
+ prefix: z.ZodString;
1318
+ }, z.core.$strict>, "delete_project_branch_bucket_objects_by_prefix", {
1319
+ deleted: number;
1320
+ }>;
1321
+ readonly deleteProjectBranchDataAPI: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
1322
+ project_id: z.ZodString;
1323
+ branch_id: z.ZodString;
1324
+ database_name: z.ZodString;
1325
+ }, z.core.$strict>, "delete_project_branch_data_api", {
1326
+ [x: string]: unknown;
1327
+ }>;
1328
+ readonly deleteProjectBranchDatabase: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
1329
+ project_id: z.ZodString;
1330
+ branch_id: z.ZodString;
1331
+ database_name: z.ZodString;
1332
+ }, z.core.$strict>, "delete_project_branch_database", {
1333
+ database: {
1334
+ id: number;
1335
+ branch_id: string;
1336
+ name: string;
1337
+ owner_name: string;
1338
+ created_at: string;
1339
+ updated_at: string;
1340
+ };
1341
+ operations: {
1342
+ id: string;
1343
+ project_id: string;
1344
+ branch_id?: string | null | undefined;
1345
+ endpoint_id?: string | null | undefined;
1346
+ action: raw.OperationAction;
1347
+ status: raw.OperationStatus;
1348
+ error?: string | null | undefined;
1349
+ failures_count: number;
1350
+ retry_at?: string | null | undefined;
1351
+ created_at: string;
1352
+ updated_at: string;
1353
+ total_duration_ms: number;
1354
+ }[];
1355
+ } | null>;
1356
+ readonly deleteProjectBranchFunction: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
1357
+ project_id: z.ZodString;
1358
+ branch_id: z.ZodString;
1359
+ slug: z.ZodString;
1360
+ }, z.core.$strict>, "delete_project_branch_function", null>;
1361
+ readonly deleteProjectBranchRole: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
1362
+ project_id: z.ZodString;
1363
+ branch_id: z.ZodString;
1364
+ role_name: z.ZodString;
1365
+ }, z.core.$strict>, "delete_project_branch_role", {
1366
+ role: {
1367
+ branch_id: string;
1368
+ name: string;
1369
+ password?: string | null | undefined;
1370
+ protected?: boolean | null | undefined;
1371
+ authentication_method?: string | null | undefined;
1372
+ created_at: string;
1373
+ updated_at: string;
1374
+ };
1375
+ operations: {
1376
+ id: string;
1377
+ project_id: string;
1378
+ branch_id?: string | null | undefined;
1379
+ endpoint_id?: string | null | undefined;
1380
+ action: raw.OperationAction;
1381
+ status: raw.OperationStatus;
1382
+ error?: string | null | undefined;
1383
+ failures_count: number;
1384
+ retry_at?: string | null | undefined;
1385
+ created_at: string;
1386
+ updated_at: string;
1387
+ total_duration_ms: number;
1388
+ }[];
1389
+ } | null>;
1390
+ readonly deleteProjectEndpoint: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
1391
+ project_id: z.ZodString;
1392
+ endpoint_id: z.ZodString;
1393
+ }, z.core.$strict>, "delete_project_endpoint", {
1394
+ endpoint: {
1395
+ host: string;
1396
+ id: string;
1397
+ name?: string | null | undefined;
1398
+ project_id: string;
1399
+ branch_id: string;
1400
+ autoscaling_limit_min_cu: raw.ComputeUnit;
1401
+ autoscaling_limit_max_cu: raw.ComputeUnit;
1402
+ region_id: string;
1403
+ type: raw.EndpointType;
1404
+ current_state: raw.EndpointState;
1405
+ pending_state?: raw.EndpointState | null | undefined;
1406
+ settings: {
1407
+ pg_settings?: {
1408
+ [x: string]: string;
1409
+ } | null | undefined;
1410
+ pgbouncer_settings?: {
1411
+ [x: string]: string;
1412
+ } | null | undefined;
1413
+ preload_libraries?: {
1414
+ use_defaults?: boolean | null | undefined;
1415
+ enabled_libraries?: string[] | null | undefined;
1416
+ } | null | undefined;
1417
+ };
1418
+ pooler_enabled: boolean;
1419
+ pooler_mode: raw.EndpointPoolerMode;
1420
+ disabled: boolean;
1421
+ passwordless_access: boolean;
1422
+ last_active?: string | null | undefined;
1423
+ creation_source: string;
1424
+ created_at: string;
1425
+ updated_at: string;
1426
+ started_at?: string | null | undefined;
1427
+ suspended_at?: string | null | undefined;
1428
+ proxy_host: string;
1429
+ suspend_timeout_seconds: raw.SuspendTimeoutSeconds;
1430
+ provisioner: raw.Provisioner;
1431
+ compute_release_version?: string | null | undefined;
1432
+ };
1433
+ operations: {
1434
+ id: string;
1435
+ project_id: string;
1436
+ branch_id?: string | null | undefined;
1437
+ endpoint_id?: string | null | undefined;
1438
+ action: raw.OperationAction;
1439
+ status: raw.OperationStatus;
1440
+ error?: string | null | undefined;
1441
+ failures_count: number;
1442
+ retry_at?: string | null | undefined;
1443
+ created_at: string;
1444
+ updated_at: string;
1445
+ total_duration_ms: number;
1446
+ }[];
1447
+ } | null>;
1448
+ readonly deleteProjectJWKS: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
1449
+ project_id: z.ZodString;
1450
+ jwks_id: z.ZodString;
1451
+ }, z.core.$strict>, "delete_project_jwks", {
1452
+ id: string;
1453
+ project_id: string;
1454
+ branch_id?: string | null | undefined;
1455
+ jwks_url: string;
1456
+ provider_name: string;
1457
+ created_at: string;
1458
+ updated_at: string;
1459
+ jwt_audience?: string | null | undefined;
1460
+ role_names?: string[] | null | undefined;
1461
+ }>;
1462
+ readonly deleteProjectVPCEndpoint: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
1463
+ project_id: z.ZodString;
1464
+ vpc_endpoint_id: z.ZodString;
1465
+ }, z.core.$strict>, "delete_project_vpc_endpoint", unknown>;
1466
+ readonly deleteSnapshot: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
1467
+ project_id: z.ZodString;
1468
+ snapshot_id: z.ZodString;
1469
+ }, z.core.$strict>, "delete_snapshot", {
1470
+ operations: {
1471
+ id: string;
1472
+ project_id: string;
1473
+ branch_id?: string | null | undefined;
1474
+ endpoint_id?: string | null | undefined;
1475
+ action: raw.OperationAction;
1476
+ status: raw.OperationStatus;
1477
+ error?: string | null | undefined;
1478
+ failures_count: number;
1479
+ retry_at?: string | null | undefined;
1480
+ created_at: string;
1481
+ updated_at: string;
1482
+ total_duration_ms: number;
1483
+ }[];
1484
+ }>;
1485
+ readonly disableNeonAuth: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
1486
+ project_id: z.ZodString;
1487
+ branch_id: z.ZodString;
1488
+ delete_data: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1489
+ }, z.core.$strict>, "disable_neon_auth", unknown>;
1490
+ readonly finalizeRestoreBranch: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
1491
+ project_id: z.ZodString;
1492
+ branch_id: z.ZodString;
1493
+ name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1494
+ }, z.core.$strict>, "finalize_restore_branch", {
1495
+ operations: {
1496
+ id: string;
1497
+ project_id: string;
1498
+ branch_id?: string | null | undefined;
1499
+ endpoint_id?: string | null | undefined;
1500
+ action: raw.OperationAction;
1501
+ status: raw.OperationStatus;
1502
+ error?: string | null | undefined;
1503
+ failures_count: number;
1504
+ retry_at?: string | null | undefined;
1505
+ created_at: string;
1506
+ updated_at: string;
1507
+ total_duration_ms: number;
1508
+ }[];
1509
+ }>;
1510
+ readonly getActiveRegions: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
1511
+ org_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1512
+ }, z.core.$strict>, "get_active_regions", {
1513
+ regions: {
1514
+ region_id: string;
1515
+ name: string;
1516
+ default: boolean;
1517
+ geo_lat: string;
1518
+ geo_long: string;
1519
+ }[];
1520
+ }>;
1521
+ readonly getAnonymizedBranchStatus: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
1522
+ project_id: z.ZodString;
1523
+ branch_id: z.ZodString;
1524
+ }, z.core.$strict>, "get_anonymized_branch_status", {
1525
+ project_id: string;
1526
+ branch_id: string;
1527
+ state: string;
1528
+ status_message?: string | null | undefined;
1529
+ created_at: string;
1530
+ updated_at: string;
1531
+ failed_at?: string | null | undefined;
1532
+ last_run?: {
1533
+ started_at?: string | null | undefined;
1534
+ completed_at?: string | null | undefined;
1535
+ triggered_by?: string | null | undefined;
1536
+ triggered_by_username?: string | null | undefined;
1537
+ masked_columns?: number | null | undefined;
1538
+ } | null | undefined;
1539
+ }>;
1540
+ readonly getAuthDetails: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{}, z.core.$strict>, "get_auth_details", {
1541
+ account_id: string;
1542
+ auth_method: "keycloak" | "session_cookie" | "api_key_user" | "api_key_org" | "oauth";
1543
+ auth_data?: string | null | undefined;
1544
+ }>;
1545
+ readonly getAvailablePreloadLibraries: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
1546
+ project_id: z.ZodString;
1547
+ }, z.core.$strict>, "get_available_preload_libraries", {
1548
+ libraries?: {
1549
+ library_name: string;
1550
+ description: string;
1551
+ is_default: boolean;
1552
+ is_experimental: boolean;
1553
+ version: string;
1554
+ }[] | null | undefined;
1555
+ }>;
1556
+ readonly getConnectionURI: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
1557
+ project_id: z.ZodString;
1558
+ branch_id: z.ZodOptional<z.ZodString>;
1559
+ endpoint_id: z.ZodOptional<z.ZodString>;
1560
+ database_name: z.ZodString;
1561
+ role_name: z.ZodString;
1562
+ pooled: z.ZodOptional<z.ZodBoolean>;
1563
+ }, z.core.$strict>, "get_connection_uri", {
1564
+ uri: string;
1565
+ }>;
1566
+ readonly getConsumptionHistoryPerBranchV2: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
1567
+ cursor: z.ZodOptional<z.ZodString>;
1568
+ limit: z.ZodOptional<z.ZodInt>;
1569
+ project_ids: z.ZodArray<z.ZodString>;
1570
+ branch_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
1571
+ from: z.ZodISODateTime;
1572
+ to: z.ZodISODateTime;
1573
+ granularity: z.ZodEnum<{
1574
+ hourly: "hourly";
1575
+ daily: "daily";
1576
+ monthly: "monthly";
1577
+ }>;
1578
+ org_id: z.ZodString;
1579
+ metrics: z.ZodArray<z.ZodString>;
1580
+ }, z.core.$strict>, "get_consumption_history_per_branch_v2", {
1581
+ branches: {
1582
+ project_id: string;
1583
+ branch_id: string;
1584
+ periods: {
1585
+ period_id: string;
1586
+ period_plan: string;
1587
+ period_start: string;
1588
+ period_end?: string | null | undefined;
1589
+ consumption: {
1590
+ timeframe_start?: string | null | undefined;
1591
+ timeframe_end?: string | null | undefined;
1592
+ metrics?: {
1593
+ metric_name: string;
1594
+ value: number;
1595
+ }[] | null | undefined;
1596
+ }[];
1597
+ }[];
1598
+ }[];
1599
+ pagination?: {
1600
+ cursor: string;
1601
+ } | null | undefined;
1602
+ }>;
1603
+ readonly getConsumptionHistoryPerProject: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
1604
+ cursor: z.ZodOptional<z.ZodString>;
1605
+ limit: z.ZodOptional<z.ZodInt>;
1606
+ project_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
1607
+ from: z.ZodISODateTime;
1608
+ to: z.ZodISODateTime;
1609
+ granularity: z.ZodEnum<{
1610
+ hourly: "hourly";
1611
+ daily: "daily";
1612
+ monthly: "monthly";
1613
+ }>;
1614
+ org_id: z.ZodOptional<z.ZodString>;
1615
+ include_v1_metrics: z.ZodOptional<z.ZodBoolean>;
1616
+ metrics: z.ZodOptional<z.ZodArray<z.ZodString>>;
1617
+ }, z.core.$strict>, "get_consumption_history_per_project", {
1618
+ projects: {
1619
+ project_id: string;
1620
+ periods: {
1621
+ period_id: string;
1622
+ period_plan: string;
1623
+ period_start: string;
1624
+ period_end?: string | null | undefined;
1625
+ consumption: {
1626
+ timeframe_start: string;
1627
+ timeframe_end: string;
1628
+ active_time_seconds: number;
1629
+ compute_time_seconds: number;
1630
+ written_data_bytes: number;
1631
+ synthetic_storage_size_bytes: number;
1632
+ data_storage_bytes_hour?: number | null | undefined;
1633
+ logical_size_bytes?: number | null | undefined;
1634
+ logical_size_bytes_hour?: number | null | undefined;
1635
+ }[];
1636
+ }[];
1637
+ }[];
1638
+ pagination?: {
1639
+ cursor: string;
1640
+ } | null | undefined;
1641
+ }>;
1642
+ readonly getConsumptionHistoryPerProjectV2: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
1643
+ cursor: z.ZodOptional<z.ZodString>;
1644
+ limit: z.ZodOptional<z.ZodInt>;
1645
+ project_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
1646
+ from: z.ZodISODateTime;
1647
+ to: z.ZodISODateTime;
1648
+ granularity: z.ZodEnum<{
1649
+ hourly: "hourly";
1650
+ daily: "daily";
1651
+ monthly: "monthly";
1652
+ }>;
1653
+ org_id: z.ZodString;
1654
+ metrics: z.ZodArray<z.ZodString>;
1655
+ }, z.core.$strict>, "get_consumption_history_per_project_v2", {
1656
+ projects: {
1657
+ project_id: string;
1658
+ periods: {
1659
+ period_id: string;
1660
+ period_plan: string;
1661
+ period_start: string;
1662
+ period_end?: string | null | undefined;
1663
+ consumption: {
1664
+ timeframe_start?: string | null | undefined;
1665
+ timeframe_end?: string | null | undefined;
1666
+ metrics?: {
1667
+ metric_name: string;
1668
+ value: number;
1669
+ }[] | null | undefined;
1670
+ }[];
1671
+ }[];
1672
+ }[];
1673
+ pagination?: {
1674
+ cursor: string;
1675
+ } | null | undefined;
1676
+ }>;
1677
+ readonly getCurrentUserInfo: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{}, z.core.$strict>, "get_current_user_info", {
1678
+ active_seconds_limit: number;
1679
+ billing_account?: {
1680
+ state: raw.BillingAccountState;
1681
+ payment_source: {
1682
+ type: string;
1683
+ card?: {
1684
+ last4: string;
1685
+ brand?: "unknown" | "amex" | "diners" | "discover" | "jcb" | "mastercard" | "unionpay" | "visa" | null | undefined;
1686
+ exp_month?: number | null | undefined;
1687
+ exp_year?: number | null | undefined;
1688
+ } | null | undefined;
1689
+ };
1690
+ subscription_type: raw.BillingSubscriptionType;
1691
+ payment_method: raw.BillingPaymentMethod;
1692
+ quota_reset_at_last: string;
1693
+ name: string;
1694
+ email: string;
1695
+ address_city: string;
1696
+ address_country: string;
1697
+ address_country_name?: string | null | undefined;
1698
+ address_line1: string;
1699
+ address_line2: string;
1700
+ address_postal_code: string;
1701
+ address_state: string;
1702
+ orb_portal_url?: string | null | undefined;
1703
+ tax_id?: string | null | undefined;
1704
+ tax_id_type?: string | null | undefined;
1705
+ plan_details?: {
1706
+ name: string;
1707
+ version?: {
1708
+ major: number;
1709
+ minor: number;
1710
+ } | null | undefined;
1711
+ } | null | undefined;
1712
+ spending_limit_cents?: number | null | undefined;
1713
+ } | null | undefined;
1714
+ auth_accounts: {
1715
+ email: string;
1716
+ image: string;
1717
+ login: string;
1718
+ name: string;
1719
+ provider: raw.IdentityProviderId;
1720
+ }[];
1721
+ email: string;
1722
+ id: string;
1723
+ image: string;
1724
+ login: string;
1725
+ name: string;
1726
+ last_name: string;
1727
+ projects_limit: number;
1728
+ branches_limit: number;
1729
+ max_autoscaling_limit: number;
1730
+ compute_seconds_limit?: number | null | undefined;
1731
+ plan: string;
1732
+ }>;
1733
+ readonly getCurrentUserOrganizations: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{}, z.core.$strict>, "get_current_user_organizations", {
1734
+ organizations: {
1735
+ id: string;
1736
+ name: string;
1737
+ handle: string;
1738
+ plan: string;
1739
+ created_at: string;
1740
+ managed_by: string;
1741
+ updated_at: string;
1742
+ allow_hipaa_projects?: boolean | null | undefined;
1743
+ require_mfa?: boolean | null | undefined;
1744
+ }[];
1745
+ }>;
1746
+ readonly getMaskingRules: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
1747
+ project_id: z.ZodString;
1748
+ branch_id: z.ZodString;
1749
+ }, z.core.$strict>, "get_masking_rules", {
1750
+ masking_rules: {
1751
+ database_name: string;
1752
+ schema_name: string;
1753
+ table_name: string;
1754
+ column_name: string;
1755
+ masking_function?: string | null | undefined;
1756
+ masking_value?: string | null | undefined;
1757
+ }[];
1758
+ }>;
1759
+ readonly getNeonAuth: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
1760
+ project_id: z.ZodString;
1761
+ branch_id: z.ZodString;
1762
+ }, z.core.$strict>, "get_neon_auth", {
1763
+ auth_provider: raw.NeonAuthSupportedAuthProvider;
1764
+ auth_provider_project_id: string;
1765
+ branch_id: string;
1766
+ db_name: string;
1767
+ created_at: string;
1768
+ owned_by: raw.NeonAuthProviderProjectOwnedBy;
1769
+ transfer_status?: raw.NeonAuthProviderProjectTransferStatus | null | undefined;
1770
+ jwks_url: string;
1771
+ base_url?: string | null | undefined;
1772
+ name?: string | null | undefined;
1773
+ }>;
1774
+ readonly getNeonAuthAllowLocalhost: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
1775
+ project_id: z.ZodString;
1776
+ branch_id: z.ZodString;
1777
+ }, z.core.$strict>, "get_neon_auth_allow_localhost", {
1778
+ allow_localhost: boolean;
1779
+ }>;
1780
+ readonly getNeonAuthEmailAndPasswordConfig: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
1781
+ project_id: z.ZodString;
1782
+ branch_id: z.ZodString;
1783
+ }, z.core.$strict>, "get_neon_auth_email_and_password_config", {
1784
+ enabled: boolean;
1785
+ email_verification_method: raw.NeonAuthEmailVerificationMethod;
1786
+ require_email_verification: boolean;
1787
+ auto_sign_in_after_verification: boolean;
1788
+ send_verification_email_on_sign_up: boolean;
1789
+ send_verification_email_on_sign_in: boolean;
1790
+ disable_sign_up: boolean;
1791
+ }>;
1792
+ readonly getNeonAuthEmailProvider: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
1793
+ project_id: z.ZodString;
1794
+ branch_id: z.ZodString;
1795
+ }, z.core.$strict>, "get_neon_auth_email_provider", {
1796
+ type: "standard";
1797
+ host: string;
1798
+ port: number;
1799
+ username: string;
1800
+ password: string;
1801
+ sender_email: string;
1802
+ sender_name: string;
1803
+ } | {
1804
+ type: "shared";
1805
+ sender_email?: string | null | undefined;
1806
+ sender_name?: string | null | undefined;
1807
+ }>;
1808
+ readonly getNeonAuthEmailServer: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
1809
+ project_id: z.ZodString;
1810
+ }, z.core.$strict>, "get_neon_auth_email_server", {
1811
+ type: "standard";
1812
+ host: string;
1813
+ port: number;
1814
+ username: string;
1815
+ password: string;
1816
+ sender_email: string;
1817
+ sender_name: string;
1818
+ } | {
1819
+ type: "shared";
1820
+ sender_email?: string | null | undefined;
1821
+ sender_name?: string | null | undefined;
1822
+ }>;
1823
+ readonly getNeonAuthPhoneNumberPlugin: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
1824
+ project_id: z.ZodString;
1825
+ branch_id: z.ZodString;
1826
+ }, z.core.$strict>, "get_neon_auth_phone_number_plugin", {
1827
+ enabled: boolean;
1828
+ otp_expires_in?: number | null | undefined;
1829
+ }>;
1830
+ readonly getNeonAuthPluginConfigs: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
1831
+ project_id: z.ZodString;
1832
+ branch_id: z.ZodString;
1833
+ }, z.core.$strict>, "get_neon_auth_plugin_configs", {
1834
+ organization?: {
1835
+ enabled: boolean;
1836
+ organization_limit: number;
1837
+ membership_limit: number;
1838
+ creator_role: "admin" | "owner";
1839
+ send_invitation_email: boolean;
1840
+ } | null | undefined;
1841
+ magic_link?: {
1842
+ enabled: boolean;
1843
+ expires_in: number;
1844
+ disable_sign_up: boolean;
1845
+ } | null | undefined;
1846
+ phone_number?: {
1847
+ enabled: boolean;
1848
+ otp_expires_in?: number | null | undefined;
1849
+ } | null | undefined;
1850
+ email_provider?: {
1851
+ type: "standard";
1852
+ host: string;
1853
+ port: number;
1854
+ username: string;
1855
+ password: string;
1856
+ sender_email: string;
1857
+ sender_name: string;
1858
+ } | {
1859
+ type: "shared";
1860
+ sender_email?: string | null | undefined;
1861
+ sender_name?: string | null | undefined;
1862
+ } | null | undefined;
1863
+ email_and_password?: {
1864
+ enabled: boolean;
1865
+ email_verification_method: raw.NeonAuthEmailVerificationMethod;
1866
+ require_email_verification: boolean;
1867
+ auto_sign_in_after_verification: boolean;
1868
+ send_verification_email_on_sign_up: boolean;
1869
+ send_verification_email_on_sign_in: boolean;
1870
+ disable_sign_up: boolean;
1871
+ } | null | undefined;
1872
+ oauth_providers?: {
1873
+ id: raw.NeonAuthOauthProviderId;
1874
+ type: raw.NeonAuthOauthProviderType;
1875
+ client_id?: string | null | undefined;
1876
+ client_secret?: string | null | undefined;
1877
+ }[] | null | undefined;
1878
+ allow_localhost?: boolean | null | undefined;
1879
+ }>;
1880
+ readonly getNeonAuthWebhookConfig: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
1881
+ project_id: z.ZodString;
1882
+ branch_id: z.ZodString;
1883
+ }, z.core.$strict>, "get_neon_auth_webhook_config", {
1884
+ enabled: boolean;
1885
+ webhook_url?: string | null | undefined;
1886
+ enabled_events?: ("user.before_create" | "user.created" | "send.otp" | "send.magic_link" | "organization.invitation.created" | "organization.invitation.accepted" | "phone_number.verified")[] | null | undefined;
1887
+ timeout_seconds?: number | null | undefined;
1888
+ }>;
1889
+ readonly getOrganization: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
1890
+ org_id: z.ZodString;
1891
+ }, z.core.$strict>, "get_organization", {
1892
+ id: string;
1893
+ name: string;
1894
+ handle: string;
1895
+ plan: string;
1896
+ created_at: string;
1897
+ managed_by: string;
1898
+ updated_at: string;
1899
+ allow_hipaa_projects?: boolean | null | undefined;
1900
+ require_mfa?: boolean | null | undefined;
1901
+ }>;
1902
+ readonly getOrganizationInvitations: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
1903
+ org_id: z.ZodString;
1904
+ }, z.core.$strict>, "get_organization_invitations", {
1905
+ invitations: {
1906
+ id: string;
1907
+ email: string;
1908
+ org_id: string;
1909
+ invited_by: string;
1910
+ invited_at: string;
1911
+ role: raw.MemberRole;
1912
+ }[];
1913
+ }>;
1914
+ readonly getOrganizationMember: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
1915
+ org_id: z.ZodString;
1916
+ member_id: z.ZodUUID;
1917
+ }, z.core.$strict>, "get_organization_member", {
1918
+ id: string;
1919
+ user_id: string;
1920
+ org_id: string;
1921
+ role: raw.MemberRole;
1922
+ joined_at?: string | null | undefined;
1923
+ }>;
1924
+ readonly getOrganizationMembers: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
1925
+ org_id: z.ZodString;
1926
+ sort_by: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
1927
+ email: "email";
1928
+ role: "role";
1929
+ joined_at: "joined_at";
1930
+ }>>>;
1931
+ cursor: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1932
+ sort_order: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
1933
+ asc: "asc";
1934
+ desc: "desc";
1935
+ }>>>;
1936
+ limit: z.ZodOptional<z.ZodOptional<z.ZodInt>>;
1937
+ }, z.core.$strict>, "get_organization_members", {
1938
+ members: {
1939
+ member: {
1940
+ id: string;
1941
+ user_id: string;
1942
+ org_id: string;
1943
+ role: raw.MemberRole;
1944
+ joined_at?: string | null | undefined;
1945
+ };
1946
+ user: {
1947
+ email: string;
1948
+ has_mfa?: boolean | null | undefined;
1949
+ deactivated_at?: string | null | undefined;
1950
+ };
1951
+ }[];
1952
+ pagination?: {
1953
+ next?: string | null | undefined;
1954
+ sort_by?: string | null | undefined;
1955
+ sort_order?: string | null | undefined;
1956
+ } | null | undefined;
1957
+ }>;
1958
+ readonly getOrganizationSpendingLimit: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
1959
+ org_id: z.ZodString;
1960
+ }, z.core.$strict>, "get_organization_spending_limit", {
1961
+ spending_limit_cents: number | null;
1962
+ }>;
1963
+ readonly getOrganizationVPCEndpointDetails: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
1964
+ org_id: z.ZodString;
1965
+ region_id: z.ZodString;
1966
+ vpc_endpoint_id: z.ZodString;
1967
+ }, z.core.$strict>, "get_organization_vpc_endpoint_details", {
1968
+ vpc_endpoint_id: string;
1969
+ label: string;
1970
+ state: string;
1971
+ num_restricted_projects: number;
1972
+ example_restricted_projects: string[];
1973
+ }>;
1974
+ readonly getProject: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
1975
+ project_id: z.ZodString;
1976
+ }, z.core.$strict>, "get_project", {
1977
+ project: {
1978
+ data_storage_bytes_hour: number;
1979
+ data_transfer_bytes: number;
1980
+ written_data_bytes: number;
1981
+ compute_time_seconds: number;
1982
+ active_time_seconds: number;
1983
+ cpu_used_sec: number;
1984
+ id: string;
1985
+ platform_id: string;
1986
+ region_id: string;
1987
+ name: string;
1988
+ provisioner: raw.Provisioner;
1989
+ default_endpoint_settings?: {
1990
+ pg_settings?: {
1991
+ [x: string]: string;
1992
+ } | null | undefined;
1993
+ pgbouncer_settings?: {
1994
+ [x: string]: string;
1995
+ } | null | undefined;
1996
+ autoscaling_limit_min_cu?: number | null | undefined;
1997
+ autoscaling_limit_max_cu?: number | null | undefined;
1998
+ suspend_timeout_seconds?: number | null | undefined;
1999
+ } | null | undefined;
2000
+ settings?: {
2001
+ quota?: {
2002
+ active_time_seconds?: number | null | undefined;
2003
+ compute_time_seconds?: number | null | undefined;
2004
+ written_data_bytes?: number | null | undefined;
2005
+ data_transfer_bytes?: number | null | undefined;
2006
+ logical_size_bytes?: number | null | undefined;
2007
+ } | null | undefined;
2008
+ allowed_ips?: {
2009
+ ips?: string[] | null | undefined;
2010
+ protected_branches_only?: boolean | null | undefined;
2011
+ } | null | undefined;
2012
+ enable_logical_replication?: boolean | null | undefined;
2013
+ maintenance_window?: {
2014
+ weekdays: number[];
2015
+ start_time: string;
2016
+ end_time: string;
2017
+ } | null | undefined;
2018
+ block_public_connections?: boolean | null | undefined;
2019
+ block_vpc_connections?: boolean | null | undefined;
2020
+ audit_log_level?: raw.ProjectAuditLogLevel | null | undefined;
2021
+ hipaa?: boolean | null | undefined;
2022
+ preload_libraries?: {
2023
+ use_defaults?: boolean | null | undefined;
2024
+ enabled_libraries?: string[] | null | undefined;
2025
+ } | null | undefined;
2026
+ } | null | undefined;
2027
+ pg_version: raw.PgVersion;
2028
+ proxy_host: string;
2029
+ branch_logical_size_limit: number;
2030
+ branch_logical_size_limit_bytes: number;
2031
+ store_passwords: boolean;
2032
+ maintenance_starts_at?: string | null | undefined;
2033
+ creation_source: string;
2034
+ history_retention_seconds: number;
2035
+ created_at: string;
2036
+ updated_at: string;
2037
+ synthetic_storage_size?: number | null | undefined;
2038
+ consumption_period_start: string;
2039
+ consumption_period_end: string;
2040
+ quota_reset_at?: string | null | undefined;
2041
+ owner_id: string;
2042
+ owner?: {
2043
+ email: string;
2044
+ name: string;
2045
+ branches_limit: number;
2046
+ subscription_type: raw.BillingSubscriptionType;
2047
+ } | null | undefined;
2048
+ compute_last_active_at?: string | null | undefined;
2049
+ org_id?: string | null | undefined;
2050
+ maintenance_scheduled_for?: string | null | undefined;
2051
+ hipaa_enabled_at?: string | null | undefined;
2052
+ effective_project_permission?: (raw.ProjectPermissionLevel | null) | undefined;
2053
+ };
2054
+ }>;
2055
+ readonly getProjectAdvisorSecurityIssues: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
2056
+ project_id: z.ZodString;
2057
+ branch_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2058
+ database_name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2059
+ category: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
2060
+ SECURITY: "SECURITY";
2061
+ PERFORMANCE: "PERFORMANCE";
2062
+ }>>>;
2063
+ min_severity: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
2064
+ INFO: "INFO";
2065
+ WARN: "WARN";
2066
+ ERROR: "ERROR";
2067
+ }>>>;
2068
+ }, z.core.$strict>, "get_project_advisor_security_issues", {
2069
+ issues: {
2070
+ name: string;
2071
+ title: string;
2072
+ level: string;
2073
+ facing: "EXTERNAL" | "INTERNAL";
2074
+ categories: raw.AdvisorCategory[];
2075
+ description: string;
2076
+ detail: string;
2077
+ remediation: string;
2078
+ metadata: {
2079
+ [x: string]: unknown;
2080
+ };
2081
+ cache_key: string;
2082
+ }[];
2083
+ }>;
2084
+ readonly getProjectBranch: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
2085
+ project_id: z.ZodString;
2086
+ branch_id: z.ZodString;
2087
+ }, z.core.$strict>, "get_project_branch", {
2088
+ branch: {
2089
+ id: string;
2090
+ project_id: string;
2091
+ parent_id?: string | null | undefined;
2092
+ parent_lsn?: string | null | undefined;
2093
+ parent_timestamp?: string | null | undefined;
2094
+ name: string;
2095
+ current_state: raw.BranchState;
2096
+ pending_state?: string | null | undefined;
2097
+ state_changed_at: string;
2098
+ logical_size?: number | null | undefined;
2099
+ creation_source: string;
2100
+ primary?: boolean | null | undefined;
2101
+ default: boolean;
2102
+ protected: boolean;
2103
+ cpu_used_sec: number;
2104
+ compute_time_seconds: number;
2105
+ active_time_seconds: number;
2106
+ written_data_bytes: number;
2107
+ data_transfer_bytes: number;
2108
+ created_at: string;
2109
+ updated_at: string;
2110
+ ttl_interval_seconds?: number | null | undefined;
2111
+ expires_at?: string | null | undefined;
2112
+ last_reset_at?: string | null | undefined;
2113
+ created_by?: {
2114
+ name?: string | null | undefined;
2115
+ image?: string | null | undefined;
2116
+ } | null | undefined;
2117
+ init_source?: string | null | undefined;
2118
+ restore_status?: string | null | undefined;
2119
+ restored_from?: string | null | undefined;
2120
+ restored_as?: string | null | undefined;
2121
+ restricted_actions?: {
2122
+ name: string;
2123
+ reason: string;
2124
+ }[] | null | undefined;
2125
+ recovery?: {
2126
+ deleted_at: string;
2127
+ recoverable_until: string;
2128
+ deletion_method: "user" | "ttl";
2129
+ } | null | undefined;
2130
+ };
2131
+ annotation: {
2132
+ object: {
2133
+ type: string;
2134
+ id: string;
2135
+ };
2136
+ value: {
2137
+ [x: string]: string;
2138
+ };
2139
+ created_at?: string | null | undefined;
2140
+ updated_at?: string | null | undefined;
2141
+ };
2142
+ }>;
2143
+ readonly getProjectBranchAiGateway: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
2144
+ project_id: z.ZodString;
2145
+ branch_id: z.ZodString;
2146
+ }, z.core.$strict>, "get_project_branch_ai_gateway", {
2147
+ enabled: boolean;
2148
+ base_url: string;
2149
+ }>;
2150
+ readonly getProjectBranchBucketObject: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
2151
+ project_id: z.ZodString;
2152
+ branch_id: z.ZodString;
2153
+ bucket_name: z.ZodString;
2154
+ object_key: z.ZodString;
2155
+ }, z.core.$strict>, "get_project_branch_bucket_object", import("./lib/operation.js").JsonSafeBlob>;
2156
+ readonly getProjectBranchDataAPI: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
2157
+ project_id: z.ZodString;
2158
+ branch_id: z.ZodString;
2159
+ database_name: z.ZodString;
2160
+ }, z.core.$strict>, "get_project_branch_data_api", {
2161
+ url: string;
2162
+ status: string;
2163
+ settings?: {
2164
+ db_aggregates_enabled?: boolean | null | undefined;
2165
+ db_anon_role?: string | null | undefined;
2166
+ db_extra_search_path?: string | null | undefined;
2167
+ db_max_rows?: number | null | undefined;
2168
+ db_schemas?: string[] | null | undefined;
2169
+ jwt_role_claim_key?: string | null | undefined;
2170
+ jwt_cache_max_lifetime?: number | null | undefined;
2171
+ openapi_mode?: string | null | undefined;
2172
+ server_cors_allowed_origins?: string | null | undefined;
2173
+ server_timing_enabled?: boolean | null | undefined;
2174
+ } | null | undefined;
2175
+ available_schemas?: string[] | null | undefined;
2176
+ }>;
2177
+ readonly getProjectBranchDatabase: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
2178
+ project_id: z.ZodString;
2179
+ branch_id: z.ZodString;
2180
+ database_name: z.ZodString;
2181
+ }, z.core.$strict>, "get_project_branch_database", {
2182
+ database: {
2183
+ id: number;
2184
+ branch_id: string;
2185
+ name: string;
2186
+ owner_name: string;
2187
+ created_at: string;
2188
+ updated_at: string;
2189
+ };
2190
+ }>;
2191
+ readonly getProjectBranchFunction: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
2192
+ project_id: z.ZodString;
2193
+ branch_id: z.ZodString;
2194
+ slug: z.ZodString;
2195
+ }, z.core.$strict>, "get_project_branch_function", {
2196
+ function: {
2197
+ id: string;
2198
+ slug: string;
2199
+ name: string;
2200
+ invocation_url: string;
2201
+ current_deployment?: {
2202
+ id: number;
2203
+ status: "pending" | "building" | "completed" | "failed";
2204
+ memory_mib: number;
2205
+ runtime: string;
2206
+ created_at: string;
2207
+ environment?: string[] | null | undefined;
2208
+ error?: string | null | undefined;
2209
+ } | null | undefined;
2210
+ active_deployment?: {
2211
+ id: number;
2212
+ status: "pending" | "building" | "completed" | "failed";
2213
+ memory_mib: number;
2214
+ runtime: string;
2215
+ created_at: string;
2216
+ environment?: string[] | null | undefined;
2217
+ error?: string | null | undefined;
2218
+ } | null | undefined;
2219
+ created_at: string;
2220
+ };
2221
+ }>;
2222
+ readonly getProjectBranchRole: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
2223
+ project_id: z.ZodString;
2224
+ branch_id: z.ZodString;
2225
+ role_name: z.ZodString;
2226
+ }, z.core.$strict>, "get_project_branch_role", {
2227
+ role: {
2228
+ branch_id: string;
2229
+ name: string;
2230
+ password?: string | null | undefined;
2231
+ protected?: boolean | null | undefined;
2232
+ authentication_method?: string | null | undefined;
2233
+ created_at: string;
2234
+ updated_at: string;
2235
+ };
2236
+ }>;
2237
+ readonly getProjectBranchRolePassword: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
2238
+ project_id: z.ZodString;
2239
+ branch_id: z.ZodString;
2240
+ role_name: z.ZodString;
2241
+ }, z.core.$strict>, "get_project_branch_role_password", {
2242
+ password: string;
2243
+ }>;
2244
+ readonly getProjectBranchSchema: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
2245
+ project_id: z.ZodString;
2246
+ branch_id: z.ZodString;
2247
+ db_name: z.ZodString;
2248
+ lsn: z.ZodOptional<z.ZodString>;
2249
+ timestamp: z.ZodOptional<z.ZodISODateTime>;
2250
+ format: z.ZodOptional<z.ZodString>;
2251
+ }, z.core.$strict>, "get_project_branch_schema", {
2252
+ sql?: string | null | undefined;
2253
+ json?: {
2254
+ tables: {
2255
+ schema: string;
2256
+ name: string;
2257
+ columns: {
2258
+ name: string;
2259
+ type: string;
2260
+ nullable?: boolean | null | undefined;
2261
+ generated?: boolean | null | undefined;
2262
+ }[];
2263
+ constraints?: {
2264
+ type: string;
2265
+ columns: string[];
2266
+ name?: string | null | undefined;
2267
+ referenced_table?: {
2268
+ schema: string;
2269
+ table: string;
2270
+ columns: string[];
2271
+ } | null | undefined;
2272
+ }[] | null | undefined;
2273
+ }[];
2274
+ } | null | undefined;
2275
+ }>;
2276
+ readonly getProjectBranchSchemaComparison: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
2277
+ project_id: z.ZodString;
2278
+ branch_id: z.ZodString;
2279
+ base_branch_id: z.ZodOptional<z.ZodString>;
2280
+ db_name: z.ZodString;
2281
+ lsn: z.ZodOptional<z.ZodString>;
2282
+ timestamp: z.ZodOptional<z.ZodISODateTime>;
2283
+ base_lsn: z.ZodOptional<z.ZodString>;
2284
+ base_timestamp: z.ZodOptional<z.ZodISODateTime>;
2285
+ }, z.core.$strict>, "get_project_branch_schema_comparison", {
2286
+ diff?: string | null | undefined;
2287
+ }>;
2288
+ readonly getProjectBranchStorage: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
2289
+ project_id: z.ZodString;
2290
+ branch_id: z.ZodString;
2291
+ }, z.core.$strict>, "get_project_branch_storage", {
2292
+ enabled: boolean;
2293
+ s3_endpoint: string;
2294
+ region: string;
2295
+ force_path_style: boolean;
2296
+ }>;
2297
+ readonly getProjectEndpoint: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
2298
+ project_id: z.ZodString;
2299
+ endpoint_id: z.ZodString;
2300
+ }, z.core.$strict>, "get_project_endpoint", {
2301
+ endpoint: {
2302
+ host: string;
2303
+ id: string;
2304
+ name?: string | null | undefined;
2305
+ project_id: string;
2306
+ branch_id: string;
2307
+ autoscaling_limit_min_cu: raw.ComputeUnit;
2308
+ autoscaling_limit_max_cu: raw.ComputeUnit;
2309
+ region_id: string;
2310
+ type: raw.EndpointType;
2311
+ current_state: raw.EndpointState;
2312
+ pending_state?: raw.EndpointState | null | undefined;
2313
+ settings: {
2314
+ pg_settings?: {
2315
+ [x: string]: string;
2316
+ } | null | undefined;
2317
+ pgbouncer_settings?: {
2318
+ [x: string]: string;
2319
+ } | null | undefined;
2320
+ preload_libraries?: {
2321
+ use_defaults?: boolean | null | undefined;
2322
+ enabled_libraries?: string[] | null | undefined;
2323
+ } | null | undefined;
2324
+ };
2325
+ pooler_enabled: boolean;
2326
+ pooler_mode: raw.EndpointPoolerMode;
2327
+ disabled: boolean;
2328
+ passwordless_access: boolean;
2329
+ last_active?: string | null | undefined;
2330
+ creation_source: string;
2331
+ created_at: string;
2332
+ updated_at: string;
2333
+ started_at?: string | null | undefined;
2334
+ suspended_at?: string | null | undefined;
2335
+ proxy_host: string;
2336
+ suspend_timeout_seconds: raw.SuspendTimeoutSeconds;
2337
+ provisioner: raw.Provisioner;
2338
+ compute_release_version?: string | null | undefined;
2339
+ };
2340
+ }>;
2341
+ readonly getProjectJWKS: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
2342
+ project_id: z.ZodString;
2343
+ }, z.core.$strict>, "get_project_jwks", {
2344
+ jwks: {
2345
+ id: string;
2346
+ project_id: string;
2347
+ branch_id?: string | null | undefined;
2348
+ jwks_url: string;
2349
+ provider_name: string;
2350
+ created_at: string;
2351
+ updated_at: string;
2352
+ jwt_audience?: string | null | undefined;
2353
+ role_names?: string[] | null | undefined;
2354
+ }[];
2355
+ }>;
2356
+ readonly getProjectOperation: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
2357
+ project_id: z.ZodString;
2358
+ operation_id: z.ZodUUID;
2359
+ }, z.core.$strict>, "get_project_operation", {
2360
+ operation: {
2361
+ id: string;
2362
+ project_id: string;
2363
+ branch_id?: string | null | undefined;
2364
+ endpoint_id?: string | null | undefined;
2365
+ action: raw.OperationAction;
2366
+ status: raw.OperationStatus;
2367
+ error?: string | null | undefined;
2368
+ failures_count: number;
2369
+ retry_at?: string | null | undefined;
2370
+ created_at: string;
2371
+ updated_at: string;
2372
+ total_duration_ms: number;
2373
+ };
2374
+ }>;
2375
+ readonly getSnapshotSchedule: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
2376
+ project_id: z.ZodString;
2377
+ branch_id: z.ZodString;
2378
+ }, z.core.$strict>, "get_snapshot_schedule", {
2379
+ schedule: {
2380
+ frequency: string;
2381
+ hour?: number | null | undefined;
2382
+ day?: number | null | undefined;
2383
+ month?: number | null | undefined;
2384
+ retention_seconds?: number | null | undefined;
2385
+ }[];
2386
+ }>;
2387
+ readonly grantPermissionToProject: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
2388
+ project_id: z.ZodString;
2389
+ email: z.ZodEmail;
2390
+ }, z.core.$strict>, "grant_permission_to_project", {
2391
+ id: string;
2392
+ granted_to_email: string;
2393
+ granted_at: string;
2394
+ revoked_at?: string | null | undefined;
2395
+ }>;
2396
+ readonly listApiKeys: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{}, z.core.$strict>, "list_api_keys", {
2397
+ id: number;
2398
+ name: string;
2399
+ created_at: string;
2400
+ created_by: {
2401
+ id: string;
2402
+ name: string;
2403
+ image: string;
2404
+ };
2405
+ last_used_at?: string | null | undefined;
2406
+ last_used_from_addr: string;
2407
+ }[]>;
2408
+ readonly listBranchNeonAuthOauthProviders: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
2409
+ project_id: z.ZodString;
2410
+ branch_id: z.ZodString;
2411
+ }, z.core.$strict>, "list_branch_neon_auth_oauth_providers", {
2412
+ providers: {
2413
+ id: raw.NeonAuthOauthProviderId;
2414
+ type: raw.NeonAuthOauthProviderType;
2415
+ client_id?: string | null | undefined;
2416
+ client_secret?: string | null | undefined;
2417
+ }[];
2418
+ }>;
2419
+ readonly listBranchNeonAuthTrustedDomains: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
2420
+ project_id: z.ZodString;
2421
+ branch_id: z.ZodString;
2422
+ }, z.core.$strict>, "list_branch_neon_auth_trusted_domains", {
2423
+ domains: {
2424
+ domain: string;
2425
+ auth_provider: raw.NeonAuthSupportedAuthProvider;
2426
+ }[];
2427
+ }>;
2428
+ readonly listCredentials: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
2429
+ project_id: z.ZodString;
2430
+ branch_id: z.ZodString;
2431
+ }, z.core.$strict>, "list_credentials", {
2432
+ credentials: {
2433
+ token_id: string;
2434
+ token_id_short: string;
2435
+ name?: string | null | undefined;
2436
+ scopes: raw.CredentialScope[];
2437
+ branch_id?: string | null | undefined;
2438
+ principal_type: string;
2439
+ function_id?: string | null | undefined;
2440
+ created_at: string;
2441
+ last_used_at?: string | null | undefined;
2442
+ revoked_at?: string | null | undefined;
2443
+ expires_at?: string | null | undefined;
2444
+ }[];
2445
+ }>;
2446
+ readonly listNeonAuthIntegrations: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
2447
+ project_id: z.ZodString;
2448
+ }, z.core.$strict>, "list_neon_auth_integrations", {
2449
+ data: {
2450
+ auth_provider: raw.NeonAuthSupportedAuthProvider;
2451
+ auth_provider_project_id: string;
2452
+ branch_id: string;
2453
+ db_name: string;
2454
+ created_at: string;
2455
+ owned_by: raw.NeonAuthProviderProjectOwnedBy;
2456
+ transfer_status?: raw.NeonAuthProviderProjectTransferStatus | null | undefined;
2457
+ jwks_url: string;
2458
+ base_url?: string | null | undefined;
2459
+ name?: string | null | undefined;
2460
+ }[];
2461
+ }>;
2462
+ readonly listNeonAuthOauthProviders: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
2463
+ project_id: z.ZodString;
2464
+ }, z.core.$strict>, "list_neon_auth_oauth_providers", {
2465
+ providers: {
2466
+ id: raw.NeonAuthOauthProviderId;
2467
+ type: raw.NeonAuthOauthProviderType;
2468
+ client_id?: string | null | undefined;
2469
+ client_secret?: string | null | undefined;
2470
+ }[];
2471
+ }>;
2472
+ readonly listNeonAuthRedirectURIWhitelistDomains: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
2473
+ project_id: z.ZodString;
2474
+ }, z.core.$strict>, "list_neon_auth_redirect_uri_whitelist_domains", {
2475
+ domains: {
2476
+ domain: string;
2477
+ auth_provider: raw.NeonAuthSupportedAuthProvider;
2478
+ }[];
2479
+ }>;
2480
+ readonly listOrganizationVPCEndpoints: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
2481
+ org_id: z.ZodString;
2482
+ region_id: z.ZodString;
2483
+ }, z.core.$strict>, "list_organization_vpc_endpoints", {
2484
+ endpoints: {
2485
+ vpc_endpoint_id: string;
2486
+ label: string;
2487
+ }[];
2488
+ }>;
2489
+ readonly listOrganizationVPCEndpointsAllRegions: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
2490
+ org_id: z.ZodString;
2491
+ }, z.core.$strict>, "list_organization_vpc_endpoints_all_regions", {
2492
+ endpoints: {
2493
+ vpc_endpoint_id: string;
2494
+ label: string;
2495
+ region_id: string;
2496
+ }[];
2497
+ }>;
2498
+ readonly listOrgApiKeys: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
2499
+ org_id: z.ZodString;
2500
+ }, z.core.$strict>, "list_org_api_keys", {
2501
+ id: number;
2502
+ name: string;
2503
+ created_at: string;
2504
+ created_by: {
2505
+ id: string;
2506
+ name: string;
2507
+ image: string;
2508
+ };
2509
+ last_used_at?: string | null | undefined;
2510
+ last_used_from_addr: string;
2511
+ project_id?: string | null | undefined;
2512
+ }[]>;
2513
+ readonly listProjectBranchBucketObjects: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
2514
+ project_id: z.ZodString;
2515
+ branch_id: z.ZodString;
2516
+ bucket_name: z.ZodString;
2517
+ prefix: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2518
+ delimiter: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2519
+ cursor: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2520
+ limit: z.ZodOptional<z.ZodOptional<z.ZodInt>>;
2521
+ }, z.core.$strict>, "list_project_branch_bucket_objects", {
2522
+ folders: string[];
2523
+ objects: {
2524
+ key: string;
2525
+ size: number;
2526
+ last_modified: string;
2527
+ etag: string;
2528
+ }[];
2529
+ prefix: string;
2530
+ next_cursor?: string | null | undefined;
2531
+ is_truncated: boolean;
2532
+ }>;
2533
+ readonly listProjectBranchBuckets: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
2534
+ project_id: z.ZodString;
2535
+ branch_id: z.ZodString;
2536
+ }, z.core.$strict>, "list_project_branch_buckets", {
2537
+ buckets: {
2538
+ name: string;
2539
+ access_level: raw.BucketAccessLevel;
2540
+ created_at: string;
2541
+ }[];
2542
+ }>;
2543
+ readonly listProjectBranchDatabases: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
2544
+ project_id: z.ZodString;
2545
+ branch_id: z.ZodString;
2546
+ }, z.core.$strict>, "list_project_branch_databases", {
2547
+ databases: {
2548
+ id: number;
2549
+ branch_id: string;
2550
+ name: string;
2551
+ owner_name: string;
2552
+ created_at: string;
2553
+ updated_at: string;
2554
+ }[];
2555
+ }>;
2556
+ readonly listProjectBranchEndpoints: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
2557
+ project_id: z.ZodString;
2558
+ branch_id: z.ZodString;
2559
+ }, z.core.$strict>, "list_project_branch_endpoints", {
2560
+ endpoints: {
2561
+ host: string;
2562
+ id: string;
2563
+ name?: string | null | undefined;
2564
+ project_id: string;
2565
+ branch_id: string;
2566
+ autoscaling_limit_min_cu: raw.ComputeUnit;
2567
+ autoscaling_limit_max_cu: raw.ComputeUnit;
2568
+ region_id: string;
2569
+ type: raw.EndpointType;
2570
+ current_state: raw.EndpointState;
2571
+ pending_state?: raw.EndpointState | null | undefined;
2572
+ settings: {
2573
+ pg_settings?: {
2574
+ [x: string]: string;
2575
+ } | null | undefined;
2576
+ pgbouncer_settings?: {
2577
+ [x: string]: string;
2578
+ } | null | undefined;
2579
+ preload_libraries?: {
2580
+ use_defaults?: boolean | null | undefined;
2581
+ enabled_libraries?: string[] | null | undefined;
2582
+ } | null | undefined;
2583
+ };
2584
+ pooler_enabled: boolean;
2585
+ pooler_mode: raw.EndpointPoolerMode;
2586
+ disabled: boolean;
2587
+ passwordless_access: boolean;
2588
+ last_active?: string | null | undefined;
2589
+ creation_source: string;
2590
+ created_at: string;
2591
+ updated_at: string;
2592
+ started_at?: string | null | undefined;
2593
+ suspended_at?: string | null | undefined;
2594
+ proxy_host: string;
2595
+ suspend_timeout_seconds: raw.SuspendTimeoutSeconds;
2596
+ provisioner: raw.Provisioner;
2597
+ compute_release_version?: string | null | undefined;
2598
+ }[];
2599
+ }>;
2600
+ readonly listProjectBranches: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
2601
+ project_id: z.ZodString;
2602
+ search: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2603
+ sort_by: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
2604
+ name: "name";
2605
+ created_at: "created_at";
2606
+ updated_at: "updated_at";
2607
+ }>>>;
2608
+ cursor: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2609
+ sort_order: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
2610
+ asc: "asc";
2611
+ desc: "desc";
2612
+ }>>>;
2613
+ limit: z.ZodOptional<z.ZodOptional<z.ZodInt>>;
2614
+ include_deleted: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
2615
+ }, z.core.$strict>, "list_project_branches", {
2616
+ branches: {
2617
+ id: string;
2618
+ project_id: string;
2619
+ parent_id?: string | null | undefined;
2620
+ parent_lsn?: string | null | undefined;
2621
+ parent_timestamp?: string | null | undefined;
2622
+ name: string;
2623
+ current_state: raw.BranchState;
2624
+ pending_state?: string | null | undefined;
2625
+ state_changed_at: string;
2626
+ logical_size?: number | null | undefined;
2627
+ creation_source: string;
2628
+ primary?: boolean | null | undefined;
2629
+ default: boolean;
2630
+ protected: boolean;
2631
+ cpu_used_sec: number;
2632
+ compute_time_seconds: number;
2633
+ active_time_seconds: number;
2634
+ written_data_bytes: number;
2635
+ data_transfer_bytes: number;
2636
+ created_at: string;
2637
+ updated_at: string;
2638
+ ttl_interval_seconds?: number | null | undefined;
2639
+ expires_at?: string | null | undefined;
2640
+ last_reset_at?: string | null | undefined;
2641
+ created_by?: {
2642
+ name?: string | null | undefined;
2643
+ image?: string | null | undefined;
2644
+ } | null | undefined;
2645
+ init_source?: string | null | undefined;
2646
+ restore_status?: string | null | undefined;
2647
+ restored_from?: string | null | undefined;
2648
+ restored_as?: string | null | undefined;
2649
+ restricted_actions?: {
2650
+ name: string;
2651
+ reason: string;
2652
+ }[] | null | undefined;
2653
+ recovery?: {
2654
+ deleted_at: string;
2655
+ recoverable_until: string;
2656
+ deletion_method: "user" | "ttl";
2657
+ } | null | undefined;
2658
+ }[];
2659
+ annotations: {
2660
+ [x: string]: {
2661
+ object: {
2662
+ type: string;
2663
+ id: string;
2664
+ };
2665
+ value: {
2666
+ [x: string]: string;
2667
+ };
2668
+ created_at?: string | null | undefined;
2669
+ updated_at?: string | null | undefined;
2670
+ };
2671
+ };
2672
+ pagination?: {
2673
+ next?: string | null | undefined;
2674
+ sort_by?: string | null | undefined;
2675
+ sort_order?: string | null | undefined;
2676
+ } | null | undefined;
2677
+ }>;
2678
+ readonly listProjectBranchFunctions: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
2679
+ project_id: z.ZodString;
2680
+ branch_id: z.ZodString;
2681
+ cursor: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2682
+ limit: z.ZodOptional<z.ZodOptional<z.ZodInt>>;
2683
+ }, z.core.$strict>, "list_project_branch_functions", {
2684
+ functions: {
2685
+ id: string;
2686
+ slug: string;
2687
+ name: string;
2688
+ invocation_url: string;
2689
+ current_deployment?: {
2690
+ id: number;
2691
+ status: "pending" | "building" | "completed" | "failed";
2692
+ memory_mib: number;
2693
+ runtime: string;
2694
+ created_at: string;
2695
+ environment?: string[] | null | undefined;
2696
+ error?: string | null | undefined;
2697
+ } | null | undefined;
2698
+ active_deployment?: {
2699
+ id: number;
2700
+ status: "pending" | "building" | "completed" | "failed";
2701
+ memory_mib: number;
2702
+ runtime: string;
2703
+ created_at: string;
2704
+ environment?: string[] | null | undefined;
2705
+ error?: string | null | undefined;
2706
+ } | null | undefined;
2707
+ created_at: string;
2708
+ }[];
2709
+ pagination?: {
2710
+ next?: string | null | undefined;
2711
+ sort_by?: string | null | undefined;
2712
+ sort_order?: string | null | undefined;
2713
+ } | null | undefined;
2714
+ }>;
2715
+ readonly listProjectBranchLogFields: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
2716
+ project_id: z.ZodString;
2717
+ branch_id: z.ZodString;
2718
+ }, z.core.$strict>, "list_project_branch_log_fields", {
2719
+ fields: string[];
2720
+ }>;
2721
+ readonly listProjectBranchLogFieldValues: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
2722
+ project_id: z.ZodString;
2723
+ branch_id: z.ZodString;
2724
+ field_name: z.ZodString;
2725
+ since: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2726
+ start_time: z.ZodOptional<z.ZodOptional<z.ZodISODateTime>>;
2727
+ end_time: z.ZodOptional<z.ZodOptional<z.ZodISODateTime>>;
2728
+ source: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
2729
+ function: "function";
2730
+ storage: "storage";
2731
+ pg_endpoint: "pg_endpoint";
2732
+ }>>>;
2733
+ limit: z.ZodOptional<z.ZodOptional<z.ZodInt>>;
2734
+ }, z.core.$strict>, "list_project_branch_log_field_values", {
2735
+ values: string[];
2736
+ is_truncated: boolean;
2737
+ }>;
2738
+ readonly listProjectBranchRoles: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
2739
+ project_id: z.ZodString;
2740
+ branch_id: z.ZodString;
2741
+ }, z.core.$strict>, "list_project_branch_roles", {
2742
+ roles: {
2743
+ branch_id: string;
2744
+ name: string;
2745
+ password?: string | null | undefined;
2746
+ protected?: boolean | null | undefined;
2747
+ authentication_method?: string | null | undefined;
2748
+ created_at: string;
2749
+ updated_at: string;
2750
+ }[];
2751
+ }>;
2752
+ readonly listProjectEndpoints: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
2753
+ project_id: z.ZodString;
2754
+ }, z.core.$strict>, "list_project_endpoints", {
2755
+ endpoints: {
2756
+ host: string;
2757
+ id: string;
2758
+ name?: string | null | undefined;
2759
+ project_id: string;
2760
+ branch_id: string;
2761
+ autoscaling_limit_min_cu: raw.ComputeUnit;
2762
+ autoscaling_limit_max_cu: raw.ComputeUnit;
2763
+ region_id: string;
2764
+ type: raw.EndpointType;
2765
+ current_state: raw.EndpointState;
2766
+ pending_state?: raw.EndpointState | null | undefined;
2767
+ settings: {
2768
+ pg_settings?: {
2769
+ [x: string]: string;
2770
+ } | null | undefined;
2771
+ pgbouncer_settings?: {
2772
+ [x: string]: string;
2773
+ } | null | undefined;
2774
+ preload_libraries?: {
2775
+ use_defaults?: boolean | null | undefined;
2776
+ enabled_libraries?: string[] | null | undefined;
2777
+ } | null | undefined;
2778
+ };
2779
+ pooler_enabled: boolean;
2780
+ pooler_mode: raw.EndpointPoolerMode;
2781
+ disabled: boolean;
2782
+ passwordless_access: boolean;
2783
+ last_active?: string | null | undefined;
2784
+ creation_source: string;
2785
+ created_at: string;
2786
+ updated_at: string;
2787
+ started_at?: string | null | undefined;
2788
+ suspended_at?: string | null | undefined;
2789
+ proxy_host: string;
2790
+ suspend_timeout_seconds: raw.SuspendTimeoutSeconds;
2791
+ provisioner: raw.Provisioner;
2792
+ compute_release_version?: string | null | undefined;
2793
+ }[];
2794
+ }>;
2795
+ readonly listProjectMembers: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
2796
+ project_id: z.ZodString;
2797
+ cursor: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2798
+ limit: z.ZodOptional<z.ZodOptional<z.ZodInt>>;
2799
+ }, z.core.$strict>, "list_project_members", {
2800
+ project_members: {
2801
+ member_id: string;
2802
+ user_id: string;
2803
+ email?: string | null | undefined;
2804
+ name?: string | null | undefined;
2805
+ org_role: raw.ProjectMemberOrgRole;
2806
+ project_role?: raw.ProjectRole | null | undefined;
2807
+ org_default_project_permission?: raw.ProjectPermissionLevel | null | undefined;
2808
+ explicit_project_permission?: raw.ProjectPermissionLevel | null | undefined;
2809
+ effective_project_permission?: raw.ProjectPermissionLevel | null | undefined;
2810
+ grant_source?: raw.ProjectMemberGrantSource | null | undefined;
2811
+ }[];
2812
+ pagination?: {
2813
+ next?: string | null | undefined;
2814
+ sort_by?: string | null | undefined;
2815
+ sort_order?: string | null | undefined;
2816
+ } | null | undefined;
2817
+ }>;
2818
+ readonly listProjectOperations: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
2819
+ project_id: z.ZodString;
2820
+ cursor: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2821
+ limit: z.ZodOptional<z.ZodOptional<z.ZodInt>>;
2822
+ }, z.core.$strict>, "list_project_operations", {
2823
+ operations: {
2824
+ id: string;
2825
+ project_id: string;
2826
+ branch_id?: string | null | undefined;
2827
+ endpoint_id?: string | null | undefined;
2828
+ action: raw.OperationAction;
2829
+ status: raw.OperationStatus;
2830
+ error?: string | null | undefined;
2831
+ failures_count: number;
2832
+ retry_at?: string | null | undefined;
2833
+ created_at: string;
2834
+ updated_at: string;
2835
+ total_duration_ms: number;
2836
+ }[];
2837
+ pagination?: {
2838
+ cursor: string;
2839
+ } | null | undefined;
2840
+ }>;
2841
+ readonly listProjectPermissions: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
2842
+ project_id: z.ZodString;
2843
+ }, z.core.$strict>, "list_project_permissions", {
2844
+ project_permissions: {
2845
+ id: string;
2846
+ granted_to_email: string;
2847
+ granted_at: string;
2848
+ revoked_at?: string | null | undefined;
2849
+ }[];
2850
+ }>;
2851
+ readonly listProjects: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
2852
+ cursor: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2853
+ limit: z.ZodOptional<z.ZodOptional<z.ZodInt>>;
2854
+ search: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2855
+ org_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2856
+ timeout: z.ZodOptional<z.ZodOptional<z.ZodInt>>;
2857
+ recoverable: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
2858
+ }, z.core.$strict>, "list_projects", {
2859
+ projects: {
2860
+ id: string;
2861
+ platform_id: string;
2862
+ region_id: string;
2863
+ name: string;
2864
+ provisioner: raw.Provisioner;
2865
+ default_endpoint_settings?: {
2866
+ pg_settings?: {
2867
+ [x: string]: string;
2868
+ } | null | undefined;
2869
+ pgbouncer_settings?: {
2870
+ [x: string]: string;
2871
+ } | null | undefined;
2872
+ autoscaling_limit_min_cu?: number | null | undefined;
2873
+ autoscaling_limit_max_cu?: number | null | undefined;
2874
+ suspend_timeout_seconds?: number | null | undefined;
2875
+ } | null | undefined;
2876
+ settings?: {
2877
+ quota?: {
2878
+ active_time_seconds?: number | null | undefined;
2879
+ compute_time_seconds?: number | null | undefined;
2880
+ written_data_bytes?: number | null | undefined;
2881
+ data_transfer_bytes?: number | null | undefined;
2882
+ logical_size_bytes?: number | null | undefined;
2883
+ } | null | undefined;
2884
+ allowed_ips?: {
2885
+ ips?: string[] | null | undefined;
2886
+ protected_branches_only?: boolean | null | undefined;
2887
+ } | null | undefined;
2888
+ enable_logical_replication?: boolean | null | undefined;
2889
+ maintenance_window?: {
2890
+ weekdays: number[];
2891
+ start_time: string;
2892
+ end_time: string;
2893
+ } | null | undefined;
2894
+ block_public_connections?: boolean | null | undefined;
2895
+ block_vpc_connections?: boolean | null | undefined;
2896
+ audit_log_level?: raw.ProjectAuditLogLevel | null | undefined;
2897
+ hipaa?: boolean | null | undefined;
2898
+ preload_libraries?: {
2899
+ use_defaults?: boolean | null | undefined;
2900
+ enabled_libraries?: string[] | null | undefined;
2901
+ } | null | undefined;
2902
+ } | null | undefined;
2903
+ pg_version: raw.PgVersion;
2904
+ proxy_host: string;
2905
+ branch_logical_size_limit: number;
2906
+ branch_logical_size_limit_bytes: number;
2907
+ store_passwords: boolean;
2908
+ active_time: number;
2909
+ cpu_used_sec: number;
2910
+ maintenance_starts_at?: string | null | undefined;
2911
+ creation_source: string;
2912
+ created_at: string;
2913
+ updated_at: string;
2914
+ synthetic_storage_size?: number | null | undefined;
2915
+ quota_reset_at?: string | null | undefined;
2916
+ owner_id: string;
2917
+ compute_last_active_at?: string | null | undefined;
2918
+ org_id?: string | null | undefined;
2919
+ org_name?: string | null | undefined;
2920
+ history_retention_seconds?: number | null | undefined;
2921
+ hipaa_enabled_at?: string | null | undefined;
2922
+ deleted_at?: string | null | undefined;
2923
+ recoverable_until?: string | null | undefined;
2924
+ effective_project_permission?: (raw.ProjectPermissionLevel | null) | undefined;
2925
+ }[];
2926
+ unavailable_project_ids?: string[] | null | undefined;
2927
+ pagination?: {
2928
+ cursor: string;
2929
+ } | null | undefined;
2930
+ applications: {
2931
+ [x: string]: raw.ApplicationType[];
2932
+ };
2933
+ integrations: {
2934
+ [x: string]: raw.ApplicationType[];
2935
+ };
2936
+ }>;
2937
+ readonly listProjectVPCEndpoints: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
2938
+ project_id: z.ZodString;
2939
+ }, z.core.$strict>, "list_project_vpc_endpoints", {
2940
+ endpoints: {
2941
+ vpc_endpoint_id: string;
2942
+ label: string;
2943
+ }[];
2944
+ }>;
2945
+ readonly listSharedProjects: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
2946
+ cursor: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2947
+ limit: z.ZodOptional<z.ZodOptional<z.ZodInt>>;
2948
+ search: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2949
+ timeout: z.ZodOptional<z.ZodOptional<z.ZodInt>>;
2950
+ }, z.core.$strict>, "list_shared_projects", {
2951
+ projects: {
2952
+ id: string;
2953
+ platform_id: string;
2954
+ region_id: string;
2955
+ name: string;
2956
+ provisioner: raw.Provisioner;
2957
+ default_endpoint_settings?: {
2958
+ pg_settings?: {
2959
+ [x: string]: string;
2960
+ } | null | undefined;
2961
+ pgbouncer_settings?: {
2962
+ [x: string]: string;
2963
+ } | null | undefined;
2964
+ autoscaling_limit_min_cu?: number | null | undefined;
2965
+ autoscaling_limit_max_cu?: number | null | undefined;
2966
+ suspend_timeout_seconds?: number | null | undefined;
2967
+ } | null | undefined;
2968
+ settings?: {
2969
+ quota?: {
2970
+ active_time_seconds?: number | null | undefined;
2971
+ compute_time_seconds?: number | null | undefined;
2972
+ written_data_bytes?: number | null | undefined;
2973
+ data_transfer_bytes?: number | null | undefined;
2974
+ logical_size_bytes?: number | null | undefined;
2975
+ } | null | undefined;
2976
+ allowed_ips?: {
2977
+ ips?: string[] | null | undefined;
2978
+ protected_branches_only?: boolean | null | undefined;
2979
+ } | null | undefined;
2980
+ enable_logical_replication?: boolean | null | undefined;
2981
+ maintenance_window?: {
2982
+ weekdays: number[];
2983
+ start_time: string;
2984
+ end_time: string;
2985
+ } | null | undefined;
2986
+ block_public_connections?: boolean | null | undefined;
2987
+ block_vpc_connections?: boolean | null | undefined;
2988
+ audit_log_level?: raw.ProjectAuditLogLevel | null | undefined;
2989
+ hipaa?: boolean | null | undefined;
2990
+ preload_libraries?: {
2991
+ use_defaults?: boolean | null | undefined;
2992
+ enabled_libraries?: string[] | null | undefined;
2993
+ } | null | undefined;
2994
+ } | null | undefined;
2995
+ pg_version: raw.PgVersion;
2996
+ proxy_host: string;
2997
+ branch_logical_size_limit: number;
2998
+ branch_logical_size_limit_bytes: number;
2999
+ store_passwords: boolean;
3000
+ active_time: number;
3001
+ cpu_used_sec: number;
3002
+ maintenance_starts_at?: string | null | undefined;
3003
+ creation_source: string;
3004
+ created_at: string;
3005
+ updated_at: string;
3006
+ synthetic_storage_size?: number | null | undefined;
3007
+ quota_reset_at?: string | null | undefined;
3008
+ owner_id: string;
3009
+ compute_last_active_at?: string | null | undefined;
3010
+ org_id?: string | null | undefined;
3011
+ org_name?: string | null | undefined;
3012
+ history_retention_seconds?: number | null | undefined;
3013
+ hipaa_enabled_at?: string | null | undefined;
3014
+ deleted_at?: string | null | undefined;
3015
+ recoverable_until?: string | null | undefined;
3016
+ effective_project_permission?: (raw.ProjectPermissionLevel | null) | undefined;
3017
+ }[];
3018
+ unavailable_project_ids?: string[] | null | undefined;
3019
+ pagination?: {
3020
+ cursor: string;
3021
+ } | null | undefined;
3022
+ }>;
3023
+ readonly listSnapshots: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
3024
+ project_id: z.ZodString;
3025
+ }, z.core.$strict>, "list_snapshots", {
3026
+ snapshots: {
3027
+ id: string;
3028
+ name: string;
3029
+ lsn?: string | null | undefined;
3030
+ timestamp?: string | null | undefined;
3031
+ source_branch_id?: string | null | undefined;
3032
+ created_at: string;
3033
+ expires_at?: string | null | undefined;
3034
+ manual?: boolean | null | undefined;
3035
+ full_size?: number | null | undefined;
3036
+ diff_size?: number | null | undefined;
3037
+ }[];
3038
+ }>;
3039
+ readonly presignProjectBranchBucketObject: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
3040
+ project_id: z.ZodString;
3041
+ branch_id: z.ZodString;
3042
+ bucket_name: z.ZodString;
3043
+ object_key: z.ZodString;
3044
+ operation: z.ZodEnum<{
3045
+ upload: "upload";
3046
+ download: "download";
3047
+ }>;
3048
+ content_type: z.ZodOptional<z.ZodString>;
3049
+ expires_in_seconds: z.ZodOptional<z.ZodInt>;
3050
+ }, z.core.$strict>, "presign_project_branch_bucket_object", {
3051
+ url: string;
3052
+ method: string;
3053
+ headers: {
3054
+ [x: string]: string;
3055
+ };
3056
+ expires_at: string;
3057
+ }>;
3058
+ readonly queryProjectBranchLogs: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
3059
+ project_id: z.ZodString;
3060
+ branch_id: z.ZodString;
3061
+ since: z.ZodOptional<z.ZodString>;
3062
+ start_time: z.ZodOptional<z.ZodISODateTime>;
3063
+ end_time: z.ZodOptional<z.ZodISODateTime>;
3064
+ limit: z.ZodOptional<z.ZodInt>;
3065
+ cursor: z.ZodOptional<z.ZodString>;
3066
+ sort_order: z.ZodOptional<z.ZodEnum<{
3067
+ asc: "asc";
3068
+ desc: "desc";
3069
+ }>>;
3070
+ source: z.ZodOptional<z.ZodEnum<{
3071
+ function: "function";
3072
+ storage: "storage";
3073
+ pg_endpoint: "pg_endpoint";
3074
+ }>>;
3075
+ service_name: z.ZodOptional<z.ZodString>;
3076
+ scope_name: z.ZodOptional<z.ZodString>;
3077
+ minimum_severity: z.ZodOptional<z.ZodEnum<{
3078
+ trace: "trace";
3079
+ error: "error";
3080
+ debug: "debug";
3081
+ info: "info";
3082
+ warn: "warn";
3083
+ fatal: "fatal";
3084
+ }>>;
3085
+ severity_text: z.ZodOptional<z.ZodString>;
3086
+ body_contains: z.ZodOptional<z.ZodString>;
3087
+ trace_id: z.ZodOptional<z.ZodString>;
3088
+ logql: z.ZodOptional<z.ZodString>;
3089
+ }, z.core.$strict>, "query_project_branch_logs", {
3090
+ logs: {
3091
+ timestamp: string;
3092
+ message: string;
3093
+ source?: raw.ProjectBranchLogSource | null | undefined;
3094
+ entity_id?: string | null | undefined;
3095
+ service_name?: string | null | undefined;
3096
+ scope_name?: string | null | undefined;
3097
+ severity_number?: number | null | undefined;
3098
+ severity_text?: string | null | undefined;
3099
+ trace_id?: string | null | undefined;
3100
+ span_id?: string | null | undefined;
3101
+ attributes: {
3102
+ [x: string]: unknown;
3103
+ };
3104
+ }[];
3105
+ next_cursor?: string | null | undefined;
3106
+ is_truncated: boolean;
3107
+ }>;
3108
+ readonly recoverProject: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
3109
+ project_id: z.ZodString;
3110
+ }, z.core.$strict>, "recover_project", {
3111
+ project: {
3112
+ data_storage_bytes_hour: number;
3113
+ data_transfer_bytes: number;
3114
+ written_data_bytes: number;
3115
+ compute_time_seconds: number;
3116
+ active_time_seconds: number;
3117
+ cpu_used_sec: number;
3118
+ id: string;
3119
+ platform_id: string;
3120
+ region_id: string;
3121
+ name: string;
3122
+ provisioner: raw.Provisioner;
3123
+ default_endpoint_settings?: {
3124
+ pg_settings?: {
3125
+ [x: string]: string;
3126
+ } | null | undefined;
3127
+ pgbouncer_settings?: {
3128
+ [x: string]: string;
3129
+ } | null | undefined;
3130
+ autoscaling_limit_min_cu?: number | null | undefined;
3131
+ autoscaling_limit_max_cu?: number | null | undefined;
3132
+ suspend_timeout_seconds?: number | null | undefined;
3133
+ } | null | undefined;
3134
+ settings?: {
3135
+ quota?: {
3136
+ active_time_seconds?: number | null | undefined;
3137
+ compute_time_seconds?: number | null | undefined;
3138
+ written_data_bytes?: number | null | undefined;
3139
+ data_transfer_bytes?: number | null | undefined;
3140
+ logical_size_bytes?: number | null | undefined;
3141
+ } | null | undefined;
3142
+ allowed_ips?: {
3143
+ ips?: string[] | null | undefined;
3144
+ protected_branches_only?: boolean | null | undefined;
3145
+ } | null | undefined;
3146
+ enable_logical_replication?: boolean | null | undefined;
3147
+ maintenance_window?: {
3148
+ weekdays: number[];
3149
+ start_time: string;
3150
+ end_time: string;
3151
+ } | null | undefined;
3152
+ block_public_connections?: boolean | null | undefined;
3153
+ block_vpc_connections?: boolean | null | undefined;
3154
+ audit_log_level?: raw.ProjectAuditLogLevel | null | undefined;
3155
+ hipaa?: boolean | null | undefined;
3156
+ preload_libraries?: {
3157
+ use_defaults?: boolean | null | undefined;
3158
+ enabled_libraries?: string[] | null | undefined;
3159
+ } | null | undefined;
3160
+ } | null | undefined;
3161
+ pg_version: raw.PgVersion;
3162
+ proxy_host: string;
3163
+ branch_logical_size_limit: number;
3164
+ branch_logical_size_limit_bytes: number;
3165
+ store_passwords: boolean;
3166
+ maintenance_starts_at?: string | null | undefined;
3167
+ creation_source: string;
3168
+ history_retention_seconds: number;
3169
+ created_at: string;
3170
+ updated_at: string;
3171
+ synthetic_storage_size?: number | null | undefined;
3172
+ consumption_period_start: string;
3173
+ consumption_period_end: string;
3174
+ quota_reset_at?: string | null | undefined;
3175
+ owner_id: string;
3176
+ owner?: {
3177
+ email: string;
3178
+ name: string;
3179
+ branches_limit: number;
3180
+ subscription_type: raw.BillingSubscriptionType;
3181
+ } | null | undefined;
3182
+ compute_last_active_at?: string | null | undefined;
3183
+ org_id?: string | null | undefined;
3184
+ maintenance_scheduled_for?: string | null | undefined;
3185
+ hipaa_enabled_at?: string | null | undefined;
3186
+ effective_project_permission?: (raw.ProjectPermissionLevel | null) | undefined;
3187
+ };
3188
+ branches: {
3189
+ id: string;
3190
+ project_id: string;
3191
+ parent_id?: string | null | undefined;
3192
+ parent_lsn?: string | null | undefined;
3193
+ parent_timestamp?: string | null | undefined;
3194
+ name: string;
3195
+ current_state: raw.BranchState;
3196
+ pending_state?: string | null | undefined;
3197
+ state_changed_at: string;
3198
+ logical_size?: number | null | undefined;
3199
+ creation_source: string;
3200
+ primary?: boolean | null | undefined;
3201
+ default: boolean;
3202
+ protected: boolean;
3203
+ cpu_used_sec: number;
3204
+ compute_time_seconds: number;
3205
+ active_time_seconds: number;
3206
+ written_data_bytes: number;
3207
+ data_transfer_bytes: number;
3208
+ created_at: string;
3209
+ updated_at: string;
3210
+ ttl_interval_seconds?: number | null | undefined;
3211
+ expires_at?: string | null | undefined;
3212
+ last_reset_at?: string | null | undefined;
3213
+ created_by?: {
3214
+ name?: string | null | undefined;
3215
+ image?: string | null | undefined;
3216
+ } | null | undefined;
3217
+ init_source?: string | null | undefined;
3218
+ restore_status?: string | null | undefined;
3219
+ restored_from?: string | null | undefined;
3220
+ restored_as?: string | null | undefined;
3221
+ restricted_actions?: {
3222
+ name: string;
3223
+ reason: string;
3224
+ }[] | null | undefined;
3225
+ recovery?: {
3226
+ deleted_at: string;
3227
+ recoverable_until: string;
3228
+ deletion_method: "user" | "ttl";
3229
+ } | null | undefined;
3230
+ }[];
3231
+ }>;
3232
+ readonly removeOrganizationMember: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
3233
+ org_id: z.ZodString;
3234
+ member_id: z.ZodUUID;
3235
+ }, z.core.$strict>, "remove_organization_member", {
3236
+ [x: string]: unknown;
3237
+ }>;
3238
+ readonly removeProjectMemberRole: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
3239
+ project_id: z.ZodString;
3240
+ member_id: z.ZodUUID;
3241
+ confirm_self_lockout: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
3242
+ }, z.core.$strict>, "remove_project_member_role", {
3243
+ project_id: string;
3244
+ member_id: string;
3245
+ user_id: string;
3246
+ email?: string | null | undefined;
3247
+ name?: string | null | undefined;
3248
+ org_role: raw.ProjectMemberOrgRole;
3249
+ project_role?: raw.ProjectRole | null | undefined;
3250
+ org_default_project_permission?: raw.ProjectPermissionLevel | null | undefined;
3251
+ explicit_project_permission?: raw.ProjectPermissionLevel | null | undefined;
3252
+ effective_project_permission?: raw.ProjectPermissionLevel | null | undefined;
3253
+ credential_rotation_recommended?: boolean | null | undefined;
3254
+ org_api_key_rotation_recommended?: boolean | null | undefined;
3255
+ }>;
3256
+ readonly resetProjectBranchRolePassword: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
3257
+ project_id: z.ZodString;
3258
+ branch_id: z.ZodString;
3259
+ role_name: z.ZodString;
3260
+ }, z.core.$strict>, "reset_project_branch_role_password", {
3261
+ role: {
3262
+ branch_id: string;
3263
+ name: string;
3264
+ password?: string | null | undefined;
3265
+ protected?: boolean | null | undefined;
3266
+ authentication_method?: string | null | undefined;
3267
+ created_at: string;
3268
+ updated_at: string;
3269
+ };
3270
+ operations: {
3271
+ id: string;
3272
+ project_id: string;
3273
+ branch_id?: string | null | undefined;
3274
+ endpoint_id?: string | null | undefined;
3275
+ action: raw.OperationAction;
3276
+ status: raw.OperationStatus;
3277
+ error?: string | null | undefined;
3278
+ failures_count: number;
3279
+ retry_at?: string | null | undefined;
3280
+ created_at: string;
3281
+ updated_at: string;
3282
+ total_duration_ms: number;
3283
+ }[];
3284
+ }>;
3285
+ readonly restartProjectEndpoint: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
3286
+ project_id: z.ZodString;
3287
+ endpoint_id: z.ZodString;
3288
+ }, z.core.$strict>, "restart_project_endpoint", {
3289
+ endpoint: {
3290
+ host: string;
3291
+ id: string;
3292
+ name?: string | null | undefined;
3293
+ project_id: string;
3294
+ branch_id: string;
3295
+ autoscaling_limit_min_cu: raw.ComputeUnit;
3296
+ autoscaling_limit_max_cu: raw.ComputeUnit;
3297
+ region_id: string;
3298
+ type: raw.EndpointType;
3299
+ current_state: raw.EndpointState;
3300
+ pending_state?: raw.EndpointState | null | undefined;
3301
+ settings: {
3302
+ pg_settings?: {
3303
+ [x: string]: string;
3304
+ } | null | undefined;
3305
+ pgbouncer_settings?: {
3306
+ [x: string]: string;
3307
+ } | null | undefined;
3308
+ preload_libraries?: {
3309
+ use_defaults?: boolean | null | undefined;
3310
+ enabled_libraries?: string[] | null | undefined;
3311
+ } | null | undefined;
3312
+ };
3313
+ pooler_enabled: boolean;
3314
+ pooler_mode: raw.EndpointPoolerMode;
3315
+ disabled: boolean;
3316
+ passwordless_access: boolean;
3317
+ last_active?: string | null | undefined;
3318
+ creation_source: string;
3319
+ created_at: string;
3320
+ updated_at: string;
3321
+ started_at?: string | null | undefined;
3322
+ suspended_at?: string | null | undefined;
3323
+ proxy_host: string;
3324
+ suspend_timeout_seconds: raw.SuspendTimeoutSeconds;
3325
+ provisioner: raw.Provisioner;
3326
+ compute_release_version?: string | null | undefined;
3327
+ };
3328
+ operations: {
3329
+ id: string;
3330
+ project_id: string;
3331
+ branch_id?: string | null | undefined;
3332
+ endpoint_id?: string | null | undefined;
3333
+ action: raw.OperationAction;
3334
+ status: raw.OperationStatus;
3335
+ error?: string | null | undefined;
3336
+ failures_count: number;
3337
+ retry_at?: string | null | undefined;
3338
+ created_at: string;
3339
+ updated_at: string;
3340
+ total_duration_ms: number;
3341
+ }[];
3342
+ }>;
3343
+ readonly restoreProjectBranch: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
3344
+ project_id: z.ZodString;
3345
+ branch_id: z.ZodString;
3346
+ source_branch_id: z.ZodString;
3347
+ source_lsn: z.ZodOptional<z.ZodString>;
3348
+ source_timestamp: z.ZodOptional<z.ZodISODateTime>;
3349
+ preserve_under_name: z.ZodOptional<z.ZodString>;
3350
+ }, z.core.$strict>, "restore_project_branch", {
3351
+ branch: {
3352
+ id: string;
3353
+ project_id: string;
3354
+ parent_id?: string | null | undefined;
3355
+ parent_lsn?: string | null | undefined;
3356
+ parent_timestamp?: string | null | undefined;
3357
+ name: string;
3358
+ current_state: raw.BranchState;
3359
+ pending_state?: string | null | undefined;
3360
+ state_changed_at: string;
3361
+ logical_size?: number | null | undefined;
3362
+ creation_source: string;
3363
+ primary?: boolean | null | undefined;
3364
+ default: boolean;
3365
+ protected: boolean;
3366
+ cpu_used_sec: number;
3367
+ compute_time_seconds: number;
3368
+ active_time_seconds: number;
3369
+ written_data_bytes: number;
3370
+ data_transfer_bytes: number;
3371
+ created_at: string;
3372
+ updated_at: string;
3373
+ ttl_interval_seconds?: number | null | undefined;
3374
+ expires_at?: string | null | undefined;
3375
+ last_reset_at?: string | null | undefined;
3376
+ created_by?: {
3377
+ name?: string | null | undefined;
3378
+ image?: string | null | undefined;
3379
+ } | null | undefined;
3380
+ init_source?: string | null | undefined;
3381
+ restore_status?: string | null | undefined;
3382
+ restored_from?: string | null | undefined;
3383
+ restored_as?: string | null | undefined;
3384
+ restricted_actions?: {
3385
+ name: string;
3386
+ reason: string;
3387
+ }[] | null | undefined;
3388
+ recovery?: {
3389
+ deleted_at: string;
3390
+ recoverable_until: string;
3391
+ deletion_method: "user" | "ttl";
3392
+ } | null | undefined;
3393
+ };
3394
+ operations: {
3395
+ id: string;
3396
+ project_id: string;
3397
+ branch_id?: string | null | undefined;
3398
+ endpoint_id?: string | null | undefined;
3399
+ action: raw.OperationAction;
3400
+ status: raw.OperationStatus;
3401
+ error?: string | null | undefined;
3402
+ failures_count: number;
3403
+ retry_at?: string | null | undefined;
3404
+ created_at: string;
3405
+ updated_at: string;
3406
+ total_duration_ms: number;
3407
+ }[];
3408
+ }>;
3409
+ readonly restoreSnapshot: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
3410
+ project_id: z.ZodString;
3411
+ snapshot_id: z.ZodString;
3412
+ name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3413
+ target_branch_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3414
+ finalize_restore: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
3415
+ }, z.core.$strict>, "restore_snapshot", {
3416
+ branch: {
3417
+ id: string;
3418
+ project_id: string;
3419
+ parent_id?: string | null | undefined;
3420
+ parent_lsn?: string | null | undefined;
3421
+ parent_timestamp?: string | null | undefined;
3422
+ name: string;
3423
+ current_state: raw.BranchState;
3424
+ pending_state?: string | null | undefined;
3425
+ state_changed_at: string;
3426
+ logical_size?: number | null | undefined;
3427
+ creation_source: string;
3428
+ primary?: boolean | null | undefined;
3429
+ default: boolean;
3430
+ protected: boolean;
3431
+ cpu_used_sec: number;
3432
+ compute_time_seconds: number;
3433
+ active_time_seconds: number;
3434
+ written_data_bytes: number;
3435
+ data_transfer_bytes: number;
3436
+ created_at: string;
3437
+ updated_at: string;
3438
+ ttl_interval_seconds?: number | null | undefined;
3439
+ expires_at?: string | null | undefined;
3440
+ last_reset_at?: string | null | undefined;
3441
+ created_by?: {
3442
+ name?: string | null | undefined;
3443
+ image?: string | null | undefined;
3444
+ } | null | undefined;
3445
+ init_source?: string | null | undefined;
3446
+ restore_status?: string | null | undefined;
3447
+ restored_from?: string | null | undefined;
3448
+ restored_as?: string | null | undefined;
3449
+ restricted_actions?: {
3450
+ name: string;
3451
+ reason: string;
3452
+ }[] | null | undefined;
3453
+ recovery?: {
3454
+ deleted_at: string;
3455
+ recoverable_until: string;
3456
+ deletion_method: "user" | "ttl";
3457
+ } | null | undefined;
3458
+ };
3459
+ endpoints?: {
3460
+ host: string;
3461
+ id: string;
3462
+ name?: string | null | undefined;
3463
+ project_id: string;
3464
+ branch_id: string;
3465
+ autoscaling_limit_min_cu: raw.ComputeUnit;
3466
+ autoscaling_limit_max_cu: raw.ComputeUnit;
3467
+ region_id: string;
3468
+ type: raw.EndpointType;
3469
+ current_state: raw.EndpointState;
3470
+ pending_state?: raw.EndpointState | null | undefined;
3471
+ settings: {
3472
+ pg_settings?: {
3473
+ [x: string]: string;
3474
+ } | null | undefined;
3475
+ pgbouncer_settings?: {
3476
+ [x: string]: string;
3477
+ } | null | undefined;
3478
+ preload_libraries?: {
3479
+ use_defaults?: boolean | null | undefined;
3480
+ enabled_libraries?: string[] | null | undefined;
3481
+ } | null | undefined;
3482
+ };
3483
+ pooler_enabled: boolean;
3484
+ pooler_mode: raw.EndpointPoolerMode;
3485
+ disabled: boolean;
3486
+ passwordless_access: boolean;
3487
+ last_active?: string | null | undefined;
3488
+ creation_source: string;
3489
+ created_at: string;
3490
+ updated_at: string;
3491
+ started_at?: string | null | undefined;
3492
+ suspended_at?: string | null | undefined;
3493
+ proxy_host: string;
3494
+ suspend_timeout_seconds: raw.SuspendTimeoutSeconds;
3495
+ provisioner: raw.Provisioner;
3496
+ compute_release_version?: string | null | undefined;
3497
+ }[] | null | undefined;
3498
+ operations: {
3499
+ id: string;
3500
+ project_id: string;
3501
+ branch_id?: string | null | undefined;
3502
+ endpoint_id?: string | null | undefined;
3503
+ action: raw.OperationAction;
3504
+ status: raw.OperationStatus;
3505
+ error?: string | null | undefined;
3506
+ failures_count: number;
3507
+ retry_at?: string | null | undefined;
3508
+ created_at: string;
3509
+ updated_at: string;
3510
+ total_duration_ms: number;
3511
+ }[];
3512
+ }>;
3513
+ readonly revokeApiKey: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
3514
+ key_id: z.ZodInt;
3515
+ }, z.core.$strict>, "revoke_api_key", {
3516
+ id: number;
3517
+ name: string;
3518
+ created_at: string;
3519
+ created_by: string;
3520
+ last_used_at?: string | null | undefined;
3521
+ last_used_from_addr: string;
3522
+ revoked: boolean;
3523
+ }>;
3524
+ readonly revokeCredential: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
3525
+ project_id: z.ZodString;
3526
+ branch_id: z.ZodString;
3527
+ token_id: z.ZodString;
3528
+ }, z.core.$strict>, "revoke_credential", null>;
3529
+ readonly revokeOrgApiKey: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
3530
+ org_id: z.ZodString;
3531
+ key_id: z.ZodInt;
3532
+ }, z.core.$strict>, "revoke_org_api_key", {
3533
+ id: number;
3534
+ name: string;
3535
+ created_at: string;
3536
+ created_by: string;
3537
+ last_used_at?: string | null | undefined;
3538
+ last_used_from_addr: string;
3539
+ revoked: boolean;
3540
+ project_id?: string | null | undefined;
3541
+ }>;
3542
+ readonly revokePermissionFromProject: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
3543
+ project_id: z.ZodString;
3544
+ permission_id: z.ZodString;
3545
+ }, z.core.$strict>, "revoke_permission_from_project", {
3546
+ id: string;
3547
+ granted_to_email: string;
3548
+ granted_at: string;
3549
+ revoked_at?: string | null | undefined;
3550
+ }>;
3551
+ readonly sendNeonAuthTestEmail: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
3552
+ project_id: z.ZodString;
3553
+ branch_id: z.ZodString;
3554
+ host: z.ZodString;
3555
+ port: z.ZodInt;
3556
+ username: z.ZodString;
3557
+ password: z.ZodString;
3558
+ sender_email: z.ZodString;
3559
+ sender_name: z.ZodString;
3560
+ recipient_email: z.ZodEmail;
3561
+ }, z.core.$strict>, "send_neon_auth_test_email", {
3562
+ success: boolean;
3563
+ error_message?: string | null | undefined;
3564
+ }>;
3565
+ readonly setDefaultProjectBranch: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
3566
+ project_id: z.ZodString;
3567
+ branch_id: z.ZodString;
3568
+ }, z.core.$strict>, "set_default_project_branch", {
3569
+ branch: {
3570
+ id: string;
3571
+ project_id: string;
3572
+ parent_id?: string | null | undefined;
3573
+ parent_lsn?: string | null | undefined;
3574
+ parent_timestamp?: string | null | undefined;
3575
+ name: string;
3576
+ current_state: raw.BranchState;
3577
+ pending_state?: string | null | undefined;
3578
+ state_changed_at: string;
3579
+ logical_size?: number | null | undefined;
3580
+ creation_source: string;
3581
+ primary?: boolean | null | undefined;
3582
+ default: boolean;
3583
+ protected: boolean;
3584
+ cpu_used_sec: number;
3585
+ compute_time_seconds: number;
3586
+ active_time_seconds: number;
3587
+ written_data_bytes: number;
3588
+ data_transfer_bytes: number;
3589
+ created_at: string;
3590
+ updated_at: string;
3591
+ ttl_interval_seconds?: number | null | undefined;
3592
+ expires_at?: string | null | undefined;
3593
+ last_reset_at?: string | null | undefined;
3594
+ created_by?: {
3595
+ name?: string | null | undefined;
3596
+ image?: string | null | undefined;
3597
+ } | null | undefined;
3598
+ init_source?: string | null | undefined;
3599
+ restore_status?: string | null | undefined;
3600
+ restored_from?: string | null | undefined;
3601
+ restored_as?: string | null | undefined;
3602
+ restricted_actions?: {
3603
+ name: string;
3604
+ reason: string;
3605
+ }[] | null | undefined;
3606
+ recovery?: {
3607
+ deleted_at: string;
3608
+ recoverable_until: string;
3609
+ deletion_method: "user" | "ttl";
3610
+ } | null | undefined;
3611
+ };
3612
+ operations: {
3613
+ id: string;
3614
+ project_id: string;
3615
+ branch_id?: string | null | undefined;
3616
+ endpoint_id?: string | null | undefined;
3617
+ action: raw.OperationAction;
3618
+ status: raw.OperationStatus;
3619
+ error?: string | null | undefined;
3620
+ failures_count: number;
3621
+ retry_at?: string | null | undefined;
3622
+ created_at: string;
3623
+ updated_at: string;
3624
+ total_duration_ms: number;
3625
+ }[];
3626
+ }>;
3627
+ readonly setOrganizationSpendingLimit: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
3628
+ org_id: z.ZodString;
3629
+ spending_limit_cents: z.ZodInt;
3630
+ }, z.core.$strict>, "set_organization_spending_limit", {
3631
+ spending_limit_cents: number | null;
3632
+ }>;
3633
+ readonly setProjectMemberRole: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
3634
+ project_id: z.ZodString;
3635
+ member_id: z.ZodUUID;
3636
+ confirm_self_demotion: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
3637
+ role: z.ZodEnum<{
3638
+ viewer: "viewer";
3639
+ editor: "editor";
3640
+ admin: "admin";
3641
+ }>;
3642
+ }, z.core.$strict>, "set_project_member_role", {
3643
+ project_id: string;
3644
+ member_id: string;
3645
+ user_id: string;
3646
+ email?: string | null | undefined;
3647
+ name?: string | null | undefined;
3648
+ org_role: raw.ProjectMemberOrgRole;
3649
+ project_role?: raw.ProjectRole | null | undefined;
3650
+ org_default_project_permission?: raw.ProjectPermissionLevel | null | undefined;
3651
+ explicit_project_permission?: raw.ProjectPermissionLevel | null | undefined;
3652
+ effective_project_permission?: raw.ProjectPermissionLevel | null | undefined;
3653
+ credential_rotation_recommended?: boolean | null | undefined;
3654
+ org_api_key_rotation_recommended?: boolean | null | undefined;
3655
+ }>;
3656
+ readonly setSnapshotSchedule: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
3657
+ project_id: z.ZodString;
3658
+ branch_id: z.ZodString;
3659
+ schedule: z.ZodArray<z.ZodObject<{
3660
+ frequency: z.ZodString;
3661
+ hour: z.ZodOptional<z.ZodInt>;
3662
+ day: z.ZodOptional<z.ZodInt>;
3663
+ month: z.ZodOptional<z.ZodInt>;
3664
+ retention_seconds: z.ZodOptional<z.ZodInt>;
3665
+ }, z.core.$strict>>;
3666
+ }, z.core.$strict>, "set_snapshot_schedule", {
3667
+ [x: string]: unknown;
3668
+ }>;
3669
+ readonly startAnonymization: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
3670
+ project_id: z.ZodString;
3671
+ branch_id: z.ZodString;
3672
+ }, z.core.$strict>, "start_anonymization", {
3673
+ project_id: string;
3674
+ branch_id: string;
3675
+ state: string;
3676
+ status_message?: string | null | undefined;
3677
+ created_at: string;
3678
+ updated_at: string;
3679
+ failed_at?: string | null | undefined;
3680
+ last_run?: {
3681
+ started_at?: string | null | undefined;
3682
+ completed_at?: string | null | undefined;
3683
+ triggered_by?: string | null | undefined;
3684
+ triggered_by_username?: string | null | undefined;
3685
+ masked_columns?: number | null | undefined;
3686
+ } | null | undefined;
3687
+ }>;
3688
+ readonly startProjectEndpoint: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
3689
+ project_id: z.ZodString;
3690
+ endpoint_id: z.ZodString;
3691
+ }, z.core.$strict>, "start_project_endpoint", {
3692
+ endpoint: {
3693
+ host: string;
3694
+ id: string;
3695
+ name?: string | null | undefined;
3696
+ project_id: string;
3697
+ branch_id: string;
3698
+ autoscaling_limit_min_cu: raw.ComputeUnit;
3699
+ autoscaling_limit_max_cu: raw.ComputeUnit;
3700
+ region_id: string;
3701
+ type: raw.EndpointType;
3702
+ current_state: raw.EndpointState;
3703
+ pending_state?: raw.EndpointState | null | undefined;
3704
+ settings: {
3705
+ pg_settings?: {
3706
+ [x: string]: string;
3707
+ } | null | undefined;
3708
+ pgbouncer_settings?: {
3709
+ [x: string]: string;
3710
+ } | null | undefined;
3711
+ preload_libraries?: {
3712
+ use_defaults?: boolean | null | undefined;
3713
+ enabled_libraries?: string[] | null | undefined;
3714
+ } | null | undefined;
3715
+ };
3716
+ pooler_enabled: boolean;
3717
+ pooler_mode: raw.EndpointPoolerMode;
3718
+ disabled: boolean;
3719
+ passwordless_access: boolean;
3720
+ last_active?: string | null | undefined;
3721
+ creation_source: string;
3722
+ created_at: string;
3723
+ updated_at: string;
3724
+ started_at?: string | null | undefined;
3725
+ suspended_at?: string | null | undefined;
3726
+ proxy_host: string;
3727
+ suspend_timeout_seconds: raw.SuspendTimeoutSeconds;
3728
+ provisioner: raw.Provisioner;
3729
+ compute_release_version?: string | null | undefined;
3730
+ };
3731
+ operations: {
3732
+ id: string;
3733
+ project_id: string;
3734
+ branch_id?: string | null | undefined;
3735
+ endpoint_id?: string | null | undefined;
3736
+ action: raw.OperationAction;
3737
+ status: raw.OperationStatus;
3738
+ error?: string | null | undefined;
3739
+ failures_count: number;
3740
+ retry_at?: string | null | undefined;
3741
+ created_at: string;
3742
+ updated_at: string;
3743
+ total_duration_ms: number;
3744
+ }[];
3745
+ }>;
3746
+ readonly suspendProjectEndpoint: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
3747
+ project_id: z.ZodString;
3748
+ endpoint_id: z.ZodString;
3749
+ }, z.core.$strict>, "suspend_project_endpoint", {
3750
+ endpoint: {
3751
+ host: string;
3752
+ id: string;
3753
+ name?: string | null | undefined;
3754
+ project_id: string;
3755
+ branch_id: string;
3756
+ autoscaling_limit_min_cu: raw.ComputeUnit;
3757
+ autoscaling_limit_max_cu: raw.ComputeUnit;
3758
+ region_id: string;
3759
+ type: raw.EndpointType;
3760
+ current_state: raw.EndpointState;
3761
+ pending_state?: raw.EndpointState | null | undefined;
3762
+ settings: {
3763
+ pg_settings?: {
3764
+ [x: string]: string;
3765
+ } | null | undefined;
3766
+ pgbouncer_settings?: {
3767
+ [x: string]: string;
3768
+ } | null | undefined;
3769
+ preload_libraries?: {
3770
+ use_defaults?: boolean | null | undefined;
3771
+ enabled_libraries?: string[] | null | undefined;
3772
+ } | null | undefined;
3773
+ };
3774
+ pooler_enabled: boolean;
3775
+ pooler_mode: raw.EndpointPoolerMode;
3776
+ disabled: boolean;
3777
+ passwordless_access: boolean;
3778
+ last_active?: string | null | undefined;
3779
+ creation_source: string;
3780
+ created_at: string;
3781
+ updated_at: string;
3782
+ started_at?: string | null | undefined;
3783
+ suspended_at?: string | null | undefined;
3784
+ proxy_host: string;
3785
+ suspend_timeout_seconds: raw.SuspendTimeoutSeconds;
3786
+ provisioner: raw.Provisioner;
3787
+ compute_release_version?: string | null | undefined;
3788
+ };
3789
+ operations: {
3790
+ id: string;
3791
+ project_id: string;
3792
+ branch_id?: string | null | undefined;
3793
+ endpoint_id?: string | null | undefined;
3794
+ action: raw.OperationAction;
3795
+ status: raw.OperationStatus;
3796
+ error?: string | null | undefined;
3797
+ failures_count: number;
3798
+ retry_at?: string | null | undefined;
3799
+ created_at: string;
3800
+ updated_at: string;
3801
+ total_duration_ms: number;
3802
+ }[];
3803
+ }>;
3804
+ readonly transferNeonAuthProviderProject: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
3805
+ project_id: z.ZodString;
3806
+ auth_provider: z.ZodEnum<{
3807
+ mock: "mock";
3808
+ stack: "stack";
3809
+ better_auth: "better_auth";
3810
+ }>;
3811
+ }, z.core.$strict>, "transfer_neon_auth_provider_project", {
3812
+ url: string;
3813
+ }>;
3814
+ readonly transferProjectsFromOrgToOrg: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
3815
+ source_org_id: z.ZodString;
3816
+ destination_org_id: z.ZodString;
3817
+ project_ids: z.ZodArray<z.ZodString>;
3818
+ }, z.core.$strict>, "transfer_projects_from_org_to_org", {
3819
+ [x: string]: unknown;
3820
+ }>;
3821
+ readonly transferProjectsFromUserToOrg: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
3822
+ destination_org_id: z.ZodString;
3823
+ project_ids: z.ZodArray<z.ZodString>;
3824
+ }, z.core.$strict>, "transfer_projects_from_user_to_org", {
3825
+ [x: string]: unknown;
3826
+ }>;
3827
+ readonly updateBranchNeonAuthOauthProvider: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
3828
+ project_id: z.ZodString;
3829
+ branch_id: z.ZodString;
3830
+ oauth_provider_id: z.ZodEnum<{
3831
+ github: "github";
3832
+ google: "google";
3833
+ microsoft: "microsoft";
3834
+ vercel: "vercel";
3835
+ }>;
3836
+ client_id: z.ZodOptional<z.ZodString>;
3837
+ client_secret: z.ZodOptional<z.ZodString>;
3838
+ microsoft_tenant_id: z.ZodOptional<z.ZodString>;
3839
+ }, z.core.$strict>, "update_branch_neon_auth_oauth_provider", {
3840
+ id: raw.NeonAuthOauthProviderId;
3841
+ type: raw.NeonAuthOauthProviderType;
3842
+ client_id?: string | null | undefined;
3843
+ client_secret?: string | null | undefined;
3844
+ }>;
3845
+ readonly updateMaskingRules: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
3846
+ project_id: z.ZodString;
3847
+ branch_id: z.ZodString;
3848
+ masking_rules: z.ZodArray<z.ZodObject<{
3849
+ database_name: z.ZodString;
3850
+ schema_name: z.ZodString;
3851
+ table_name: z.ZodString;
3852
+ column_name: z.ZodString;
3853
+ masking_function: z.ZodOptional<z.ZodString>;
3854
+ masking_value: z.ZodOptional<z.ZodString>;
3855
+ }, z.core.$strict>>;
3856
+ }, z.core.$strict>, "update_masking_rules", {
3857
+ masking_rules: {
3858
+ database_name: string;
3859
+ schema_name: string;
3860
+ table_name: string;
3861
+ column_name: string;
3862
+ masking_function?: string | null | undefined;
3863
+ masking_value?: string | null | undefined;
3864
+ }[];
3865
+ }>;
3866
+ readonly updateNeonAuthAllowLocalhost: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
3867
+ project_id: z.ZodString;
3868
+ branch_id: z.ZodString;
3869
+ allow_localhost: z.ZodBoolean;
3870
+ }, z.core.$strict>, "update_neon_auth_allow_localhost", {
3871
+ allow_localhost: boolean;
3872
+ }>;
3873
+ readonly updateNeonAuthConfig: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
3874
+ project_id: z.ZodString;
3875
+ branch_id: z.ZodString;
3876
+ name: z.ZodString;
3877
+ }, z.core.$strict>, "update_neon_auth_config", {
3878
+ name: string;
3879
+ }>;
3880
+ readonly updateNeonAuthEmailAndPasswordConfig: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
3881
+ project_id: z.ZodString;
3882
+ branch_id: z.ZodString;
3883
+ enabled: z.ZodOptional<z.ZodBoolean>;
3884
+ email_verification_method: z.ZodOptional<z.ZodEnum<{
3885
+ link: "link";
3886
+ otp: "otp";
3887
+ }>>;
3888
+ require_email_verification: z.ZodOptional<z.ZodBoolean>;
3889
+ auto_sign_in_after_verification: z.ZodOptional<z.ZodBoolean>;
3890
+ send_verification_email_on_sign_up: z.ZodOptional<z.ZodBoolean>;
3891
+ send_verification_email_on_sign_in: z.ZodOptional<z.ZodBoolean>;
3892
+ disable_sign_up: z.ZodOptional<z.ZodBoolean>;
3893
+ }, z.core.$strict>, "update_neon_auth_email_and_password_config", {
3894
+ enabled: boolean;
3895
+ email_verification_method: raw.NeonAuthEmailVerificationMethod;
3896
+ require_email_verification: boolean;
3897
+ auto_sign_in_after_verification: boolean;
3898
+ send_verification_email_on_sign_up: boolean;
3899
+ send_verification_email_on_sign_in: boolean;
3900
+ disable_sign_up: boolean;
3901
+ }>;
3902
+ readonly updateNeonAuthEmailProvider: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
3903
+ project_id: z.ZodString;
3904
+ branch_id: z.ZodString;
3905
+ body: z.ZodDiscriminatedUnion<[z.ZodObject<{
3906
+ host: z.ZodOptional<z.ZodString>;
3907
+ port: z.ZodOptional<z.ZodInt>;
3908
+ username: z.ZodOptional<z.ZodString>;
3909
+ password: z.ZodOptional<z.ZodString>;
3910
+ sender_email: z.ZodOptional<z.ZodString>;
3911
+ sender_name: z.ZodOptional<z.ZodString>;
3912
+ type: z.ZodLiteral<"standard">;
3913
+ }, z.core.$strict>, z.ZodObject<{
3914
+ sender_email: z.ZodOptional<z.ZodString>;
3915
+ sender_name: z.ZodOptional<z.ZodString>;
3916
+ type: z.ZodLiteral<"shared">;
3917
+ }, z.core.$strict>], "type">;
3918
+ }, z.core.$strict>, "update_neon_auth_email_provider", {
3919
+ type: "standard";
3920
+ host: string;
3921
+ port: number;
3922
+ username: string;
3923
+ password: string;
3924
+ sender_email: string;
3925
+ sender_name: string;
3926
+ } | {
3927
+ type: "shared";
3928
+ sender_email?: string | null | undefined;
3929
+ sender_name?: string | null | undefined;
3930
+ }>;
3931
+ readonly updateNeonAuthEmailServer: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
3932
+ project_id: z.ZodString;
3933
+ body: z.ZodDiscriminatedUnion<[z.ZodObject<{
3934
+ host: z.ZodOptional<z.ZodString>;
3935
+ port: z.ZodOptional<z.ZodInt>;
3936
+ username: z.ZodOptional<z.ZodString>;
3937
+ password: z.ZodOptional<z.ZodString>;
3938
+ sender_email: z.ZodOptional<z.ZodString>;
3939
+ sender_name: z.ZodOptional<z.ZodString>;
3940
+ type: z.ZodLiteral<"standard">;
3941
+ }, z.core.$strict>, z.ZodObject<{
3942
+ sender_email: z.ZodOptional<z.ZodString>;
3943
+ sender_name: z.ZodOptional<z.ZodString>;
3944
+ type: z.ZodLiteral<"shared">;
3945
+ }, z.core.$strict>], "type">;
3946
+ }, z.core.$strict>, "update_neon_auth_email_server", {
3947
+ type: "standard";
3948
+ host: string;
3949
+ port: number;
3950
+ username: string;
3951
+ password: string;
3952
+ sender_email: string;
3953
+ sender_name: string;
3954
+ } | {
3955
+ type: "shared";
3956
+ sender_email?: string | null | undefined;
3957
+ sender_name?: string | null | undefined;
3958
+ }>;
3959
+ readonly updateNeonAuthMagicLinkPlugin: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
3960
+ project_id: z.ZodString;
3961
+ branch_id: z.ZodString;
3962
+ enabled: z.ZodOptional<z.ZodBoolean>;
3963
+ expires_in: z.ZodOptional<z.ZodInt>;
3964
+ disable_sign_up: z.ZodOptional<z.ZodBoolean>;
3965
+ }, z.core.$strict>, "update_neon_auth_magic_link_plugin", {
3966
+ enabled: boolean;
3967
+ expires_in: number;
3968
+ disable_sign_up: boolean;
3969
+ }>;
3970
+ readonly updateNeonAuthOauthProvider: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
3971
+ project_id: z.ZodString;
3972
+ oauth_provider_id: z.ZodEnum<{
3973
+ github: "github";
3974
+ google: "google";
3975
+ microsoft: "microsoft";
3976
+ vercel: "vercel";
3977
+ }>;
3978
+ client_id: z.ZodOptional<z.ZodString>;
3979
+ client_secret: z.ZodOptional<z.ZodString>;
3980
+ microsoft_tenant_id: z.ZodOptional<z.ZodString>;
3981
+ }, z.core.$strict>, "update_neon_auth_oauth_provider", {
3982
+ id: raw.NeonAuthOauthProviderId;
3983
+ type: raw.NeonAuthOauthProviderType;
3984
+ client_id?: string | null | undefined;
3985
+ client_secret?: string | null | undefined;
3986
+ }>;
3987
+ readonly updateNeonAuthOrganizationPlugin: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
3988
+ project_id: z.ZodString;
3989
+ branch_id: z.ZodString;
3990
+ enabled: z.ZodOptional<z.ZodBoolean>;
3991
+ organization_limit: z.ZodOptional<z.ZodInt>;
3992
+ membership_limit: z.ZodOptional<z.ZodInt>;
3993
+ creator_role: z.ZodOptional<z.ZodEnum<{
3994
+ admin: "admin";
3995
+ owner: "owner";
3996
+ }>>;
3997
+ send_invitation_email: z.ZodOptional<z.ZodBoolean>;
3998
+ }, z.core.$strict>, "update_neon_auth_organization_plugin", {
3999
+ enabled: boolean;
4000
+ organization_limit: number;
4001
+ membership_limit: number;
4002
+ creator_role: "admin" | "owner";
4003
+ send_invitation_email: boolean;
4004
+ }>;
4005
+ readonly updateNeonAuthPhoneNumberPlugin: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
4006
+ project_id: z.ZodString;
4007
+ branch_id: z.ZodString;
4008
+ enabled: z.ZodOptional<z.ZodBoolean>;
4009
+ otp_expires_in: z.ZodOptional<z.ZodInt>;
4010
+ }, z.core.$strict>, "update_neon_auth_phone_number_plugin", {
4011
+ enabled: boolean;
4012
+ otp_expires_in?: number | null | undefined;
4013
+ }>;
4014
+ readonly updateNeonAuthUserRole: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
4015
+ project_id: z.ZodString;
4016
+ branch_id: z.ZodString;
4017
+ auth_user_id: z.ZodString;
4018
+ roles: z.ZodArray<z.ZodString>;
4019
+ }, z.core.$strict>, "update_neon_auth_user_role", {
4020
+ id: string;
4021
+ }>;
4022
+ readonly updateNeonAuthWebhookConfig: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
4023
+ project_id: z.ZodString;
4024
+ branch_id: z.ZodString;
4025
+ enabled: z.ZodBoolean;
4026
+ webhook_url: z.ZodOptional<z.ZodString>;
4027
+ enabled_events: z.ZodOptional<z.ZodArray<z.ZodEnum<{
4028
+ "user.before_create": "user.before_create";
4029
+ "user.created": "user.created";
4030
+ "send.otp": "send.otp";
4031
+ "send.magic_link": "send.magic_link";
4032
+ "organization.invitation.created": "organization.invitation.created";
4033
+ "organization.invitation.accepted": "organization.invitation.accepted";
4034
+ "phone_number.verified": "phone_number.verified";
4035
+ }>>>;
4036
+ timeout_seconds: z.ZodOptional<z.ZodInt>;
4037
+ }, z.core.$strict>, "update_neon_auth_webhook_config", {
4038
+ enabled: boolean;
4039
+ webhook_url?: string | null | undefined;
4040
+ enabled_events?: ("user.before_create" | "user.created" | "send.otp" | "send.magic_link" | "organization.invitation.created" | "organization.invitation.accepted" | "phone_number.verified")[] | null | undefined;
4041
+ timeout_seconds?: number | null | undefined;
4042
+ }>;
4043
+ readonly updateOrganizationMember: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
4044
+ org_id: z.ZodString;
4045
+ member_id: z.ZodUUID;
4046
+ role: z.ZodEnum<{
4047
+ viewer: "viewer";
4048
+ editor: "editor";
4049
+ admin: "admin";
4050
+ member: "member";
4051
+ collaborator: "collaborator";
4052
+ }>;
4053
+ }, z.core.$strict>, "update_organization_member", {
4054
+ id: string;
4055
+ user_id: string;
4056
+ org_id: string;
4057
+ role: raw.MemberRole;
4058
+ joined_at?: string | null | undefined;
4059
+ }>;
4060
+ readonly updateProject: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
4061
+ project_id: z.ZodString;
4062
+ settings: z.ZodOptional<z.ZodObject<{
4063
+ quota: z.ZodOptional<z.ZodObject<{
4064
+ active_time_seconds: z.ZodOptional<z.ZodInt>;
4065
+ compute_time_seconds: z.ZodOptional<z.ZodInt>;
4066
+ written_data_bytes: z.ZodOptional<z.ZodInt>;
4067
+ data_transfer_bytes: z.ZodOptional<z.ZodInt>;
4068
+ logical_size_bytes: z.ZodOptional<z.ZodInt>;
4069
+ }, z.core.$strict>>;
4070
+ allowed_ips: z.ZodOptional<z.ZodObject<{
4071
+ ips: z.ZodOptional<z.ZodArray<z.ZodString>>;
4072
+ protected_branches_only: z.ZodOptional<z.ZodBoolean>;
4073
+ }, z.core.$strict>>;
4074
+ enable_logical_replication: z.ZodOptional<z.ZodBoolean>;
4075
+ maintenance_window: z.ZodOptional<z.ZodObject<{
4076
+ weekdays: z.ZodArray<z.ZodInt>;
4077
+ start_time: z.ZodString;
4078
+ end_time: z.ZodString;
4079
+ }, z.core.$strict>>;
4080
+ block_public_connections: z.ZodOptional<z.ZodBoolean>;
4081
+ block_vpc_connections: z.ZodOptional<z.ZodBoolean>;
4082
+ audit_log_level: z.ZodOptional<z.ZodEnum<{
4083
+ base: "base";
4084
+ extended: "extended";
4085
+ full: "full";
4086
+ }>>;
4087
+ hipaa: z.ZodOptional<z.ZodBoolean>;
4088
+ preload_libraries: z.ZodOptional<z.ZodObject<{
4089
+ use_defaults: z.ZodOptional<z.ZodBoolean>;
4090
+ enabled_libraries: z.ZodOptional<z.ZodArray<z.ZodString>>;
4091
+ }, z.core.$strict>>;
4092
+ }, z.core.$strict>>;
4093
+ name: z.ZodOptional<z.ZodString>;
4094
+ default_endpoint_settings: z.ZodOptional<z.ZodObject<{
4095
+ pg_settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4096
+ pgbouncer_settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4097
+ autoscaling_limit_min_cu: z.ZodOptional<z.ZodNumber>;
4098
+ autoscaling_limit_max_cu: z.ZodOptional<z.ZodNumber>;
4099
+ suspend_timeout_seconds: z.ZodOptional<z.ZodInt>;
4100
+ }, z.core.$strict>>;
4101
+ history_retention_seconds: z.ZodOptional<z.ZodInt>;
4102
+ }, z.core.$strict>, "update_project", {
4103
+ project: {
4104
+ data_storage_bytes_hour: number;
4105
+ data_transfer_bytes: number;
4106
+ written_data_bytes: number;
4107
+ compute_time_seconds: number;
4108
+ active_time_seconds: number;
4109
+ cpu_used_sec: number;
4110
+ id: string;
4111
+ platform_id: string;
4112
+ region_id: string;
4113
+ name: string;
4114
+ provisioner: raw.Provisioner;
4115
+ default_endpoint_settings?: {
4116
+ pg_settings?: {
4117
+ [x: string]: string;
4118
+ } | null | undefined;
4119
+ pgbouncer_settings?: {
4120
+ [x: string]: string;
4121
+ } | null | undefined;
4122
+ autoscaling_limit_min_cu?: number | null | undefined;
4123
+ autoscaling_limit_max_cu?: number | null | undefined;
4124
+ suspend_timeout_seconds?: number | null | undefined;
4125
+ } | null | undefined;
4126
+ settings?: {
4127
+ quota?: {
4128
+ active_time_seconds?: number | null | undefined;
4129
+ compute_time_seconds?: number | null | undefined;
4130
+ written_data_bytes?: number | null | undefined;
4131
+ data_transfer_bytes?: number | null | undefined;
4132
+ logical_size_bytes?: number | null | undefined;
4133
+ } | null | undefined;
4134
+ allowed_ips?: {
4135
+ ips?: string[] | null | undefined;
4136
+ protected_branches_only?: boolean | null | undefined;
4137
+ } | null | undefined;
4138
+ enable_logical_replication?: boolean | null | undefined;
4139
+ maintenance_window?: {
4140
+ weekdays: number[];
4141
+ start_time: string;
4142
+ end_time: string;
4143
+ } | null | undefined;
4144
+ block_public_connections?: boolean | null | undefined;
4145
+ block_vpc_connections?: boolean | null | undefined;
4146
+ audit_log_level?: raw.ProjectAuditLogLevel | null | undefined;
4147
+ hipaa?: boolean | null | undefined;
4148
+ preload_libraries?: {
4149
+ use_defaults?: boolean | null | undefined;
4150
+ enabled_libraries?: string[] | null | undefined;
4151
+ } | null | undefined;
4152
+ } | null | undefined;
4153
+ pg_version: raw.PgVersion;
4154
+ proxy_host: string;
4155
+ branch_logical_size_limit: number;
4156
+ branch_logical_size_limit_bytes: number;
4157
+ store_passwords: boolean;
4158
+ maintenance_starts_at?: string | null | undefined;
4159
+ creation_source: string;
4160
+ history_retention_seconds: number;
4161
+ created_at: string;
4162
+ updated_at: string;
4163
+ synthetic_storage_size?: number | null | undefined;
4164
+ consumption_period_start: string;
4165
+ consumption_period_end: string;
4166
+ quota_reset_at?: string | null | undefined;
4167
+ owner_id: string;
4168
+ owner?: {
4169
+ email: string;
4170
+ name: string;
4171
+ branches_limit: number;
4172
+ subscription_type: raw.BillingSubscriptionType;
4173
+ } | null | undefined;
4174
+ compute_last_active_at?: string | null | undefined;
4175
+ org_id?: string | null | undefined;
4176
+ maintenance_scheduled_for?: string | null | undefined;
4177
+ hipaa_enabled_at?: string | null | undefined;
4178
+ effective_project_permission?: (raw.ProjectPermissionLevel | null) | undefined;
4179
+ };
4180
+ operations: {
4181
+ id: string;
4182
+ project_id: string;
4183
+ branch_id?: string | null | undefined;
4184
+ endpoint_id?: string | null | undefined;
4185
+ action: raw.OperationAction;
4186
+ status: raw.OperationStatus;
4187
+ error?: string | null | undefined;
4188
+ failures_count: number;
4189
+ retry_at?: string | null | undefined;
4190
+ created_at: string;
4191
+ updated_at: string;
4192
+ total_duration_ms: number;
4193
+ }[];
4194
+ }>;
4195
+ readonly updateProjectBranch: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
4196
+ project_id: z.ZodString;
4197
+ branch_id: z.ZodString;
4198
+ name: z.ZodOptional<z.ZodString>;
4199
+ protected: z.ZodOptional<z.ZodBoolean>;
4200
+ expires_at: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
4201
+ }, z.core.$strict>, "update_project_branch", {
4202
+ branch: {
4203
+ id: string;
4204
+ project_id: string;
4205
+ parent_id?: string | null | undefined;
4206
+ parent_lsn?: string | null | undefined;
4207
+ parent_timestamp?: string | null | undefined;
4208
+ name: string;
4209
+ current_state: raw.BranchState;
4210
+ pending_state?: string | null | undefined;
4211
+ state_changed_at: string;
4212
+ logical_size?: number | null | undefined;
4213
+ creation_source: string;
4214
+ primary?: boolean | null | undefined;
4215
+ default: boolean;
4216
+ protected: boolean;
4217
+ cpu_used_sec: number;
4218
+ compute_time_seconds: number;
4219
+ active_time_seconds: number;
4220
+ written_data_bytes: number;
4221
+ data_transfer_bytes: number;
4222
+ created_at: string;
4223
+ updated_at: string;
4224
+ ttl_interval_seconds?: number | null | undefined;
4225
+ expires_at?: string | null | undefined;
4226
+ last_reset_at?: string | null | undefined;
4227
+ created_by?: {
4228
+ name?: string | null | undefined;
4229
+ image?: string | null | undefined;
4230
+ } | null | undefined;
4231
+ init_source?: string | null | undefined;
4232
+ restore_status?: string | null | undefined;
4233
+ restored_from?: string | null | undefined;
4234
+ restored_as?: string | null | undefined;
4235
+ restricted_actions?: {
4236
+ name: string;
4237
+ reason: string;
4238
+ }[] | null | undefined;
4239
+ recovery?: {
4240
+ deleted_at: string;
4241
+ recoverable_until: string;
4242
+ deletion_method: "user" | "ttl";
4243
+ } | null | undefined;
4244
+ };
4245
+ operations: {
4246
+ id: string;
4247
+ project_id: string;
4248
+ branch_id?: string | null | undefined;
4249
+ endpoint_id?: string | null | undefined;
4250
+ action: raw.OperationAction;
4251
+ status: raw.OperationStatus;
4252
+ error?: string | null | undefined;
4253
+ failures_count: number;
4254
+ retry_at?: string | null | undefined;
4255
+ created_at: string;
4256
+ updated_at: string;
4257
+ total_duration_ms: number;
4258
+ }[];
4259
+ }>;
4260
+ readonly updateProjectBranchDataAPI: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
4261
+ project_id: z.ZodString;
4262
+ branch_id: z.ZodString;
4263
+ database_name: z.ZodString;
4264
+ db_aggregates_enabled: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
4265
+ db_anon_role: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4266
+ db_extra_search_path: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4267
+ db_max_rows: z.ZodOptional<z.ZodOptional<z.ZodInt>>;
4268
+ db_schemas: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
4269
+ jwt_role_claim_key: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4270
+ jwt_cache_max_lifetime: z.ZodOptional<z.ZodOptional<z.ZodInt>>;
4271
+ openapi_mode: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4272
+ server_cors_allowed_origins: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4273
+ server_timing_enabled: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
4274
+ }, z.core.$strict>, "update_project_branch_data_api", {
4275
+ [x: string]: unknown;
4276
+ }>;
4277
+ readonly updateProjectBranchDatabase: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
4278
+ project_id: z.ZodString;
4279
+ branch_id: z.ZodString;
4280
+ database_name: z.ZodString;
4281
+ name: z.ZodOptional<z.ZodString>;
4282
+ owner_name: z.ZodOptional<z.ZodString>;
4283
+ }, z.core.$strict>, "update_project_branch_database", {
4284
+ database: {
4285
+ id: number;
4286
+ branch_id: string;
4287
+ name: string;
4288
+ owner_name: string;
4289
+ created_at: string;
4290
+ updated_at: string;
4291
+ };
4292
+ operations: {
4293
+ id: string;
4294
+ project_id: string;
4295
+ branch_id?: string | null | undefined;
4296
+ endpoint_id?: string | null | undefined;
4297
+ action: raw.OperationAction;
4298
+ status: raw.OperationStatus;
4299
+ error?: string | null | undefined;
4300
+ failures_count: number;
4301
+ retry_at?: string | null | undefined;
4302
+ created_at: string;
4303
+ updated_at: string;
4304
+ total_duration_ms: number;
4305
+ }[];
4306
+ }>;
4307
+ readonly updateProjectBranchFunction: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
4308
+ project_id: z.ZodString;
4309
+ branch_id: z.ZodString;
4310
+ slug: z.ZodString;
4311
+ name: z.ZodNullable<z.ZodString>;
4312
+ }, z.core.$strict>, "update_project_branch_function", {
4313
+ function: {
4314
+ id: string;
4315
+ slug: string;
4316
+ name: string;
4317
+ invocation_url: string;
4318
+ current_deployment?: {
4319
+ id: number;
4320
+ status: "pending" | "building" | "completed" | "failed";
4321
+ memory_mib: number;
4322
+ runtime: string;
4323
+ created_at: string;
4324
+ environment?: string[] | null | undefined;
4325
+ error?: string | null | undefined;
4326
+ } | null | undefined;
4327
+ active_deployment?: {
4328
+ id: number;
4329
+ status: "pending" | "building" | "completed" | "failed";
4330
+ memory_mib: number;
4331
+ runtime: string;
4332
+ created_at: string;
4333
+ environment?: string[] | null | undefined;
4334
+ error?: string | null | undefined;
4335
+ } | null | undefined;
4336
+ created_at: string;
4337
+ };
4338
+ }>;
4339
+ readonly updateProjectEndpoint: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
4340
+ project_id: z.ZodString;
4341
+ endpoint_id: z.ZodString;
4342
+ branch_id: z.ZodOptional<z.ZodString>;
4343
+ autoscaling_limit_min_cu: z.ZodOptional<z.ZodNumber>;
4344
+ autoscaling_limit_max_cu: z.ZodOptional<z.ZodNumber>;
4345
+ provisioner: z.ZodOptional<z.ZodString>;
4346
+ settings: z.ZodOptional<z.ZodObject<{
4347
+ pg_settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4348
+ pgbouncer_settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4349
+ preload_libraries: z.ZodOptional<z.ZodObject<{
4350
+ use_defaults: z.ZodOptional<z.ZodBoolean>;
4351
+ enabled_libraries: z.ZodOptional<z.ZodArray<z.ZodString>>;
4352
+ }, z.core.$strict>>;
4353
+ }, z.core.$strict>>;
4354
+ pooler_enabled: z.ZodOptional<z.ZodBoolean>;
4355
+ pooler_mode: z.ZodOptional<z.ZodEnum<{
4356
+ transaction: "transaction";
4357
+ }>>;
4358
+ disabled: z.ZodOptional<z.ZodBoolean>;
4359
+ passwordless_access: z.ZodOptional<z.ZodBoolean>;
4360
+ suspend_timeout_seconds: z.ZodOptional<z.ZodInt>;
4361
+ name: z.ZodOptional<z.ZodString>;
4362
+ }, z.core.$strict>, "update_project_endpoint", {
4363
+ endpoint: {
4364
+ host: string;
4365
+ id: string;
4366
+ name?: string | null | undefined;
4367
+ project_id: string;
4368
+ branch_id: string;
4369
+ autoscaling_limit_min_cu: raw.ComputeUnit;
4370
+ autoscaling_limit_max_cu: raw.ComputeUnit;
4371
+ region_id: string;
4372
+ type: raw.EndpointType;
4373
+ current_state: raw.EndpointState;
4374
+ pending_state?: raw.EndpointState | null | undefined;
4375
+ settings: {
4376
+ pg_settings?: {
4377
+ [x: string]: string;
4378
+ } | null | undefined;
4379
+ pgbouncer_settings?: {
4380
+ [x: string]: string;
4381
+ } | null | undefined;
4382
+ preload_libraries?: {
4383
+ use_defaults?: boolean | null | undefined;
4384
+ enabled_libraries?: string[] | null | undefined;
4385
+ } | null | undefined;
4386
+ };
4387
+ pooler_enabled: boolean;
4388
+ pooler_mode: raw.EndpointPoolerMode;
4389
+ disabled: boolean;
4390
+ passwordless_access: boolean;
4391
+ last_active?: string | null | undefined;
4392
+ creation_source: string;
4393
+ created_at: string;
4394
+ updated_at: string;
4395
+ started_at?: string | null | undefined;
4396
+ suspended_at?: string | null | undefined;
4397
+ proxy_host: string;
4398
+ suspend_timeout_seconds: raw.SuspendTimeoutSeconds;
4399
+ provisioner: raw.Provisioner;
4400
+ compute_release_version?: string | null | undefined;
4401
+ };
4402
+ operations: {
4403
+ id: string;
4404
+ project_id: string;
4405
+ branch_id?: string | null | undefined;
4406
+ endpoint_id?: string | null | undefined;
4407
+ action: raw.OperationAction;
4408
+ status: raw.OperationStatus;
4409
+ error?: string | null | undefined;
4410
+ failures_count: number;
4411
+ retry_at?: string | null | undefined;
4412
+ created_at: string;
4413
+ updated_at: string;
4414
+ total_duration_ms: number;
4415
+ }[];
4416
+ }>;
4417
+ readonly updateSnapshot: (client: Client) => import("./lib/operation.js").NeonTool<z.ZodObject<{
4418
+ project_id: z.ZodString;
4419
+ snapshot_id: z.ZodString;
4420
+ name: z.ZodOptional<z.ZodString>;
4421
+ expires_at: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
4422
+ }, z.core.$strict>, "update_snapshot", {
4423
+ snapshot: {
4424
+ id: string;
4425
+ name: string;
4426
+ lsn?: string | null | undefined;
4427
+ timestamp?: string | null | undefined;
4428
+ source_branch_id?: string | null | undefined;
4429
+ created_at: string;
4430
+ expires_at?: string | null | undefined;
4431
+ manual?: boolean | null | undefined;
4432
+ full_size?: number | null | undefined;
4433
+ diff_size?: number | null | undefined;
4434
+ };
4435
+ }>;
4436
+ };
4437
+ //# sourceMappingURL=operations.gen.d.ts.map