@distilled.cloud/neon 0.19.2 → 0.20.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/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
|
@@ -165,23 +165,9 @@ export type CreateProjectBranchOutput = typeof CreateProjectBranchOutput.Type;
|
|
|
165
165
|
* @param project_id - The Neon project ID
|
|
166
166
|
*/
|
|
167
167
|
export declare const createProjectBranch: import("@distilled.cloud/core/client").OperationMethod<{
|
|
168
|
-
readonly
|
|
169
|
-
readonly [x: string]: string;
|
|
170
|
-
} | undefined;
|
|
171
|
-
readonly branch?: {
|
|
172
|
-
readonly archived?: boolean | undefined;
|
|
173
|
-
readonly expires_at?: string | undefined;
|
|
174
|
-
readonly init_source?: string | undefined;
|
|
175
|
-
readonly name?: string | undefined;
|
|
176
|
-
readonly parent_id?: string | undefined;
|
|
177
|
-
readonly parent_lsn?: string | undefined;
|
|
178
|
-
readonly parent_timestamp?: string | undefined;
|
|
179
|
-
readonly protected?: boolean | undefined;
|
|
180
|
-
} | undefined;
|
|
168
|
+
readonly project_id: string;
|
|
181
169
|
readonly endpoints?: readonly {
|
|
182
|
-
readonly
|
|
183
|
-
readonly autoscaling_limit_min_cu?: number | undefined;
|
|
184
|
-
readonly provisioner?: string | undefined;
|
|
170
|
+
readonly type: "read_only" | "read_write";
|
|
185
171
|
readonly settings?: {
|
|
186
172
|
readonly pg_settings?: {
|
|
187
173
|
readonly [x: string]: string;
|
|
@@ -190,97 +176,84 @@ export declare const createProjectBranch: import("@distilled.cloud/core/client")
|
|
|
190
176
|
readonly [x: string]: string;
|
|
191
177
|
} | undefined;
|
|
192
178
|
readonly preload_libraries?: {
|
|
193
|
-
readonly enabled_libraries?: readonly string[] | undefined;
|
|
194
179
|
readonly use_defaults?: boolean | undefined;
|
|
180
|
+
readonly enabled_libraries?: readonly string[] | undefined;
|
|
195
181
|
} | undefined;
|
|
196
182
|
} | undefined;
|
|
183
|
+
readonly autoscaling_limit_min_cu?: number | undefined;
|
|
184
|
+
readonly autoscaling_limit_max_cu?: number | undefined;
|
|
185
|
+
readonly provisioner?: string | undefined;
|
|
197
186
|
readonly suspend_timeout_seconds?: number | undefined;
|
|
198
|
-
readonly type: "read_only" | "read_write";
|
|
199
187
|
}[] | undefined;
|
|
200
|
-
readonly
|
|
188
|
+
readonly branch?: {
|
|
189
|
+
readonly parent_id?: string | undefined;
|
|
190
|
+
readonly name?: string | undefined;
|
|
191
|
+
readonly parent_lsn?: string | undefined;
|
|
192
|
+
readonly parent_timestamp?: string | undefined;
|
|
193
|
+
readonly protected?: boolean | undefined;
|
|
194
|
+
readonly archived?: boolean | undefined;
|
|
195
|
+
readonly init_source?: string | undefined;
|
|
196
|
+
readonly expires_at?: string | undefined;
|
|
197
|
+
} | undefined;
|
|
198
|
+
readonly annotation_value?: {
|
|
199
|
+
readonly [x: string]: string;
|
|
200
|
+
} | undefined;
|
|
201
201
|
}, {
|
|
202
202
|
readonly branch: {
|
|
203
|
-
readonly active_time_seconds: number;
|
|
204
|
-
readonly compute_time_seconds: number;
|
|
205
|
-
readonly cpu_used_sec: number;
|
|
206
|
-
readonly created_at: string;
|
|
207
|
-
readonly created_by?: {
|
|
208
|
-
readonly image?: string | undefined;
|
|
209
|
-
readonly name?: string | undefined;
|
|
210
|
-
} | undefined;
|
|
211
|
-
readonly creation_source: string;
|
|
212
|
-
readonly current_state: string;
|
|
213
|
-
readonly data_transfer_bytes: number;
|
|
214
|
-
readonly default: boolean;
|
|
215
|
-
readonly expires_at?: string | undefined;
|
|
216
203
|
readonly id: string;
|
|
217
|
-
readonly
|
|
218
|
-
readonly last_reset_at?: string | undefined;
|
|
219
|
-
readonly logical_size?: number | undefined;
|
|
220
|
-
readonly name: string;
|
|
204
|
+
readonly project_id: string;
|
|
221
205
|
readonly parent_id?: string | undefined;
|
|
222
206
|
readonly parent_lsn?: string | undefined;
|
|
223
207
|
readonly parent_timestamp?: string | undefined;
|
|
208
|
+
readonly name: string;
|
|
209
|
+
readonly current_state: string;
|
|
224
210
|
readonly pending_state?: string | undefined;
|
|
211
|
+
readonly state_changed_at: string;
|
|
212
|
+
readonly logical_size?: number | undefined;
|
|
213
|
+
readonly creation_source: string;
|
|
225
214
|
readonly primary?: boolean | undefined;
|
|
226
|
-
readonly
|
|
215
|
+
readonly default: boolean;
|
|
227
216
|
readonly protected: boolean;
|
|
228
|
-
readonly
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
217
|
+
readonly cpu_used_sec: number;
|
|
218
|
+
readonly compute_time_seconds: number;
|
|
219
|
+
readonly active_time_seconds: number;
|
|
220
|
+
readonly written_data_bytes: number;
|
|
221
|
+
readonly data_transfer_bytes: number;
|
|
222
|
+
readonly created_at: string;
|
|
223
|
+
readonly updated_at: string;
|
|
224
|
+
readonly ttl_interval_seconds?: number | undefined;
|
|
225
|
+
readonly expires_at?: string | undefined;
|
|
226
|
+
readonly last_reset_at?: string | undefined;
|
|
227
|
+
readonly created_by?: {
|
|
228
|
+
readonly name?: string | undefined;
|
|
229
|
+
readonly image?: string | undefined;
|
|
232
230
|
} | undefined;
|
|
231
|
+
readonly init_source?: string | undefined;
|
|
233
232
|
readonly restore_status?: string | undefined;
|
|
234
|
-
readonly restored_as?: string | undefined;
|
|
235
233
|
readonly restored_from?: string | undefined;
|
|
234
|
+
readonly restored_as?: string | undefined;
|
|
236
235
|
readonly restricted_actions?: readonly {
|
|
237
236
|
readonly name: string;
|
|
238
237
|
readonly reason: string;
|
|
239
238
|
}[] | undefined;
|
|
240
|
-
readonly
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
239
|
+
readonly recovery?: {
|
|
240
|
+
readonly deleted_at: string;
|
|
241
|
+
readonly recoverable_until: string;
|
|
242
|
+
readonly deletion_method: "ttl" | "user";
|
|
243
|
+
} | undefined;
|
|
244
244
|
};
|
|
245
|
-
readonly connection_uris?: readonly {
|
|
246
|
-
readonly connection_parameters: {
|
|
247
|
-
readonly database: string;
|
|
248
|
-
readonly host: string;
|
|
249
|
-
readonly password: string | import("effect/Redacted").Redacted<string>;
|
|
250
|
-
readonly pooler_host: string;
|
|
251
|
-
readonly role: string;
|
|
252
|
-
};
|
|
253
|
-
readonly connection_uri: string | import("effect/Redacted").Redacted<string>;
|
|
254
|
-
}[] | undefined;
|
|
255
|
-
readonly databases: readonly {
|
|
256
|
-
readonly branch_id: string;
|
|
257
|
-
readonly created_at: string;
|
|
258
|
-
readonly id: number;
|
|
259
|
-
readonly name: string;
|
|
260
|
-
readonly owner_name: string;
|
|
261
|
-
readonly updated_at: string;
|
|
262
|
-
}[];
|
|
263
245
|
readonly endpoints: readonly {
|
|
264
|
-
readonly autoscaling_limit_max_cu: number;
|
|
265
|
-
readonly autoscaling_limit_min_cu: number;
|
|
266
|
-
readonly branch_id: string;
|
|
267
|
-
readonly compute_release_version?: string | undefined;
|
|
268
|
-
readonly created_at: string;
|
|
269
|
-
readonly creation_source: string;
|
|
270
|
-
readonly current_state: "active" | "idle" | "init";
|
|
271
|
-
readonly disabled: boolean;
|
|
272
246
|
readonly host: string;
|
|
273
247
|
readonly id: string;
|
|
274
|
-
readonly last_active?: string | undefined;
|
|
275
248
|
readonly name?: string | undefined;
|
|
276
|
-
readonly passwordless_access: boolean;
|
|
277
|
-
readonly pending_state?: "active" | "idle" | "init" | undefined;
|
|
278
|
-
readonly pooler_enabled: boolean;
|
|
279
|
-
readonly pooler_mode: "transaction";
|
|
280
249
|
readonly project_id: string;
|
|
281
|
-
readonly
|
|
282
|
-
readonly
|
|
250
|
+
readonly branch_id: string;
|
|
251
|
+
readonly autoscaling_limit_min_cu: number;
|
|
252
|
+
readonly autoscaling_limit_max_cu: number;
|
|
283
253
|
readonly region_id: string;
|
|
254
|
+
readonly type: "read_only" | "read_write";
|
|
255
|
+
readonly current_state: "active" | "idle" | "init";
|
|
256
|
+
readonly pending_state?: "active" | "idle" | "init" | undefined;
|
|
284
257
|
readonly settings: {
|
|
285
258
|
readonly pg_settings?: {
|
|
286
259
|
readonly [x: string]: string;
|
|
@@ -289,38 +262,65 @@ export declare const createProjectBranch: import("@distilled.cloud/core/client")
|
|
|
289
262
|
readonly [x: string]: string;
|
|
290
263
|
} | undefined;
|
|
291
264
|
readonly preload_libraries?: {
|
|
292
|
-
readonly enabled_libraries?: readonly string[] | undefined;
|
|
293
265
|
readonly use_defaults?: boolean | undefined;
|
|
266
|
+
readonly enabled_libraries?: readonly string[] | undefined;
|
|
294
267
|
} | undefined;
|
|
295
268
|
};
|
|
269
|
+
readonly pooler_enabled: boolean;
|
|
270
|
+
readonly pooler_mode: "transaction";
|
|
271
|
+
readonly disabled: boolean;
|
|
272
|
+
readonly passwordless_access: boolean;
|
|
273
|
+
readonly last_active?: string | undefined;
|
|
274
|
+
readonly creation_source: string;
|
|
275
|
+
readonly created_at: string;
|
|
276
|
+
readonly updated_at: string;
|
|
296
277
|
readonly started_at?: string | undefined;
|
|
297
|
-
readonly suspend_timeout_seconds: number;
|
|
298
278
|
readonly suspended_at?: string | undefined;
|
|
299
|
-
readonly
|
|
300
|
-
readonly
|
|
279
|
+
readonly proxy_host: string;
|
|
280
|
+
readonly suspend_timeout_seconds: number;
|
|
281
|
+
readonly provisioner: string;
|
|
282
|
+
readonly compute_release_version?: string | undefined;
|
|
301
283
|
}[];
|
|
302
284
|
readonly operations: readonly {
|
|
303
|
-
readonly
|
|
285
|
+
readonly id: string;
|
|
286
|
+
readonly project_id: string;
|
|
304
287
|
readonly branch_id?: string | undefined;
|
|
305
|
-
readonly created_at: string;
|
|
306
288
|
readonly endpoint_id?: string | undefined;
|
|
289
|
+
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";
|
|
290
|
+
readonly status: "cancelled" | "cancelling" | "error" | "failed" | "finished" | "running" | "scheduling" | "skipped";
|
|
307
291
|
readonly error?: string | undefined;
|
|
308
292
|
readonly failures_count: number;
|
|
309
|
-
readonly id: string;
|
|
310
|
-
readonly project_id: string;
|
|
311
293
|
readonly retry_at?: string | undefined;
|
|
312
|
-
readonly
|
|
313
|
-
readonly total_duration_ms: number;
|
|
294
|
+
readonly created_at: string;
|
|
314
295
|
readonly updated_at: string;
|
|
296
|
+
readonly total_duration_ms: number;
|
|
315
297
|
}[];
|
|
316
298
|
readonly roles: readonly {
|
|
317
|
-
readonly authentication_method?: string | undefined;
|
|
318
299
|
readonly branch_id: string;
|
|
319
|
-
readonly created_at: string;
|
|
320
300
|
readonly name: string;
|
|
321
301
|
readonly password?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
322
302
|
readonly protected?: boolean | undefined;
|
|
303
|
+
readonly authentication_method?: string | undefined;
|
|
304
|
+
readonly created_at: string;
|
|
305
|
+
readonly updated_at: string;
|
|
306
|
+
}[];
|
|
307
|
+
readonly databases: readonly {
|
|
308
|
+
readonly id: number;
|
|
309
|
+
readonly branch_id: string;
|
|
310
|
+
readonly name: string;
|
|
311
|
+
readonly owner_name: string;
|
|
312
|
+
readonly created_at: string;
|
|
323
313
|
readonly updated_at: string;
|
|
324
314
|
}[];
|
|
315
|
+
readonly connection_uris?: readonly {
|
|
316
|
+
readonly connection_uri: string | import("effect/Redacted").Redacted<string>;
|
|
317
|
+
readonly connection_parameters: {
|
|
318
|
+
readonly database: string;
|
|
319
|
+
readonly password: string | import("effect/Redacted").Redacted<string>;
|
|
320
|
+
readonly role: string;
|
|
321
|
+
readonly host: string;
|
|
322
|
+
readonly pooler_host: string;
|
|
323
|
+
};
|
|
324
|
+
}[] | undefined;
|
|
325
325
|
}, never, import("../credentials.ts").Credentials>;
|
|
326
326
|
//# sourceMappingURL=createProjectBranch.d.ts.map
|
|
@@ -176,24 +176,13 @@ export type CreateProjectBranchAnonymizedOutput = typeof CreateProjectBranchAnon
|
|
|
176
176
|
* @param project_id - The Neon project ID
|
|
177
177
|
*/
|
|
178
178
|
export declare const createProjectBranchAnonymized: import("@distilled.cloud/core/client").OperationMethod<{
|
|
179
|
+
readonly project_id: string;
|
|
179
180
|
readonly annotation_value?: {
|
|
180
181
|
readonly [x: string]: string;
|
|
181
182
|
} | undefined;
|
|
182
183
|
readonly branch_create?: {
|
|
183
|
-
readonly branch?: {
|
|
184
|
-
readonly archived?: boolean | undefined;
|
|
185
|
-
readonly expires_at?: string | undefined;
|
|
186
|
-
readonly init_source?: string | undefined;
|
|
187
|
-
readonly name?: string | undefined;
|
|
188
|
-
readonly parent_id?: string | undefined;
|
|
189
|
-
readonly parent_lsn?: string | undefined;
|
|
190
|
-
readonly parent_timestamp?: string | undefined;
|
|
191
|
-
readonly protected?: boolean | undefined;
|
|
192
|
-
} | undefined;
|
|
193
184
|
readonly endpoints?: readonly {
|
|
194
|
-
readonly
|
|
195
|
-
readonly autoscaling_limit_min_cu?: number | undefined;
|
|
196
|
-
readonly provisioner?: string | undefined;
|
|
185
|
+
readonly type: "read_only" | "read_write";
|
|
197
186
|
readonly settings?: {
|
|
198
187
|
readonly pg_settings?: {
|
|
199
188
|
readonly [x: string]: string;
|
|
@@ -202,107 +191,91 @@ export declare const createProjectBranchAnonymized: import("@distilled.cloud/cor
|
|
|
202
191
|
readonly [x: string]: string;
|
|
203
192
|
} | undefined;
|
|
204
193
|
readonly preload_libraries?: {
|
|
205
|
-
readonly enabled_libraries?: readonly string[] | undefined;
|
|
206
194
|
readonly use_defaults?: boolean | undefined;
|
|
195
|
+
readonly enabled_libraries?: readonly string[] | undefined;
|
|
207
196
|
} | undefined;
|
|
208
197
|
} | undefined;
|
|
198
|
+
readonly autoscaling_limit_min_cu?: number | undefined;
|
|
199
|
+
readonly autoscaling_limit_max_cu?: number | undefined;
|
|
200
|
+
readonly provisioner?: string | undefined;
|
|
209
201
|
readonly suspend_timeout_seconds?: number | undefined;
|
|
210
|
-
readonly type: "read_only" | "read_write";
|
|
211
202
|
}[] | undefined;
|
|
203
|
+
readonly branch?: {
|
|
204
|
+
readonly parent_id?: string | undefined;
|
|
205
|
+
readonly name?: string | undefined;
|
|
206
|
+
readonly parent_lsn?: string | undefined;
|
|
207
|
+
readonly parent_timestamp?: string | undefined;
|
|
208
|
+
readonly protected?: boolean | undefined;
|
|
209
|
+
readonly archived?: boolean | undefined;
|
|
210
|
+
readonly init_source?: string | undefined;
|
|
211
|
+
readonly expires_at?: string | undefined;
|
|
212
|
+
} | undefined;
|
|
212
213
|
} | undefined;
|
|
213
214
|
readonly masking_rules?: readonly {
|
|
214
|
-
readonly column_name: string;
|
|
215
215
|
readonly database_name: string;
|
|
216
|
-
readonly masking_function?: string | undefined;
|
|
217
|
-
readonly masking_value?: string | undefined;
|
|
218
216
|
readonly schema_name: string;
|
|
219
217
|
readonly table_name: string;
|
|
218
|
+
readonly column_name: string;
|
|
219
|
+
readonly masking_function?: string | undefined;
|
|
220
|
+
readonly masking_value?: string | undefined;
|
|
220
221
|
}[] | undefined;
|
|
221
|
-
readonly project_id: string;
|
|
222
222
|
readonly start_anonymization?: boolean | undefined;
|
|
223
223
|
}, {
|
|
224
224
|
readonly branch: {
|
|
225
|
-
readonly active_time_seconds: number;
|
|
226
|
-
readonly compute_time_seconds: number;
|
|
227
|
-
readonly cpu_used_sec: number;
|
|
228
|
-
readonly created_at: string;
|
|
229
|
-
readonly created_by?: {
|
|
230
|
-
readonly image?: string | undefined;
|
|
231
|
-
readonly name?: string | undefined;
|
|
232
|
-
} | undefined;
|
|
233
|
-
readonly creation_source: string;
|
|
234
|
-
readonly current_state: string;
|
|
235
|
-
readonly data_transfer_bytes: number;
|
|
236
|
-
readonly default: boolean;
|
|
237
|
-
readonly expires_at?: string | undefined;
|
|
238
225
|
readonly id: string;
|
|
239
|
-
readonly
|
|
240
|
-
readonly last_reset_at?: string | undefined;
|
|
241
|
-
readonly logical_size?: number | undefined;
|
|
242
|
-
readonly name: string;
|
|
226
|
+
readonly project_id: string;
|
|
243
227
|
readonly parent_id?: string | undefined;
|
|
244
228
|
readonly parent_lsn?: string | undefined;
|
|
245
229
|
readonly parent_timestamp?: string | undefined;
|
|
230
|
+
readonly name: string;
|
|
231
|
+
readonly current_state: string;
|
|
246
232
|
readonly pending_state?: string | undefined;
|
|
233
|
+
readonly state_changed_at: string;
|
|
234
|
+
readonly logical_size?: number | undefined;
|
|
235
|
+
readonly creation_source: string;
|
|
247
236
|
readonly primary?: boolean | undefined;
|
|
248
|
-
readonly
|
|
237
|
+
readonly default: boolean;
|
|
249
238
|
readonly protected: boolean;
|
|
250
|
-
readonly
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
239
|
+
readonly cpu_used_sec: number;
|
|
240
|
+
readonly compute_time_seconds: number;
|
|
241
|
+
readonly active_time_seconds: number;
|
|
242
|
+
readonly written_data_bytes: number;
|
|
243
|
+
readonly data_transfer_bytes: number;
|
|
244
|
+
readonly created_at: string;
|
|
245
|
+
readonly updated_at: string;
|
|
246
|
+
readonly ttl_interval_seconds?: number | undefined;
|
|
247
|
+
readonly expires_at?: string | undefined;
|
|
248
|
+
readonly last_reset_at?: string | undefined;
|
|
249
|
+
readonly created_by?: {
|
|
250
|
+
readonly name?: string | undefined;
|
|
251
|
+
readonly image?: string | undefined;
|
|
254
252
|
} | undefined;
|
|
253
|
+
readonly init_source?: string | undefined;
|
|
255
254
|
readonly restore_status?: string | undefined;
|
|
256
|
-
readonly restored_as?: string | undefined;
|
|
257
255
|
readonly restored_from?: string | undefined;
|
|
256
|
+
readonly restored_as?: string | undefined;
|
|
258
257
|
readonly restricted_actions?: readonly {
|
|
259
258
|
readonly name: string;
|
|
260
259
|
readonly reason: string;
|
|
261
260
|
}[] | undefined;
|
|
262
|
-
readonly
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
261
|
+
readonly recovery?: {
|
|
262
|
+
readonly deleted_at: string;
|
|
263
|
+
readonly recoverable_until: string;
|
|
264
|
+
readonly deletion_method: "ttl" | "user";
|
|
265
|
+
} | undefined;
|
|
266
266
|
};
|
|
267
|
-
readonly connection_uris?: readonly {
|
|
268
|
-
readonly connection_parameters: {
|
|
269
|
-
readonly database: string;
|
|
270
|
-
readonly host: string;
|
|
271
|
-
readonly password: string | import("effect/Redacted").Redacted<string>;
|
|
272
|
-
readonly pooler_host: string;
|
|
273
|
-
readonly role: string;
|
|
274
|
-
};
|
|
275
|
-
readonly connection_uri: string | import("effect/Redacted").Redacted<string>;
|
|
276
|
-
}[] | undefined;
|
|
277
|
-
readonly databases: readonly {
|
|
278
|
-
readonly branch_id: string;
|
|
279
|
-
readonly created_at: string;
|
|
280
|
-
readonly id: number;
|
|
281
|
-
readonly name: string;
|
|
282
|
-
readonly owner_name: string;
|
|
283
|
-
readonly updated_at: string;
|
|
284
|
-
}[];
|
|
285
267
|
readonly endpoints: readonly {
|
|
286
|
-
readonly autoscaling_limit_max_cu: number;
|
|
287
|
-
readonly autoscaling_limit_min_cu: number;
|
|
288
|
-
readonly branch_id: string;
|
|
289
|
-
readonly compute_release_version?: string | undefined;
|
|
290
|
-
readonly created_at: string;
|
|
291
|
-
readonly creation_source: string;
|
|
292
|
-
readonly current_state: "active" | "idle" | "init";
|
|
293
|
-
readonly disabled: boolean;
|
|
294
268
|
readonly host: string;
|
|
295
269
|
readonly id: string;
|
|
296
|
-
readonly last_active?: string | undefined;
|
|
297
270
|
readonly name?: string | undefined;
|
|
298
|
-
readonly passwordless_access: boolean;
|
|
299
|
-
readonly pending_state?: "active" | "idle" | "init" | undefined;
|
|
300
|
-
readonly pooler_enabled: boolean;
|
|
301
|
-
readonly pooler_mode: "transaction";
|
|
302
271
|
readonly project_id: string;
|
|
303
|
-
readonly
|
|
304
|
-
readonly
|
|
272
|
+
readonly branch_id: string;
|
|
273
|
+
readonly autoscaling_limit_min_cu: number;
|
|
274
|
+
readonly autoscaling_limit_max_cu: number;
|
|
305
275
|
readonly region_id: string;
|
|
276
|
+
readonly type: "read_only" | "read_write";
|
|
277
|
+
readonly current_state: "active" | "idle" | "init";
|
|
278
|
+
readonly pending_state?: "active" | "idle" | "init" | undefined;
|
|
306
279
|
readonly settings: {
|
|
307
280
|
readonly pg_settings?: {
|
|
308
281
|
readonly [x: string]: string;
|
|
@@ -311,38 +284,65 @@ export declare const createProjectBranchAnonymized: import("@distilled.cloud/cor
|
|
|
311
284
|
readonly [x: string]: string;
|
|
312
285
|
} | undefined;
|
|
313
286
|
readonly preload_libraries?: {
|
|
314
|
-
readonly enabled_libraries?: readonly string[] | undefined;
|
|
315
287
|
readonly use_defaults?: boolean | undefined;
|
|
288
|
+
readonly enabled_libraries?: readonly string[] | undefined;
|
|
316
289
|
} | undefined;
|
|
317
290
|
};
|
|
291
|
+
readonly pooler_enabled: boolean;
|
|
292
|
+
readonly pooler_mode: "transaction";
|
|
293
|
+
readonly disabled: boolean;
|
|
294
|
+
readonly passwordless_access: boolean;
|
|
295
|
+
readonly last_active?: string | undefined;
|
|
296
|
+
readonly creation_source: string;
|
|
297
|
+
readonly created_at: string;
|
|
298
|
+
readonly updated_at: string;
|
|
318
299
|
readonly started_at?: string | undefined;
|
|
319
|
-
readonly suspend_timeout_seconds: number;
|
|
320
300
|
readonly suspended_at?: string | undefined;
|
|
321
|
-
readonly
|
|
322
|
-
readonly
|
|
301
|
+
readonly proxy_host: string;
|
|
302
|
+
readonly suspend_timeout_seconds: number;
|
|
303
|
+
readonly provisioner: string;
|
|
304
|
+
readonly compute_release_version?: string | undefined;
|
|
323
305
|
}[];
|
|
324
306
|
readonly operations: readonly {
|
|
325
|
-
readonly
|
|
307
|
+
readonly id: string;
|
|
308
|
+
readonly project_id: string;
|
|
326
309
|
readonly branch_id?: string | undefined;
|
|
327
|
-
readonly created_at: string;
|
|
328
310
|
readonly endpoint_id?: string | undefined;
|
|
311
|
+
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";
|
|
312
|
+
readonly status: "cancelled" | "cancelling" | "error" | "failed" | "finished" | "running" | "scheduling" | "skipped";
|
|
329
313
|
readonly error?: string | undefined;
|
|
330
314
|
readonly failures_count: number;
|
|
331
|
-
readonly id: string;
|
|
332
|
-
readonly project_id: string;
|
|
333
315
|
readonly retry_at?: string | undefined;
|
|
334
|
-
readonly
|
|
335
|
-
readonly total_duration_ms: number;
|
|
316
|
+
readonly created_at: string;
|
|
336
317
|
readonly updated_at: string;
|
|
318
|
+
readonly total_duration_ms: number;
|
|
337
319
|
}[];
|
|
338
320
|
readonly roles: readonly {
|
|
339
|
-
readonly authentication_method?: string | undefined;
|
|
340
321
|
readonly branch_id: string;
|
|
341
|
-
readonly created_at: string;
|
|
342
322
|
readonly name: string;
|
|
343
323
|
readonly password?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
344
324
|
readonly protected?: boolean | undefined;
|
|
325
|
+
readonly authentication_method?: string | undefined;
|
|
326
|
+
readonly created_at: string;
|
|
327
|
+
readonly updated_at: string;
|
|
328
|
+
}[];
|
|
329
|
+
readonly databases: readonly {
|
|
330
|
+
readonly id: number;
|
|
331
|
+
readonly branch_id: string;
|
|
332
|
+
readonly name: string;
|
|
333
|
+
readonly owner_name: string;
|
|
334
|
+
readonly created_at: string;
|
|
345
335
|
readonly updated_at: string;
|
|
346
336
|
}[];
|
|
337
|
+
readonly connection_uris?: readonly {
|
|
338
|
+
readonly connection_uri: string | import("effect/Redacted").Redacted<string>;
|
|
339
|
+
readonly connection_parameters: {
|
|
340
|
+
readonly database: string;
|
|
341
|
+
readonly password: string | import("effect/Redacted").Redacted<string>;
|
|
342
|
+
readonly role: string;
|
|
343
|
+
readonly host: string;
|
|
344
|
+
readonly pooler_host: string;
|
|
345
|
+
};
|
|
346
|
+
}[] | undefined;
|
|
347
347
|
}, never, import("../credentials.ts").Credentials>;
|
|
348
348
|
//# sourceMappingURL=createProjectBranchAnonymized.d.ts.map
|
|
@@ -38,27 +38,27 @@ export type CreateProjectBranchDataAPIOutput = typeof CreateProjectBranchDataAPI
|
|
|
38
38
|
* @param database_name - The database name
|
|
39
39
|
*/
|
|
40
40
|
export declare const createProjectBranchDataAPI: import("@distilled.cloud/core/client").OperationMethod<{
|
|
41
|
-
readonly
|
|
42
|
-
readonly auth_provider?: "external" | "neon_auth" | undefined;
|
|
41
|
+
readonly project_id: string;
|
|
43
42
|
readonly branch_id: string;
|
|
44
43
|
readonly database_name: string;
|
|
44
|
+
readonly auth_provider?: "external" | "neon_auth" | undefined;
|
|
45
45
|
readonly jwks_url?: string | undefined;
|
|
46
|
-
readonly jwt_audience?: string | undefined;
|
|
47
|
-
readonly project_id: string;
|
|
48
46
|
readonly provider_name?: string | undefined;
|
|
47
|
+
readonly jwt_audience?: string | undefined;
|
|
48
|
+
readonly add_default_grants?: boolean | undefined;
|
|
49
|
+
readonly skip_auth_schema?: boolean | undefined;
|
|
49
50
|
readonly settings?: {
|
|
50
51
|
readonly db_aggregates_enabled?: boolean | undefined;
|
|
51
52
|
readonly db_anon_role?: string | undefined;
|
|
52
53
|
readonly db_extra_search_path?: string | undefined;
|
|
53
54
|
readonly db_max_rows?: number | undefined;
|
|
54
55
|
readonly db_schemas?: readonly string[] | undefined;
|
|
55
|
-
readonly jwt_cache_max_lifetime?: number | undefined;
|
|
56
56
|
readonly jwt_role_claim_key?: string | undefined;
|
|
57
|
+
readonly jwt_cache_max_lifetime?: number | undefined;
|
|
57
58
|
readonly openapi_mode?: string | undefined;
|
|
58
59
|
readonly server_cors_allowed_origins?: string | undefined;
|
|
59
60
|
readonly server_timing_enabled?: boolean | undefined;
|
|
60
61
|
} | undefined;
|
|
61
|
-
readonly skip_auth_schema?: boolean | undefined;
|
|
62
62
|
}, {
|
|
63
63
|
readonly url: string;
|
|
64
64
|
}, never, import("../credentials.ts").Credentials>;
|
|
@@ -47,34 +47,34 @@ export type CreateProjectBranchDatabaseOutput = typeof CreateProjectBranchDataba
|
|
|
47
47
|
* @param branch_id - The branch ID
|
|
48
48
|
*/
|
|
49
49
|
export declare const createProjectBranchDatabase: import("@distilled.cloud/core/client").OperationMethod<{
|
|
50
|
+
readonly project_id: string;
|
|
50
51
|
readonly branch_id: string;
|
|
51
52
|
readonly database: {
|
|
52
53
|
readonly name: string;
|
|
53
54
|
readonly owner_name: string;
|
|
54
55
|
};
|
|
55
|
-
readonly project_id: string;
|
|
56
56
|
}, {
|
|
57
57
|
readonly database: {
|
|
58
|
-
readonly branch_id: string;
|
|
59
|
-
readonly created_at: string;
|
|
60
58
|
readonly id: number;
|
|
59
|
+
readonly branch_id: string;
|
|
61
60
|
readonly name: string;
|
|
62
61
|
readonly owner_name: string;
|
|
62
|
+
readonly created_at: string;
|
|
63
63
|
readonly updated_at: string;
|
|
64
64
|
};
|
|
65
65
|
readonly operations: readonly {
|
|
66
|
-
readonly
|
|
66
|
+
readonly id: string;
|
|
67
|
+
readonly project_id: string;
|
|
67
68
|
readonly branch_id?: string | undefined;
|
|
68
|
-
readonly created_at: string;
|
|
69
69
|
readonly endpoint_id?: string | undefined;
|
|
70
|
+
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";
|
|
71
|
+
readonly status: "cancelled" | "cancelling" | "error" | "failed" | "finished" | "running" | "scheduling" | "skipped";
|
|
70
72
|
readonly error?: string | undefined;
|
|
71
73
|
readonly failures_count: number;
|
|
72
|
-
readonly id: string;
|
|
73
|
-
readonly project_id: string;
|
|
74
74
|
readonly retry_at?: string | undefined;
|
|
75
|
-
readonly
|
|
76
|
-
readonly total_duration_ms: number;
|
|
75
|
+
readonly created_at: string;
|
|
77
76
|
readonly updated_at: string;
|
|
77
|
+
readonly total_duration_ms: number;
|
|
78
78
|
}[];
|
|
79
79
|
}, BadRequest | Conflict | NotFound | UnprocessableEntity, import("../credentials.ts").Credentials>;
|
|
80
80
|
//# sourceMappingURL=createProjectBranchDatabase.d.ts.map
|
|
@@ -49,35 +49,35 @@ export type CreateProjectBranchRoleOutput = typeof CreateProjectBranchRoleOutput
|
|
|
49
49
|
* @param branch_id - The branch ID
|
|
50
50
|
*/
|
|
51
51
|
export declare const createProjectBranchRole: import("@distilled.cloud/core/client").OperationMethod<{
|
|
52
|
-
readonly branch_id: string;
|
|
53
52
|
readonly project_id: string;
|
|
53
|
+
readonly branch_id: string;
|
|
54
54
|
readonly role: {
|
|
55
55
|
readonly name: string;
|
|
56
56
|
readonly no_login?: boolean | undefined;
|
|
57
57
|
};
|
|
58
58
|
}, {
|
|
59
|
+
readonly role: {
|
|
60
|
+
readonly branch_id: string;
|
|
61
|
+
readonly name: string;
|
|
62
|
+
readonly password?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
63
|
+
readonly protected?: boolean | undefined;
|
|
64
|
+
readonly authentication_method?: string | undefined;
|
|
65
|
+
readonly created_at: string;
|
|
66
|
+
readonly updated_at: string;
|
|
67
|
+
};
|
|
59
68
|
readonly operations: readonly {
|
|
60
|
-
readonly
|
|
69
|
+
readonly id: string;
|
|
70
|
+
readonly project_id: string;
|
|
61
71
|
readonly branch_id?: string | undefined;
|
|
62
|
-
readonly created_at: string;
|
|
63
72
|
readonly endpoint_id?: string | undefined;
|
|
73
|
+
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";
|
|
74
|
+
readonly status: "cancelled" | "cancelling" | "error" | "failed" | "finished" | "running" | "scheduling" | "skipped";
|
|
64
75
|
readonly error?: string | undefined;
|
|
65
76
|
readonly failures_count: number;
|
|
66
|
-
readonly id: string;
|
|
67
|
-
readonly project_id: string;
|
|
68
77
|
readonly retry_at?: string | undefined;
|
|
69
|
-
readonly status: "cancelled" | "cancelling" | "error" | "failed" | "finished" | "running" | "scheduling" | "skipped";
|
|
70
|
-
readonly total_duration_ms: number;
|
|
71
|
-
readonly updated_at: string;
|
|
72
|
-
}[];
|
|
73
|
-
readonly role: {
|
|
74
|
-
readonly authentication_method?: string | undefined;
|
|
75
|
-
readonly branch_id: string;
|
|
76
78
|
readonly created_at: string;
|
|
77
|
-
readonly name: string;
|
|
78
|
-
readonly password?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
79
|
-
readonly protected?: boolean | undefined;
|
|
80
79
|
readonly updated_at: string;
|
|
81
|
-
|
|
80
|
+
readonly total_duration_ms: number;
|
|
81
|
+
}[];
|
|
82
82
|
}, Conflict | NotFound, import("../credentials.ts").Credentials>;
|
|
83
83
|
//# sourceMappingURL=createProjectBranchRole.d.ts.map
|