@distilled.cloud/neon 0.19.1 → 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.
Files changed (124) hide show
  1. package/lib/operations/acceptProjectTransferRequest.d.ts +1 -1
  2. package/lib/operations/addBranchNeonAuthOauthProvider.d.ts +4 -4
  3. package/lib/operations/addBranchNeonAuthTrustedDomain.d.ts +2 -2
  4. package/lib/operations/addProjectJWKS.d.ts +14 -14
  5. package/lib/operations/assignOrganizationVPCEndpoint.d.ts +1 -1
  6. package/lib/operations/assignProjectVPCEndpoint.d.ts +1 -1
  7. package/lib/operations/createApiKey.d.ts +2 -2
  8. package/lib/operations/createBranchNeonAuthNewUser.d.ts +1 -1
  9. package/lib/operations/createNeonAuth.d.ts +5 -5
  10. package/lib/operations/createNeonAuthProviderSDKKeys.d.ts +4 -4
  11. package/lib/operations/createOrgApiKey.d.ts +3 -3
  12. package/lib/operations/createOrganizationInvitations.d.ts +4 -4
  13. package/lib/operations/createProject.d.ts +187 -187
  14. package/lib/operations/createProjectBranch.d.ts +91 -91
  15. package/lib/operations/createProjectBranchAnonymized.d.ts +91 -91
  16. package/lib/operations/createProjectBranchDataAPI.d.ts +6 -6
  17. package/lib/operations/createProjectBranchDatabase.d.ts +9 -9
  18. package/lib/operations/createProjectBranchRole.d.ts +16 -16
  19. package/lib/operations/createProjectEndpoint.d.ts +36 -36
  20. package/lib/operations/createProjectTransferRequest.d.ts +2 -2
  21. package/lib/operations/createSnapshot.d.ts +21 -21
  22. package/lib/operations/deleteBranchNeonAuthOauthProvider.d.ts +1 -1
  23. package/lib/operations/deleteBranchNeonAuthTrustedDomain.d.ts +2 -2
  24. package/lib/operations/deleteBranchNeonAuthUser.d.ts +2 -2
  25. package/lib/operations/deleteProject.d.ts +48 -48
  26. package/lib/operations/deleteProjectBranch.d.ts +34 -34
  27. package/lib/operations/deleteProjectBranchDataAPI.d.ts +1 -1
  28. package/lib/operations/deleteProjectBranchDatabase.d.ts +9 -9
  29. package/lib/operations/deleteProjectBranchRole.d.ts +16 -16
  30. package/lib/operations/deleteProjectEndpoint.d.ts +26 -26
  31. package/lib/operations/deleteProjectJWKS.d.ts +6 -6
  32. package/lib/operations/disableNeonAuth.d.ts +1 -1
  33. package/lib/operations/finalizeRestoreBranch.d.ts +7 -7
  34. package/lib/operations/getActiveRegions.d.ts +2 -2
  35. package/lib/operations/getAnonymizedBranchStatus.d.ts +7 -7
  36. package/lib/operations/getAuthDetails.d.ts +1 -1
  37. package/lib/operations/getAvailablePreloadLibraries.d.ts +1 -1
  38. package/lib/operations/getConnectionURI.d.ts +3 -3
  39. package/lib/operations/getConsumptionHistoryPerAccount.d.ts +10 -10
  40. package/lib/operations/getConsumptionHistoryPerProject.d.ts +16 -16
  41. package/lib/operations/getConsumptionHistoryPerProjectV2.d.ts +14 -14
  42. package/lib/operations/getCurrentUserInfo.d.ts +29 -29
  43. package/lib/operations/getCurrentUserOrganizations.d.ts +5 -5
  44. package/lib/operations/getMaskingRules.d.ts +4 -4
  45. package/lib/operations/getNeonAuth.d.ts +5 -5
  46. package/lib/operations/getNeonAuthAllowLocalhost.d.ts +1 -1
  47. package/lib/operations/getNeonAuthEmailAndPasswordConfig.d.ts +5 -5
  48. package/lib/operations/getNeonAuthEmailProvider.d.ts +1 -1
  49. package/lib/operations/getNeonAuthPhoneNumberPlugin.d.ts +2 -2
  50. package/lib/operations/getNeonAuthPluginConfigs.d.ts +25 -25
  51. package/lib/operations/getNeonAuthWebhookConfig.d.ts +2 -2
  52. package/lib/operations/getOrganization.d.ts +5 -5
  53. package/lib/operations/getOrganizationInvitations.d.ts +3 -3
  54. package/lib/operations/getOrganizationMember.d.ts +3 -3
  55. package/lib/operations/getOrganizationMembers.d.ts +5 -5
  56. package/lib/operations/getOrganizationVPCEndpointDetails.d.ts +3 -3
  57. package/lib/operations/getProject.d.ts +48 -48
  58. package/lib/operations/getProjectAdvisorSecurityIssues.d.ts +8 -8
  59. package/lib/operations/getProjectBranch.d.ts +39 -39
  60. package/lib/operations/getProjectBranchDataAPI.d.ts +5 -5
  61. package/lib/operations/getProjectBranchDatabase.d.ts +3 -3
  62. package/lib/operations/getProjectBranchRole.d.ts +3 -3
  63. package/lib/operations/getProjectBranchRolePassword.d.ts +1 -1
  64. package/lib/operations/getProjectBranchSchema.d.ts +9 -9
  65. package/lib/operations/getProjectBranchSchemaComparison.d.ts +4 -4
  66. package/lib/operations/getProjectEndpoint.d.ts +20 -20
  67. package/lib/operations/getProjectJWKS.d.ts +5 -5
  68. package/lib/operations/getProjectOperation.d.ts +7 -7
  69. package/lib/operations/getSnapshotSchedule.d.ts +2 -2
  70. package/lib/operations/grantPermissionToProject.d.ts +3 -3
  71. package/lib/operations/listApiKeys.d.ts +3 -3
  72. package/lib/operations/listBranchNeonAuthOauthProviders.d.ts +3 -3
  73. package/lib/operations/listBranchNeonAuthTrustedDomains.d.ts +2 -2
  74. package/lib/operations/listOrgApiKeys.d.ts +3 -3
  75. package/lib/operations/listOrganizationVPCEndpoints.d.ts +1 -1
  76. package/lib/operations/listOrganizationVPCEndpointsAllRegions.d.ts +1 -1
  77. package/lib/operations/listProjectBranchDatabases.d.ts +3 -3
  78. package/lib/operations/listProjectBranchEndpoints.d.ts +20 -20
  79. package/lib/operations/listProjectBranchRoles.d.ts +3 -3
  80. package/lib/operations/listProjectBranches.d.ts +43 -43
  81. package/lib/operations/listProjectEndpoints.d.ts +19 -19
  82. package/lib/operations/listProjectOperations.d.ts +7 -7
  83. package/lib/operations/listProjectPermissions.d.ts +2 -2
  84. package/lib/operations/listProjectVPCEndpoints.d.ts +1 -1
  85. package/lib/operations/listProjects.d.ts +51 -51
  86. package/lib/operations/listSharedProjects.d.ts +43 -43
  87. package/lib/operations/listSnapshots.d.ts +7 -7
  88. package/lib/operations/recoverProject.d.ts +90 -90
  89. package/lib/operations/recoverProjectBranch.d.ts +47 -47
  90. package/lib/operations/removeOrganizationMember.d.ts +1 -1
  91. package/lib/operations/resetProjectBranchRolePassword.d.ts +16 -16
  92. package/lib/operations/restartProjectEndpoint.d.ts +26 -26
  93. package/lib/operations/restoreProjectBranch.d.ts +35 -35
  94. package/lib/operations/restoreSnapshot.d.ts +54 -54
  95. package/lib/operations/revokeApiKey.d.ts +2 -2
  96. package/lib/operations/revokeOrgApiKey.d.ts +4 -4
  97. package/lib/operations/revokePermissionFromProject.d.ts +3 -3
  98. package/lib/operations/sendNeonAuthTestEmail.d.ts +5 -5
  99. package/lib/operations/setDefaultProjectBranch.d.ts +34 -34
  100. package/lib/operations/setSnapshotSchedule.d.ts +2 -2
  101. package/lib/operations/startAnonymization.d.ts +7 -7
  102. package/lib/operations/startProjectEndpoint.d.ts +26 -26
  103. package/lib/operations/suspendProjectEndpoint.d.ts +26 -26
  104. package/lib/operations/transferNeonAuthProviderProject.d.ts +1 -1
  105. package/lib/operations/transferProjectsFromOrgToOrg.d.ts +1 -1
  106. package/lib/operations/updateBranchNeonAuthOauthProvider.d.ts +4 -4
  107. package/lib/operations/updateMaskingRules.d.ts +7 -7
  108. package/lib/operations/updateNeonAuthAllowLocalhost.d.ts +2 -2
  109. package/lib/operations/updateNeonAuthConfig.d.ts +1 -1
  110. package/lib/operations/updateNeonAuthEmailAndPasswordConfig.d.ts +9 -9
  111. package/lib/operations/updateNeonAuthEmailProvider.d.ts +1 -1
  112. package/lib/operations/updateNeonAuthMagicLinkPlugin.d.ts +3 -3
  113. package/lib/operations/updateNeonAuthOrganizationPlugin.d.ts +5 -5
  114. package/lib/operations/updateNeonAuthPhoneNumberPlugin.d.ts +3 -3
  115. package/lib/operations/updateNeonAuthUserRole.d.ts +2 -2
  116. package/lib/operations/updateNeonAuthWebhookConfig.d.ts +3 -3
  117. package/lib/operations/updateOrganizationMember.d.ts +3 -3
  118. package/lib/operations/updateProject.d.ts +89 -89
  119. package/lib/operations/updateProjectBranch.d.ts +36 -36
  120. package/lib/operations/updateProjectBranchDataAPI.d.ts +2 -2
  121. package/lib/operations/updateProjectBranchDatabase.d.ts +10 -10
  122. package/lib/operations/updateProjectEndpoint.d.ts +35 -35
  123. package/lib/operations/updateSnapshot.d.ts +8 -8
  124. package/package.json +3 -3
