@distilled.cloud/neon 0.19.2 → 0.20.1
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/lib/operations/acceptProjectTransferRequest.d.ts +1 -1
- package/lib/operations/addBranchNeonAuthOauthProvider.d.ts +4 -4
- package/lib/operations/addBranchNeonAuthTrustedDomain.d.ts +2 -2
- package/lib/operations/addProjectJWKS.d.ts +14 -14
- package/lib/operations/assignOrganizationVPCEndpoint.d.ts +1 -1
- package/lib/operations/assignProjectVPCEndpoint.d.ts +1 -1
- package/lib/operations/createApiKey.d.ts +2 -2
- package/lib/operations/createBranchNeonAuthNewUser.d.ts +1 -1
- package/lib/operations/createNeonAuth.d.ts +5 -5
- package/lib/operations/createNeonAuthProviderSDKKeys.d.ts +4 -4
- package/lib/operations/createOrgApiKey.d.ts +3 -3
- package/lib/operations/createOrganizationInvitations.d.ts +4 -4
- package/lib/operations/createProject.d.ts +187 -187
- package/lib/operations/createProjectBranch.d.ts +91 -91
- package/lib/operations/createProjectBranchAnonymized.d.ts +91 -91
- package/lib/operations/createProjectBranchDataAPI.d.ts +6 -6
- package/lib/operations/createProjectBranchDatabase.d.ts +9 -9
- package/lib/operations/createProjectBranchRole.d.ts +16 -16
- package/lib/operations/createProjectEndpoint.d.ts +36 -36
- package/lib/operations/createProjectTransferRequest.d.ts +2 -2
- package/lib/operations/createSnapshot.d.ts +21 -21
- package/lib/operations/deleteBranchNeonAuthOauthProvider.d.ts +1 -1
- package/lib/operations/deleteBranchNeonAuthTrustedDomain.d.ts +2 -2
- package/lib/operations/deleteBranchNeonAuthUser.d.ts +2 -2
- package/lib/operations/deleteProject.d.ts +48 -48
- package/lib/operations/deleteProjectBranch.d.ts +34 -34
- package/lib/operations/deleteProjectBranchDataAPI.d.ts +1 -1
- package/lib/operations/deleteProjectBranchDatabase.d.ts +9 -9
- package/lib/operations/deleteProjectBranchRole.d.ts +16 -16
- package/lib/operations/deleteProjectEndpoint.d.ts +26 -26
- package/lib/operations/deleteProjectJWKS.d.ts +6 -6
- package/lib/operations/disableNeonAuth.d.ts +1 -1
- package/lib/operations/finalizeRestoreBranch.d.ts +7 -7
- package/lib/operations/getActiveRegions.d.ts +2 -2
- package/lib/operations/getAnonymizedBranchStatus.d.ts +7 -7
- package/lib/operations/getAuthDetails.d.ts +1 -1
- package/lib/operations/getAvailablePreloadLibraries.d.ts +1 -1
- package/lib/operations/getConnectionURI.d.ts +3 -3
- package/lib/operations/getConsumptionHistoryPerAccount.d.ts +10 -10
- package/lib/operations/getConsumptionHistoryPerProject.d.ts +16 -16
- package/lib/operations/getConsumptionHistoryPerProjectV2.d.ts +14 -14
- package/lib/operations/getCurrentUserInfo.d.ts +29 -29
- package/lib/operations/getCurrentUserOrganizations.d.ts +5 -5
- package/lib/operations/getMaskingRules.d.ts +4 -4
- package/lib/operations/getNeonAuth.d.ts +5 -5
- package/lib/operations/getNeonAuthAllowLocalhost.d.ts +1 -1
- package/lib/operations/getNeonAuthEmailAndPasswordConfig.d.ts +5 -5
- package/lib/operations/getNeonAuthEmailProvider.d.ts +1 -1
- package/lib/operations/getNeonAuthPhoneNumberPlugin.d.ts +2 -2
- package/lib/operations/getNeonAuthPluginConfigs.d.ts +25 -25
- package/lib/operations/getNeonAuthWebhookConfig.d.ts +2 -2
- package/lib/operations/getOrganization.d.ts +5 -5
- package/lib/operations/getOrganizationInvitations.d.ts +3 -3
- package/lib/operations/getOrganizationMember.d.ts +3 -3
- package/lib/operations/getOrganizationMembers.d.ts +5 -5
- package/lib/operations/getOrganizationVPCEndpointDetails.d.ts +3 -3
- package/lib/operations/getProject.d.ts +48 -48
- package/lib/operations/getProjectAdvisorSecurityIssues.d.ts +8 -8
- package/lib/operations/getProjectBranch.d.ts +39 -39
- package/lib/operations/getProjectBranchDataAPI.d.ts +5 -5
- package/lib/operations/getProjectBranchDatabase.d.ts +3 -3
- package/lib/operations/getProjectBranchRole.d.ts +3 -3
- package/lib/operations/getProjectBranchRolePassword.d.ts +1 -1
- package/lib/operations/getProjectBranchSchema.d.ts +9 -9
- package/lib/operations/getProjectBranchSchemaComparison.d.ts +4 -4
- package/lib/operations/getProjectEndpoint.d.ts +20 -20
- package/lib/operations/getProjectJWKS.d.ts +5 -5
- package/lib/operations/getProjectOperation.d.ts +7 -7
- package/lib/operations/getSnapshotSchedule.d.ts +2 -2
- package/lib/operations/grantPermissionToProject.d.ts +3 -3
- package/lib/operations/listApiKeys.d.ts +3 -3
- package/lib/operations/listBranchNeonAuthOauthProviders.d.ts +3 -3
- package/lib/operations/listBranchNeonAuthTrustedDomains.d.ts +2 -2
- package/lib/operations/listOrgApiKeys.d.ts +3 -3
- package/lib/operations/listOrganizationVPCEndpoints.d.ts +1 -1
- package/lib/operations/listOrganizationVPCEndpointsAllRegions.d.ts +1 -1
- package/lib/operations/listProjectBranchDatabases.d.ts +3 -3
- package/lib/operations/listProjectBranchEndpoints.d.ts +20 -20
- package/lib/operations/listProjectBranchRoles.d.ts +3 -3
- package/lib/operations/listProjectBranches.d.ts +43 -43
- package/lib/operations/listProjectEndpoints.d.ts +19 -19
- package/lib/operations/listProjectOperations.d.ts +7 -7
- package/lib/operations/listProjectPermissions.d.ts +2 -2
- package/lib/operations/listProjectVPCEndpoints.d.ts +1 -1
- package/lib/operations/listProjects.d.ts +51 -51
- package/lib/operations/listSharedProjects.d.ts +43 -43
- package/lib/operations/listSnapshots.d.ts +7 -7
- package/lib/operations/recoverProject.d.ts +90 -90
- package/lib/operations/recoverProjectBranch.d.ts +47 -47
- package/lib/operations/removeOrganizationMember.d.ts +1 -1
- package/lib/operations/resetProjectBranchRolePassword.d.ts +16 -16
- package/lib/operations/restartProjectEndpoint.d.ts +26 -26
- package/lib/operations/restoreProjectBranch.d.ts +35 -35
- package/lib/operations/restoreSnapshot.d.ts +54 -54
- package/lib/operations/revokeApiKey.d.ts +2 -2
- package/lib/operations/revokeOrgApiKey.d.ts +4 -4
- package/lib/operations/revokePermissionFromProject.d.ts +3 -3
- package/lib/operations/sendNeonAuthTestEmail.d.ts +5 -5
- package/lib/operations/setDefaultProjectBranch.d.ts +34 -34
- package/lib/operations/setSnapshotSchedule.d.ts +2 -2
- package/lib/operations/startAnonymization.d.ts +7 -7
- package/lib/operations/startProjectEndpoint.d.ts +26 -26
- package/lib/operations/suspendProjectEndpoint.d.ts +26 -26
- package/lib/operations/transferNeonAuthProviderProject.d.ts +1 -1
- package/lib/operations/transferProjectsFromOrgToOrg.d.ts +1 -1
- package/lib/operations/updateBranchNeonAuthOauthProvider.d.ts +4 -4
- package/lib/operations/updateMaskingRules.d.ts +7 -7
- package/lib/operations/updateNeonAuthAllowLocalhost.d.ts +2 -2
- package/lib/operations/updateNeonAuthConfig.d.ts +1 -1
- package/lib/operations/updateNeonAuthEmailAndPasswordConfig.d.ts +9 -9
- package/lib/operations/updateNeonAuthEmailProvider.d.ts +1 -1
- package/lib/operations/updateNeonAuthMagicLinkPlugin.d.ts +3 -3
- package/lib/operations/updateNeonAuthOrganizationPlugin.d.ts +5 -5
- package/lib/operations/updateNeonAuthPhoneNumberPlugin.d.ts +3 -3
- package/lib/operations/updateNeonAuthUserRole.d.ts +2 -2
- package/lib/operations/updateNeonAuthWebhookConfig.d.ts +3 -3
- package/lib/operations/updateOrganizationMember.d.ts +3 -3
- package/lib/operations/updateProject.d.ts +89 -89
- package/lib/operations/updateProjectBranch.d.ts +36 -36
- package/lib/operations/updateProjectBranchDataAPI.d.ts +2 -2
- package/lib/operations/updateProjectBranchDatabase.d.ts +10 -10
- package/lib/operations/updateProjectEndpoint.d.ts +35 -35
- package/lib/operations/updateSnapshot.d.ts +8 -8
- package/package.json +3 -3
|
@@ -140,139 +140,139 @@ export type UpdateProjectOutput = typeof UpdateProjectOutput.Type;
|
|
|
140
140
|
* @param project_id - The Neon project ID
|
|
141
141
|
*/
|
|
142
142
|
export declare const updateProject: import("@distilled.cloud/core/client").OperationMethod<{
|
|
143
|
+
readonly project_id: string;
|
|
143
144
|
readonly project: {
|
|
144
|
-
readonly default_endpoint_settings?: {
|
|
145
|
-
readonly autoscaling_limit_max_cu?: number | undefined;
|
|
146
|
-
readonly autoscaling_limit_min_cu?: number | undefined;
|
|
147
|
-
readonly pg_settings?: {
|
|
148
|
-
readonly [x: string]: string;
|
|
149
|
-
} | undefined;
|
|
150
|
-
readonly pgbouncer_settings?: {
|
|
151
|
-
readonly [x: string]: string;
|
|
152
|
-
} | undefined;
|
|
153
|
-
readonly suspend_timeout_seconds?: number | undefined;
|
|
154
|
-
} | undefined;
|
|
155
|
-
readonly history_retention_seconds?: number | undefined;
|
|
156
|
-
readonly name?: string | undefined;
|
|
157
145
|
readonly settings?: {
|
|
146
|
+
readonly quota?: {
|
|
147
|
+
readonly active_time_seconds?: number | undefined;
|
|
148
|
+
readonly compute_time_seconds?: number | undefined;
|
|
149
|
+
readonly written_data_bytes?: number | undefined;
|
|
150
|
+
readonly data_transfer_bytes?: number | undefined;
|
|
151
|
+
readonly logical_size_bytes?: number | undefined;
|
|
152
|
+
} | undefined;
|
|
158
153
|
readonly allowed_ips?: {
|
|
159
154
|
readonly ips?: readonly string[] | undefined;
|
|
160
155
|
readonly protected_branches_only?: boolean | undefined;
|
|
161
156
|
} | undefined;
|
|
162
|
-
readonly audit_log_level?: "base" | "extended" | "full" | undefined;
|
|
163
|
-
readonly block_public_connections?: boolean | undefined;
|
|
164
|
-
readonly block_vpc_connections?: boolean | undefined;
|
|
165
157
|
readonly enable_logical_replication?: boolean | undefined;
|
|
166
|
-
readonly hipaa?: boolean | undefined;
|
|
167
158
|
readonly maintenance_window?: {
|
|
168
|
-
readonly end_time: string;
|
|
169
|
-
readonly start_time: string;
|
|
170
159
|
readonly weekdays: readonly number[];
|
|
160
|
+
readonly start_time: string;
|
|
161
|
+
readonly end_time: string;
|
|
171
162
|
} | undefined;
|
|
163
|
+
readonly block_public_connections?: boolean | undefined;
|
|
164
|
+
readonly block_vpc_connections?: boolean | undefined;
|
|
165
|
+
readonly audit_log_level?: "base" | "extended" | "full" | undefined;
|
|
166
|
+
readonly hipaa?: boolean | undefined;
|
|
172
167
|
readonly preload_libraries?: {
|
|
173
|
-
readonly enabled_libraries?: readonly string[] | undefined;
|
|
174
168
|
readonly use_defaults?: boolean | undefined;
|
|
169
|
+
readonly enabled_libraries?: readonly string[] | undefined;
|
|
175
170
|
} | undefined;
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
readonly
|
|
181
|
-
|
|
171
|
+
} | undefined;
|
|
172
|
+
readonly name?: string | undefined;
|
|
173
|
+
readonly default_endpoint_settings?: {
|
|
174
|
+
readonly pg_settings?: {
|
|
175
|
+
readonly [x: string]: string;
|
|
176
|
+
} | undefined;
|
|
177
|
+
readonly pgbouncer_settings?: {
|
|
178
|
+
readonly [x: string]: string;
|
|
182
179
|
} | undefined;
|
|
180
|
+
readonly autoscaling_limit_min_cu?: number | undefined;
|
|
181
|
+
readonly autoscaling_limit_max_cu?: number | undefined;
|
|
182
|
+
readonly suspend_timeout_seconds?: number | undefined;
|
|
183
183
|
} | undefined;
|
|
184
|
+
readonly history_retention_seconds?: number | undefined;
|
|
184
185
|
};
|
|
185
|
-
readonly project_id: string;
|
|
186
186
|
}, {
|
|
187
|
-
readonly operations: readonly {
|
|
188
|
-
readonly action: "apply_config" | "apply_schema_from_branch" | "apply_storage_config" | "check_availability" | "create_branch" | "create_compute" | "create_timeline" | "delete_timeline" | "detach_parent_branch" | "disable_maintenance" | "finalize_migration" | "import_data" | "mark_migration_prepared" | "prepare_secondary_pageserver" | "prewarm_replica" | "promote_replica" | "replace_safekeeper" | "set_storage_non_dirty" | "start_compute" | "start_reserved_compute" | "suspend_compute" | "swap_binding_id" | "switch_pageserver" | "sync_dbs_and_roles_from_compute" | "tenant_attach" | "tenant_detach" | "tenant_ignore" | "tenant_reattach" | "timeline_archive" | "timeline_mark_invisible" | "timeline_unarchive" | "timeline_update_protected_config";
|
|
189
|
-
readonly branch_id?: string | undefined;
|
|
190
|
-
readonly created_at: string;
|
|
191
|
-
readonly endpoint_id?: string | undefined;
|
|
192
|
-
readonly error?: string | undefined;
|
|
193
|
-
readonly failures_count: number;
|
|
194
|
-
readonly id: string;
|
|
195
|
-
readonly project_id: string;
|
|
196
|
-
readonly retry_at?: string | undefined;
|
|
197
|
-
readonly status: "cancelled" | "cancelling" | "error" | "failed" | "finished" | "running" | "scheduling" | "skipped";
|
|
198
|
-
readonly total_duration_ms: number;
|
|
199
|
-
readonly updated_at: string;
|
|
200
|
-
}[];
|
|
201
187
|
readonly project: {
|
|
202
|
-
readonly active_time_seconds: number;
|
|
203
|
-
readonly branch_logical_size_limit: number;
|
|
204
|
-
readonly branch_logical_size_limit_bytes: number;
|
|
205
|
-
readonly compute_last_active_at?: string | undefined;
|
|
206
|
-
readonly compute_time_seconds: number;
|
|
207
|
-
readonly consumption_period_end: string;
|
|
208
|
-
readonly consumption_period_start: string;
|
|
209
|
-
readonly cpu_used_sec: number;
|
|
210
|
-
readonly created_at: string;
|
|
211
|
-
readonly creation_source: string;
|
|
212
188
|
readonly data_storage_bytes_hour: number;
|
|
213
189
|
readonly data_transfer_bytes: number;
|
|
190
|
+
readonly written_data_bytes: number;
|
|
191
|
+
readonly compute_time_seconds: number;
|
|
192
|
+
readonly active_time_seconds: number;
|
|
193
|
+
readonly cpu_used_sec: number;
|
|
194
|
+
readonly id: string;
|
|
195
|
+
readonly platform_id: string;
|
|
196
|
+
readonly region_id: string;
|
|
197
|
+
readonly name: string;
|
|
198
|
+
readonly provisioner: string;
|
|
214
199
|
readonly default_endpoint_settings?: {
|
|
215
|
-
readonly autoscaling_limit_max_cu?: number | undefined;
|
|
216
|
-
readonly autoscaling_limit_min_cu?: number | undefined;
|
|
217
200
|
readonly pg_settings?: {
|
|
218
201
|
readonly [x: string]: string;
|
|
219
202
|
} | undefined;
|
|
220
203
|
readonly pgbouncer_settings?: {
|
|
221
204
|
readonly [x: string]: string;
|
|
222
205
|
} | undefined;
|
|
206
|
+
readonly autoscaling_limit_min_cu?: number | undefined;
|
|
207
|
+
readonly autoscaling_limit_max_cu?: number | undefined;
|
|
223
208
|
readonly suspend_timeout_seconds?: number | undefined;
|
|
224
209
|
} | undefined;
|
|
225
|
-
readonly hipaa_enabled_at?: string | undefined;
|
|
226
|
-
readonly history_retention_seconds: number;
|
|
227
|
-
readonly id: string;
|
|
228
|
-
readonly maintenance_scheduled_for?: string | undefined;
|
|
229
|
-
readonly maintenance_starts_at?: string | undefined;
|
|
230
|
-
readonly name: string;
|
|
231
|
-
readonly org_id?: string | undefined;
|
|
232
|
-
readonly owner?: {
|
|
233
|
-
readonly branches_limit: number;
|
|
234
|
-
readonly email: string;
|
|
235
|
-
readonly name: string;
|
|
236
|
-
readonly subscription_type: "UNKNOWN" | "aws_marketplace" | "business" | "direct_sales" | "direct_sales_v3" | "free_v2" | "free_v3" | "launch" | "launch_v3" | "scale" | "scale_v3" | "vercel_pg_legacy";
|
|
237
|
-
} | undefined;
|
|
238
|
-
readonly owner_id: string;
|
|
239
|
-
readonly pg_version: number;
|
|
240
|
-
readonly platform_id: string;
|
|
241
|
-
readonly provisioner: string;
|
|
242
|
-
readonly proxy_host: string;
|
|
243
|
-
readonly quota_reset_at?: string | undefined;
|
|
244
|
-
readonly region_id: string;
|
|
245
210
|
readonly settings?: {
|
|
211
|
+
readonly quota?: {
|
|
212
|
+
readonly active_time_seconds?: number | undefined;
|
|
213
|
+
readonly compute_time_seconds?: number | undefined;
|
|
214
|
+
readonly written_data_bytes?: number | undefined;
|
|
215
|
+
readonly data_transfer_bytes?: number | undefined;
|
|
216
|
+
readonly logical_size_bytes?: number | undefined;
|
|
217
|
+
} | undefined;
|
|
246
218
|
readonly allowed_ips?: {
|
|
247
219
|
readonly ips?: readonly string[] | undefined;
|
|
248
220
|
readonly protected_branches_only?: boolean | undefined;
|
|
249
221
|
} | undefined;
|
|
250
|
-
readonly audit_log_level?: "base" | "extended" | "full" | undefined;
|
|
251
|
-
readonly block_public_connections?: boolean | undefined;
|
|
252
|
-
readonly block_vpc_connections?: boolean | undefined;
|
|
253
222
|
readonly enable_logical_replication?: boolean | undefined;
|
|
254
|
-
readonly hipaa?: boolean | undefined;
|
|
255
223
|
readonly maintenance_window?: {
|
|
256
|
-
readonly end_time: string;
|
|
257
|
-
readonly start_time: string;
|
|
258
224
|
readonly weekdays: readonly number[];
|
|
225
|
+
readonly start_time: string;
|
|
226
|
+
readonly end_time: string;
|
|
259
227
|
} | undefined;
|
|
228
|
+
readonly block_public_connections?: boolean | undefined;
|
|
229
|
+
readonly block_vpc_connections?: boolean | undefined;
|
|
230
|
+
readonly audit_log_level?: "base" | "extended" | "full" | undefined;
|
|
231
|
+
readonly hipaa?: boolean | undefined;
|
|
260
232
|
readonly preload_libraries?: {
|
|
261
|
-
readonly enabled_libraries?: readonly string[] | undefined;
|
|
262
233
|
readonly use_defaults?: boolean | undefined;
|
|
263
|
-
|
|
264
|
-
readonly quota?: {
|
|
265
|
-
readonly active_time_seconds?: number | undefined;
|
|
266
|
-
readonly compute_time_seconds?: number | undefined;
|
|
267
|
-
readonly data_transfer_bytes?: number | undefined;
|
|
268
|
-
readonly logical_size_bytes?: number | undefined;
|
|
269
|
-
readonly written_data_bytes?: number | undefined;
|
|
234
|
+
readonly enabled_libraries?: readonly string[] | undefined;
|
|
270
235
|
} | undefined;
|
|
271
236
|
} | undefined;
|
|
237
|
+
readonly pg_version: number;
|
|
238
|
+
readonly proxy_host: string;
|
|
239
|
+
readonly branch_logical_size_limit: number;
|
|
240
|
+
readonly branch_logical_size_limit_bytes: number;
|
|
272
241
|
readonly store_passwords: boolean;
|
|
273
|
-
readonly
|
|
242
|
+
readonly maintenance_starts_at?: string | undefined;
|
|
243
|
+
readonly creation_source: string;
|
|
244
|
+
readonly history_retention_seconds: number;
|
|
245
|
+
readonly created_at: string;
|
|
274
246
|
readonly updated_at: string;
|
|
275
|
-
readonly
|
|
247
|
+
readonly synthetic_storage_size?: number | undefined;
|
|
248
|
+
readonly consumption_period_start: string;
|
|
249
|
+
readonly consumption_period_end: string;
|
|
250
|
+
readonly quota_reset_at?: string | undefined;
|
|
251
|
+
readonly owner_id: string;
|
|
252
|
+
readonly owner?: {
|
|
253
|
+
readonly email: string;
|
|
254
|
+
readonly name: string;
|
|
255
|
+
readonly branches_limit: number;
|
|
256
|
+
readonly subscription_type: "UNKNOWN" | "aws_marketplace" | "business" | "direct_sales" | "direct_sales_v3" | "free_v2" | "free_v3" | "launch" | "launch_v3" | "scale" | "scale_v3" | "vercel_pg_legacy";
|
|
257
|
+
} | undefined;
|
|
258
|
+
readonly compute_last_active_at?: string | undefined;
|
|
259
|
+
readonly org_id?: string | undefined;
|
|
260
|
+
readonly maintenance_scheduled_for?: string | undefined;
|
|
261
|
+
readonly hipaa_enabled_at?: string | undefined;
|
|
276
262
|
};
|
|
263
|
+
readonly operations: readonly {
|
|
264
|
+
readonly id: string;
|
|
265
|
+
readonly project_id: string;
|
|
266
|
+
readonly branch_id?: string | undefined;
|
|
267
|
+
readonly endpoint_id?: string | undefined;
|
|
268
|
+
readonly action: "apply_config" | "apply_schema_from_branch" | "apply_storage_config" | "check_availability" | "create_branch" | "create_compute" | "create_timeline" | "delete_timeline" | "detach_parent_branch" | "disable_maintenance" | "finalize_migration" | "import_data" | "mark_migration_prepared" | "prepare_secondary_pageserver" | "prewarm_replica" | "promote_replica" | "replace_safekeeper" | "set_storage_non_dirty" | "start_compute" | "start_reserved_compute" | "suspend_compute" | "swap_binding_id" | "switch_pageserver" | "sync_dbs_and_roles_from_compute" | "tenant_attach" | "tenant_detach" | "tenant_ignore" | "tenant_reattach" | "timeline_archive" | "timeline_mark_invisible" | "timeline_unarchive" | "timeline_update_protected_config";
|
|
269
|
+
readonly status: "cancelled" | "cancelling" | "error" | "failed" | "finished" | "running" | "scheduling" | "skipped";
|
|
270
|
+
readonly error?: string | undefined;
|
|
271
|
+
readonly failures_count: number;
|
|
272
|
+
readonly retry_at?: string | undefined;
|
|
273
|
+
readonly created_at: string;
|
|
274
|
+
readonly updated_at: string;
|
|
275
|
+
readonly total_duration_ms: number;
|
|
276
|
+
}[];
|
|
277
277
|
}, BadRequest | NotFound, import("../credentials.ts").Credentials>;
|
|
278
278
|
//# sourceMappingURL=updateProject.d.ts.map
|
|
@@ -82,70 +82,70 @@ export type UpdateProjectBranchOutput = typeof UpdateProjectBranchOutput.Type;
|
|
|
82
82
|
* @param branch_id - The branch ID
|
|
83
83
|
*/
|
|
84
84
|
export declare const updateProjectBranch: import("@distilled.cloud/core/client").OperationMethod<{
|
|
85
|
+
readonly project_id: string;
|
|
86
|
+
readonly branch_id: string;
|
|
85
87
|
readonly branch: {
|
|
86
|
-
readonly expires_at?: string | null | undefined;
|
|
87
88
|
readonly name?: string | undefined;
|
|
88
89
|
readonly protected?: boolean | undefined;
|
|
90
|
+
readonly expires_at?: string | null | undefined;
|
|
89
91
|
};
|
|
90
|
-
readonly branch_id: string;
|
|
91
|
-
readonly project_id: string;
|
|
92
92
|
}, {
|
|
93
93
|
readonly branch: {
|
|
94
|
-
readonly active_time_seconds: number;
|
|
95
|
-
readonly compute_time_seconds: number;
|
|
96
|
-
readonly cpu_used_sec: number;
|
|
97
|
-
readonly created_at: string;
|
|
98
|
-
readonly created_by?: {
|
|
99
|
-
readonly image?: string | undefined;
|
|
100
|
-
readonly name?: string | undefined;
|
|
101
|
-
} | undefined;
|
|
102
|
-
readonly creation_source: string;
|
|
103
|
-
readonly current_state: string;
|
|
104
|
-
readonly data_transfer_bytes: number;
|
|
105
|
-
readonly default: boolean;
|
|
106
|
-
readonly expires_at?: string | undefined;
|
|
107
94
|
readonly id: string;
|
|
108
|
-
readonly
|
|
109
|
-
readonly last_reset_at?: string | undefined;
|
|
110
|
-
readonly logical_size?: number | undefined;
|
|
111
|
-
readonly name: string;
|
|
95
|
+
readonly project_id: string;
|
|
112
96
|
readonly parent_id?: string | undefined;
|
|
113
97
|
readonly parent_lsn?: string | undefined;
|
|
114
98
|
readonly parent_timestamp?: string | undefined;
|
|
99
|
+
readonly name: string;
|
|
100
|
+
readonly current_state: string;
|
|
115
101
|
readonly pending_state?: string | undefined;
|
|
102
|
+
readonly state_changed_at: string;
|
|
103
|
+
readonly logical_size?: number | undefined;
|
|
104
|
+
readonly creation_source: string;
|
|
116
105
|
readonly primary?: boolean | undefined;
|
|
117
|
-
readonly
|
|
106
|
+
readonly default: boolean;
|
|
118
107
|
readonly protected: boolean;
|
|
119
|
-
readonly
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
108
|
+
readonly cpu_used_sec: number;
|
|
109
|
+
readonly compute_time_seconds: number;
|
|
110
|
+
readonly active_time_seconds: number;
|
|
111
|
+
readonly written_data_bytes: number;
|
|
112
|
+
readonly data_transfer_bytes: number;
|
|
113
|
+
readonly created_at: string;
|
|
114
|
+
readonly updated_at: string;
|
|
115
|
+
readonly ttl_interval_seconds?: number | undefined;
|
|
116
|
+
readonly expires_at?: string | undefined;
|
|
117
|
+
readonly last_reset_at?: string | undefined;
|
|
118
|
+
readonly created_by?: {
|
|
119
|
+
readonly name?: string | undefined;
|
|
120
|
+
readonly image?: string | undefined;
|
|
123
121
|
} | undefined;
|
|
122
|
+
readonly init_source?: string | undefined;
|
|
124
123
|
readonly restore_status?: string | undefined;
|
|
125
|
-
readonly restored_as?: string | undefined;
|
|
126
124
|
readonly restored_from?: string | undefined;
|
|
125
|
+
readonly restored_as?: string | undefined;
|
|
127
126
|
readonly restricted_actions?: readonly {
|
|
128
127
|
readonly name: string;
|
|
129
128
|
readonly reason: string;
|
|
130
129
|
}[] | undefined;
|
|
131
|
-
readonly
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
130
|
+
readonly recovery?: {
|
|
131
|
+
readonly deleted_at: string;
|
|
132
|
+
readonly recoverable_until: string;
|
|
133
|
+
readonly deletion_method: "ttl" | "user";
|
|
134
|
+
} | undefined;
|
|
135
135
|
};
|
|
136
136
|
readonly operations: readonly {
|
|
137
|
-
readonly
|
|
137
|
+
readonly id: string;
|
|
138
|
+
readonly project_id: string;
|
|
138
139
|
readonly branch_id?: string | undefined;
|
|
139
|
-
readonly created_at: string;
|
|
140
140
|
readonly endpoint_id?: string | undefined;
|
|
141
|
+
readonly action: "apply_config" | "apply_schema_from_branch" | "apply_storage_config" | "check_availability" | "create_branch" | "create_compute" | "create_timeline" | "delete_timeline" | "detach_parent_branch" | "disable_maintenance" | "finalize_migration" | "import_data" | "mark_migration_prepared" | "prepare_secondary_pageserver" | "prewarm_replica" | "promote_replica" | "replace_safekeeper" | "set_storage_non_dirty" | "start_compute" | "start_reserved_compute" | "suspend_compute" | "swap_binding_id" | "switch_pageserver" | "sync_dbs_and_roles_from_compute" | "tenant_attach" | "tenant_detach" | "tenant_ignore" | "tenant_reattach" | "timeline_archive" | "timeline_mark_invisible" | "timeline_unarchive" | "timeline_update_protected_config";
|
|
142
|
+
readonly status: "cancelled" | "cancelling" | "error" | "failed" | "finished" | "running" | "scheduling" | "skipped";
|
|
141
143
|
readonly error?: string | undefined;
|
|
142
144
|
readonly failures_count: number;
|
|
143
|
-
readonly id: string;
|
|
144
|
-
readonly project_id: string;
|
|
145
145
|
readonly retry_at?: string | undefined;
|
|
146
|
-
readonly
|
|
147
|
-
readonly total_duration_ms: number;
|
|
146
|
+
readonly created_at: string;
|
|
148
147
|
readonly updated_at: string;
|
|
148
|
+
readonly total_duration_ms: number;
|
|
149
149
|
}[];
|
|
150
150
|
}, BadRequest | NotFound, import("../credentials.ts").Credentials>;
|
|
151
151
|
//# sourceMappingURL=updateProjectBranch.d.ts.map
|
|
@@ -32,17 +32,17 @@ export type UpdateProjectBranchDataAPIOutput = typeof UpdateProjectBranchDataAPI
|
|
|
32
32
|
* @param database_name - The database name
|
|
33
33
|
*/
|
|
34
34
|
export declare const updateProjectBranchDataAPI: import("@distilled.cloud/core/client").OperationMethod<{
|
|
35
|
+
readonly project_id: string;
|
|
35
36
|
readonly branch_id: string;
|
|
36
37
|
readonly database_name: string;
|
|
37
|
-
readonly project_id: string;
|
|
38
38
|
readonly settings?: {
|
|
39
39
|
readonly db_aggregates_enabled?: boolean | undefined;
|
|
40
40
|
readonly db_anon_role?: string | undefined;
|
|
41
41
|
readonly db_extra_search_path?: string | undefined;
|
|
42
42
|
readonly db_max_rows?: number | undefined;
|
|
43
43
|
readonly db_schemas?: readonly string[] | undefined;
|
|
44
|
-
readonly jwt_cache_max_lifetime?: number | undefined;
|
|
45
44
|
readonly jwt_role_claim_key?: string | undefined;
|
|
45
|
+
readonly jwt_cache_max_lifetime?: number | undefined;
|
|
46
46
|
readonly openapi_mode?: string | undefined;
|
|
47
47
|
readonly server_cors_allowed_origins?: string | undefined;
|
|
48
48
|
readonly server_timing_enabled?: boolean | undefined;
|
|
@@ -48,35 +48,35 @@ export type UpdateProjectBranchDatabaseOutput = typeof UpdateProjectBranchDataba
|
|
|
48
48
|
* @param database_name - The database name
|
|
49
49
|
*/
|
|
50
50
|
export declare const updateProjectBranchDatabase: import("@distilled.cloud/core/client").OperationMethod<{
|
|
51
|
+
readonly project_id: string;
|
|
51
52
|
readonly branch_id: string;
|
|
53
|
+
readonly database_name: string;
|
|
52
54
|
readonly database: {
|
|
53
55
|
readonly name?: string | undefined;
|
|
54
56
|
readonly owner_name?: string | undefined;
|
|
55
57
|
};
|
|
56
|
-
readonly database_name: string;
|
|
57
|
-
readonly project_id: string;
|
|
58
58
|
}, {
|
|
59
59
|
readonly database: {
|
|
60
|
-
readonly branch_id: string;
|
|
61
|
-
readonly created_at: string;
|
|
62
60
|
readonly id: number;
|
|
61
|
+
readonly branch_id: string;
|
|
63
62
|
readonly name: string;
|
|
64
63
|
readonly owner_name: string;
|
|
64
|
+
readonly created_at: string;
|
|
65
65
|
readonly updated_at: string;
|
|
66
66
|
};
|
|
67
67
|
readonly operations: readonly {
|
|
68
|
-
readonly
|
|
68
|
+
readonly id: string;
|
|
69
|
+
readonly project_id: string;
|
|
69
70
|
readonly branch_id?: string | undefined;
|
|
70
|
-
readonly created_at: string;
|
|
71
71
|
readonly endpoint_id?: string | undefined;
|
|
72
|
+
readonly action: "apply_config" | "apply_schema_from_branch" | "apply_storage_config" | "check_availability" | "create_branch" | "create_compute" | "create_timeline" | "delete_timeline" | "detach_parent_branch" | "disable_maintenance" | "finalize_migration" | "import_data" | "mark_migration_prepared" | "prepare_secondary_pageserver" | "prewarm_replica" | "promote_replica" | "replace_safekeeper" | "set_storage_non_dirty" | "start_compute" | "start_reserved_compute" | "suspend_compute" | "swap_binding_id" | "switch_pageserver" | "sync_dbs_and_roles_from_compute" | "tenant_attach" | "tenant_detach" | "tenant_ignore" | "tenant_reattach" | "timeline_archive" | "timeline_mark_invisible" | "timeline_unarchive" | "timeline_update_protected_config";
|
|
73
|
+
readonly status: "cancelled" | "cancelling" | "error" | "failed" | "finished" | "running" | "scheduling" | "skipped";
|
|
72
74
|
readonly error?: string | undefined;
|
|
73
75
|
readonly failures_count: number;
|
|
74
|
-
readonly id: string;
|
|
75
|
-
readonly project_id: string;
|
|
76
76
|
readonly retry_at?: string | undefined;
|
|
77
|
-
readonly
|
|
78
|
-
readonly total_duration_ms: number;
|
|
77
|
+
readonly created_at: string;
|
|
79
78
|
readonly updated_at: string;
|
|
79
|
+
readonly total_duration_ms: number;
|
|
80
80
|
}[];
|
|
81
81
|
}, NotFound, import("../credentials.ts").Credentials>;
|
|
82
82
|
//# sourceMappingURL=updateProjectBranchDatabase.d.ts.map
|
|
@@ -94,15 +94,12 @@ export type UpdateProjectEndpointOutput = typeof UpdateProjectEndpointOutput.Typ
|
|
|
94
94
|
* @param endpoint_id - The endpoint ID
|
|
95
95
|
*/
|
|
96
96
|
export declare const updateProjectEndpoint: import("@distilled.cloud/core/client").OperationMethod<{
|
|
97
|
+
readonly project_id: string;
|
|
98
|
+
readonly endpoint_id: string;
|
|
97
99
|
readonly endpoint: {
|
|
98
|
-
readonly autoscaling_limit_max_cu?: number | undefined;
|
|
99
|
-
readonly autoscaling_limit_min_cu?: number | undefined;
|
|
100
100
|
readonly branch_id?: string | undefined;
|
|
101
|
-
readonly
|
|
102
|
-
readonly
|
|
103
|
-
readonly passwordless_access?: boolean | undefined;
|
|
104
|
-
readonly pooler_enabled?: boolean | undefined;
|
|
105
|
-
readonly pooler_mode?: "transaction" | undefined;
|
|
101
|
+
readonly autoscaling_limit_min_cu?: number | undefined;
|
|
102
|
+
readonly autoscaling_limit_max_cu?: number | undefined;
|
|
106
103
|
readonly provisioner?: string | undefined;
|
|
107
104
|
readonly settings?: {
|
|
108
105
|
readonly pg_settings?: {
|
|
@@ -112,36 +109,30 @@ export declare const updateProjectEndpoint: import("@distilled.cloud/core/client
|
|
|
112
109
|
readonly [x: string]: string;
|
|
113
110
|
} | undefined;
|
|
114
111
|
readonly preload_libraries?: {
|
|
115
|
-
readonly enabled_libraries?: readonly string[] | undefined;
|
|
116
112
|
readonly use_defaults?: boolean | undefined;
|
|
113
|
+
readonly enabled_libraries?: readonly string[] | undefined;
|
|
117
114
|
} | undefined;
|
|
118
115
|
} | undefined;
|
|
116
|
+
readonly pooler_enabled?: boolean | undefined;
|
|
117
|
+
readonly pooler_mode?: "transaction" | undefined;
|
|
118
|
+
readonly disabled?: boolean | undefined;
|
|
119
|
+
readonly passwordless_access?: boolean | undefined;
|
|
119
120
|
readonly suspend_timeout_seconds?: number | undefined;
|
|
121
|
+
readonly name?: string | undefined;
|
|
120
122
|
};
|
|
121
|
-
readonly endpoint_id: string;
|
|
122
|
-
readonly project_id: string;
|
|
123
123
|
}, {
|
|
124
124
|
readonly endpoint: {
|
|
125
|
-
readonly autoscaling_limit_max_cu: number;
|
|
126
|
-
readonly autoscaling_limit_min_cu: number;
|
|
127
|
-
readonly branch_id: string;
|
|
128
|
-
readonly compute_release_version?: string | undefined;
|
|
129
|
-
readonly created_at: string;
|
|
130
|
-
readonly creation_source: string;
|
|
131
|
-
readonly current_state: "active" | "idle" | "init";
|
|
132
|
-
readonly disabled: boolean;
|
|
133
125
|
readonly host: string;
|
|
134
126
|
readonly id: string;
|
|
135
|
-
readonly last_active?: string | undefined;
|
|
136
127
|
readonly name?: string | undefined;
|
|
137
|
-
readonly passwordless_access: boolean;
|
|
138
|
-
readonly pending_state?: "active" | "idle" | "init" | undefined;
|
|
139
|
-
readonly pooler_enabled: boolean;
|
|
140
|
-
readonly pooler_mode: "transaction";
|
|
141
128
|
readonly project_id: string;
|
|
142
|
-
readonly
|
|
143
|
-
readonly
|
|
129
|
+
readonly branch_id: string;
|
|
130
|
+
readonly autoscaling_limit_min_cu: number;
|
|
131
|
+
readonly autoscaling_limit_max_cu: number;
|
|
144
132
|
readonly region_id: string;
|
|
133
|
+
readonly type: "read_only" | "read_write";
|
|
134
|
+
readonly current_state: "active" | "idle" | "init";
|
|
135
|
+
readonly pending_state?: "active" | "idle" | "init" | undefined;
|
|
145
136
|
readonly settings: {
|
|
146
137
|
readonly pg_settings?: {
|
|
147
138
|
readonly [x: string]: string;
|
|
@@ -150,29 +141,38 @@ export declare const updateProjectEndpoint: import("@distilled.cloud/core/client
|
|
|
150
141
|
readonly [x: string]: string;
|
|
151
142
|
} | undefined;
|
|
152
143
|
readonly preload_libraries?: {
|
|
153
|
-
readonly enabled_libraries?: readonly string[] | undefined;
|
|
154
144
|
readonly use_defaults?: boolean | undefined;
|
|
145
|
+
readonly enabled_libraries?: readonly string[] | undefined;
|
|
155
146
|
} | undefined;
|
|
156
147
|
};
|
|
148
|
+
readonly pooler_enabled: boolean;
|
|
149
|
+
readonly pooler_mode: "transaction";
|
|
150
|
+
readonly disabled: boolean;
|
|
151
|
+
readonly passwordless_access: boolean;
|
|
152
|
+
readonly last_active?: string | undefined;
|
|
153
|
+
readonly creation_source: string;
|
|
154
|
+
readonly created_at: string;
|
|
155
|
+
readonly updated_at: string;
|
|
157
156
|
readonly started_at?: string | undefined;
|
|
158
|
-
readonly suspend_timeout_seconds: number;
|
|
159
157
|
readonly suspended_at?: string | undefined;
|
|
160
|
-
readonly
|
|
161
|
-
readonly
|
|
158
|
+
readonly proxy_host: string;
|
|
159
|
+
readonly suspend_timeout_seconds: number;
|
|
160
|
+
readonly provisioner: string;
|
|
161
|
+
readonly compute_release_version?: string | undefined;
|
|
162
162
|
};
|
|
163
163
|
readonly operations: readonly {
|
|
164
|
-
readonly
|
|
164
|
+
readonly id: string;
|
|
165
|
+
readonly project_id: string;
|
|
165
166
|
readonly branch_id?: string | undefined;
|
|
166
|
-
readonly created_at: string;
|
|
167
167
|
readonly endpoint_id?: string | undefined;
|
|
168
|
+
readonly action: "apply_config" | "apply_schema_from_branch" | "apply_storage_config" | "check_availability" | "create_branch" | "create_compute" | "create_timeline" | "delete_timeline" | "detach_parent_branch" | "disable_maintenance" | "finalize_migration" | "import_data" | "mark_migration_prepared" | "prepare_secondary_pageserver" | "prewarm_replica" | "promote_replica" | "replace_safekeeper" | "set_storage_non_dirty" | "start_compute" | "start_reserved_compute" | "suspend_compute" | "swap_binding_id" | "switch_pageserver" | "sync_dbs_and_roles_from_compute" | "tenant_attach" | "tenant_detach" | "tenant_ignore" | "tenant_reattach" | "timeline_archive" | "timeline_mark_invisible" | "timeline_unarchive" | "timeline_update_protected_config";
|
|
169
|
+
readonly status: "cancelled" | "cancelling" | "error" | "failed" | "finished" | "running" | "scheduling" | "skipped";
|
|
168
170
|
readonly error?: string | undefined;
|
|
169
171
|
readonly failures_count: number;
|
|
170
|
-
readonly id: string;
|
|
171
|
-
readonly project_id: string;
|
|
172
172
|
readonly retry_at?: string | undefined;
|
|
173
|
-
readonly
|
|
174
|
-
readonly total_duration_ms: number;
|
|
173
|
+
readonly created_at: string;
|
|
175
174
|
readonly updated_at: string;
|
|
175
|
+
readonly total_duration_ms: number;
|
|
176
176
|
}[];
|
|
177
177
|
}, NotFound, import("../credentials.ts").Credentials>;
|
|
178
178
|
//# sourceMappingURL=updateProjectEndpoint.d.ts.map
|
|
@@ -33,22 +33,22 @@ export type UpdateSnapshotOutput = typeof UpdateSnapshotOutput.Type;
|
|
|
33
33
|
*/
|
|
34
34
|
export declare const updateSnapshot: import("@distilled.cloud/core/client").OperationMethod<{
|
|
35
35
|
readonly project_id: string;
|
|
36
|
+
readonly snapshot_id: string;
|
|
36
37
|
readonly snapshot: {
|
|
37
38
|
readonly name?: string | undefined;
|
|
38
39
|
};
|
|
39
|
-
readonly snapshot_id: string;
|
|
40
40
|
}, {
|
|
41
41
|
readonly snapshot: {
|
|
42
|
-
readonly created_at: string;
|
|
43
|
-
readonly diff_size?: number | undefined;
|
|
44
|
-
readonly expires_at?: string | undefined;
|
|
45
|
-
readonly full_size?: number | undefined;
|
|
46
42
|
readonly id: string;
|
|
47
|
-
readonly lsn?: string | undefined;
|
|
48
|
-
readonly manual?: boolean | undefined;
|
|
49
43
|
readonly name: string;
|
|
50
|
-
readonly
|
|
44
|
+
readonly lsn?: string | undefined;
|
|
51
45
|
readonly timestamp?: string | undefined;
|
|
46
|
+
readonly source_branch_id?: string | undefined;
|
|
47
|
+
readonly created_at: string;
|
|
48
|
+
readonly expires_at?: string | undefined;
|
|
49
|
+
readonly manual?: boolean | undefined;
|
|
50
|
+
readonly full_size?: number | undefined;
|
|
51
|
+
readonly diff_size?: number | undefined;
|
|
52
52
|
};
|
|
53
53
|
}, never, import("../credentials.ts").Credentials>;
|
|
54
54
|
//# sourceMappingURL=updateSnapshot.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@distilled.cloud/neon",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/alchemy-run/distilled",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"specs:update": "git -C specs/distilled-spec-neon fetch && git -C specs/distilled-spec-neon checkout main && git -C specs/distilled-spec-neon pull"
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
|
-
"@distilled.cloud/core": "0.
|
|
77
|
+
"@distilled.cloud/core": "0.20.1"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
80
|
"@types/bun": "^1.3.0",
|
|
@@ -83,6 +83,6 @@
|
|
|
83
83
|
"vitest": "^3.2.3"
|
|
84
84
|
},
|
|
85
85
|
"peerDependencies": {
|
|
86
|
-
"effect": ">=4.0.0-beta.
|
|
86
|
+
"effect": ">=4.0.0-beta.66 || >=4.0.0"
|
|
87
87
|
}
|
|
88
88
|
}
|