@neon/tools 2.14.4 → 2.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +78 -1
- package/dist/effect.d.ts +22 -0
- package/dist/effect.d.ts.map +1 -0
- package/dist/effect.js +3 -0
- package/dist/generated/output.gen.d.ts +3418 -0
- package/dist/generated/output.gen.d.ts.map +1 -0
- package/dist/generated/output.gen.js +1498 -0
- package/dist/lib/custom/auth-config.d.ts +63 -1
- package/dist/lib/custom/auth-config.d.ts.map +1 -1
- package/dist/lib/custom/auth-config.js +21 -1
- package/dist/lib/custom/docs.d.ts +32 -2
- package/dist/lib/custom/docs.d.ts.map +1 -1
- package/dist/lib/custom/docs.js +16 -1
- package/dist/lib/custom/feedback.d.ts +7 -2
- package/dist/lib/custom/feedback.d.ts.map +1 -1
- package/dist/lib/custom/feedback.js +2 -0
- package/dist/lib/custom/fetch.d.ts +15 -1
- package/dist/lib/custom/fetch.d.ts.map +1 -1
- package/dist/lib/custom/fetch.js +9 -1
- package/dist/lib/custom/organizations.d.ts +23 -1
- package/dist/lib/custom/organizations.d.ts.map +1 -1
- package/dist/lib/custom/organizations.js +2 -0
- package/dist/lib/custom/resources.d.ts +15 -1
- package/dist/lib/custom/resources.d.ts.map +1 -1
- package/dist/lib/custom/resources.js +7 -1
- package/dist/lib/custom/sql/connection.js +1 -1
- package/dist/lib/custom/sql/describe-branch.d.ts +99 -1
- package/dist/lib/custom/sql/describe-branch.d.ts.map +1 -1
- package/dist/lib/custom/sql/describe-branch.js +9 -0
- package/dist/lib/custom/sql/inspect/inspect.d.ts +27 -1
- package/dist/lib/custom/sql/inspect/inspect.d.ts.map +1 -1
- package/dist/lib/custom/sql/inspect/inspect.js +15 -1
- package/dist/lib/custom/sql/migrations.d.ts +46 -2
- package/dist/lib/custom/sql/migrations.d.ts.map +1 -1
- package/dist/lib/custom/sql/migrations.js +26 -2
- package/dist/lib/custom/sql/query-tuning.d.ts +90 -2
- package/dist/lib/custom/sql/query-tuning.d.ts.map +1 -1
- package/dist/lib/custom/sql/query-tuning.js +28 -3
- package/dist/lib/custom/sql/run.d.ts +30 -3
- package/dist/lib/custom/sql/run.d.ts.map +1 -1
- package/dist/lib/custom/sql/run.js +11 -1
- package/dist/lib/custom/sql/schema.d.ts +76 -2
- package/dist/lib/custom/sql/schema.d.ts.map +1 -1
- package/dist/lib/custom/sql/schema.js +31 -2
- package/dist/lib/custom/sql/slow-queries.d.ts +15 -1
- package/dist/lib/custom/sql/slow-queries.d.ts.map +1 -1
- package/dist/lib/custom/sql/slow-queries.js +9 -1
- package/dist/lib/effect/errors.d.ts +51 -0
- package/dist/lib/effect/errors.d.ts.map +1 -0
- package/dist/lib/effect/errors.js +37 -0
- package/dist/lib/effect/tools.d.ts +56 -0
- package/dist/lib/effect/tools.d.ts.map +1 -0
- package/dist/lib/effect/tools.js +67 -0
- package/dist/lib/ergonomic/bind.d.ts +20 -6
- package/dist/lib/ergonomic/bind.d.ts.map +1 -1
- package/dist/lib/ergonomic/bind.js +2 -1
- package/dist/lib/ergonomic/catalog.d.ts +5333 -172
- package/dist/lib/ergonomic/catalog.d.ts.map +1 -1
- package/dist/lib/ergonomic/catalog.js +186 -1
- package/dist/lib/ergonomic/composed.d.ts +866 -12
- package/dist/lib/ergonomic/composed.d.ts.map +1 -1
- package/dist/lib/ergonomic/composed.js +34 -0
- package/dist/lib/mcp-json-schema.d.ts +20 -0
- package/dist/lib/mcp-json-schema.d.ts.map +1 -1
- package/dist/lib/mcp-json-schema.js +89 -1
- package/dist/lib/mcp-register.d.ts +1 -1
- package/dist/lib/mcp-register.d.ts.map +1 -1
- package/dist/lib/mcp-register.js +2 -1
- package/dist/lib/operation.d.ts +6 -1
- package/dist/lib/operation.d.ts.map +1 -1
- package/dist/mcp-v1.d.ts.map +1 -1
- package/dist/mcp-v1.js +3 -1
- package/dist/mcp.d.ts +3 -3
- package/dist/mcp.d.ts.map +1 -1
- package/dist/mcp.js +3 -3
- package/dist/operations.gen.d.ts +194 -194
- package/package.json +22 -3
|
@@ -0,0 +1,1498 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
// src/generated/output.gen.ts
|
|
3
|
+
const ComputeUnit = z.number();
|
|
4
|
+
const Provisioner = z.string();
|
|
5
|
+
const Pagination = z.looseObject({ cursor: z.string() });
|
|
6
|
+
const PaginationResponse = z.looseObject({ pagination: Pagination.nullish() });
|
|
7
|
+
const EmptyResponse = z.record(z.string(), z.unknown());
|
|
8
|
+
const PlanVersion = z.looseObject({
|
|
9
|
+
major: z.number(),
|
|
10
|
+
minor: z.number()
|
|
11
|
+
});
|
|
12
|
+
const PlanDetails = z.looseObject({
|
|
13
|
+
name: z.string(),
|
|
14
|
+
version: PlanVersion.nullish()
|
|
15
|
+
});
|
|
16
|
+
const AddProjectJWKSRequest = z.looseObject({
|
|
17
|
+
jwks_url: z.string(),
|
|
18
|
+
provider_name: z.string(),
|
|
19
|
+
branch_id: z.string().nullish(),
|
|
20
|
+
jwt_audience: z.string().nullish(),
|
|
21
|
+
role_names: z.array(z.string()).nullish(),
|
|
22
|
+
skip_role_creation: z.boolean().nullish()
|
|
23
|
+
});
|
|
24
|
+
const JWKS = z.looseObject({
|
|
25
|
+
id: z.string(),
|
|
26
|
+
project_id: z.string(),
|
|
27
|
+
branch_id: z.string().nullish(),
|
|
28
|
+
jwks_url: z.string(),
|
|
29
|
+
provider_name: z.string(),
|
|
30
|
+
created_at: z.string(),
|
|
31
|
+
updated_at: z.string(),
|
|
32
|
+
jwt_audience: z.string().nullish(),
|
|
33
|
+
role_names: z.array(z.string()).nullish()
|
|
34
|
+
});
|
|
35
|
+
const ProjectJWKSResponse = z.looseObject({ jwks: z.array(JWKS) });
|
|
36
|
+
const AdvisorCategory = z.string();
|
|
37
|
+
const AdvisorIssue = z.looseObject({
|
|
38
|
+
name: z.string(),
|
|
39
|
+
title: z.string(),
|
|
40
|
+
level: z.string(),
|
|
41
|
+
facing: z.string(),
|
|
42
|
+
categories: z.array(AdvisorCategory),
|
|
43
|
+
description: z.string(),
|
|
44
|
+
detail: z.string(),
|
|
45
|
+
remediation: z.string(),
|
|
46
|
+
metadata: z.record(z.string(), z.unknown()),
|
|
47
|
+
cache_key: z.string()
|
|
48
|
+
});
|
|
49
|
+
const ApiKeyCreateRequest = z.looseObject({ key_name: z.string() });
|
|
50
|
+
const OrgApiKeyCreateRequest = z.looseObject({
|
|
51
|
+
key_name: z.string(),
|
|
52
|
+
project_id: z.string().nullish()
|
|
53
|
+
});
|
|
54
|
+
const ApiKeyCreateResponse = z.looseObject({
|
|
55
|
+
id: z.number(),
|
|
56
|
+
key: z.string(),
|
|
57
|
+
name: z.string(),
|
|
58
|
+
created_at: z.string(),
|
|
59
|
+
created_by: z.string()
|
|
60
|
+
});
|
|
61
|
+
const OrgApiKeyCreateResponse = z.looseObject({
|
|
62
|
+
id: z.number(),
|
|
63
|
+
key: z.string(),
|
|
64
|
+
name: z.string(),
|
|
65
|
+
created_at: z.string(),
|
|
66
|
+
created_by: z.string(),
|
|
67
|
+
project_id: z.string().nullish()
|
|
68
|
+
});
|
|
69
|
+
const ApiKeyRevokeResponse = z.looseObject({
|
|
70
|
+
id: z.number(),
|
|
71
|
+
name: z.string(),
|
|
72
|
+
created_at: z.string(),
|
|
73
|
+
created_by: z.string(),
|
|
74
|
+
last_used_at: z.string().nullable().nullish(),
|
|
75
|
+
last_used_from_addr: z.string(),
|
|
76
|
+
revoked: z.boolean()
|
|
77
|
+
});
|
|
78
|
+
const OrgApiKeyRevokeResponse = z.looseObject({
|
|
79
|
+
id: z.number(),
|
|
80
|
+
name: z.string(),
|
|
81
|
+
created_at: z.string(),
|
|
82
|
+
created_by: z.string(),
|
|
83
|
+
last_used_at: z.string().nullable().nullish(),
|
|
84
|
+
last_used_from_addr: z.string(),
|
|
85
|
+
revoked: z.boolean(),
|
|
86
|
+
project_id: z.string().nullish()
|
|
87
|
+
});
|
|
88
|
+
const ApiKeyCreatorData = z.looseObject({
|
|
89
|
+
id: z.string(),
|
|
90
|
+
name: z.string(),
|
|
91
|
+
image: z.string()
|
|
92
|
+
});
|
|
93
|
+
const ApiKeysListResponseItem = z.looseObject({
|
|
94
|
+
id: z.number(),
|
|
95
|
+
name: z.string(),
|
|
96
|
+
created_at: z.string(),
|
|
97
|
+
created_by: ApiKeyCreatorData,
|
|
98
|
+
last_used_at: z.string().nullable().nullish(),
|
|
99
|
+
last_used_from_addr: z.string()
|
|
100
|
+
});
|
|
101
|
+
const OrgApiKeysListResponseItem = z.looseObject({
|
|
102
|
+
id: z.number(),
|
|
103
|
+
name: z.string(),
|
|
104
|
+
created_at: z.string(),
|
|
105
|
+
created_by: ApiKeyCreatorData,
|
|
106
|
+
last_used_at: z.string().nullable().nullish(),
|
|
107
|
+
last_used_from_addr: z.string(),
|
|
108
|
+
project_id: z.string().nullish()
|
|
109
|
+
});
|
|
110
|
+
const OperationAction = z.string();
|
|
111
|
+
const OperationStatus = z.string();
|
|
112
|
+
const Operation = z.looseObject({
|
|
113
|
+
id: z.string(),
|
|
114
|
+
project_id: z.string(),
|
|
115
|
+
branch_id: z.string().nullish(),
|
|
116
|
+
endpoint_id: z.string().nullish(),
|
|
117
|
+
action: OperationAction,
|
|
118
|
+
status: OperationStatus,
|
|
119
|
+
error: z.string().nullish(),
|
|
120
|
+
failures_count: z.number(),
|
|
121
|
+
retry_at: z.string().nullish(),
|
|
122
|
+
created_at: z.string(),
|
|
123
|
+
updated_at: z.string(),
|
|
124
|
+
total_duration_ms: z.number()
|
|
125
|
+
});
|
|
126
|
+
const OperationResponse = z.looseObject({ operation: Operation });
|
|
127
|
+
const OperationsResponse = z.looseObject({ operations: z.array(Operation) });
|
|
128
|
+
const PgSettingsData = z.record(z.string(), z.string());
|
|
129
|
+
const PgbouncerSettingsData = z.record(z.string(), z.string());
|
|
130
|
+
const SuspendTimeoutSeconds = z.number();
|
|
131
|
+
const DefaultEndpointSettings = z.looseObject({
|
|
132
|
+
pg_settings: PgSettingsData.nullish(),
|
|
133
|
+
pgbouncer_settings: PgbouncerSettingsData.nullish(),
|
|
134
|
+
autoscaling_limit_min_cu: ComputeUnit.nullish(),
|
|
135
|
+
autoscaling_limit_max_cu: ComputeUnit.nullish(),
|
|
136
|
+
suspend_timeout_seconds: SuspendTimeoutSeconds.nullish()
|
|
137
|
+
});
|
|
138
|
+
const ProjectQuota = z.looseObject({
|
|
139
|
+
active_time_seconds: z.number().nullish(),
|
|
140
|
+
compute_time_seconds: z.number().nullish(),
|
|
141
|
+
written_data_bytes: z.number().nullish(),
|
|
142
|
+
data_transfer_bytes: z.number().nullish(),
|
|
143
|
+
logical_size_bytes: z.number().nullish()
|
|
144
|
+
});
|
|
145
|
+
const AllowedIps = z.looseObject({
|
|
146
|
+
ips: z.array(z.string()).nullish(),
|
|
147
|
+
protected_branches_only: z.boolean().nullish()
|
|
148
|
+
});
|
|
149
|
+
const MaintenanceWindow = z.looseObject({
|
|
150
|
+
weekdays: z.array(z.number()),
|
|
151
|
+
start_time: z.string(),
|
|
152
|
+
end_time: z.string()
|
|
153
|
+
});
|
|
154
|
+
const ProjectAuditLogLevel = z.string();
|
|
155
|
+
const PreloadLibraries = z.looseObject({
|
|
156
|
+
use_defaults: z.boolean().nullish(),
|
|
157
|
+
enabled_libraries: z.array(z.string()).nullish()
|
|
158
|
+
});
|
|
159
|
+
const ProjectSettingsData = z.looseObject({
|
|
160
|
+
quota: ProjectQuota.nullish(),
|
|
161
|
+
allowed_ips: AllowedIps.nullish(),
|
|
162
|
+
enable_logical_replication: z.boolean().nullish(),
|
|
163
|
+
maintenance_window: MaintenanceWindow.nullish(),
|
|
164
|
+
block_public_connections: z.boolean().nullish(),
|
|
165
|
+
block_vpc_connections: z.boolean().nullish(),
|
|
166
|
+
audit_log_level: ProjectAuditLogLevel.nullish(),
|
|
167
|
+
hipaa: z.boolean().nullish(),
|
|
168
|
+
preload_libraries: PreloadLibraries.nullish()
|
|
169
|
+
});
|
|
170
|
+
const PgVersion = z.number();
|
|
171
|
+
const ProjectPermissionLevel = z.string();
|
|
172
|
+
const ProjectListItem = z.looseObject({
|
|
173
|
+
id: z.string(),
|
|
174
|
+
platform_id: z.string(),
|
|
175
|
+
region_id: z.string(),
|
|
176
|
+
name: z.string(),
|
|
177
|
+
provisioner: Provisioner,
|
|
178
|
+
default_endpoint_settings: DefaultEndpointSettings.nullish(),
|
|
179
|
+
settings: ProjectSettingsData.nullish(),
|
|
180
|
+
pg_version: PgVersion,
|
|
181
|
+
proxy_host: z.string(),
|
|
182
|
+
branch_logical_size_limit: z.number(),
|
|
183
|
+
branch_logical_size_limit_bytes: z.number(),
|
|
184
|
+
store_passwords: z.boolean(),
|
|
185
|
+
active_time: z.number(),
|
|
186
|
+
cpu_used_sec: z.number(),
|
|
187
|
+
maintenance_starts_at: z.string().nullish(),
|
|
188
|
+
creation_source: z.string(),
|
|
189
|
+
created_at: z.string(),
|
|
190
|
+
updated_at: z.string(),
|
|
191
|
+
synthetic_storage_size: z.number().nullish(),
|
|
192
|
+
quota_reset_at: z.string().nullish(),
|
|
193
|
+
owner_id: z.string(),
|
|
194
|
+
compute_last_active_at: z.string().nullish(),
|
|
195
|
+
org_id: z.string().nullish(),
|
|
196
|
+
org_name: z.string().nullish(),
|
|
197
|
+
history_retention_seconds: z.number().nullish(),
|
|
198
|
+
hipaa_enabled_at: z.string().nullish(),
|
|
199
|
+
deleted_at: z.string().nullish(),
|
|
200
|
+
recoverable_until: z.string().nullish(),
|
|
201
|
+
effective_project_permission: ProjectPermissionLevel.nullable().nullish()
|
|
202
|
+
});
|
|
203
|
+
const BillingSubscriptionType = z.string();
|
|
204
|
+
const ProjectOwnerData = z.looseObject({
|
|
205
|
+
email: z.string(),
|
|
206
|
+
name: z.string(),
|
|
207
|
+
branches_limit: z.number(),
|
|
208
|
+
subscription_type: BillingSubscriptionType
|
|
209
|
+
});
|
|
210
|
+
const Project = z.looseObject({
|
|
211
|
+
data_storage_bytes_hour: z.number(),
|
|
212
|
+
data_transfer_bytes: z.number(),
|
|
213
|
+
written_data_bytes: z.number(),
|
|
214
|
+
compute_time_seconds: z.number(),
|
|
215
|
+
active_time_seconds: z.number(),
|
|
216
|
+
cpu_used_sec: z.number(),
|
|
217
|
+
id: z.string(),
|
|
218
|
+
platform_id: z.string(),
|
|
219
|
+
region_id: z.string(),
|
|
220
|
+
name: z.string(),
|
|
221
|
+
provisioner: Provisioner,
|
|
222
|
+
default_endpoint_settings: DefaultEndpointSettings.nullish(),
|
|
223
|
+
settings: ProjectSettingsData.nullish(),
|
|
224
|
+
pg_version: PgVersion,
|
|
225
|
+
proxy_host: z.string(),
|
|
226
|
+
branch_logical_size_limit: z.number(),
|
|
227
|
+
branch_logical_size_limit_bytes: z.number(),
|
|
228
|
+
store_passwords: z.boolean(),
|
|
229
|
+
maintenance_starts_at: z.string().nullish(),
|
|
230
|
+
creation_source: z.string(),
|
|
231
|
+
history_retention_seconds: z.number(),
|
|
232
|
+
created_at: z.string(),
|
|
233
|
+
updated_at: z.string(),
|
|
234
|
+
synthetic_storage_size: z.number().nullish(),
|
|
235
|
+
consumption_period_start: z.string(),
|
|
236
|
+
consumption_period_end: z.string(),
|
|
237
|
+
quota_reset_at: z.string().nullish(),
|
|
238
|
+
owner_id: z.string(),
|
|
239
|
+
owner: ProjectOwnerData.nullish(),
|
|
240
|
+
compute_last_active_at: z.string().nullish(),
|
|
241
|
+
org_id: z.string().nullish(),
|
|
242
|
+
maintenance_scheduled_for: z.string().nullish(),
|
|
243
|
+
hipaa_enabled_at: z.string().nullish(),
|
|
244
|
+
effective_project_permission: ProjectPermissionLevel.nullable().nullish()
|
|
245
|
+
});
|
|
246
|
+
const RealtimeOptions = z.looseObject({ allowed_origins: z.array(z.string()).nullish() });
|
|
247
|
+
const AnnotationValueData = z.record(z.string(), z.string());
|
|
248
|
+
const ProjectCreateRequest = z.looseObject({ project: z.looseObject({
|
|
249
|
+
settings: ProjectSettingsData.nullish(),
|
|
250
|
+
name: z.string().nullish(),
|
|
251
|
+
realtime: RealtimeOptions.nullish(),
|
|
252
|
+
branch: z.looseObject({
|
|
253
|
+
name: z.string().nullish(),
|
|
254
|
+
role_name: z.string().nullish(),
|
|
255
|
+
database_name: z.string().nullish(),
|
|
256
|
+
annotations: AnnotationValueData.nullish()
|
|
257
|
+
}).nullish(),
|
|
258
|
+
autoscaling_limit_min_cu: ComputeUnit.nullish(),
|
|
259
|
+
autoscaling_limit_max_cu: ComputeUnit.nullish(),
|
|
260
|
+
provisioner: Provisioner.nullish(),
|
|
261
|
+
region_id: z.string().nullish(),
|
|
262
|
+
default_endpoint_settings: DefaultEndpointSettings.nullish(),
|
|
263
|
+
pg_version: PgVersion.nullish(),
|
|
264
|
+
store_passwords: z.boolean().nullish(),
|
|
265
|
+
history_retention_seconds: z.number().nullish(),
|
|
266
|
+
org_id: z.string().nullish()
|
|
267
|
+
}) });
|
|
268
|
+
const ProjectUpdateRequest = z.looseObject({ project: z.looseObject({
|
|
269
|
+
settings: ProjectSettingsData.nullish(),
|
|
270
|
+
name: z.string().nullish(),
|
|
271
|
+
default_endpoint_settings: DefaultEndpointSettings.nullish(),
|
|
272
|
+
history_retention_seconds: z.number().nullish()
|
|
273
|
+
}) });
|
|
274
|
+
const ProjectTransferRequestResponse = z.looseObject({
|
|
275
|
+
id: z.string(),
|
|
276
|
+
project_id: z.string(),
|
|
277
|
+
created_at: z.string(),
|
|
278
|
+
expires_at: z.string()
|
|
279
|
+
});
|
|
280
|
+
const AcceptProjectTransferRequestSatisfiesPlanError = z.looseObject({ reasons: z.array(z.looseObject({
|
|
281
|
+
message: z.string(),
|
|
282
|
+
code: z.string()
|
|
283
|
+
})) });
|
|
284
|
+
const ProjectResponse = z.looseObject({ project: Project });
|
|
285
|
+
const BranchState = z.string();
|
|
286
|
+
const BranchRestoreStatus = z.string();
|
|
287
|
+
const BranchRestrictedAction = z.looseObject({
|
|
288
|
+
name: z.string(),
|
|
289
|
+
reason: z.string()
|
|
290
|
+
});
|
|
291
|
+
const BranchRecoveryInfo = z.looseObject({
|
|
292
|
+
deleted_at: z.string(),
|
|
293
|
+
recoverable_until: z.string(),
|
|
294
|
+
deletion_method: z.string()
|
|
295
|
+
});
|
|
296
|
+
const Branch = z.looseObject({
|
|
297
|
+
id: z.string(),
|
|
298
|
+
project_id: z.string(),
|
|
299
|
+
parent_id: z.string().nullish(),
|
|
300
|
+
parent_lsn: z.string().nullish(),
|
|
301
|
+
parent_timestamp: z.string().nullish(),
|
|
302
|
+
name: z.string(),
|
|
303
|
+
current_state: BranchState,
|
|
304
|
+
pending_state: BranchState.nullish(),
|
|
305
|
+
state_changed_at: z.string(),
|
|
306
|
+
logical_size: z.number().nullish(),
|
|
307
|
+
creation_source: z.string(),
|
|
308
|
+
primary: z.boolean().nullish(),
|
|
309
|
+
default: z.boolean(),
|
|
310
|
+
protected: z.boolean(),
|
|
311
|
+
cpu_used_sec: z.number(),
|
|
312
|
+
compute_time_seconds: z.number(),
|
|
313
|
+
active_time_seconds: z.number(),
|
|
314
|
+
written_data_bytes: z.number(),
|
|
315
|
+
data_transfer_bytes: z.number(),
|
|
316
|
+
created_at: z.string(),
|
|
317
|
+
updated_at: z.string(),
|
|
318
|
+
ttl_interval_seconds: z.number().nullish(),
|
|
319
|
+
expires_at: z.string().nullish(),
|
|
320
|
+
last_reset_at: z.string().nullish(),
|
|
321
|
+
created_by: z.looseObject({
|
|
322
|
+
name: z.string().nullish(),
|
|
323
|
+
image: z.string().nullish()
|
|
324
|
+
}).nullish(),
|
|
325
|
+
init_source: z.string().nullish(),
|
|
326
|
+
restore_status: BranchRestoreStatus.nullish(),
|
|
327
|
+
restored_from: z.string().nullish(),
|
|
328
|
+
restored_as: z.string().nullish(),
|
|
329
|
+
restricted_actions: z.array(BranchRestrictedAction).nullish(),
|
|
330
|
+
recovery: BranchRecoveryInfo.nullish()
|
|
331
|
+
});
|
|
332
|
+
const BranchesResponse = z.looseObject({ branches: z.array(Branch) });
|
|
333
|
+
const ProjectRecoverResponse = z.looseObject({
|
|
334
|
+
project: Project,
|
|
335
|
+
branches: z.array(Branch)
|
|
336
|
+
});
|
|
337
|
+
const ProjectsResponse = z.looseObject({
|
|
338
|
+
projects: z.array(ProjectListItem),
|
|
339
|
+
unavailable_project_ids: z.array(z.string()).nullish()
|
|
340
|
+
});
|
|
341
|
+
const ProjectsCountResponse = z.looseObject({ count: z.number() });
|
|
342
|
+
const ProjectPermission = z.looseObject({
|
|
343
|
+
id: z.string(),
|
|
344
|
+
granted_to_email: z.string(),
|
|
345
|
+
granted_at: z.string(),
|
|
346
|
+
revoked_at: z.string().nullish()
|
|
347
|
+
});
|
|
348
|
+
const ProjectPermissions = z.looseObject({ project_permissions: z.array(ProjectPermission) });
|
|
349
|
+
const GrantPermissionToProjectRequest = z.looseObject({ email: z.string() });
|
|
350
|
+
const ProjectRole = z.string();
|
|
351
|
+
const ProjectMemberGrantSource = z.string();
|
|
352
|
+
const ProjectMemberOrgRole = z.string();
|
|
353
|
+
const ProjectMember = z.looseObject({
|
|
354
|
+
member_id: z.string(),
|
|
355
|
+
user_id: z.string(),
|
|
356
|
+
email: z.string().nullish(),
|
|
357
|
+
name: z.string().nullish(),
|
|
358
|
+
org_role: ProjectMemberOrgRole,
|
|
359
|
+
project_role: ProjectRole.nullish(),
|
|
360
|
+
org_default_project_permission: ProjectPermissionLevel.nullish(),
|
|
361
|
+
explicit_project_permission: ProjectPermissionLevel.nullish(),
|
|
362
|
+
effective_project_permission: ProjectPermissionLevel.nullish(),
|
|
363
|
+
grant_source: ProjectMemberGrantSource.nullish()
|
|
364
|
+
});
|
|
365
|
+
const CursorPagination = z.looseObject({
|
|
366
|
+
next: z.string().nullish(),
|
|
367
|
+
sort_by: z.string().nullish(),
|
|
368
|
+
sort_order: z.string().nullish()
|
|
369
|
+
});
|
|
370
|
+
const ProjectMembers = z.looseObject({
|
|
371
|
+
project_members: z.array(ProjectMember),
|
|
372
|
+
pagination: CursorPagination.nullish()
|
|
373
|
+
});
|
|
374
|
+
const SetProjectMemberRoleRequest = z.looseObject({ role: ProjectRole });
|
|
375
|
+
const ProjectMemberRoleResponse = z.looseObject({
|
|
376
|
+
project_id: z.string(),
|
|
377
|
+
member_id: z.string(),
|
|
378
|
+
user_id: z.string(),
|
|
379
|
+
email: z.string().nullish(),
|
|
380
|
+
name: z.string().nullish(),
|
|
381
|
+
org_role: ProjectMemberOrgRole,
|
|
382
|
+
project_role: ProjectRole.nullish(),
|
|
383
|
+
org_default_project_permission: ProjectPermissionLevel.nullish(),
|
|
384
|
+
explicit_project_permission: ProjectPermissionLevel.nullish(),
|
|
385
|
+
effective_project_permission: ProjectPermissionLevel.nullish(),
|
|
386
|
+
credential_rotation_recommended: z.boolean().nullish(),
|
|
387
|
+
org_api_key_rotation_recommended: z.boolean().nullish()
|
|
388
|
+
});
|
|
389
|
+
const ConsumptionHistoryPerTimeframe = z.looseObject({
|
|
390
|
+
timeframe_start: z.string(),
|
|
391
|
+
timeframe_end: z.string(),
|
|
392
|
+
active_time_seconds: z.number(),
|
|
393
|
+
compute_time_seconds: z.number(),
|
|
394
|
+
written_data_bytes: z.number(),
|
|
395
|
+
synthetic_storage_size_bytes: z.number(),
|
|
396
|
+
data_storage_bytes_hour: z.number(),
|
|
397
|
+
logical_size_bytes: z.number().nullish(),
|
|
398
|
+
logical_size_bytes_hour: z.number().nullish()
|
|
399
|
+
});
|
|
400
|
+
const ConsumptionHistoryPerPeriod = z.looseObject({
|
|
401
|
+
period_id: z.string(),
|
|
402
|
+
period_plan: z.string(),
|
|
403
|
+
period_start: z.string(),
|
|
404
|
+
period_end: z.string().nullish(),
|
|
405
|
+
consumption: z.array(ConsumptionHistoryPerTimeframe)
|
|
406
|
+
});
|
|
407
|
+
const ConsumptionHistoryPerProject = z.looseObject({
|
|
408
|
+
project_id: z.string(),
|
|
409
|
+
periods: z.array(ConsumptionHistoryPerPeriod)
|
|
410
|
+
});
|
|
411
|
+
const ConsumptionHistoryPerProjectResponse = z.looseObject({ projects: z.array(ConsumptionHistoryPerProject) });
|
|
412
|
+
const ConsumptionMetricValue = z.looseObject({
|
|
413
|
+
metric_name: z.string(),
|
|
414
|
+
value: z.number()
|
|
415
|
+
});
|
|
416
|
+
const ConsumptionHistoryPerTimeframeV2 = z.looseObject({
|
|
417
|
+
timeframe_start: z.string().nullish(),
|
|
418
|
+
timeframe_end: z.string().nullish(),
|
|
419
|
+
metrics: z.array(ConsumptionMetricValue).nullish()
|
|
420
|
+
});
|
|
421
|
+
const ConsumptionHistoryPerPeriodV2 = z.looseObject({
|
|
422
|
+
period_id: z.string(),
|
|
423
|
+
period_plan: z.string(),
|
|
424
|
+
period_start: z.string(),
|
|
425
|
+
period_end: z.string().nullish(),
|
|
426
|
+
consumption: z.array(ConsumptionHistoryPerTimeframeV2)
|
|
427
|
+
});
|
|
428
|
+
const ConsumptionHistoryPerProjectV2 = z.looseObject({
|
|
429
|
+
project_id: z.string(),
|
|
430
|
+
periods: z.array(ConsumptionHistoryPerPeriodV2)
|
|
431
|
+
});
|
|
432
|
+
const ConsumptionHistoryPerProjectV2Response = z.looseObject({ projects: z.array(ConsumptionHistoryPerProjectV2) });
|
|
433
|
+
const ConsumptionHistoryPerBranchV2 = z.looseObject({
|
|
434
|
+
project_id: z.string(),
|
|
435
|
+
branch_id: z.string(),
|
|
436
|
+
periods: z.array(ConsumptionHistoryPerPeriodV2)
|
|
437
|
+
});
|
|
438
|
+
const ConsumptionHistoryPerBranchV2Response = z.looseObject({ branches: z.array(ConsumptionHistoryPerBranchV2) });
|
|
439
|
+
const ConsumptionHistoryGranularity = z.string();
|
|
440
|
+
const ConsumptionHistoryQueryMetrics = z.array(z.string());
|
|
441
|
+
const AvailablePreloadLibrary = z.looseObject({
|
|
442
|
+
library_name: z.string(),
|
|
443
|
+
description: z.string(),
|
|
444
|
+
is_default: z.boolean(),
|
|
445
|
+
is_experimental: z.boolean(),
|
|
446
|
+
version: z.string()
|
|
447
|
+
});
|
|
448
|
+
const AvailablePreloadLibraries = z.looseObject({ libraries: z.array(AvailablePreloadLibrary).nullish() });
|
|
449
|
+
const EndpointType = z.string();
|
|
450
|
+
const EndpointSettingsData = z.looseObject({
|
|
451
|
+
pg_settings: PgSettingsData.nullish(),
|
|
452
|
+
pgbouncer_settings: PgbouncerSettingsData.nullish(),
|
|
453
|
+
preload_libraries: PreloadLibraries.nullish()
|
|
454
|
+
});
|
|
455
|
+
const BranchCreateRequestEndpointOptions = z.looseObject({
|
|
456
|
+
type: EndpointType,
|
|
457
|
+
settings: EndpointSettingsData.nullish(),
|
|
458
|
+
autoscaling_limit_min_cu: ComputeUnit.nullish(),
|
|
459
|
+
autoscaling_limit_max_cu: ComputeUnit.nullish(),
|
|
460
|
+
provisioner: Provisioner.nullish(),
|
|
461
|
+
suspend_timeout_seconds: SuspendTimeoutSeconds.nullish()
|
|
462
|
+
});
|
|
463
|
+
const AnnotationCreateValueRequest = z.looseObject({ annotation_value: AnnotationValueData.nullish() });
|
|
464
|
+
const BranchCreateRequest = z.looseObject({
|
|
465
|
+
endpoints: z.array(BranchCreateRequestEndpointOptions).nullish(),
|
|
466
|
+
branch: z.looseObject({
|
|
467
|
+
parent_id: z.string().nullish(),
|
|
468
|
+
name: z.string().nullish(),
|
|
469
|
+
parent_lsn: z.string().nullish(),
|
|
470
|
+
parent_timestamp: z.string().nullish(),
|
|
471
|
+
protected: z.boolean().nullish(),
|
|
472
|
+
realtime: RealtimeOptions.nullish(),
|
|
473
|
+
archived: z.boolean().nullish(),
|
|
474
|
+
init_source: z.string().nullish(),
|
|
475
|
+
expires_at: z.string().nullish()
|
|
476
|
+
}).nullish()
|
|
477
|
+
});
|
|
478
|
+
const MaskingRule = z.looseObject({
|
|
479
|
+
database_name: z.string(),
|
|
480
|
+
schema_name: z.string(),
|
|
481
|
+
table_name: z.string(),
|
|
482
|
+
column_name: z.string(),
|
|
483
|
+
masking_function: z.string().nullish(),
|
|
484
|
+
masking_value: z.string().nullish()
|
|
485
|
+
});
|
|
486
|
+
const BranchAnonymizedCreateRequest = z.looseObject({
|
|
487
|
+
annotation_value: AnnotationValueData.nullish(),
|
|
488
|
+
branch_create: BranchCreateRequest.nullish(),
|
|
489
|
+
masking_rules: z.array(MaskingRule).nullish(),
|
|
490
|
+
start_anonymization: z.boolean().nullish()
|
|
491
|
+
});
|
|
492
|
+
const BranchUpdateRequest = z.looseObject({ branch: z.looseObject({
|
|
493
|
+
name: z.string().nullish(),
|
|
494
|
+
protected: z.boolean().nullish(),
|
|
495
|
+
expires_at: z.string().nullable().nullish()
|
|
496
|
+
}) });
|
|
497
|
+
const BranchRestoreRequest = z.looseObject({
|
|
498
|
+
source_branch_id: z.string(),
|
|
499
|
+
source_lsn: z.string().nullish(),
|
|
500
|
+
source_timestamp: z.string().nullish(),
|
|
501
|
+
preserve_under_name: z.string().nullish()
|
|
502
|
+
});
|
|
503
|
+
const BranchResponse = z.looseObject({ branch: Branch });
|
|
504
|
+
const BranchSchemaJSON = z.looseObject({ tables: z.array(z.looseObject({
|
|
505
|
+
schema: z.string(),
|
|
506
|
+
name: z.string(),
|
|
507
|
+
columns: z.array(z.looseObject({
|
|
508
|
+
name: z.string(),
|
|
509
|
+
type: z.string(),
|
|
510
|
+
nullable: z.boolean().nullish(),
|
|
511
|
+
generated: z.boolean().nullish()
|
|
512
|
+
})),
|
|
513
|
+
constraints: z.array(z.looseObject({
|
|
514
|
+
type: z.string(),
|
|
515
|
+
columns: z.array(z.string()),
|
|
516
|
+
name: z.string().nullish(),
|
|
517
|
+
referenced_table: z.looseObject({
|
|
518
|
+
schema: z.string(),
|
|
519
|
+
table: z.string(),
|
|
520
|
+
columns: z.array(z.string())
|
|
521
|
+
}).nullish()
|
|
522
|
+
})).nullish()
|
|
523
|
+
})) });
|
|
524
|
+
const BranchSchemaResponse = z.looseObject({
|
|
525
|
+
sql: z.string().nullish(),
|
|
526
|
+
json: BranchSchemaJSON.nullish()
|
|
527
|
+
});
|
|
528
|
+
const BranchSchemaCompareResponse = z.looseObject({ diff: z.string().nullish() });
|
|
529
|
+
const BranchesCountResponse = z.looseObject({ count: z.number() });
|
|
530
|
+
const MaskingRulesResponse = z.looseObject({ masking_rules: z.array(MaskingRule) });
|
|
531
|
+
const MaskingRulesUpdateRequest = z.looseObject({ masking_rules: z.array(MaskingRule) });
|
|
532
|
+
const AnonymizationRunMetadata = z.looseObject({
|
|
533
|
+
started_at: z.string().nullish(),
|
|
534
|
+
completed_at: z.string().nullish(),
|
|
535
|
+
triggered_by: z.string().nullish(),
|
|
536
|
+
triggered_by_username: z.string().nullish(),
|
|
537
|
+
masked_columns: z.number().nullish()
|
|
538
|
+
});
|
|
539
|
+
const AnonymizedBranchStatusResponse = z.looseObject({
|
|
540
|
+
project_id: z.string(),
|
|
541
|
+
branch_id: z.string(),
|
|
542
|
+
state: z.string(),
|
|
543
|
+
status_message: z.string().nullish(),
|
|
544
|
+
created_at: z.string(),
|
|
545
|
+
updated_at: z.string(),
|
|
546
|
+
failed_at: z.string().nullish(),
|
|
547
|
+
last_run: AnonymizationRunMetadata.nullish()
|
|
548
|
+
});
|
|
549
|
+
const ConnectionParameters = z.looseObject({
|
|
550
|
+
database: z.string(),
|
|
551
|
+
password: z.string(),
|
|
552
|
+
role: z.string(),
|
|
553
|
+
host: z.string(),
|
|
554
|
+
pooler_host: z.string()
|
|
555
|
+
});
|
|
556
|
+
const ConnectionDetails = z.looseObject({
|
|
557
|
+
connection_uri: z.string(),
|
|
558
|
+
connection_parameters: ConnectionParameters
|
|
559
|
+
});
|
|
560
|
+
const ConnectionURIResponse = z.looseObject({ uri: z.string() });
|
|
561
|
+
const EndpointState = z.string();
|
|
562
|
+
const EndpointPoolerMode = z.string();
|
|
563
|
+
const Endpoint = z.looseObject({
|
|
564
|
+
host: z.string(),
|
|
565
|
+
id: z.string(),
|
|
566
|
+
name: z.string().nullish(),
|
|
567
|
+
project_id: z.string(),
|
|
568
|
+
branch_id: z.string(),
|
|
569
|
+
autoscaling_limit_min_cu: ComputeUnit,
|
|
570
|
+
autoscaling_limit_max_cu: ComputeUnit,
|
|
571
|
+
region_id: z.string(),
|
|
572
|
+
type: EndpointType,
|
|
573
|
+
current_state: EndpointState,
|
|
574
|
+
pending_state: EndpointState.nullish(),
|
|
575
|
+
settings: EndpointSettingsData,
|
|
576
|
+
pooler_enabled: z.boolean(),
|
|
577
|
+
pooler_mode: EndpointPoolerMode,
|
|
578
|
+
disabled: z.boolean(),
|
|
579
|
+
passwordless_access: z.boolean(),
|
|
580
|
+
last_active: z.string().nullish(),
|
|
581
|
+
creation_source: z.string(),
|
|
582
|
+
created_at: z.string(),
|
|
583
|
+
updated_at: z.string(),
|
|
584
|
+
started_at: z.string().nullish(),
|
|
585
|
+
suspended_at: z.string().nullish(),
|
|
586
|
+
proxy_host: z.string(),
|
|
587
|
+
suspend_timeout_seconds: SuspendTimeoutSeconds,
|
|
588
|
+
provisioner: Provisioner,
|
|
589
|
+
compute_release_version: z.string().nullish()
|
|
590
|
+
});
|
|
591
|
+
const EndpointCreateRequest = z.looseObject({ endpoint: z.looseObject({
|
|
592
|
+
branch_id: z.string(),
|
|
593
|
+
region_id: z.string().nullish(),
|
|
594
|
+
type: EndpointType,
|
|
595
|
+
settings: EndpointSettingsData.nullish(),
|
|
596
|
+
autoscaling_limit_min_cu: ComputeUnit.nullish(),
|
|
597
|
+
autoscaling_limit_max_cu: ComputeUnit.nullish(),
|
|
598
|
+
provisioner: Provisioner.nullish(),
|
|
599
|
+
pooler_enabled: z.boolean().nullish(),
|
|
600
|
+
pooler_mode: EndpointPoolerMode.nullish(),
|
|
601
|
+
disabled: z.boolean().nullish(),
|
|
602
|
+
passwordless_access: z.boolean().nullish(),
|
|
603
|
+
suspend_timeout_seconds: SuspendTimeoutSeconds.nullish(),
|
|
604
|
+
name: z.string().nullish()
|
|
605
|
+
}) });
|
|
606
|
+
const EndpointUpdateRequest = z.looseObject({ endpoint: z.looseObject({
|
|
607
|
+
branch_id: z.string().nullish(),
|
|
608
|
+
autoscaling_limit_min_cu: ComputeUnit.nullish(),
|
|
609
|
+
autoscaling_limit_max_cu: ComputeUnit.nullish(),
|
|
610
|
+
provisioner: Provisioner.nullish(),
|
|
611
|
+
settings: EndpointSettingsData.nullish(),
|
|
612
|
+
pooler_enabled: z.boolean().nullish(),
|
|
613
|
+
pooler_mode: EndpointPoolerMode.nullish(),
|
|
614
|
+
disabled: z.boolean().nullish(),
|
|
615
|
+
passwordless_access: z.boolean().nullish(),
|
|
616
|
+
suspend_timeout_seconds: SuspendTimeoutSeconds.nullish(),
|
|
617
|
+
name: z.string().nullish()
|
|
618
|
+
}) });
|
|
619
|
+
const EndpointResponse = z.looseObject({ endpoint: Endpoint });
|
|
620
|
+
const ConnectionURIsResponse = z.looseObject({ connection_uris: z.array(ConnectionDetails) });
|
|
621
|
+
const ConnectionURIsOptionalResponse = z.looseObject({ connection_uris: z.array(ConnectionDetails).nullish() });
|
|
622
|
+
const VPCEndpoint = z.looseObject({
|
|
623
|
+
vpc_endpoint_id: z.string(),
|
|
624
|
+
label: z.string()
|
|
625
|
+
});
|
|
626
|
+
const VPCEndpointsResponse = z.looseObject({ endpoints: z.array(VPCEndpoint) });
|
|
627
|
+
const VPCEndpointWithRegion = z.looseObject({
|
|
628
|
+
vpc_endpoint_id: z.string(),
|
|
629
|
+
label: z.string(),
|
|
630
|
+
region_id: z.string()
|
|
631
|
+
});
|
|
632
|
+
const VPCEndpointsWithRegionResponse = z.looseObject({ endpoints: z.array(VPCEndpointWithRegion) });
|
|
633
|
+
const VPCEndpointDetails = z.looseObject({
|
|
634
|
+
vpc_endpoint_id: z.string(),
|
|
635
|
+
label: z.string(),
|
|
636
|
+
state: z.string(),
|
|
637
|
+
num_restricted_projects: z.number(),
|
|
638
|
+
example_restricted_projects: z.array(z.string())
|
|
639
|
+
});
|
|
640
|
+
const VPCEndpointAssignment = z.looseObject({ label: z.string() });
|
|
641
|
+
const EndpointsResponse = z.looseObject({ endpoints: z.array(Endpoint) });
|
|
642
|
+
const EndpointsOptionalResponse = z.looseObject({ endpoints: z.array(Endpoint).nullish() });
|
|
643
|
+
const Realtime = z.looseObject({
|
|
644
|
+
enabled: z.boolean(),
|
|
645
|
+
pending: z.boolean(),
|
|
646
|
+
invocation_url: z.string().nullish(),
|
|
647
|
+
revision: z.number().nullish(),
|
|
648
|
+
allowed_origins: z.array(z.string()).nullish()
|
|
649
|
+
});
|
|
650
|
+
const RealtimeSecret = z.looseObject({
|
|
651
|
+
secret: z.string(),
|
|
652
|
+
pending: z.boolean()
|
|
653
|
+
});
|
|
654
|
+
const Role = z.looseObject({
|
|
655
|
+
branch_id: z.string(),
|
|
656
|
+
name: z.string(),
|
|
657
|
+
password: z.string().nullish(),
|
|
658
|
+
protected: z.boolean().nullish(),
|
|
659
|
+
authentication_method: z.string().nullish(),
|
|
660
|
+
created_at: z.string(),
|
|
661
|
+
updated_at: z.string()
|
|
662
|
+
});
|
|
663
|
+
const RoleCreateRequest = z.looseObject({ role: z.looseObject({
|
|
664
|
+
name: z.string(),
|
|
665
|
+
no_login: z.boolean().nullish()
|
|
666
|
+
}) });
|
|
667
|
+
const RoleResponse = z.looseObject({ role: Role });
|
|
668
|
+
const JWKSResponse = z.looseObject({ jwks: JWKS });
|
|
669
|
+
const RolesResponse = z.looseObject({ roles: z.array(Role) });
|
|
670
|
+
const RolePasswordResponse = z.looseObject({ password: z.string() });
|
|
671
|
+
const PaymentSourceBankCard = z.looseObject({
|
|
672
|
+
last4: z.string(),
|
|
673
|
+
brand: z.string().nullish(),
|
|
674
|
+
exp_month: z.number().nullish(),
|
|
675
|
+
exp_year: z.number().nullish()
|
|
676
|
+
});
|
|
677
|
+
const PaymentSource = z.looseObject({
|
|
678
|
+
type: z.string(),
|
|
679
|
+
card: PaymentSourceBankCard.nullish()
|
|
680
|
+
});
|
|
681
|
+
const BillingAccountState = z.string();
|
|
682
|
+
const BillingPaymentMethod = z.string();
|
|
683
|
+
const BillingAccount = z.looseObject({
|
|
684
|
+
state: BillingAccountState,
|
|
685
|
+
payment_source: PaymentSource,
|
|
686
|
+
subscription_type: BillingSubscriptionType,
|
|
687
|
+
payment_method: BillingPaymentMethod,
|
|
688
|
+
quota_reset_at_last: z.string(),
|
|
689
|
+
name: z.string(),
|
|
690
|
+
email: z.string(),
|
|
691
|
+
address_city: z.string(),
|
|
692
|
+
address_country: z.string(),
|
|
693
|
+
address_country_name: z.string().nullish(),
|
|
694
|
+
address_line1: z.string(),
|
|
695
|
+
address_line2: z.string(),
|
|
696
|
+
address_postal_code: z.string(),
|
|
697
|
+
address_state: z.string(),
|
|
698
|
+
orb_portal_url: z.string().nullish(),
|
|
699
|
+
tax_id: z.string().nullish(),
|
|
700
|
+
tax_id_type: z.string().nullish(),
|
|
701
|
+
plan_details: PlanDetails.nullish(),
|
|
702
|
+
spending_limit_cents: z.number().nullable().nullish()
|
|
703
|
+
});
|
|
704
|
+
const SpendingLimitUpdateRequest = z.looseObject({ spending_limit_cents: z.number() });
|
|
705
|
+
const SpendingLimitResponse = z.looseObject({ spending_limit_cents: z.number().nullable() });
|
|
706
|
+
const Database = z.looseObject({
|
|
707
|
+
id: z.number(),
|
|
708
|
+
branch_id: z.string(),
|
|
709
|
+
name: z.string(),
|
|
710
|
+
owner_name: z.string(),
|
|
711
|
+
created_at: z.string(),
|
|
712
|
+
updated_at: z.string()
|
|
713
|
+
});
|
|
714
|
+
const DatabaseCreateRequest = z.looseObject({ database: z.looseObject({
|
|
715
|
+
name: z.string(),
|
|
716
|
+
owner_name: z.string()
|
|
717
|
+
}) });
|
|
718
|
+
const DatabaseUpdateRequest = z.looseObject({ database: z.looseObject({
|
|
719
|
+
name: z.string().nullish(),
|
|
720
|
+
owner_name: z.string().nullish()
|
|
721
|
+
}) });
|
|
722
|
+
const DatabaseResponse = z.looseObject({ database: Database });
|
|
723
|
+
const DatabasesResponse = z.looseObject({ databases: z.array(Database) });
|
|
724
|
+
const MemberRole = z.string();
|
|
725
|
+
const Invitation = z.looseObject({
|
|
726
|
+
id: z.string(),
|
|
727
|
+
email: z.string(),
|
|
728
|
+
org_id: z.string(),
|
|
729
|
+
invited_by: z.string(),
|
|
730
|
+
invited_at: z.string(),
|
|
731
|
+
role: MemberRole
|
|
732
|
+
});
|
|
733
|
+
const Member = z.looseObject({
|
|
734
|
+
id: z.string(),
|
|
735
|
+
user_id: z.string(),
|
|
736
|
+
org_id: z.string(),
|
|
737
|
+
role: MemberRole,
|
|
738
|
+
joined_at: z.string().nullish()
|
|
739
|
+
});
|
|
740
|
+
const MemberUserInfo = z.looseObject({
|
|
741
|
+
email: z.string(),
|
|
742
|
+
has_mfa: z.boolean().nullish(),
|
|
743
|
+
deactivated_at: z.string().nullish()
|
|
744
|
+
});
|
|
745
|
+
const MemberWithUser = z.looseObject({
|
|
746
|
+
member: Member,
|
|
747
|
+
user: MemberUserInfo
|
|
748
|
+
});
|
|
749
|
+
const Organization = z.looseObject({
|
|
750
|
+
id: z.string(),
|
|
751
|
+
name: z.string(),
|
|
752
|
+
handle: z.string(),
|
|
753
|
+
plan: z.string(),
|
|
754
|
+
created_at: z.string(),
|
|
755
|
+
managed_by: z.string(),
|
|
756
|
+
updated_at: z.string(),
|
|
757
|
+
allow_hipaa_projects: z.boolean().nullish(),
|
|
758
|
+
require_mfa: z.boolean().nullish()
|
|
759
|
+
});
|
|
760
|
+
const OrganizationsResponse = z.looseObject({ organizations: z.array(Organization) });
|
|
761
|
+
const OrganizationInvitationsResponse = z.looseObject({ invitations: z.array(Invitation) });
|
|
762
|
+
const OrganizationInviteCreateRequest = z.looseObject({
|
|
763
|
+
email: z.string(),
|
|
764
|
+
role: MemberRole
|
|
765
|
+
});
|
|
766
|
+
const OrganizationInvitesCreateRequest = z.looseObject({ invitations: z.array(OrganizationInviteCreateRequest) });
|
|
767
|
+
const OrganizationMemberUpdateRequest = z.looseObject({ role: MemberRole });
|
|
768
|
+
const OrganizationMembersResponse = z.looseObject({ members: z.array(MemberWithUser) });
|
|
769
|
+
const RegionResponse = z.looseObject({
|
|
770
|
+
region_id: z.string(),
|
|
771
|
+
name: z.string(),
|
|
772
|
+
default: z.boolean(),
|
|
773
|
+
geo_lat: z.string(),
|
|
774
|
+
geo_long: z.string()
|
|
775
|
+
});
|
|
776
|
+
const ActiveRegionsResponse = z.looseObject({ regions: z.array(RegionResponse) });
|
|
777
|
+
const IdentityProviderId = z.string();
|
|
778
|
+
const CurrentUserAuthAccount = z.looseObject({
|
|
779
|
+
email: z.string(),
|
|
780
|
+
image: z.string(),
|
|
781
|
+
login: z.string(),
|
|
782
|
+
name: z.string(),
|
|
783
|
+
provider: IdentityProviderId
|
|
784
|
+
});
|
|
785
|
+
const CurrentUserInfoResponse = z.looseObject({
|
|
786
|
+
active_seconds_limit: z.number(),
|
|
787
|
+
billing_account: BillingAccount.nullish(),
|
|
788
|
+
auth_accounts: z.array(CurrentUserAuthAccount),
|
|
789
|
+
email: z.string(),
|
|
790
|
+
id: z.string(),
|
|
791
|
+
image: z.string(),
|
|
792
|
+
login: z.string(),
|
|
793
|
+
name: z.string(),
|
|
794
|
+
last_name: z.string(),
|
|
795
|
+
projects_limit: z.number(),
|
|
796
|
+
branches_limit: z.number(),
|
|
797
|
+
max_autoscaling_limit: z.number(),
|
|
798
|
+
compute_seconds_limit: z.number().nullish(),
|
|
799
|
+
plan: z.string()
|
|
800
|
+
});
|
|
801
|
+
const AuthDetailsResponse = z.looseObject({
|
|
802
|
+
account_id: z.string(),
|
|
803
|
+
auth_method: z.string(),
|
|
804
|
+
auth_data: z.string().nullish()
|
|
805
|
+
});
|
|
806
|
+
const TransferProjectsToOrganizationRequest = z.looseObject({
|
|
807
|
+
destination_org_id: z.string(),
|
|
808
|
+
project_ids: z.array(z.string())
|
|
809
|
+
});
|
|
810
|
+
const LimitsUnsatisfiedResponse = z.looseObject({ limits: z.array(z.looseObject({
|
|
811
|
+
name: z.string(),
|
|
812
|
+
expected: z.string(),
|
|
813
|
+
actual: z.string()
|
|
814
|
+
})) });
|
|
815
|
+
const ProjectsWithIntegrationResponse = z.looseObject({ projects: z.array(z.looseObject({
|
|
816
|
+
id: z.string(),
|
|
817
|
+
integration: z.string()
|
|
818
|
+
})) });
|
|
819
|
+
const DataAPISettings = z.looseObject({
|
|
820
|
+
db_aggregates_enabled: z.boolean().nullish(),
|
|
821
|
+
db_anon_role: z.string().nullish(),
|
|
822
|
+
db_extra_search_path: z.string().nullish(),
|
|
823
|
+
db_max_rows: z.number().nullish(),
|
|
824
|
+
db_schemas: z.array(z.string()).nullish(),
|
|
825
|
+
jwt_role_claim_key: z.string().nullish(),
|
|
826
|
+
jwt_cache_max_lifetime: z.number().nullish(),
|
|
827
|
+
openapi_mode: z.string().nullish(),
|
|
828
|
+
server_cors_allowed_origins: z.string().nullish(),
|
|
829
|
+
server_timing_enabled: z.boolean().nullish()
|
|
830
|
+
});
|
|
831
|
+
const DataAPICreateRequest = z.looseObject({
|
|
832
|
+
auth_provider: z.string().nullish(),
|
|
833
|
+
jwks_url: z.string().nullish(),
|
|
834
|
+
provider_name: z.string().nullish(),
|
|
835
|
+
jwt_audience: z.string().nullish(),
|
|
836
|
+
add_default_grants: z.boolean().nullish(),
|
|
837
|
+
skip_auth_schema: z.boolean().nullish(),
|
|
838
|
+
settings: DataAPISettings.nullish()
|
|
839
|
+
});
|
|
840
|
+
const DataAPICreateResponse = z.looseObject({ url: z.string() });
|
|
841
|
+
const DataAPIReponse = z.looseObject({
|
|
842
|
+
url: z.string(),
|
|
843
|
+
status: z.string(),
|
|
844
|
+
settings: z.looseObject({
|
|
845
|
+
db_aggregates_enabled: z.boolean().nullish(),
|
|
846
|
+
db_anon_role: z.string().nullish(),
|
|
847
|
+
db_extra_search_path: z.string().nullish(),
|
|
848
|
+
db_max_rows: z.number().nullish(),
|
|
849
|
+
db_schemas: z.array(z.string()).nullish(),
|
|
850
|
+
jwt_role_claim_key: z.string().nullish(),
|
|
851
|
+
jwt_cache_max_lifetime: z.number().nullish(),
|
|
852
|
+
openapi_mode: z.string().nullish(),
|
|
853
|
+
server_cors_allowed_origins: z.string().nullish(),
|
|
854
|
+
server_timing_enabled: z.boolean().nullish()
|
|
855
|
+
}).nullable().nullish(),
|
|
856
|
+
available_schemas: z.array(z.string()).nullable().nullish(),
|
|
857
|
+
observed_at: z.string().nullish(),
|
|
858
|
+
auth_provider: z.string().nullish(),
|
|
859
|
+
jwks_url: z.string().nullish(),
|
|
860
|
+
provider_name: z.string().nullish(),
|
|
861
|
+
jwt_audience: z.string().nullish()
|
|
862
|
+
});
|
|
863
|
+
const DataAPIUpdateRequest = z.looseObject({ settings: DataAPISettings.nullish() });
|
|
864
|
+
const NeonAuthSupportedAuthProvider = z.string();
|
|
865
|
+
const NeonAuthProviderProjectOwnedBy = z.string();
|
|
866
|
+
const NeonAuthProviderProjectTransferStatus = z.string();
|
|
867
|
+
const NeonAuthRedirectURIWhitelistDomain = z.looseObject({
|
|
868
|
+
domain: z.string(),
|
|
869
|
+
auth_provider: NeonAuthSupportedAuthProvider
|
|
870
|
+
});
|
|
871
|
+
const NeonAuthRedirectURIWhitelistResponse = z.looseObject({ domains: z.array(NeonAuthRedirectURIWhitelistDomain) });
|
|
872
|
+
const NeonAuthAddDomainToRedirectURIWhitelistRequest = z.looseObject({
|
|
873
|
+
domain: z.string(),
|
|
874
|
+
auth_provider: NeonAuthSupportedAuthProvider
|
|
875
|
+
});
|
|
876
|
+
const NeonAuthDeleteDomainFromRedirectURIWhitelistItem = z.looseObject({ domain: z.string() });
|
|
877
|
+
const NeonAuthDeleteDomainFromRedirectURIWhitelistRequest = z.looseObject({
|
|
878
|
+
auth_provider: NeonAuthSupportedAuthProvider,
|
|
879
|
+
domains: z.array(NeonAuthDeleteDomainFromRedirectURIWhitelistItem)
|
|
880
|
+
});
|
|
881
|
+
const NeonAuthCreateIntegrationRequest = z.looseObject({
|
|
882
|
+
auth_provider: NeonAuthSupportedAuthProvider,
|
|
883
|
+
project_id: z.string(),
|
|
884
|
+
branch_id: z.string(),
|
|
885
|
+
database_name: z.string().nullish(),
|
|
886
|
+
role_name: z.string().nullish()
|
|
887
|
+
});
|
|
888
|
+
const EnableNeonAuthIntegrationRequest = z.looseObject({
|
|
889
|
+
auth_provider: NeonAuthSupportedAuthProvider,
|
|
890
|
+
database_name: z.string().nullish()
|
|
891
|
+
});
|
|
892
|
+
const NeonAuthCreateIntegrationResponse = z.looseObject({
|
|
893
|
+
auth_provider: NeonAuthSupportedAuthProvider,
|
|
894
|
+
auth_provider_project_id: z.string(),
|
|
895
|
+
pub_client_key: z.string(),
|
|
896
|
+
secret_server_key: z.string(),
|
|
897
|
+
jwks_url: z.string(),
|
|
898
|
+
schema_name: z.string(),
|
|
899
|
+
table_name: z.string(),
|
|
900
|
+
base_url: z.string().nullish()
|
|
901
|
+
});
|
|
902
|
+
const NeonAuthCreateAuthProviderSDKKeysRequest = z.looseObject({
|
|
903
|
+
project_id: z.string(),
|
|
904
|
+
auth_provider: NeonAuthSupportedAuthProvider
|
|
905
|
+
});
|
|
906
|
+
const NeonAuthCreateNewUserRequest = z.looseObject({
|
|
907
|
+
project_id: z.string(),
|
|
908
|
+
auth_provider: NeonAuthSupportedAuthProvider,
|
|
909
|
+
email: z.string(),
|
|
910
|
+
name: z.string().nullish()
|
|
911
|
+
});
|
|
912
|
+
const CreateBranchNeonAuthNewUserRequest = z.looseObject({
|
|
913
|
+
email: z.string(),
|
|
914
|
+
name: z.string().nullish()
|
|
915
|
+
});
|
|
916
|
+
const NeonAuthCreateNewUserResponse = z.looseObject({ id: z.string() });
|
|
917
|
+
const UpdateNeonAuthUserRoleRequest = z.looseObject({ roles: z.array(z.string()) });
|
|
918
|
+
const UpdateNeonAuthUserRoleResponse = z.looseObject({ id: z.string() });
|
|
919
|
+
const NeonAuthLogsExportConfig = z.looseObject({ enabled: z.boolean() });
|
|
920
|
+
const NeonAuthAllowLocalhostResponse = z.looseObject({ allow_localhost: z.boolean() });
|
|
921
|
+
const UpdateNeonAuthAllowLocalhostRequest = z.looseObject({ allow_localhost: z.boolean() });
|
|
922
|
+
const NeonAuthOrganizationConfig = z.looseObject({
|
|
923
|
+
enabled: z.boolean(),
|
|
924
|
+
organization_limit: z.number(),
|
|
925
|
+
membership_limit: z.number(),
|
|
926
|
+
creator_role: z.string(),
|
|
927
|
+
send_invitation_email: z.boolean()
|
|
928
|
+
});
|
|
929
|
+
const NeonAuthOrganizationConfigUpdate = z.looseObject({
|
|
930
|
+
enabled: z.boolean().nullish(),
|
|
931
|
+
organization_limit: z.number().nullish(),
|
|
932
|
+
membership_limit: z.number().nullish(),
|
|
933
|
+
creator_role: z.string().nullish(),
|
|
934
|
+
send_invitation_email: z.boolean().nullish()
|
|
935
|
+
});
|
|
936
|
+
const NeonAuthMagicLinkConfig = z.looseObject({
|
|
937
|
+
enabled: z.boolean(),
|
|
938
|
+
expires_in: z.number(),
|
|
939
|
+
disable_sign_up: z.boolean()
|
|
940
|
+
});
|
|
941
|
+
const NeonAuthMagicLinkConfigUpdate = z.looseObject({
|
|
942
|
+
enabled: z.boolean().nullish(),
|
|
943
|
+
expires_in: z.number().nullish(),
|
|
944
|
+
disable_sign_up: z.boolean().nullish()
|
|
945
|
+
});
|
|
946
|
+
const NeonAuthPhoneNumberConfig = z.looseObject({
|
|
947
|
+
enabled: z.boolean(),
|
|
948
|
+
otp_expires_in: z.number().nullish()
|
|
949
|
+
});
|
|
950
|
+
const NeonAuthPhoneNumberConfigUpdate = z.looseObject({
|
|
951
|
+
enabled: z.boolean().nullish(),
|
|
952
|
+
otp_expires_in: z.number().nullish()
|
|
953
|
+
});
|
|
954
|
+
const NeonAuthOAuthProviderResource = z.looseObject({ identifier: z.string() });
|
|
955
|
+
const NeonAuthOAuthProviderMcp = z.looseObject({
|
|
956
|
+
resource: z.string().nullish(),
|
|
957
|
+
dynamic_registration: z.boolean().nullish(),
|
|
958
|
+
client_id_metadata_documents: z.boolean().nullish()
|
|
959
|
+
});
|
|
960
|
+
const NeonAuthOAuthProviderMcpUpdate = z.looseObject({
|
|
961
|
+
resource: z.string(),
|
|
962
|
+
dynamic_registration: z.boolean().nullish(),
|
|
963
|
+
client_id_metadata_documents: z.boolean().nullish()
|
|
964
|
+
});
|
|
965
|
+
const NeonAuthOAuthProviderConfig = z.looseObject({
|
|
966
|
+
enabled: z.boolean(),
|
|
967
|
+
login_page: z.string().nullish(),
|
|
968
|
+
consent_page: z.string().nullish(),
|
|
969
|
+
mcp: NeonAuthOAuthProviderMcp.nullish(),
|
|
970
|
+
resources: z.array(NeonAuthOAuthProviderResource).nullish()
|
|
971
|
+
});
|
|
972
|
+
const NeonAuthOAuthProviderConfigUpdate = z.looseObject({
|
|
973
|
+
enabled: z.boolean().nullish(),
|
|
974
|
+
login_page: z.string().nullish(),
|
|
975
|
+
consent_page: z.string().nullish(),
|
|
976
|
+
mcp: NeonAuthOAuthProviderMcpUpdate.nullish(),
|
|
977
|
+
resources: z.array(NeonAuthOAuthProviderResource).nullish()
|
|
978
|
+
});
|
|
979
|
+
const NeonAuthOAuthClientType = z.string();
|
|
980
|
+
const NeonAuthOAuthClient = z.looseObject({
|
|
981
|
+
client_id: z.string(),
|
|
982
|
+
name: z.string(),
|
|
983
|
+
type: NeonAuthOAuthClientType,
|
|
984
|
+
redirect_uris: z.array(z.string()),
|
|
985
|
+
resources: z.array(z.string()),
|
|
986
|
+
skip_consent: z.boolean(),
|
|
987
|
+
disabled: z.boolean(),
|
|
988
|
+
created_at: z.string().nullish()
|
|
989
|
+
});
|
|
990
|
+
const NeonAuthOAuthClientCreated = z.looseObject({
|
|
991
|
+
client_id: z.string(),
|
|
992
|
+
name: z.string(),
|
|
993
|
+
type: NeonAuthOAuthClientType,
|
|
994
|
+
redirect_uris: z.array(z.string()),
|
|
995
|
+
resources: z.array(z.string()),
|
|
996
|
+
skip_consent: z.boolean(),
|
|
997
|
+
disabled: z.boolean(),
|
|
998
|
+
created_at: z.string().nullish(),
|
|
999
|
+
client_secret: z.string().nullish()
|
|
1000
|
+
});
|
|
1001
|
+
const ListNeonAuthOAuthClientsResponse = z.looseObject({ clients: z.array(NeonAuthOAuthClient) });
|
|
1002
|
+
const NeonAuthOAuthClientCreateRequest = z.looseObject({
|
|
1003
|
+
name: z.string(),
|
|
1004
|
+
redirect_uris: z.array(z.string()),
|
|
1005
|
+
type: NeonAuthOAuthClientType,
|
|
1006
|
+
resources: z.array(z.string()),
|
|
1007
|
+
skip_consent: z.boolean().nullish()
|
|
1008
|
+
});
|
|
1009
|
+
const NeonAuthOAuthClientUpdateRequest = z.looseObject({
|
|
1010
|
+
name: z.string().nullish(),
|
|
1011
|
+
redirect_uris: z.array(z.string()).nullish(),
|
|
1012
|
+
skip_consent: z.boolean().nullish(),
|
|
1013
|
+
disabled: z.boolean().nullish(),
|
|
1014
|
+
resources: z.array(z.string()).nullish()
|
|
1015
|
+
});
|
|
1016
|
+
const NeonAuthOAuthClientSecret = z.looseObject({
|
|
1017
|
+
client_id: z.string(),
|
|
1018
|
+
client_secret: z.string()
|
|
1019
|
+
});
|
|
1020
|
+
const NeonAuthTransferAuthProviderProjectRequest = z.looseObject({
|
|
1021
|
+
project_id: z.string(),
|
|
1022
|
+
auth_provider: NeonAuthSupportedAuthProvider
|
|
1023
|
+
});
|
|
1024
|
+
const NeonAuthTransferAuthProviderProjectResponse = z.looseObject({ url: z.string() });
|
|
1025
|
+
const NeonAuthIntegration = z.looseObject({
|
|
1026
|
+
auth_provider: NeonAuthSupportedAuthProvider,
|
|
1027
|
+
auth_provider_project_id: z.string(),
|
|
1028
|
+
branch_id: z.string(),
|
|
1029
|
+
db_name: z.string(),
|
|
1030
|
+
created_at: z.string(),
|
|
1031
|
+
owned_by: NeonAuthProviderProjectOwnedBy,
|
|
1032
|
+
transfer_status: NeonAuthProviderProjectTransferStatus.nullish(),
|
|
1033
|
+
jwks_url: z.string(),
|
|
1034
|
+
base_url: z.string().nullish(),
|
|
1035
|
+
name: z.string().nullish()
|
|
1036
|
+
});
|
|
1037
|
+
const ListNeonAuthIntegrationsResponse = z.looseObject({ data: z.array(NeonAuthIntegration) });
|
|
1038
|
+
const NeonAuthOauthProviderId = z.string();
|
|
1039
|
+
const NeonAuthOauthProviderType = z.string();
|
|
1040
|
+
const NeonAuthOauthProvider = z.looseObject({
|
|
1041
|
+
id: NeonAuthOauthProviderId,
|
|
1042
|
+
type: NeonAuthOauthProviderType,
|
|
1043
|
+
client_id: z.string().nullish(),
|
|
1044
|
+
client_secret: z.string().nullish(),
|
|
1045
|
+
microsoft_tenant_id: z.string().nullish(),
|
|
1046
|
+
apple_team_id: z.string().nullish(),
|
|
1047
|
+
apple_key_id: z.string().nullish()
|
|
1048
|
+
});
|
|
1049
|
+
const ListNeonAuthOauthProvidersResponse = z.looseObject({ providers: z.array(NeonAuthOauthProvider) });
|
|
1050
|
+
const StandardEmailServerResponse = z.looseObject({
|
|
1051
|
+
host: z.string(),
|
|
1052
|
+
port: z.number(),
|
|
1053
|
+
username: z.string(),
|
|
1054
|
+
password: z.string(),
|
|
1055
|
+
sender_email: z.string(),
|
|
1056
|
+
sender_name: z.string()
|
|
1057
|
+
});
|
|
1058
|
+
const SharedEmailServer = z.looseObject({
|
|
1059
|
+
sender_email: z.string().nullish(),
|
|
1060
|
+
sender_name: z.string().nullish()
|
|
1061
|
+
});
|
|
1062
|
+
const NeonAuthEmailServerConfigResponse = z.union([StandardEmailServerResponse, SharedEmailServer]);
|
|
1063
|
+
const NeonAuthEmailVerificationMethod = z.string();
|
|
1064
|
+
const NeonAuthEmailAndPasswordConfig = z.looseObject({
|
|
1065
|
+
enabled: z.boolean(),
|
|
1066
|
+
email_verification_method: NeonAuthEmailVerificationMethod,
|
|
1067
|
+
require_email_verification: z.boolean(),
|
|
1068
|
+
auto_sign_in_after_verification: z.boolean(),
|
|
1069
|
+
send_verification_email_on_sign_up: z.boolean(),
|
|
1070
|
+
send_verification_email_on_sign_in: z.boolean(),
|
|
1071
|
+
disable_sign_up: z.boolean(),
|
|
1072
|
+
revoke_sessions_on_password_reset: z.boolean()
|
|
1073
|
+
});
|
|
1074
|
+
const NeonAuthPluginConfigs = z.looseObject({
|
|
1075
|
+
organization: NeonAuthOrganizationConfig.nullish(),
|
|
1076
|
+
magic_link: NeonAuthMagicLinkConfig.nullish(),
|
|
1077
|
+
phone_number: NeonAuthPhoneNumberConfig.nullish(),
|
|
1078
|
+
oauth_provider: NeonAuthOAuthProviderConfig.nullish(),
|
|
1079
|
+
email_provider: NeonAuthEmailServerConfigResponse.nullish(),
|
|
1080
|
+
email_and_password: NeonAuthEmailAndPasswordConfig.nullish(),
|
|
1081
|
+
oauth_providers: z.array(NeonAuthOauthProvider).nullish(),
|
|
1082
|
+
allow_localhost: z.boolean().nullish(),
|
|
1083
|
+
logs_export: NeonAuthLogsExportConfig.nullish()
|
|
1084
|
+
});
|
|
1085
|
+
const NeonAuthWebhookConfig = z.looseObject({
|
|
1086
|
+
enabled: z.boolean(),
|
|
1087
|
+
webhook_url: z.string().nullish(),
|
|
1088
|
+
enabled_events: z.array(z.string()).nullish(),
|
|
1089
|
+
timeout_seconds: z.number().nullish()
|
|
1090
|
+
});
|
|
1091
|
+
const NeonAuthAddOAuthProviderRequest = z.looseObject({
|
|
1092
|
+
id: NeonAuthOauthProviderId,
|
|
1093
|
+
client_id: z.string().nullish(),
|
|
1094
|
+
client_secret: z.string().nullish(),
|
|
1095
|
+
microsoft_tenant_id: z.string().nullish(),
|
|
1096
|
+
apple_team_id: z.string().nullish(),
|
|
1097
|
+
apple_key_id: z.string().nullish()
|
|
1098
|
+
});
|
|
1099
|
+
const NeonAuthUpdateOAuthProviderRequest = z.looseObject({
|
|
1100
|
+
client_id: z.string().nullish(),
|
|
1101
|
+
client_secret: z.string().nullish(),
|
|
1102
|
+
microsoft_tenant_id: z.string().nullish(),
|
|
1103
|
+
apple_team_id: z.string().nullish(),
|
|
1104
|
+
apple_key_id: z.string().nullish()
|
|
1105
|
+
});
|
|
1106
|
+
const StandardEmailServer = z.looseObject({
|
|
1107
|
+
host: z.string().nullish(),
|
|
1108
|
+
port: z.number().nullish(),
|
|
1109
|
+
username: z.string().nullish(),
|
|
1110
|
+
password: z.string().nullish(),
|
|
1111
|
+
sender_email: z.string().nullish(),
|
|
1112
|
+
sender_name: z.string().nullish()
|
|
1113
|
+
});
|
|
1114
|
+
const NeonAuthEmailServerConfig = z.union([StandardEmailServer, SharedEmailServer]);
|
|
1115
|
+
const SendNeonAuthTestEmailRequest = z.looseObject({
|
|
1116
|
+
host: z.string(),
|
|
1117
|
+
port: z.number(),
|
|
1118
|
+
username: z.string(),
|
|
1119
|
+
password: z.string(),
|
|
1120
|
+
sender_email: z.string(),
|
|
1121
|
+
sender_name: z.string(),
|
|
1122
|
+
recipient_email: z.string()
|
|
1123
|
+
});
|
|
1124
|
+
const SendNeonAuthEmailProviderTestRequest = z.looseObject({ recipient_email: z.string() });
|
|
1125
|
+
const SendNeonAuthTestEmailResponse = z.looseObject({
|
|
1126
|
+
success: z.boolean(),
|
|
1127
|
+
error_message: z.string().nullish()
|
|
1128
|
+
});
|
|
1129
|
+
const NeonAuthEmailAndPasswordConfigUpdate = z.looseObject({
|
|
1130
|
+
enabled: z.boolean().nullish(),
|
|
1131
|
+
email_verification_method: NeonAuthEmailVerificationMethod.nullish(),
|
|
1132
|
+
require_email_verification: z.boolean().nullish(),
|
|
1133
|
+
auto_sign_in_after_verification: z.boolean().nullish(),
|
|
1134
|
+
send_verification_email_on_sign_up: z.boolean().nullish(),
|
|
1135
|
+
send_verification_email_on_sign_in: z.boolean().nullish(),
|
|
1136
|
+
disable_sign_up: z.boolean().nullish(),
|
|
1137
|
+
revoke_sessions_on_password_reset: z.boolean().nullish()
|
|
1138
|
+
});
|
|
1139
|
+
const NeonAuthConfigUpdate = z.looseObject({ name: z.string() });
|
|
1140
|
+
const NeonAuthConfigResponse = z.looseObject({ name: z.string() });
|
|
1141
|
+
const ErrorCode = z.string();
|
|
1142
|
+
const GeneralError = z.looseObject({
|
|
1143
|
+
request_id: z.string().nullish(),
|
|
1144
|
+
code: ErrorCode,
|
|
1145
|
+
message: z.string()
|
|
1146
|
+
});
|
|
1147
|
+
const BranchOperations = z.looseObject({
|
|
1148
|
+
branch: Branch,
|
|
1149
|
+
operations: z.array(Operation)
|
|
1150
|
+
});
|
|
1151
|
+
const BranchRecoverResponse = z.looseObject({
|
|
1152
|
+
branch: Branch,
|
|
1153
|
+
endpoints: z.array(Endpoint).nullish()
|
|
1154
|
+
});
|
|
1155
|
+
const EndpointOperations = z.looseObject({
|
|
1156
|
+
endpoint: Endpoint,
|
|
1157
|
+
operations: z.array(Operation)
|
|
1158
|
+
});
|
|
1159
|
+
const DatabaseOperations = z.looseObject({
|
|
1160
|
+
database: Database,
|
|
1161
|
+
operations: z.array(Operation)
|
|
1162
|
+
});
|
|
1163
|
+
const RoleOperations = z.looseObject({
|
|
1164
|
+
role: Role,
|
|
1165
|
+
operations: z.array(Operation)
|
|
1166
|
+
});
|
|
1167
|
+
const JWKSCreationOperation = z.looseObject({
|
|
1168
|
+
jwks: JWKS,
|
|
1169
|
+
operations: z.array(Operation)
|
|
1170
|
+
});
|
|
1171
|
+
const AnnotationObjectData = z.looseObject({
|
|
1172
|
+
type: z.string(),
|
|
1173
|
+
id: z.string()
|
|
1174
|
+
});
|
|
1175
|
+
const AnnotationData = z.looseObject({
|
|
1176
|
+
object: AnnotationObjectData,
|
|
1177
|
+
value: AnnotationValueData,
|
|
1178
|
+
created_at: z.string().nullish(),
|
|
1179
|
+
updated_at: z.string().nullish()
|
|
1180
|
+
});
|
|
1181
|
+
const AnnotationResponse = z.looseObject({ annotation: AnnotationData });
|
|
1182
|
+
const AnnotationsMapResponse = z.looseObject({ annotations: z.record(z.string(), AnnotationData) });
|
|
1183
|
+
const ApplicationType = z.string();
|
|
1184
|
+
const ProjectsApplicationsMapResponse = z.looseObject({ applications: z.record(z.string(), z.array(ApplicationType)) });
|
|
1185
|
+
const ProjectsIntegrationsMapResponse = z.looseObject({ integrations: z.record(z.string(), z.array(ApplicationType)) });
|
|
1186
|
+
const CursorPaginationResponse = z.looseObject({ pagination: CursorPagination.nullish() });
|
|
1187
|
+
const Snapshot = z.looseObject({
|
|
1188
|
+
id: z.string(),
|
|
1189
|
+
name: z.string(),
|
|
1190
|
+
lsn: z.string().nullish(),
|
|
1191
|
+
timestamp: z.string().nullish(),
|
|
1192
|
+
source_branch_id: z.string().nullish(),
|
|
1193
|
+
created_at: z.string(),
|
|
1194
|
+
expires_at: z.string().nullish(),
|
|
1195
|
+
manual: z.boolean().nullish(),
|
|
1196
|
+
full_size: z.number().nullish(),
|
|
1197
|
+
diff_size: z.number().nullish()
|
|
1198
|
+
});
|
|
1199
|
+
const SnapshotUpdateRequest = z.looseObject({ snapshot: z.looseObject({
|
|
1200
|
+
name: z.string().nullish(),
|
|
1201
|
+
expires_at: z.string().nullable().nullish()
|
|
1202
|
+
}) });
|
|
1203
|
+
const BackupScheduleItem = z.looseObject({
|
|
1204
|
+
frequency: z.string(),
|
|
1205
|
+
hour: z.number().nullish(),
|
|
1206
|
+
day: z.number().nullish(),
|
|
1207
|
+
month: z.number().nullish(),
|
|
1208
|
+
retention_seconds: z.number().nullish()
|
|
1209
|
+
});
|
|
1210
|
+
const BackupSchedule = z.looseObject({ schedule: z.array(BackupScheduleItem) });
|
|
1211
|
+
const BucketAccessLevel = z.string();
|
|
1212
|
+
const Bucket = z.looseObject({
|
|
1213
|
+
name: z.string(),
|
|
1214
|
+
access_level: BucketAccessLevel,
|
|
1215
|
+
created_at: z.string()
|
|
1216
|
+
});
|
|
1217
|
+
const BucketCreateRequest = z.looseObject({
|
|
1218
|
+
name: z.string(),
|
|
1219
|
+
access_level: z.string().nullish()
|
|
1220
|
+
});
|
|
1221
|
+
const BucketResponse = z.looseObject({ bucket: Bucket });
|
|
1222
|
+
const BucketsListResponse = z.looseObject({ buckets: z.array(Bucket) });
|
|
1223
|
+
const BranchStorage = z.looseObject({
|
|
1224
|
+
enabled: z.boolean(),
|
|
1225
|
+
s3_endpoint: z.string(),
|
|
1226
|
+
region: z.string(),
|
|
1227
|
+
force_path_style: z.boolean()
|
|
1228
|
+
});
|
|
1229
|
+
const BranchStorageNotEnabled = z.looseObject({
|
|
1230
|
+
code: z.string(),
|
|
1231
|
+
message: z.string(),
|
|
1232
|
+
reason: z.string()
|
|
1233
|
+
});
|
|
1234
|
+
const ProjectBranchLogSource = z.string();
|
|
1235
|
+
const ProjectBranchLogSeverity = z.string();
|
|
1236
|
+
const ProjectBranchLogDuration = z.string();
|
|
1237
|
+
const ProjectBranchLogsNotAvailable = z.looseObject({
|
|
1238
|
+
code: z.string(),
|
|
1239
|
+
message: z.string(),
|
|
1240
|
+
reason: z.string()
|
|
1241
|
+
});
|
|
1242
|
+
const ProjectBranchLogsInvalidQuery = z.looseObject({
|
|
1243
|
+
code: z.string(),
|
|
1244
|
+
message: z.string(),
|
|
1245
|
+
reason: z.string()
|
|
1246
|
+
});
|
|
1247
|
+
const ProjectBranchLogsQueryRequest = z.looseObject({
|
|
1248
|
+
since: ProjectBranchLogDuration.nullish(),
|
|
1249
|
+
start_time: z.string().nullish(),
|
|
1250
|
+
end_time: z.string().nullish(),
|
|
1251
|
+
limit: z.number().nullish(),
|
|
1252
|
+
cursor: z.string().nullish(),
|
|
1253
|
+
sort_order: z.string().nullish(),
|
|
1254
|
+
source: ProjectBranchLogSource.nullish(),
|
|
1255
|
+
service_name: z.string().nullish(),
|
|
1256
|
+
scope_name: z.string().nullish(),
|
|
1257
|
+
minimum_severity: ProjectBranchLogSeverity.nullish(),
|
|
1258
|
+
severity_text: z.string().nullish(),
|
|
1259
|
+
body_contains: z.string().nullish(),
|
|
1260
|
+
trace_id: z.string().nullish(),
|
|
1261
|
+
logql: z.string().nullish()
|
|
1262
|
+
});
|
|
1263
|
+
const ProjectBranchLogRecord = z.looseObject({
|
|
1264
|
+
timestamp: z.string(),
|
|
1265
|
+
message: z.string(),
|
|
1266
|
+
source: ProjectBranchLogSource.nullish(),
|
|
1267
|
+
entity_id: z.string().nullish(),
|
|
1268
|
+
service_name: z.string().nullish(),
|
|
1269
|
+
scope_name: z.string().nullish(),
|
|
1270
|
+
severity_number: z.number().nullish(),
|
|
1271
|
+
severity_text: z.string().nullish(),
|
|
1272
|
+
trace_id: z.string().nullish(),
|
|
1273
|
+
span_id: z.string().nullish(),
|
|
1274
|
+
attributes: z.record(z.string(), z.unknown())
|
|
1275
|
+
});
|
|
1276
|
+
const ProjectBranchLogsQueryResponse = z.looseObject({
|
|
1277
|
+
logs: z.array(ProjectBranchLogRecord),
|
|
1278
|
+
next_cursor: z.string().nullish(),
|
|
1279
|
+
is_truncated: z.boolean()
|
|
1280
|
+
});
|
|
1281
|
+
const ProjectBranchLogFieldsResponse = z.looseObject({ fields: z.array(z.string()) });
|
|
1282
|
+
const ProjectBranchLogFieldValuesResponse = z.looseObject({
|
|
1283
|
+
values: z.array(z.string()),
|
|
1284
|
+
is_truncated: z.boolean()
|
|
1285
|
+
});
|
|
1286
|
+
const BranchAiGateway = z.looseObject({
|
|
1287
|
+
enabled: z.boolean(),
|
|
1288
|
+
base_url: z.string()
|
|
1289
|
+
});
|
|
1290
|
+
const BranchAiGatewayNotEnabled = z.looseObject({
|
|
1291
|
+
code: z.string(),
|
|
1292
|
+
message: z.string(),
|
|
1293
|
+
reason: z.string()
|
|
1294
|
+
});
|
|
1295
|
+
const BucketObject = z.looseObject({
|
|
1296
|
+
key: z.string(),
|
|
1297
|
+
size: z.number(),
|
|
1298
|
+
last_modified: z.string(),
|
|
1299
|
+
etag: z.string()
|
|
1300
|
+
});
|
|
1301
|
+
const BucketObjectsListResponse = z.looseObject({
|
|
1302
|
+
folders: z.array(z.string()),
|
|
1303
|
+
objects: z.array(BucketObject),
|
|
1304
|
+
prefix: z.string(),
|
|
1305
|
+
next_cursor: z.string().nullish(),
|
|
1306
|
+
is_truncated: z.boolean()
|
|
1307
|
+
});
|
|
1308
|
+
const BucketObjectsDeletePrefixResponse = z.looseObject({ deleted: z.number() });
|
|
1309
|
+
const PresignRequest = z.looseObject({
|
|
1310
|
+
operation: z.string(),
|
|
1311
|
+
content_type: z.string().nullish(),
|
|
1312
|
+
expires_in_seconds: z.number().nullish()
|
|
1313
|
+
});
|
|
1314
|
+
const PresignResponse = z.looseObject({
|
|
1315
|
+
url: z.string(),
|
|
1316
|
+
method: z.string(),
|
|
1317
|
+
headers: z.record(z.string(), z.string()),
|
|
1318
|
+
expires_at: z.string()
|
|
1319
|
+
});
|
|
1320
|
+
const CredentialScope = z.string();
|
|
1321
|
+
const GrantedCredentialScope = z.string();
|
|
1322
|
+
const CreateCredentialRequest = z.looseObject({
|
|
1323
|
+
name: z.string().nullish(),
|
|
1324
|
+
scopes: z.array(CredentialScope),
|
|
1325
|
+
principal_type: z.string()
|
|
1326
|
+
});
|
|
1327
|
+
const CreateCredentialResponse = z.looseObject({
|
|
1328
|
+
token_id: z.string(),
|
|
1329
|
+
token_id_short: z.string(),
|
|
1330
|
+
name: z.string().nullish(),
|
|
1331
|
+
api_token: z.string(),
|
|
1332
|
+
s3_secret_access_key: z.string(),
|
|
1333
|
+
scopes: z.array(GrantedCredentialScope),
|
|
1334
|
+
branch_id: z.string(),
|
|
1335
|
+
created_at: z.string(),
|
|
1336
|
+
expires_at: z.string().nullish()
|
|
1337
|
+
});
|
|
1338
|
+
const CredentialSecret = z.looseObject({
|
|
1339
|
+
token_id: z.string(),
|
|
1340
|
+
api_token: z.string(),
|
|
1341
|
+
s3_secret_access_key: z.string()
|
|
1342
|
+
});
|
|
1343
|
+
const RotateCredentialResponse = z.looseObject({
|
|
1344
|
+
token_id: z.string(),
|
|
1345
|
+
token_id_short: z.string(),
|
|
1346
|
+
name: z.string().nullish(),
|
|
1347
|
+
api_token: z.string(),
|
|
1348
|
+
s3_secret_access_key: z.string(),
|
|
1349
|
+
scopes: z.array(GrantedCredentialScope),
|
|
1350
|
+
branch_id: z.string(),
|
|
1351
|
+
principal_type: z.string(),
|
|
1352
|
+
created_at: z.string(),
|
|
1353
|
+
expires_at: z.string().nullish()
|
|
1354
|
+
});
|
|
1355
|
+
const CredentialMeta = z.looseObject({
|
|
1356
|
+
token_id: z.string(),
|
|
1357
|
+
token_id_short: z.string(),
|
|
1358
|
+
name: z.string().nullish(),
|
|
1359
|
+
scopes: z.array(GrantedCredentialScope),
|
|
1360
|
+
branch_id: z.string().nullish(),
|
|
1361
|
+
principal_type: z.string(),
|
|
1362
|
+
function_id: z.string().nullish(),
|
|
1363
|
+
created_at: z.string(),
|
|
1364
|
+
last_used_at: z.string().nullish(),
|
|
1365
|
+
revoked_at: z.string().nullish(),
|
|
1366
|
+
expires_at: z.string().nullish()
|
|
1367
|
+
});
|
|
1368
|
+
const ListCredentialsResponse = z.looseObject({ credentials: z.array(CredentialMeta) });
|
|
1369
|
+
const NeonFunctionDeployment = z.looseObject({
|
|
1370
|
+
id: z.number(),
|
|
1371
|
+
status: z.string(),
|
|
1372
|
+
memory_mib: z.number(),
|
|
1373
|
+
runtime: z.string(),
|
|
1374
|
+
created_at: z.string(),
|
|
1375
|
+
environment: z.array(z.string()).nullish(),
|
|
1376
|
+
error: z.string().nullish()
|
|
1377
|
+
});
|
|
1378
|
+
const NeonFunction = z.looseObject({
|
|
1379
|
+
id: z.string(),
|
|
1380
|
+
slug: z.string(),
|
|
1381
|
+
name: z.string(),
|
|
1382
|
+
invocation_url: z.string(),
|
|
1383
|
+
current_deployment: z.looseObject({
|
|
1384
|
+
id: z.number(),
|
|
1385
|
+
status: z.string(),
|
|
1386
|
+
memory_mib: z.number(),
|
|
1387
|
+
runtime: z.string(),
|
|
1388
|
+
created_at: z.string(),
|
|
1389
|
+
environment: z.array(z.string()).nullish(),
|
|
1390
|
+
error: z.string().nullish()
|
|
1391
|
+
}).nullish(),
|
|
1392
|
+
active_deployment: z.looseObject({
|
|
1393
|
+
id: z.number(),
|
|
1394
|
+
status: z.string(),
|
|
1395
|
+
memory_mib: z.number(),
|
|
1396
|
+
runtime: z.string(),
|
|
1397
|
+
created_at: z.string(),
|
|
1398
|
+
environment: z.array(z.string()).nullish(),
|
|
1399
|
+
error: z.string().nullish()
|
|
1400
|
+
}).nullish(),
|
|
1401
|
+
created_at: z.string()
|
|
1402
|
+
});
|
|
1403
|
+
const NeonFunctionResponse = z.looseObject({ function: NeonFunction });
|
|
1404
|
+
const NeonFunctionsListResponse = z.looseObject({ functions: z.array(NeonFunction) });
|
|
1405
|
+
const TriggerID = z.string();
|
|
1406
|
+
const FunctionTriggerSchedule = z.looseObject({ cron: z.string() });
|
|
1407
|
+
const FunctionTriggerStorageObjectCreated = z.looseObject({
|
|
1408
|
+
bucket_name: z.string(),
|
|
1409
|
+
prefix: z.string().nullish()
|
|
1410
|
+
});
|
|
1411
|
+
const ScheduleTriggerCreateRequest = z.looseObject({
|
|
1412
|
+
type: z.string(),
|
|
1413
|
+
function_slug: z.string(),
|
|
1414
|
+
name: z.string(),
|
|
1415
|
+
function_path: z.string().nullish(),
|
|
1416
|
+
schedule: FunctionTriggerSchedule,
|
|
1417
|
+
enabled: z.boolean().nullish()
|
|
1418
|
+
});
|
|
1419
|
+
const StorageObjectCreatedTriggerCreateRequest = z.looseObject({
|
|
1420
|
+
type: z.string(),
|
|
1421
|
+
function_slug: z.string(),
|
|
1422
|
+
name: z.string(),
|
|
1423
|
+
function_path: z.string().nullish(),
|
|
1424
|
+
storage_object_created: FunctionTriggerStorageObjectCreated,
|
|
1425
|
+
enabled: z.boolean().nullish()
|
|
1426
|
+
});
|
|
1427
|
+
const TriggerCreateRequest = z.union([ScheduleTriggerCreateRequest, StorageObjectCreatedTriggerCreateRequest]);
|
|
1428
|
+
const ScheduleTriggerUpdateRequest = z.looseObject({
|
|
1429
|
+
type: z.string(),
|
|
1430
|
+
function_slug: z.string().nullish(),
|
|
1431
|
+
name: z.string().nullish(),
|
|
1432
|
+
function_path: z.string().nullish(),
|
|
1433
|
+
schedule: FunctionTriggerSchedule.nullish(),
|
|
1434
|
+
enabled: z.boolean().nullish()
|
|
1435
|
+
});
|
|
1436
|
+
const StorageObjectCreatedTriggerUpdateRequest = z.looseObject({
|
|
1437
|
+
type: z.string(),
|
|
1438
|
+
function_slug: z.string().nullish(),
|
|
1439
|
+
name: z.string().nullish(),
|
|
1440
|
+
function_path: z.string().nullish(),
|
|
1441
|
+
storage_object_created: FunctionTriggerStorageObjectCreated.nullish(),
|
|
1442
|
+
enabled: z.boolean().nullish()
|
|
1443
|
+
});
|
|
1444
|
+
const TriggerUpdateRequest = z.union([ScheduleTriggerUpdateRequest, StorageObjectCreatedTriggerUpdateRequest]);
|
|
1445
|
+
const ScheduleTrigger = z.looseObject({
|
|
1446
|
+
type: z.string(),
|
|
1447
|
+
trigger_id: TriggerID,
|
|
1448
|
+
function_slug: z.string(),
|
|
1449
|
+
name: z.string(),
|
|
1450
|
+
function_path: z.string(),
|
|
1451
|
+
schedule: FunctionTriggerSchedule,
|
|
1452
|
+
enabled: z.boolean(),
|
|
1453
|
+
version: z.number(),
|
|
1454
|
+
next_run_at: z.string().nullable(),
|
|
1455
|
+
inherited: z.boolean()
|
|
1456
|
+
});
|
|
1457
|
+
const StorageObjectCreatedTrigger = z.looseObject({
|
|
1458
|
+
type: z.string(),
|
|
1459
|
+
trigger_id: TriggerID,
|
|
1460
|
+
function_slug: z.string(),
|
|
1461
|
+
name: z.string(),
|
|
1462
|
+
function_path: z.string(),
|
|
1463
|
+
storage_object_created: FunctionTriggerStorageObjectCreated,
|
|
1464
|
+
enabled: z.boolean(),
|
|
1465
|
+
version: z.number(),
|
|
1466
|
+
inherited: z.boolean()
|
|
1467
|
+
});
|
|
1468
|
+
const Trigger = z.union([ScheduleTrigger, StorageObjectCreatedTrigger]);
|
|
1469
|
+
const TriggerResponse = z.looseObject({ trigger: Trigger });
|
|
1470
|
+
const TriggersListResponse = z.looseObject({ triggers: z.array(Trigger) });
|
|
1471
|
+
const CustomDomain = z.looseObject({
|
|
1472
|
+
domain: z.string(),
|
|
1473
|
+
entity_type: z.string(),
|
|
1474
|
+
entity_id: z.string(),
|
|
1475
|
+
cname_target: z.string(),
|
|
1476
|
+
status: z.string().nullish(),
|
|
1477
|
+
dns_status: z.string().nullish(),
|
|
1478
|
+
binding_status: z.string().nullish(),
|
|
1479
|
+
status_reason: z.string().nullish()
|
|
1480
|
+
});
|
|
1481
|
+
const CustomDomainRegisterRequest = z.looseObject({
|
|
1482
|
+
domain: z.string(),
|
|
1483
|
+
entity_type: z.string(),
|
|
1484
|
+
entity_id: z.string()
|
|
1485
|
+
});
|
|
1486
|
+
const CustomDomainsListResponse = z.looseObject({ custom_domains: z.array(CustomDomain) });
|
|
1487
|
+
const NeonFunctionUpdateRequest = z.looseObject({ name: z.string().nullable() });
|
|
1488
|
+
const NeonFunctionDeploymentResponse = z.looseObject({ deployment: NeonFunctionDeployment });
|
|
1489
|
+
const FunctionDeployRequest = z.looseObject({
|
|
1490
|
+
zip: z.looseObject({
|
|
1491
|
+
base64: z.string(),
|
|
1492
|
+
contentType: z.string(),
|
|
1493
|
+
size: z.number()
|
|
1494
|
+
}).nullish(),
|
|
1495
|
+
runtime: z.string().nullish(),
|
|
1496
|
+
environment: z.string().nullish()
|
|
1497
|
+
});
|
|
1498
|
+
export { AcceptProjectTransferRequestSatisfiesPlanError, ActiveRegionsResponse, AddProjectJWKSRequest, AdvisorCategory, AdvisorIssue, AllowedIps, AnnotationCreateValueRequest, AnnotationData, AnnotationObjectData, AnnotationResponse, AnnotationValueData, AnnotationsMapResponse, AnonymizationRunMetadata, AnonymizedBranchStatusResponse, ApiKeyCreateRequest, ApiKeyCreateResponse, ApiKeyCreatorData, ApiKeyRevokeResponse, ApiKeysListResponseItem, ApplicationType, AuthDetailsResponse, AvailablePreloadLibraries, AvailablePreloadLibrary, BackupSchedule, BackupScheduleItem, BillingAccount, BillingAccountState, BillingPaymentMethod, BillingSubscriptionType, Branch, BranchAiGateway, BranchAiGatewayNotEnabled, BranchAnonymizedCreateRequest, BranchCreateRequest, BranchCreateRequestEndpointOptions, BranchOperations, BranchRecoverResponse, BranchRecoveryInfo, BranchResponse, BranchRestoreRequest, BranchRestoreStatus, BranchRestrictedAction, BranchSchemaCompareResponse, BranchSchemaJSON, BranchSchemaResponse, BranchState, BranchStorage, BranchStorageNotEnabled, BranchUpdateRequest, BranchesCountResponse, BranchesResponse, Bucket, BucketAccessLevel, BucketCreateRequest, BucketObject, BucketObjectsDeletePrefixResponse, BucketObjectsListResponse, BucketResponse, BucketsListResponse, ComputeUnit, ConnectionDetails, ConnectionParameters, ConnectionURIResponse, ConnectionURIsOptionalResponse, ConnectionURIsResponse, ConsumptionHistoryGranularity, ConsumptionHistoryPerBranchV2, ConsumptionHistoryPerBranchV2Response, ConsumptionHistoryPerPeriod, ConsumptionHistoryPerPeriodV2, ConsumptionHistoryPerProject, ConsumptionHistoryPerProjectResponse, ConsumptionHistoryPerProjectV2, ConsumptionHistoryPerProjectV2Response, ConsumptionHistoryPerTimeframe, ConsumptionHistoryPerTimeframeV2, ConsumptionHistoryQueryMetrics, ConsumptionMetricValue, CreateBranchNeonAuthNewUserRequest, CreateCredentialRequest, CreateCredentialResponse, CredentialMeta, CredentialScope, CredentialSecret, CurrentUserAuthAccount, CurrentUserInfoResponse, CursorPagination, CursorPaginationResponse, CustomDomain, CustomDomainRegisterRequest, CustomDomainsListResponse, DataAPICreateRequest, DataAPICreateResponse, DataAPIReponse, DataAPISettings, DataAPIUpdateRequest, Database, DatabaseCreateRequest, DatabaseOperations, DatabaseResponse, DatabaseUpdateRequest, DatabasesResponse, DefaultEndpointSettings, EmptyResponse, EnableNeonAuthIntegrationRequest, Endpoint, EndpointCreateRequest, EndpointOperations, EndpointPoolerMode, EndpointResponse, EndpointSettingsData, EndpointState, EndpointType, EndpointUpdateRequest, EndpointsOptionalResponse, EndpointsResponse, ErrorCode, FunctionDeployRequest, FunctionTriggerSchedule, FunctionTriggerStorageObjectCreated, GeneralError, GrantPermissionToProjectRequest, GrantedCredentialScope, IdentityProviderId, Invitation, JWKS, JWKSCreationOperation, JWKSResponse, LimitsUnsatisfiedResponse, ListCredentialsResponse, ListNeonAuthIntegrationsResponse, ListNeonAuthOAuthClientsResponse, ListNeonAuthOauthProvidersResponse, MaintenanceWindow, MaskingRule, MaskingRulesResponse, MaskingRulesUpdateRequest, Member, MemberRole, MemberUserInfo, MemberWithUser, NeonAuthAddDomainToRedirectURIWhitelistRequest, NeonAuthAddOAuthProviderRequest, NeonAuthAllowLocalhostResponse, NeonAuthConfigResponse, NeonAuthConfigUpdate, NeonAuthCreateAuthProviderSDKKeysRequest, NeonAuthCreateIntegrationRequest, NeonAuthCreateIntegrationResponse, NeonAuthCreateNewUserRequest, NeonAuthCreateNewUserResponse, NeonAuthDeleteDomainFromRedirectURIWhitelistItem, NeonAuthDeleteDomainFromRedirectURIWhitelistRequest, NeonAuthEmailAndPasswordConfig, NeonAuthEmailAndPasswordConfigUpdate, NeonAuthEmailServerConfig, NeonAuthEmailServerConfigResponse, NeonAuthEmailVerificationMethod, NeonAuthIntegration, NeonAuthLogsExportConfig, NeonAuthMagicLinkConfig, NeonAuthMagicLinkConfigUpdate, NeonAuthOAuthClient, NeonAuthOAuthClientCreateRequest, NeonAuthOAuthClientCreated, NeonAuthOAuthClientSecret, NeonAuthOAuthClientType, NeonAuthOAuthClientUpdateRequest, NeonAuthOAuthProviderConfig, NeonAuthOAuthProviderConfigUpdate, NeonAuthOAuthProviderMcp, NeonAuthOAuthProviderMcpUpdate, NeonAuthOAuthProviderResource, NeonAuthOauthProvider, NeonAuthOauthProviderId, NeonAuthOauthProviderType, NeonAuthOrganizationConfig, NeonAuthOrganizationConfigUpdate, NeonAuthPhoneNumberConfig, NeonAuthPhoneNumberConfigUpdate, NeonAuthPluginConfigs, NeonAuthProviderProjectOwnedBy, NeonAuthProviderProjectTransferStatus, NeonAuthRedirectURIWhitelistDomain, NeonAuthRedirectURIWhitelistResponse, NeonAuthSupportedAuthProvider, NeonAuthTransferAuthProviderProjectRequest, NeonAuthTransferAuthProviderProjectResponse, NeonAuthUpdateOAuthProviderRequest, NeonAuthWebhookConfig, NeonFunction, NeonFunctionDeployment, NeonFunctionDeploymentResponse, NeonFunctionResponse, NeonFunctionUpdateRequest, NeonFunctionsListResponse, Operation, OperationAction, OperationResponse, OperationStatus, OperationsResponse, OrgApiKeyCreateRequest, OrgApiKeyCreateResponse, OrgApiKeyRevokeResponse, OrgApiKeysListResponseItem, Organization, OrganizationInvitationsResponse, OrganizationInviteCreateRequest, OrganizationInvitesCreateRequest, OrganizationMemberUpdateRequest, OrganizationMembersResponse, OrganizationsResponse, Pagination, PaginationResponse, PaymentSource, PaymentSourceBankCard, PgSettingsData, PgVersion, PgbouncerSettingsData, PlanDetails, PlanVersion, PreloadLibraries, PresignRequest, PresignResponse, Project, ProjectAuditLogLevel, ProjectBranchLogDuration, ProjectBranchLogFieldValuesResponse, ProjectBranchLogFieldsResponse, ProjectBranchLogRecord, ProjectBranchLogSeverity, ProjectBranchLogSource, ProjectBranchLogsInvalidQuery, ProjectBranchLogsNotAvailable, ProjectBranchLogsQueryRequest, ProjectBranchLogsQueryResponse, ProjectCreateRequest, ProjectJWKSResponse, ProjectListItem, ProjectMember, ProjectMemberGrantSource, ProjectMemberOrgRole, ProjectMemberRoleResponse, ProjectMembers, ProjectOwnerData, ProjectPermission, ProjectPermissionLevel, ProjectPermissions, ProjectQuota, ProjectRecoverResponse, ProjectResponse, ProjectRole, ProjectSettingsData, ProjectTransferRequestResponse, ProjectUpdateRequest, ProjectsApplicationsMapResponse, ProjectsCountResponse, ProjectsIntegrationsMapResponse, ProjectsResponse, ProjectsWithIntegrationResponse, Provisioner, Realtime, RealtimeOptions, RealtimeSecret, RegionResponse, Role, RoleCreateRequest, RoleOperations, RolePasswordResponse, RoleResponse, RolesResponse, RotateCredentialResponse, ScheduleTrigger, ScheduleTriggerCreateRequest, ScheduleTriggerUpdateRequest, SendNeonAuthEmailProviderTestRequest, SendNeonAuthTestEmailRequest, SendNeonAuthTestEmailResponse, SetProjectMemberRoleRequest, SharedEmailServer, Snapshot, SnapshotUpdateRequest, SpendingLimitResponse, SpendingLimitUpdateRequest, StandardEmailServer, StandardEmailServerResponse, StorageObjectCreatedTrigger, StorageObjectCreatedTriggerCreateRequest, StorageObjectCreatedTriggerUpdateRequest, SuspendTimeoutSeconds, TransferProjectsToOrganizationRequest, Trigger, TriggerCreateRequest, TriggerID, TriggerResponse, TriggerUpdateRequest, TriggersListResponse, UpdateNeonAuthAllowLocalhostRequest, UpdateNeonAuthUserRoleRequest, UpdateNeonAuthUserRoleResponse, VPCEndpoint, VPCEndpointAssignment, VPCEndpointDetails, VPCEndpointWithRegion, VPCEndpointsResponse, VPCEndpointsWithRegionResponse };
|