@@ -17,8 +17,8 @@ export type AcceptProjectTransferRequestOutput = typeof AcceptProjectTransferReq
17
17
  * @param request_id - The Neon project transfer request ID
18
18
  */
19
19
  export declare const acceptProjectTransferRequest: import("@distilled.cloud/core/client").OperationMethod<{
20
- readonly org_id?: string | undefined;
21
20
  readonly project_id: string;
22
21
  readonly request_id: string;
22
+ readonly org_id?: string | undefined;
23
23
  }, void, never, import("../credentials.ts").Credentials>;
24
24
  //# sourceMappingURL=acceptProjectTransferRequest.d.ts.map
@@ -24,16 +24,16 @@ export type AddBranchNeonAuthOauthProviderOutput = typeof AddBranchNeonAuthOauth
24
24
  * @param branch_id - The Neon branch ID
25
25
  */
26
26
  export declare const addBranchNeonAuthOauthProvider: import("@distilled.cloud/core/client").OperationMethod<{
27
+ readonly project_id: string;
27
28
  readonly branch_id: string;
29
+ readonly id: "github" | "google" | "microsoft" | "vercel";
28
30
  readonly client_id?: string | undefined;
29
31
  readonly client_secret?: string | import("effect/Redacted").Redacted<string> | undefined;
30
- readonly id: "github" | "google" | "microsoft" | "vercel";
31
32
  readonly microsoft_tenant_id?: string | undefined;
32
- readonly project_id: string;
33
33
  }, {
34
- readonly client_id?: string | undefined;
35
- readonly client_secret?: string | import("effect/Redacted").Redacted<string> | undefined;
36
34
  readonly id: "github" | "google" | "microsoft" | "vercel";
37
35
  readonly type: "shared" | "standard";
36
+ readonly client_id?: string | undefined;
37
+ readonly client_secret?: string | import("effect/Redacted").Redacted<string> | undefined;
38
38
  }, never, import("../credentials.ts").Credentials>;
39
39
  //# sourceMappingURL=addBranchNeonAuthOauthProvider.d.ts.map
@@ -17,9 +17,9 @@ export type AddBranchNeonAuthTrustedDomainOutput = typeof AddBranchNeonAuthTrust
17
17
  * @param branch_id - The Neon branch ID
18
18
  */
19
19
  export declare const addBranchNeonAuthTrustedDomain: import("@distilled.cloud/core/client").OperationMethod<{
20
- readonly auth_provider: "better_auth" | "mock" | "stack" | "stack_v2";
20
+ readonly project_id: string;
21
21
  readonly branch_id: string;
22
22
  readonly domain: string;
23
- readonly project_id: string;
23
+ readonly auth_provider: "better_auth" | "mock" | "stack" | "stack_v2";
24
24
  }, void, never, import("../credentials.ts").Credentials>;
25
25
  //# sourceMappingURL=addBranchNeonAuthTrustedDomain.d.ts.map
@@ -50,38 +50,38 @@ export type AddProjectJWKSOutput = typeof AddProjectJWKSOutput.Type;
50
50
  * @param project_id - The Neon project ID
51
51
  */
52
52
  export declare const addProjectJWKS: import("@distilled.cloud/core/client").OperationMethod<{
53
- readonly branch_id?: string | undefined;
54
- readonly jwks_url: string;
55
- readonly jwt_audience?: string | undefined;
56
53
  readonly project_id: string;
54
+ readonly jwks_url: string;
57
55
  readonly provider_name: string;
56
+ readonly branch_id?: string | undefined;
57
+ readonly jwt_audience?: string | undefined;
58
58
  readonly role_names?: readonly string[] | undefined;
59
59
  readonly skip_role_creation?: boolean | undefined;
60
60
  }, {
61
61
  readonly jwks: {
62
- readonly branch_id?: string | undefined;
63
- readonly created_at: string;
64
62
  readonly id: string;
65
- readonly jwks_url: string;
66
- readonly jwt_audience?: string | undefined;
67
63
  readonly project_id: string;
64
+ readonly branch_id?: string | undefined;
65
+ readonly jwks_url: string;
68
66
  readonly provider_name: string;
69
- readonly role_names?: readonly string[] | undefined;
67
+ readonly created_at: string;
70
68
  readonly updated_at: string;
69
+ readonly jwt_audience?: string | undefined;
70
+ readonly role_names?: readonly string[] | undefined;
71
71
  };
72
72
  readonly operations: readonly {
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";
73
+ readonly id: string;
74
+ readonly project_id: string;
74
75
  readonly branch_id?: string | undefined;
75
- readonly created_at: string;
76
76
  readonly endpoint_id?: string | undefined;
77
+ 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";
78
+ readonly status: "cancelled" | "cancelling" | "error" | "failed" | "finished" | "running" | "scheduling" | "skipped";
77
79
  readonly error?: string | undefined;
78
80
  readonly failures_count: number;
79
- readonly id: string;
80
- readonly project_id: string;
81
81
  readonly retry_at?: string | undefined;
82
- readonly status: "cancelled" | "cancelling" | "error" | "failed" | "finished" | "running" | "scheduling" | "skipped";
83
- readonly total_duration_ms: number;
82
+ readonly created_at: string;
84
83
  readonly updated_at: string;
84
+ readonly total_duration_ms: number;
85
85
  }[];
86
86
  }, never, import("../credentials.ts").Credentials>;
87
87
  //# sourceMappingURL=addProjectJWKS.d.ts.map
@@ -20,9 +20,9 @@ Azure regions are currently not supported.
20
20
  * @param vpc_endpoint_id - The VPC endpoint ID
21
21
  */
22
22
  export declare const assignOrganizationVPCEndpoint: import("@distilled.cloud/core/client").OperationMethod<{
23
- readonly label: string;
24
23
  readonly org_id: string;
25
24
  readonly region_id: string;
26
25
  readonly vpc_endpoint_id: string;
26
+ readonly label: string;
27
27
  }, void, never, import("../credentials.ts").Credentials>;
28
28
  //# sourceMappingURL=assignOrganizationVPCEndpoint.d.ts.map
@@ -20,8 +20,8 @@ export type AssignProjectVPCEndpointOutput = typeof AssignProjectVPCEndpointOutp
20
20
  * @param vpc_endpoint_id - The VPC endpoint ID
21
21
  */
22
22
  export declare const assignProjectVPCEndpoint: import("@distilled.cloud/core/client").OperationMethod<{
23
- readonly label: string;
24
23
  readonly project_id: string;
25
24
  readonly vpc_endpoint_id: string;
25
+ readonly label: string;
26
26
  }, void, never, import("../credentials.ts").Credentials>;
27
27
  //# sourceMappingURL=assignProjectVPCEndpoint.d.ts.map
@@ -23,10 +23,10 @@ export type CreateApiKeyOutput = typeof CreateApiKeyOutput.Type;
23
23
  export declare const createApiKey: import("@distilled.cloud/core/client").OperationMethod<{
24
24
  readonly key_name: string;
25
25
  }, {
26
- readonly created_at: string;
27
- readonly created_by: string;
28
26
  readonly id: number;
29
27
  readonly key: string;
30
28
  readonly name: string;
29
+ readonly created_at: string;
30
+ readonly created_by: string;
31
31
  }, never, import("../credentials.ts").Credentials>;
32
32
  //# sourceMappingURL=createApiKey.d.ts.map
@@ -19,10 +19,10 @@ export type CreateBranchNeonAuthNewUserOutput = typeof CreateBranchNeonAuthNewUs
19
19
  * @param branch_id - The Neon branch ID
20
20
  */
21
21
  export declare const createBranchNeonAuthNewUser: import("@distilled.cloud/core/client").OperationMethod<{
22
+ readonly project_id: string;
22
23
  readonly branch_id: string;
23
24
  readonly email: string;
24
25
  readonly name?: string | undefined;
25
- readonly project_id: string;
26
26
  }, {
27
27
  readonly id: string;
28
28
  }, never, import("../credentials.ts").Credentials>;
@@ -27,18 +27,18 @@ export type CreateNeonAuthOutput = typeof CreateNeonAuthOutput.Type;
27
27
  * @param branch_id - The Neon branch ID
28
28
  */
29
29
  export declare const createNeonAuth: import("@distilled.cloud/core/client").OperationMethod<{
30
- readonly auth_provider: "better_auth" | "mock" | "stack" | "stack_v2";
30
+ readonly project_id: string;
31
31
  readonly branch_id: string;
32
+ readonly auth_provider: "better_auth" | "mock" | "stack" | "stack_v2";
32
33
  readonly database_name?: string | undefined;
33
- readonly project_id: string;
34
34
  }, {
35
35
  readonly auth_provider: "better_auth" | "mock" | "stack" | "stack_v2";
36
36
  readonly auth_provider_project_id: string;
37
- readonly base_url?: string | undefined;
38
- readonly jwks_url: string;
39
37
  readonly pub_client_key: string;
40
- readonly schema_name: string;
41
38
  readonly secret_server_key: string;
39
+ readonly jwks_url: string;
40
+ readonly schema_name: string;
42
41
  readonly table_name: string;
42
+ readonly base_url?: string | undefined;
43
43
  }, never, import("../credentials.ts").Credentials>;
44
44
  //# sourceMappingURL=createNeonAuth.d.ts.map
@@ -22,16 +22,16 @@ export type CreateNeonAuthProviderSDKKeysOutput = typeof CreateNeonAuthProviderS
22
22
  * on the auth provider you're using, but are generally used for setting up the frontend and backend SDKs.
23
23
  */
24
24
  export declare const createNeonAuthProviderSDKKeys: import("@distilled.cloud/core/client").OperationMethod<{
25
- readonly auth_provider: "better_auth" | "mock" | "stack" | "stack_v2";
26
25
  readonly project_id: string;
26
+ readonly auth_provider: "better_auth" | "mock" | "stack" | "stack_v2";
27
27
  }, {
28
28
  readonly auth_provider: "better_auth" | "mock" | "stack" | "stack_v2";
29
29
  readonly auth_provider_project_id: string;
30
- readonly base_url?: string | undefined;
31
- readonly jwks_url: string;
32
30
  readonly pub_client_key: string;
33
- readonly schema_name: string;
34
31
  readonly secret_server_key: string;
32
+ readonly jwks_url: string;
33
+ readonly schema_name: string;
35
34
  readonly table_name: string;
35
+ readonly base_url?: string | undefined;
36
36
  }, never, import("../credentials.ts").Credentials>;
37
37
  //# sourceMappingURL=createNeonAuthProviderSDKKeys.d.ts.map
@@ -26,15 +26,15 @@ export type CreateOrgApiKeyOutput = typeof CreateOrgApiKeyOutput.Type;
26
26
  * @param org_id - The Neon organization ID
27
27
  */
28
28
  export declare const createOrgApiKey: import("@distilled.cloud/core/client").OperationMethod<{
29
- readonly key_name: string;
30
29
  readonly org_id: string;
30
+ readonly key_name: string;
31
31
  readonly project_id?: string | undefined;
32
32
  }, {
33
- readonly created_at: string;
34
- readonly created_by: string;
35
33
  readonly id: number;
36
34
  readonly key: string;
37
35
  readonly name: string;
36
+ readonly created_at: string;
37
+ readonly created_by: string;
38
38
  readonly project_id?: string | undefined;
39
39
  }, never, import("../credentials.ts").Credentials>;
40
40
  //# sourceMappingURL=createOrgApiKey.d.ts.map
@@ -29,18 +29,18 @@ export type CreateOrganizationInvitationsOutput = typeof CreateOrganizationInvit
29
29
  * @param org_id - The Neon organization ID
30
30
  */
31
31
  export declare const createOrganizationInvitations: import("@distilled.cloud/core/client").OperationMethod<{
32
+ readonly org_id: string;
32
33
  readonly invitations: readonly {
33
34
  readonly email: string;
34
35
  readonly role: "admin" | "member";
35
36
  }[];
36
- readonly org_id: string;
37
37
  }, {
38
38
  readonly invitations: readonly {
39
- readonly email: string;
40
39
  readonly id: string;
41
- readonly invited_at: string;
42
- readonly invited_by: string;
40
+ readonly email: string;
43
41
  readonly org_id: string;
42
+ readonly invited_by: string;
43
+ readonly invited_at: string;
44
44
  readonly role: "admin" | "member";
45
45
  }[];
46
46
  }, never, import("../credentials.ts").Credentials>;