@distilled.cloud/neon 0.0.0 → 0.2.0-alpha
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/category.d.ts +5 -0
- package/lib/category.d.ts.map +1 -0
- package/lib/category.js +5 -0
- package/lib/category.js.map +1 -0
- package/lib/client.d.ts +17 -0
- package/lib/client.d.ts.map +1 -0
- package/lib/client.js +51 -0
- package/lib/client.js.map +1 -0
- package/lib/credentials.d.ts +14 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +17 -0
- package/lib/credentials.js.map +1 -0
- package/lib/errors.d.ts +31 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +23 -0
- package/lib/errors.js.map +1 -0
- package/lib/index.d.ts +16 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +16 -0
- package/lib/index.js.map +1 -0
- package/lib/operations/acceptProjectTransferRequest.d.ts +20 -0
- package/lib/operations/acceptProjectTransferRequest.d.ts.map +1 -0
- package/lib/operations/acceptProjectTransferRequest.js +32 -0
- package/lib/operations/acceptProjectTransferRequest.js.map +1 -0
- package/lib/operations/addBranchNeonAuthOauthProvider.d.ts +27 -0
- package/lib/operations/addBranchNeonAuthOauthProvider.d.ts.map +1 -0
- package/lib/operations/addBranchNeonAuthOauthProvider.js +39 -0
- package/lib/operations/addBranchNeonAuthOauthProvider.js.map +1 -0
- package/lib/operations/addBranchNeonAuthTrustedDomain.d.ts +20 -0
- package/lib/operations/addBranchNeonAuthTrustedDomain.d.ts.map +1 -0
- package/lib/operations/addBranchNeonAuthTrustedDomain.js +37 -0
- package/lib/operations/addBranchNeonAuthTrustedDomain.js.map +1 -0
- package/lib/operations/addProjectJWKS.d.ts +53 -0
- package/lib/operations/addProjectJWKS.d.ts.map +1 -0
- package/lib/operations/addProjectJWKS.js +98 -0
- package/lib/operations/addProjectJWKS.js.map +1 -0
- package/lib/operations/assignOrganizationVPCEndpoint.d.ts +23 -0
- package/lib/operations/assignOrganizationVPCEndpoint.d.ts.map +1 -0
- package/lib/operations/assignOrganizationVPCEndpoint.js +35 -0
- package/lib/operations/assignOrganizationVPCEndpoint.js.map +1 -0
- package/lib/operations/assignProjectVPCEndpoint.d.ts +23 -0
- package/lib/operations/assignProjectVPCEndpoint.d.ts.map +1 -0
- package/lib/operations/assignProjectVPCEndpoint.js +34 -0
- package/lib/operations/assignProjectVPCEndpoint.js.map +1 -0
- package/lib/operations/countProjectBranches.d.ts +21 -0
- package/lib/operations/countProjectBranches.d.ts.map +1 -0
- package/lib/operations/countProjectBranches.js +29 -0
- package/lib/operations/countProjectBranches.js.map +1 -0
- package/lib/operations/createApiKey.d.ts +24 -0
- package/lib/operations/createApiKey.d.ts.map +1 -0
- package/lib/operations/createApiKey.js +30 -0
- package/lib/operations/createApiKey.js.map +1 -0
- package/lib/operations/createBranchNeonAuthNewUser.d.ts +22 -0
- package/lib/operations/createBranchNeonAuthNewUser.d.ts.map +1 -0
- package/lib/operations/createBranchNeonAuthNewUser.js +33 -0
- package/lib/operations/createBranchNeonAuthNewUser.js.map +1 -0
- package/lib/operations/createNeonAuth.d.ts +30 -0
- package/lib/operations/createNeonAuth.d.ts.map +1 -0
- package/lib/operations/createNeonAuth.js +39 -0
- package/lib/operations/createNeonAuth.js.map +1 -0
- package/lib/operations/createNeonAuthProviderSDKKeys.d.ts +25 -0
- package/lib/operations/createNeonAuthProviderSDKKeys.d.ts.map +1 -0
- package/lib/operations/createNeonAuthProviderSDKKeys.js +44 -0
- package/lib/operations/createNeonAuthProviderSDKKeys.js.map +1 -0
- package/lib/operations/createOrgApiKey.d.ts +27 -0
- package/lib/operations/createOrgApiKey.d.ts.map +1 -0
- package/lib/operations/createOrgApiKey.js +33 -0
- package/lib/operations/createOrgApiKey.js.map +1 -0
- package/lib/operations/createOrganizationInvitations.d.ts +32 -0
- package/lib/operations/createOrganizationInvitations.d.ts.map +1 -0
- package/lib/operations/createOrganizationInvitations.js +41 -0
- package/lib/operations/createOrganizationInvitations.js.map +1 -0
- package/lib/operations/createProject.d.ts +257 -0
- package/lib/operations/createProject.d.ts.map +1 -0
- package/lib/operations/createProject.js +315 -0
- package/lib/operations/createProject.js.map +1 -0
- package/lib/operations/createProjectBranch.d.ts +137 -0
- package/lib/operations/createProjectBranch.d.ts.map +1 -0
- package/lib/operations/createProjectBranch.js +184 -0
- package/lib/operations/createProjectBranch.js.map +1 -0
- package/lib/operations/createProjectBranchAnonymized.d.ts +137 -0
- package/lib/operations/createProjectBranchAnonymized.d.ts.map +1 -0
- package/lib/operations/createProjectBranchAnonymized.js +188 -0
- package/lib/operations/createProjectBranchAnonymized.js.map +1 -0
- package/lib/operations/createProjectBranchDataAPI.d.ts +41 -0
- package/lib/operations/createProjectBranchDataAPI.d.ts.map +1 -0
- package/lib/operations/createProjectBranchDataAPI.js +52 -0
- package/lib/operations/createProjectBranchDataAPI.js.map +1 -0
- package/lib/operations/createProjectBranchDatabase.d.ts +49 -0
- package/lib/operations/createProjectBranchDatabase.d.ts.map +1 -0
- package/lib/operations/createProjectBranchDatabase.js +99 -0
- package/lib/operations/createProjectBranchDatabase.js.map +1 -0
- package/lib/operations/createProjectBranchRole.d.ts +51 -0
- package/lib/operations/createProjectBranchRole.d.ts.map +1 -0
- package/lib/operations/createProjectBranchRole.js +101 -0
- package/lib/operations/createProjectBranchRole.js.map +1 -0
- package/lib/operations/createProjectEndpoint.d.ts +97 -0
- package/lib/operations/createProjectEndpoint.d.ts.map +1 -0
- package/lib/operations/createProjectEndpoint.js +144 -0
- package/lib/operations/createProjectEndpoint.js.map +1 -0
- package/lib/operations/createProjectTransferRequest.d.ts +29 -0
- package/lib/operations/createProjectTransferRequest.d.ts.map +1 -0
- package/lib/operations/createProjectTransferRequest.js +41 -0
- package/lib/operations/createProjectTransferRequest.js.map +1 -0
- package/lib/operations/createSnapshot.d.ts +59 -0
- package/lib/operations/createSnapshot.d.ts.map +1 -0
- package/lib/operations/createSnapshot.js +107 -0
- package/lib/operations/createSnapshot.js.map +1 -0
- package/lib/operations/deleteBranchNeonAuthOauthProvider.d.ts +20 -0
- package/lib/operations/deleteBranchNeonAuthOauthProvider.d.ts.map +1 -0
- package/lib/operations/deleteBranchNeonAuthOauthProvider.js +32 -0
- package/lib/operations/deleteBranchNeonAuthOauthProvider.js.map +1 -0
- package/lib/operations/deleteBranchNeonAuthTrustedDomain.d.ts +22 -0
- package/lib/operations/deleteBranchNeonAuthTrustedDomain.d.ts.map +1 -0
- package/lib/operations/deleteBranchNeonAuthTrustedDomain.js +39 -0
- package/lib/operations/deleteBranchNeonAuthTrustedDomain.js.map +1 -0
- package/lib/operations/deleteBranchNeonAuthUser.d.ts +20 -0
- package/lib/operations/deleteBranchNeonAuthUser.d.ts.map +1 -0
- package/lib/operations/deleteBranchNeonAuthUser.js +31 -0
- package/lib/operations/deleteBranchNeonAuthUser.js.map +1 -0
- package/lib/operations/deleteOrganizationVPCEndpoint.d.ts +24 -0
- package/lib/operations/deleteOrganizationVPCEndpoint.d.ts.map +1 -0
- package/lib/operations/deleteOrganizationVPCEndpoint.js +36 -0
- package/lib/operations/deleteOrganizationVPCEndpoint.js.map +1 -0
- package/lib/operations/deleteProject.d.ts +92 -0
- package/lib/operations/deleteProject.d.ts.map +1 -0
- package/lib/operations/deleteProject.js +111 -0
- package/lib/operations/deleteProject.js.map +1 -0
- package/lib/operations/deleteProjectBranch.d.ts +80 -0
- package/lib/operations/deleteProjectBranch.d.ts.map +1 -0
- package/lib/operations/deleteProjectBranch.js +130 -0
- package/lib/operations/deleteProjectBranch.js.map +1 -0
- package/lib/operations/deleteProjectBranchDataAPI.d.ts +21 -0
- package/lib/operations/deleteProjectBranchDataAPI.d.ts.map +1 -0
- package/lib/operations/deleteProjectBranchDataAPI.js +32 -0
- package/lib/operations/deleteProjectBranchDataAPI.js.map +1 -0
- package/lib/operations/deleteProjectBranchDatabase.d.ts +46 -0
- package/lib/operations/deleteProjectBranchDatabase.d.ts.map +1 -0
- package/lib/operations/deleteProjectBranchDatabase.js +96 -0
- package/lib/operations/deleteProjectBranchDatabase.js.map +1 -0
- package/lib/operations/deleteProjectBranchRole.d.ts +48 -0
- package/lib/operations/deleteProjectBranchRole.d.ts.map +1 -0
- package/lib/operations/deleteProjectBranchRole.js +98 -0
- package/lib/operations/deleteProjectBranchRole.js.map +1 -0
- package/lib/operations/deleteProjectEndpoint.d.ts +75 -0
- package/lib/operations/deleteProjectEndpoint.d.ts.map +1 -0
- package/lib/operations/deleteProjectEndpoint.js +125 -0
- package/lib/operations/deleteProjectEndpoint.js.map +1 -0
- package/lib/operations/deleteProjectJWKS.d.ts +28 -0
- package/lib/operations/deleteProjectJWKS.d.ts.map +1 -0
- package/lib/operations/deleteProjectJWKS.js +35 -0
- package/lib/operations/deleteProjectJWKS.js.map +1 -0
- package/lib/operations/deleteProjectVPCEndpoint.d.ts +18 -0
- package/lib/operations/deleteProjectVPCEndpoint.d.ts.map +1 -0
- package/lib/operations/deleteProjectVPCEndpoint.js +29 -0
- package/lib/operations/deleteProjectVPCEndpoint.js.map +1 -0
- package/lib/operations/deleteSnapshot.d.ts +19 -0
- package/lib/operations/deleteSnapshot.d.ts.map +1 -0
- package/lib/operations/deleteSnapshot.js +28 -0
- package/lib/operations/deleteSnapshot.js.map +1 -0
- package/lib/operations/disableNeonAuth.d.ts +17 -0
- package/lib/operations/disableNeonAuth.d.ts.map +1 -0
- package/lib/operations/disableNeonAuth.js +26 -0
- package/lib/operations/disableNeonAuth.js.map +1 -0
- package/lib/operations/finalizeRestoreBranch.d.ts +41 -0
- package/lib/operations/finalizeRestoreBranch.d.ts.map +1 -0
- package/lib/operations/finalizeRestoreBranch.js +91 -0
- package/lib/operations/finalizeRestoreBranch.js.map +1 -0
- package/lib/operations/getActiveRegions.d.ts +20 -0
- package/lib/operations/getActiveRegions.d.ts.map +1 -0
- package/lib/operations/getActiveRegions.js +26 -0
- package/lib/operations/getActiveRegions.js.map +1 -0
- package/lib/operations/getAnonymizedBranchStatus.d.ts +38 -0
- package/lib/operations/getAnonymizedBranchStatus.d.ts.map +1 -0
- package/lib/operations/getAnonymizedBranchStatus.js +49 -0
- package/lib/operations/getAnonymizedBranchStatus.js.map +1 -0
- package/lib/operations/getAuthDetails.d.ts +16 -0
- package/lib/operations/getAuthDetails.d.ts.map +1 -0
- package/lib/operations/getAuthDetails.js +28 -0
- package/lib/operations/getAuthDetails.js.map +1 -0
- package/lib/operations/getAvailablePreloadLibraries.d.ts +20 -0
- package/lib/operations/getAvailablePreloadLibraries.d.ts.map +1 -0
- package/lib/operations/getAvailablePreloadLibraries.js +32 -0
- package/lib/operations/getAvailablePreloadLibraries.js.map +1 -0
- package/lib/operations/getConnectionURI.d.ts +31 -0
- package/lib/operations/getConnectionURI.d.ts.map +1 -0
- package/lib/operations/getConnectionURI.js +37 -0
- package/lib/operations/getConnectionURI.js.map +1 -0
- package/lib/operations/getConsumptionHistoryPerAccount.d.ts +84 -0
- package/lib/operations/getConsumptionHistoryPerAccount.d.ts.map +1 -0
- package/lib/operations/getConsumptionHistoryPerAccount.js +93 -0
- package/lib/operations/getConsumptionHistoryPerAccount.js.map +1 -0
- package/lib/operations/getConsumptionHistoryPerProject.d.ts +104 -0
- package/lib/operations/getConsumptionHistoryPerProject.d.ts.map +1 -0
- package/lib/operations/getConsumptionHistoryPerProject.js +113 -0
- package/lib/operations/getConsumptionHistoryPerProject.js.map +1 -0
- package/lib/operations/getConsumptionHistoryPerProjectV2.d.ts +93 -0
- package/lib/operations/getConsumptionHistoryPerProjectV2.d.ts.map +1 -0
- package/lib/operations/getConsumptionHistoryPerProjectV2.js +102 -0
- package/lib/operations/getConsumptionHistoryPerProjectV2.js.map +1 -0
- package/lib/operations/getCurrentUserInfo.d.ts +66 -0
- package/lib/operations/getCurrentUserInfo.d.ts.map +1 -0
- package/lib/operations/getCurrentUserInfo.js +121 -0
- package/lib/operations/getCurrentUserInfo.js.map +1 -0
- package/lib/operations/getCurrentUserOrganizations.d.ts +23 -0
- package/lib/operations/getCurrentUserOrganizations.d.ts.map +1 -0
- package/lib/operations/getCurrentUserOrganizations.js +31 -0
- package/lib/operations/getCurrentUserOrganizations.js.map +1 -0
- package/lib/operations/getMaskingRules.d.ts +31 -0
- package/lib/operations/getMaskingRules.d.ts.map +1 -0
- package/lib/operations/getMaskingRules.js +40 -0
- package/lib/operations/getMaskingRules.js.map +1 -0
- package/lib/operations/getNeonAuth.d.ts +28 -0
- package/lib/operations/getNeonAuth.d.ts.map +1 -0
- package/lib/operations/getNeonAuth.js +37 -0
- package/lib/operations/getNeonAuth.js.map +1 -0
- package/lib/operations/getNeonAuthAllowLocalhost.d.ts +20 -0
- package/lib/operations/getNeonAuthAllowLocalhost.d.ts.map +1 -0
- package/lib/operations/getNeonAuthAllowLocalhost.js +31 -0
- package/lib/operations/getNeonAuthAllowLocalhost.js.map +1 -0
- package/lib/operations/getNeonAuthEmailAndPasswordConfig.d.ts +26 -0
- package/lib/operations/getNeonAuthEmailAndPasswordConfig.d.ts.map +1 -0
- package/lib/operations/getNeonAuthEmailAndPasswordConfig.js +38 -0
- package/lib/operations/getNeonAuthEmailAndPasswordConfig.js.map +1 -0
- package/lib/operations/getNeonAuthEmailProvider.d.ts +18 -0
- package/lib/operations/getNeonAuthEmailProvider.d.ts.map +1 -0
- package/lib/operations/getNeonAuthEmailProvider.js +29 -0
- package/lib/operations/getNeonAuthEmailProvider.js.map +1 -0
- package/lib/operations/getNeonAuthPluginConfigs.d.ts +45 -0
- package/lib/operations/getNeonAuthPluginConfigs.d.ts.map +1 -0
- package/lib/operations/getNeonAuthPluginConfigs.js +56 -0
- package/lib/operations/getNeonAuthPluginConfigs.js.map +1 -0
- package/lib/operations/getNeonAuthWebhookConfig.d.ts +23 -0
- package/lib/operations/getNeonAuthWebhookConfig.d.ts.map +1 -0
- package/lib/operations/getNeonAuthWebhookConfig.js +39 -0
- package/lib/operations/getNeonAuthWebhookConfig.js.map +1 -0
- package/lib/operations/getOrganization.d.ts +25 -0
- package/lib/operations/getOrganization.d.ts.map +1 -0
- package/lib/operations/getOrganization.js +31 -0
- package/lib/operations/getOrganization.js.map +1 -0
- package/lib/operations/getOrganizationInvitations.d.ts +25 -0
- package/lib/operations/getOrganizationInvitations.d.ts.map +1 -0
- package/lib/operations/getOrganizationInvitations.js +33 -0
- package/lib/operations/getOrganizationInvitations.js.map +1 -0
- package/lib/operations/getOrganizationMember.d.ts +24 -0
- package/lib/operations/getOrganizationMember.d.ts.map +1 -0
- package/lib/operations/getOrganizationMember.js +35 -0
- package/lib/operations/getOrganizationMember.js.map +1 -0
- package/lib/operations/getOrganizationMembers.d.ts +29 -0
- package/lib/operations/getOrganizationMembers.d.ts.map +1 -0
- package/lib/operations/getOrganizationMembers.js +37 -0
- package/lib/operations/getOrganizationMembers.js.map +1 -0
- package/lib/operations/getOrganizationVPCEndpointDetails.d.ts +28 -0
- package/lib/operations/getOrganizationVPCEndpointDetails.d.ts.map +1 -0
- package/lib/operations/getOrganizationVPCEndpointDetails.js +40 -0
- package/lib/operations/getOrganizationVPCEndpointDetails.js.map +1 -0
- package/lib/operations/getProject.d.ts +90 -0
- package/lib/operations/getProject.d.ts.map +1 -0
- package/lib/operations/getProject.js +109 -0
- package/lib/operations/getProject.js.map +1 -0
- package/lib/operations/getProjectAdvisorSecurityIssues.d.ts +39 -0
- package/lib/operations/getProjectAdvisorSecurityIssues.d.ts.map +1 -0
- package/lib/operations/getProjectAdvisorSecurityIssues.js +48 -0
- package/lib/operations/getProjectAdvisorSecurityIssues.js.map +1 -0
- package/lib/operations/getProjectBranch.d.ts +73 -0
- package/lib/operations/getProjectBranch.d.ts.map +1 -0
- package/lib/operations/getProjectBranch.js +82 -0
- package/lib/operations/getProjectBranch.js.map +1 -0
- package/lib/operations/getProjectBranchDataAPI.d.ts +36 -0
- package/lib/operations/getProjectBranchDataAPI.d.ts.map +1 -0
- package/lib/operations/getProjectBranchDataAPI.js +47 -0
- package/lib/operations/getProjectBranchDataAPI.js.map +1 -0
- package/lib/operations/getProjectBranchDatabase.d.ts +32 -0
- package/lib/operations/getProjectBranchDatabase.d.ts.map +1 -0
- package/lib/operations/getProjectBranchDatabase.js +43 -0
- package/lib/operations/getProjectBranchDatabase.js.map +1 -0
- package/lib/operations/getProjectBranchRole.d.ts +35 -0
- package/lib/operations/getProjectBranchRole.d.ts.map +1 -0
- package/lib/operations/getProjectBranchRole.js +46 -0
- package/lib/operations/getProjectBranchRole.js.map +1 -0
- package/lib/operations/getProjectBranchRolePassword.d.ts +26 -0
- package/lib/operations/getProjectBranchRolePassword.d.ts.map +1 -0
- package/lib/operations/getProjectBranchRolePassword.js +38 -0
- package/lib/operations/getProjectBranchRolePassword.js.map +1 -0
- package/lib/operations/getProjectBranchSchema.d.ts +55 -0
- package/lib/operations/getProjectBranchSchema.d.ts.map +1 -0
- package/lib/operations/getProjectBranchSchema.js +66 -0
- package/lib/operations/getProjectBranchSchema.js.map +1 -0
- package/lib/operations/getProjectBranchSchemaComparison.d.ts +36 -0
- package/lib/operations/getProjectBranchSchemaComparison.d.ts.map +1 -0
- package/lib/operations/getProjectBranchSchemaComparison.js +48 -0
- package/lib/operations/getProjectBranchSchemaComparison.js.map +1 -0
- package/lib/operations/getProjectEndpoint.d.ts +59 -0
- package/lib/operations/getProjectEndpoint.d.ts.map +1 -0
- package/lib/operations/getProjectEndpoint.js +70 -0
- package/lib/operations/getProjectEndpoint.js.map +1 -0
- package/lib/operations/getProjectJWKS.d.ts +28 -0
- package/lib/operations/getProjectJWKS.d.ts.map +1 -0
- package/lib/operations/getProjectJWKS.js +34 -0
- package/lib/operations/getProjectJWKS.js.map +1 -0
- package/lib/operations/getProjectOperation.d.ts +36 -0
- package/lib/operations/getProjectOperation.d.ts.map +1 -0
- package/lib/operations/getProjectOperation.js +86 -0
- package/lib/operations/getProjectOperation.js.map +1 -0
- package/lib/operations/getSnapshotSchedule.d.ts +27 -0
- package/lib/operations/getSnapshotSchedule.d.ts.map +1 -0
- package/lib/operations/getSnapshotSchedule.js +38 -0
- package/lib/operations/getSnapshotSchedule.js.map +1 -0
- package/lib/operations/grantPermissionToProject.d.ts +20 -0
- package/lib/operations/grantPermissionToProject.d.ts.map +1 -0
- package/lib/operations/grantPermissionToProject.js +28 -0
- package/lib/operations/grantPermissionToProject.js.map +1 -0
- package/lib/operations/index.d.ts +124 -0
- package/lib/operations/index.d.ts.map +1 -0
- package/lib/operations/index.js +124 -0
- package/lib/operations/index.js.map +1 -0
- package/lib/operations/listApiKeys.d.ts +26 -0
- package/lib/operations/listApiKeys.d.ts.map +1 -0
- package/lib/operations/listApiKeys.js +32 -0
- package/lib/operations/listApiKeys.js.map +1 -0
- package/lib/operations/listBranchNeonAuthOauthProviders.d.ts +25 -0
- package/lib/operations/listBranchNeonAuthOauthProviders.d.ts.map +1 -0
- package/lib/operations/listBranchNeonAuthOauthProviders.js +37 -0
- package/lib/operations/listBranchNeonAuthOauthProviders.js.map +1 -0
- package/lib/operations/listBranchNeonAuthTrustedDomains.d.ts +23 -0
- package/lib/operations/listBranchNeonAuthTrustedDomains.d.ts.map +1 -0
- package/lib/operations/listBranchNeonAuthTrustedDomains.js +40 -0
- package/lib/operations/listBranchNeonAuthTrustedDomains.js.map +1 -0
- package/lib/operations/listOrgApiKeys.d.ts +31 -0
- package/lib/operations/listOrgApiKeys.d.ts.map +1 -0
- package/lib/operations/listOrgApiKeys.js +37 -0
- package/lib/operations/listOrgApiKeys.js.map +1 -0
- package/lib/operations/listOrganizationVPCEndpoints.d.ts +23 -0
- package/lib/operations/listOrganizationVPCEndpoints.d.ts.map +1 -0
- package/lib/operations/listOrganizationVPCEndpoints.js +35 -0
- package/lib/operations/listOrganizationVPCEndpoints.js.map +1 -0
- package/lib/operations/listOrganizationVPCEndpointsAllRegions.d.ts +22 -0
- package/lib/operations/listOrganizationVPCEndpointsAllRegions.d.ts.map +1 -0
- package/lib/operations/listOrganizationVPCEndpointsAllRegions.js +34 -0
- package/lib/operations/listOrganizationVPCEndpointsAllRegions.js.map +1 -0
- package/lib/operations/listProjectBranchDatabases.d.ts +31 -0
- package/lib/operations/listProjectBranchDatabases.d.ts.map +1 -0
- package/lib/operations/listProjectBranchDatabases.js +42 -0
- package/lib/operations/listProjectBranchDatabases.js.map +1 -0
- package/lib/operations/listProjectBranchEndpoints.d.ts +58 -0
- package/lib/operations/listProjectBranchEndpoints.d.ts.map +1 -0
- package/lib/operations/listProjectBranchEndpoints.js +69 -0
- package/lib/operations/listProjectBranchEndpoints.js.map +1 -0
- package/lib/operations/listProjectBranchRoles.d.ts +31 -0
- package/lib/operations/listProjectBranchRoles.d.ts.map +1 -0
- package/lib/operations/listProjectBranchRoles.js +42 -0
- package/lib/operations/listProjectBranchRoles.js.map +1 -0
- package/lib/operations/listProjectBranches.d.ts +85 -0
- package/lib/operations/listProjectBranches.d.ts.map +1 -0
- package/lib/operations/listProjectBranches.js +93 -0
- package/lib/operations/listProjectBranches.js.map +1 -0
- package/lib/operations/listProjectEndpoints.d.ts +55 -0
- package/lib/operations/listProjectEndpoints.d.ts.map +1 -0
- package/lib/operations/listProjectEndpoints.js +63 -0
- package/lib/operations/listProjectEndpoints.js.map +1 -0
- package/lib/operations/listProjectOperations.d.ts +44 -0
- package/lib/operations/listProjectOperations.d.ts.map +1 -0
- package/lib/operations/listProjectOperations.js +91 -0
- package/lib/operations/listProjectOperations.js.map +1 -0
- package/lib/operations/listProjectPermissions.d.ts +21 -0
- package/lib/operations/listProjectPermissions.d.ts.map +1 -0
- package/lib/operations/listProjectPermissions.js +29 -0
- package/lib/operations/listProjectPermissions.js.map +1 -0
- package/lib/operations/listProjectVPCEndpoints.d.ts +21 -0
- package/lib/operations/listProjectVPCEndpoints.d.ts.map +1 -0
- package/lib/operations/listProjectVPCEndpoints.js +29 -0
- package/lib/operations/listProjectVPCEndpoints.js.map +1 -0
- package/lib/operations/listProjects.d.ts +102 -0
- package/lib/operations/listProjects.d.ts.map +1 -0
- package/lib/operations/listProjects.js +108 -0
- package/lib/operations/listProjects.js.map +1 -0
- package/lib/operations/listSharedProjects.d.ts +94 -0
- package/lib/operations/listSharedProjects.d.ts.map +1 -0
- package/lib/operations/listSharedProjects.js +102 -0
- package/lib/operations/listSharedProjects.js.map +1 -0
- package/lib/operations/listSnapshots.d.ts +28 -0
- package/lib/operations/listSnapshots.d.ts.map +1 -0
- package/lib/operations/listSnapshots.js +34 -0
- package/lib/operations/listSnapshots.js.map +1 -0
- package/lib/operations/recoverProject.d.ts +128 -0
- package/lib/operations/recoverProject.d.ts.map +1 -0
- package/lib/operations/recoverProject.js +147 -0
- package/lib/operations/recoverProject.js.map +1 -0
- package/lib/operations/removeOrganizationMember.d.ts +20 -0
- package/lib/operations/removeOrganizationMember.d.ts.map +1 -0
- package/lib/operations/removeOrganizationMember.js +31 -0
- package/lib/operations/removeOrganizationMember.js.map +1 -0
- package/lib/operations/resetProjectBranchRolePassword.d.ts +52 -0
- package/lib/operations/resetProjectBranchRolePassword.d.ts.map +1 -0
- package/lib/operations/resetProjectBranchRolePassword.js +103 -0
- package/lib/operations/resetProjectBranchRolePassword.js.map +1 -0
- package/lib/operations/restartProjectEndpoint.d.ts +72 -0
- package/lib/operations/restartProjectEndpoint.d.ts.map +1 -0
- package/lib/operations/restartProjectEndpoint.js +122 -0
- package/lib/operations/restartProjectEndpoint.js.map +1 -0
- package/lib/operations/restoreProjectBranch.d.ts +75 -0
- package/lib/operations/restoreProjectBranch.d.ts.map +1 -0
- package/lib/operations/restoreProjectBranch.js +125 -0
- package/lib/operations/restoreProjectBranch.js.map +1 -0
- package/lib/operations/restoreSnapshot.d.ts +113 -0
- package/lib/operations/restoreSnapshot.d.ts.map +1 -0
- package/lib/operations/restoreSnapshot.js +161 -0
- package/lib/operations/restoreSnapshot.js.map +1 -0
- package/lib/operations/revokeApiKey.d.ts +29 -0
- package/lib/operations/revokeApiKey.d.ts.map +1 -0
- package/lib/operations/revokeApiKey.js +35 -0
- package/lib/operations/revokeApiKey.js.map +1 -0
- package/lib/operations/revokeOrgApiKey.d.ts +32 -0
- package/lib/operations/revokeOrgApiKey.d.ts.map +1 -0
- package/lib/operations/revokeOrgApiKey.js +41 -0
- package/lib/operations/revokeOrgApiKey.js.map +1 -0
- package/lib/operations/revokePermissionFromProject.d.ts +20 -0
- package/lib/operations/revokePermissionFromProject.d.ts.map +1 -0
- package/lib/operations/revokePermissionFromProject.js +31 -0
- package/lib/operations/revokePermissionFromProject.js.map +1 -0
- package/lib/operations/sendNeonAuthTestEmail.d.ts +21 -0
- package/lib/operations/sendNeonAuthTestEmail.d.ts.map +1 -0
- package/lib/operations/sendNeonAuthTestEmail.js +32 -0
- package/lib/operations/sendNeonAuthTestEmail.js.map +1 -0
- package/lib/operations/setDefaultProjectBranch.d.ts +75 -0
- package/lib/operations/setDefaultProjectBranch.d.ts.map +1 -0
- package/lib/operations/setDefaultProjectBranch.js +125 -0
- package/lib/operations/setDefaultProjectBranch.js.map +1 -0
- package/lib/operations/setSnapshotSchedule.d.ts +26 -0
- package/lib/operations/setSnapshotSchedule.d.ts.map +1 -0
- package/lib/operations/setSnapshotSchedule.js +37 -0
- package/lib/operations/setSnapshotSchedule.js.map +1 -0
- package/lib/operations/startAnonymization.d.ts +38 -0
- package/lib/operations/startAnonymization.d.ts.map +1 -0
- package/lib/operations/startAnonymization.js +49 -0
- package/lib/operations/startAnonymization.js.map +1 -0
- package/lib/operations/startProjectEndpoint.d.ts +73 -0
- package/lib/operations/startProjectEndpoint.d.ts.map +1 -0
- package/lib/operations/startProjectEndpoint.js +123 -0
- package/lib/operations/startProjectEndpoint.js.map +1 -0
- package/lib/operations/suspendProjectEndpoint.d.ts +72 -0
- package/lib/operations/suspendProjectEndpoint.d.ts.map +1 -0
- package/lib/operations/suspendProjectEndpoint.js +122 -0
- package/lib/operations/suspendProjectEndpoint.js.map +1 -0
- package/lib/operations/transferNeonAuthProviderProject.d.ts +17 -0
- package/lib/operations/transferNeonAuthProviderProject.d.ts.map +1 -0
- package/lib/operations/transferNeonAuthProviderProject.js +31 -0
- package/lib/operations/transferNeonAuthProviderProject.js.map +1 -0
- package/lib/operations/transferProjectsFromOrgToOrg.d.ts +18 -0
- package/lib/operations/transferProjectsFromOrgToOrg.d.ts.map +1 -0
- package/lib/operations/transferProjectsFromOrgToOrg.js +30 -0
- package/lib/operations/transferProjectsFromOrgToOrg.js.map +1 -0
- package/lib/operations/transferProjectsFromUserToOrg.d.ts +15 -0
- package/lib/operations/transferProjectsFromUserToOrg.d.ts.map +1 -0
- package/lib/operations/transferProjectsFromUserToOrg.js +24 -0
- package/lib/operations/transferProjectsFromUserToOrg.js.map +1 -0
- package/lib/operations/updateBranchNeonAuthOauthProvider.d.ts +28 -0
- package/lib/operations/updateBranchNeonAuthOauthProvider.d.ts.map +1 -0
- package/lib/operations/updateBranchNeonAuthOauthProvider.js +40 -0
- package/lib/operations/updateBranchNeonAuthOauthProvider.js.map +1 -0
- package/lib/operations/updateMaskingRules.d.ts +39 -0
- package/lib/operations/updateMaskingRules.d.ts.map +1 -0
- package/lib/operations/updateMaskingRules.js +50 -0
- package/lib/operations/updateMaskingRules.js.map +1 -0
- package/lib/operations/updateNeonAuthAllowLocalhost.d.ts +21 -0
- package/lib/operations/updateNeonAuthAllowLocalhost.d.ts.map +1 -0
- package/lib/operations/updateNeonAuthAllowLocalhost.js +33 -0
- package/lib/operations/updateNeonAuthAllowLocalhost.js.map +1 -0
- package/lib/operations/updateNeonAuthEmailAndPasswordConfig.d.ts +33 -0
- package/lib/operations/updateNeonAuthEmailAndPasswordConfig.d.ts.map +1 -0
- package/lib/operations/updateNeonAuthEmailAndPasswordConfig.js +45 -0
- package/lib/operations/updateNeonAuthEmailAndPasswordConfig.js.map +1 -0
- package/lib/operations/updateNeonAuthEmailProvider.d.ts +18 -0
- package/lib/operations/updateNeonAuthEmailProvider.d.ts.map +1 -0
- package/lib/operations/updateNeonAuthEmailProvider.js +29 -0
- package/lib/operations/updateNeonAuthEmailProvider.js.map +1 -0
- package/lib/operations/updateNeonAuthOrganizationPlugin.d.ts +30 -0
- package/lib/operations/updateNeonAuthOrganizationPlugin.d.ts.map +1 -0
- package/lib/operations/updateNeonAuthOrganizationPlugin.js +42 -0
- package/lib/operations/updateNeonAuthOrganizationPlugin.js.map +1 -0
- package/lib/operations/updateNeonAuthUserRole.d.ts +23 -0
- package/lib/operations/updateNeonAuthUserRole.d.ts.map +1 -0
- package/lib/operations/updateNeonAuthUserRole.js +34 -0
- package/lib/operations/updateNeonAuthUserRole.js.map +1 -0
- package/lib/operations/updateNeonAuthWebhookConfig.d.ts +27 -0
- package/lib/operations/updateNeonAuthWebhookConfig.d.ts.map +1 -0
- package/lib/operations/updateNeonAuthWebhookConfig.js +48 -0
- package/lib/operations/updateNeonAuthWebhookConfig.js.map +1 -0
- package/lib/operations/updateOrganizationMember.d.ts +25 -0
- package/lib/operations/updateOrganizationMember.d.ts.map +1 -0
- package/lib/operations/updateOrganizationMember.js +36 -0
- package/lib/operations/updateOrganizationMember.js.map +1 -0
- package/lib/operations/updateProject.d.ts +142 -0
- package/lib/operations/updateProject.d.ts.map +1 -0
- package/lib/operations/updateProject.js +200 -0
- package/lib/operations/updateProject.js.map +1 -0
- package/lib/operations/updateProjectBranch.d.ts +79 -0
- package/lib/operations/updateProjectBranch.d.ts.map +1 -0
- package/lib/operations/updateProjectBranch.js +129 -0
- package/lib/operations/updateProjectBranch.js.map +1 -0
- package/lib/operations/updateProjectBranchDataAPI.d.ts +35 -0
- package/lib/operations/updateProjectBranchDataAPI.d.ts.map +1 -0
- package/lib/operations/updateProjectBranchDataAPI.js +46 -0
- package/lib/operations/updateProjectBranchDataAPI.js.map +1 -0
- package/lib/operations/updateProjectBranchDatabase.d.ts +50 -0
- package/lib/operations/updateProjectBranchDatabase.d.ts.map +1 -0
- package/lib/operations/updateProjectBranchDatabase.js +100 -0
- package/lib/operations/updateProjectBranchDatabase.js.map +1 -0
- package/lib/operations/updateProjectEndpoint.d.ts +96 -0
- package/lib/operations/updateProjectEndpoint.d.ts.map +1 -0
- package/lib/operations/updateProjectEndpoint.js +146 -0
- package/lib/operations/updateProjectEndpoint.js.map +1 -0
- package/lib/operations/updateSnapshot.d.ts +33 -0
- package/lib/operations/updateSnapshot.d.ts.map +1 -0
- package/lib/operations/updateSnapshot.js +42 -0
- package/lib/operations/updateSnapshot.js.map +1 -0
- package/lib/retry.d.ts +22 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +21 -0
- package/lib/retry.js.map +1 -0
- package/lib/sensitive.d.ts +5 -0
- package/lib/sensitive.d.ts.map +1 -0
- package/lib/sensitive.js +5 -0
- package/lib/sensitive.js.map +1 -0
- package/lib/traits.d.ts +5 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +5 -0
- package/lib/traits.js.map +1 -0
- package/package.json +80 -5
- package/src/category.ts +4 -0
- package/src/client.ts +58 -0
- package/src/credentials.ts +30 -0
- package/src/errors.ts +45 -0
- package/src/index.ts +15 -0
- package/src/operations/acceptProjectTransferRequest.ts +40 -0
- package/src/operations/addBranchNeonAuthOauthProvider.ts +47 -0
- package/src/operations/addBranchNeonAuthTrustedDomain.ts +45 -0
- package/src/operations/addProjectJWKS.ts +104 -0
- package/src/operations/assignOrganizationVPCEndpoint.ts +43 -0
- package/src/operations/assignProjectVPCEndpoint.ts +44 -0
- package/src/operations/countProjectBranches.ts +37 -0
- package/src/operations/createApiKey.ts +34 -0
- package/src/operations/createBranchNeonAuthNewUser.ts +43 -0
- package/src/operations/createNeonAuth.ts +45 -0
- package/src/operations/createNeonAuthProviderSDKKeys.ts +50 -0
- package/src/operations/createOrgApiKey.ts +37 -0
- package/src/operations/createOrganizationInvitations.ts +53 -0
- package/src/operations/createProject.ts +385 -0
- package/src/operations/createProjectBranch.ts +214 -0
- package/src/operations/createProjectBranchAnonymized.ts +222 -0
- package/src/operations/createProjectBranchDataAPI.ts +64 -0
- package/src/operations/createProjectBranchDatabase.ts +111 -0
- package/src/operations/createProjectBranchRole.ts +113 -0
- package/src/operations/createProjectEndpoint.ts +169 -0
- package/src/operations/createProjectTransferRequest.ts +49 -0
- package/src/operations/createSnapshot.ts +115 -0
- package/src/operations/deleteBranchNeonAuthOauthProvider.ts +40 -0
- package/src/operations/deleteBranchNeonAuthTrustedDomain.ts +49 -0
- package/src/operations/deleteBranchNeonAuthUser.ts +41 -0
- package/src/operations/deleteOrganizationVPCEndpoint.ts +44 -0
- package/src/operations/deleteProject.ts +135 -0
- package/src/operations/deleteProjectBranch.ts +144 -0
- package/src/operations/deleteProjectBranchDataAPI.ts +42 -0
- package/src/operations/deleteProjectBranchDatabase.ts +108 -0
- package/src/operations/deleteProjectBranchRole.ts +110 -0
- package/src/operations/deleteProjectEndpoint.ts +144 -0
- package/src/operations/deleteProjectJWKS.ts +43 -0
- package/src/operations/deleteProjectVPCEndpoint.ts +39 -0
- package/src/operations/deleteSnapshot.ts +34 -0
- package/src/operations/disableNeonAuth.ts +32 -0
- package/src/operations/finalizeRestoreBranch.ts +102 -0
- package/src/operations/getActiveRegions.ts +36 -0
- package/src/operations/getAnonymizedBranchStatus.ts +61 -0
- package/src/operations/getAuthDetails.ts +34 -0
- package/src/operations/getAvailablePreloadLibraries.ts +44 -0
- package/src/operations/getConnectionURI.ts +45 -0
- package/src/operations/getConsumptionHistoryPerAccount.ts +103 -0
- package/src/operations/getConsumptionHistoryPerProject.ts +127 -0
- package/src/operations/getConsumptionHistoryPerProjectV2.ts +120 -0
- package/src/operations/getCurrentUserInfo.ts +139 -0
- package/src/operations/getCurrentUserOrganizations.ts +43 -0
- package/src/operations/getMaskingRules.ts +48 -0
- package/src/operations/getNeonAuth.ts +43 -0
- package/src/operations/getNeonAuthAllowLocalhost.ts +41 -0
- package/src/operations/getNeonAuthEmailAndPasswordConfig.ts +46 -0
- package/src/operations/getNeonAuthEmailProvider.ts +39 -0
- package/src/operations/getNeonAuthPluginConfigs.ts +74 -0
- package/src/operations/getNeonAuthWebhookConfig.ts +53 -0
- package/src/operations/getOrganization.ts +35 -0
- package/src/operations/getOrganizationInvitations.ts +45 -0
- package/src/operations/getOrganizationMember.ts +44 -0
- package/src/operations/getOrganizationMembers.ts +47 -0
- package/src/operations/getOrganizationVPCEndpointDetails.ts +48 -0
- package/src/operations/getProject.ts +133 -0
- package/src/operations/getProjectAdvisorSecurityIssues.ts +56 -0
- package/src/operations/getProjectBranch.ts +96 -0
- package/src/operations/getProjectBranchDataAPI.ts +61 -0
- package/src/operations/getProjectBranchDatabase.ts +53 -0
- package/src/operations/getProjectBranchRole.ts +54 -0
- package/src/operations/getProjectBranchRolePassword.ts +46 -0
- package/src/operations/getProjectBranchSchema.ts +88 -0
- package/src/operations/getProjectBranchSchemaComparison.ts +56 -0
- package/src/operations/getProjectEndpoint.ts +84 -0
- package/src/operations/getProjectJWKS.ts +40 -0
- package/src/operations/getProjectOperation.ts +92 -0
- package/src/operations/getSnapshotSchedule.ts +46 -0
- package/src/operations/grantPermissionToProject.ts +38 -0
- package/src/operations/index.ts +123 -0
- package/src/operations/listApiKeys.ts +40 -0
- package/src/operations/listBranchNeonAuthOauthProviders.ts +47 -0
- package/src/operations/listBranchNeonAuthTrustedDomains.ts +50 -0
- package/src/operations/listOrgApiKeys.ts +43 -0
- package/src/operations/listOrganizationVPCEndpoints.ts +45 -0
- package/src/operations/listOrganizationVPCEndpointsAllRegions.ts +44 -0
- package/src/operations/listProjectBranchDatabases.ts +54 -0
- package/src/operations/listProjectBranchEndpoints.ts +89 -0
- package/src/operations/listProjectBranchRoles.ts +54 -0
- package/src/operations/listProjectBranches.ts +112 -0
- package/src/operations/listProjectEndpoints.ts +79 -0
- package/src/operations/listProjectOperations.ts +102 -0
- package/src/operations/listProjectPermissions.ts +41 -0
- package/src/operations/listProjectVPCEndpoints.ts +41 -0
- package/src/operations/listProjects.ts +144 -0
- package/src/operations/listSharedProjects.ts +128 -0
- package/src/operations/listSnapshots.ts +40 -0
- package/src/operations/recoverProject.ts +179 -0
- package/src/operations/removeOrganizationMember.ts +41 -0
- package/src/operations/resetProjectBranchRolePassword.ts +113 -0
- package/src/operations/restartProjectEndpoint.ts +142 -0
- package/src/operations/restoreProjectBranch.ts +141 -0
- package/src/operations/restoreSnapshot.ts +187 -0
- package/src/operations/revokeApiKey.ts +39 -0
- package/src/operations/revokeOrgApiKey.ts +47 -0
- package/src/operations/revokePermissionFromProject.ts +41 -0
- package/src/operations/sendNeonAuthTestEmail.ts +41 -0
- package/src/operations/setDefaultProjectBranch.ts +143 -0
- package/src/operations/setSnapshotSchedule.ts +45 -0
- package/src/operations/startAnonymization.ts +57 -0
- package/src/operations/startProjectEndpoint.ts +141 -0
- package/src/operations/suspendProjectEndpoint.ts +142 -0
- package/src/operations/transferNeonAuthProviderProject.ts +39 -0
- package/src/operations/transferProjectsFromOrgToOrg.ts +38 -0
- package/src/operations/transferProjectsFromUserToOrg.ts +30 -0
- package/src/operations/updateBranchNeonAuthOauthProvider.ts +48 -0
- package/src/operations/updateMaskingRules.ts +60 -0
- package/src/operations/updateNeonAuthAllowLocalhost.ts +41 -0
- package/src/operations/updateNeonAuthEmailAndPasswordConfig.ts +55 -0
- package/src/operations/updateNeonAuthEmailProvider.ts +39 -0
- package/src/operations/updateNeonAuthOrganizationPlugin.ts +50 -0
- package/src/operations/updateNeonAuthUserRole.ts +44 -0
- package/src/operations/updateNeonAuthWebhookConfig.ts +66 -0
- package/src/operations/updateOrganizationMember.ts +46 -0
- package/src/operations/updateProject.ts +244 -0
- package/src/operations/updateProjectBranch.ts +143 -0
- package/src/operations/updateProjectBranchDataAPI.ts +58 -0
- package/src/operations/updateProjectBranchDatabase.ts +112 -0
- package/src/operations/updateProjectEndpoint.ts +173 -0
- package/src/operations/updateSnapshot.ts +48 -0
- package/src/retry.ts +35 -0
- package/src/sensitive.ts +4 -0
- package/src/traits.ts +4 -0
- package/README.md +0 -15
- package/bun.lock +0 -26
- package/index.ts +0 -1
- package/tsconfig.json +0 -29
package/lib/traits.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"traits.js","sourceRoot":"","sources":["../src/traits.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,8BAA8B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,13 +1,88 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@distilled.cloud/neon",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
3
|
+
"version": "0.2.0-alpha",
|
|
4
|
+
"repository": {
|
|
5
|
+
"type": "git",
|
|
6
|
+
"url": "https://github.com/alchemy-run/distilled",
|
|
7
|
+
"directory": "packages/neon"
|
|
8
|
+
},
|
|
5
9
|
"type": "module",
|
|
6
|
-
"
|
|
10
|
+
"sideEffects": false,
|
|
11
|
+
"module": "src/index.ts",
|
|
12
|
+
"files": [
|
|
13
|
+
"lib",
|
|
14
|
+
"src"
|
|
15
|
+
],
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"types": "./lib/index.d.ts",
|
|
19
|
+
"bun": "./src/index.ts",
|
|
20
|
+
"default": "./lib/index.js"
|
|
21
|
+
},
|
|
22
|
+
"./Category": {
|
|
23
|
+
"types": "./lib/category.d.ts",
|
|
24
|
+
"bun": "./src/category.ts",
|
|
25
|
+
"default": "./lib/category.js"
|
|
26
|
+
},
|
|
27
|
+
"./Client": {
|
|
28
|
+
"types": "./lib/client.d.ts",
|
|
29
|
+
"bun": "./src/client.ts",
|
|
30
|
+
"default": "./lib/client.js"
|
|
31
|
+
},
|
|
32
|
+
"./Credentials": {
|
|
33
|
+
"types": "./lib/credentials.d.ts",
|
|
34
|
+
"bun": "./src/credentials.ts",
|
|
35
|
+
"default": "./lib/credentials.js"
|
|
36
|
+
},
|
|
37
|
+
"./Errors": {
|
|
38
|
+
"types": "./lib/errors.d.ts",
|
|
39
|
+
"bun": "./src/errors.ts",
|
|
40
|
+
"default": "./lib/errors.js"
|
|
41
|
+
},
|
|
42
|
+
"./Operations": {
|
|
43
|
+
"types": "./lib/operations/index.d.ts",
|
|
44
|
+
"bun": "./src/operations/index.ts",
|
|
45
|
+
"default": "./lib/operations/index.js"
|
|
46
|
+
},
|
|
47
|
+
"./Retry": {
|
|
48
|
+
"types": "./lib/retry.d.ts",
|
|
49
|
+
"bun": "./src/retry.ts",
|
|
50
|
+
"default": "./lib/retry.js"
|
|
51
|
+
},
|
|
52
|
+
"./Sensitive": {
|
|
53
|
+
"types": "./lib/sensitive.d.ts",
|
|
54
|
+
"bun": "./src/sensitive.ts",
|
|
55
|
+
"default": "./lib/sensitive.js"
|
|
56
|
+
},
|
|
57
|
+
"./Traits": {
|
|
58
|
+
"types": "./lib/traits.d.ts",
|
|
59
|
+
"bun": "./src/traits.ts",
|
|
60
|
+
"default": "./lib/traits.js"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"scripts": {
|
|
64
|
+
"typecheck": "tsgo",
|
|
65
|
+
"build": "tsgo -b",
|
|
66
|
+
"fmt": "oxfmt --write src",
|
|
67
|
+
"lint": "oxlint --fix src",
|
|
68
|
+
"check": "tsgo && oxlint src && oxfmt --check src",
|
|
69
|
+
"test": "bunx vitest run test",
|
|
70
|
+
"publish:npm": "bun run build && bun publish --access public",
|
|
71
|
+
"generate": "bun run scripts/generate.ts && oxfmt --write src && oxlint --fix src",
|
|
72
|
+
"specs:fetch": "git submodule update --force --init --recursive specs/distilled-spec-neon && git -C specs/distilled-spec-neon checkout -- .",
|
|
73
|
+
"specs:update": "git -C specs/distilled-spec-neon fetch && git -C specs/distilled-spec-neon checkout main && git -C specs/distilled-spec-neon pull"
|
|
74
|
+
},
|
|
75
|
+
"dependencies": {
|
|
76
|
+
"@distilled.cloud/core": "0.2.0",
|
|
77
|
+
"effect": "4.0.0-beta.25"
|
|
78
|
+
},
|
|
7
79
|
"devDependencies": {
|
|
8
|
-
"@types/bun": "
|
|
80
|
+
"@types/bun": "^1.3.0",
|
|
81
|
+
"@types/node": "^25.3.5",
|
|
82
|
+
"dotenv": "^16.5.0",
|
|
83
|
+
"vitest": "^3.2.3"
|
|
9
84
|
},
|
|
10
85
|
"peerDependencies": {
|
|
11
|
-
"
|
|
86
|
+
"effect": "4.0.0-beta.25"
|
|
12
87
|
}
|
|
13
88
|
}
|
package/src/category.ts
ADDED
package/src/client.ts
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Neon API Client.
|
|
3
|
+
*
|
|
4
|
+
* Wraps the shared REST client from sdk-core with Neon-specific
|
|
5
|
+
* error matching and credential handling.
|
|
6
|
+
*/
|
|
7
|
+
import * as Effect from "effect/Effect";
|
|
8
|
+
import * as Schema from "effect/Schema";
|
|
9
|
+
import { makeAPI } from "@distilled.cloud/core/client";
|
|
10
|
+
import { HTTP_STATUS_MAP, NeonApiError, NeonParseError } from "./errors.ts";
|
|
11
|
+
|
|
12
|
+
// Re-export for backwards compatibility (tests import NeonApiError from client)
|
|
13
|
+
export { NeonApiError } from "./errors.ts";
|
|
14
|
+
import { Credentials } from "./credentials.ts";
|
|
15
|
+
|
|
16
|
+
// API Error Response Schema
|
|
17
|
+
const ApiErrorResponse = Schema.Struct({
|
|
18
|
+
code: Schema.optional(Schema.String),
|
|
19
|
+
message: Schema.String,
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Match a Neon API error response to the appropriate error class based on HTTP status.
|
|
24
|
+
*/
|
|
25
|
+
const matchError = (
|
|
26
|
+
status: number,
|
|
27
|
+
errorBody: unknown,
|
|
28
|
+
): Effect.Effect<never, unknown> => {
|
|
29
|
+
try {
|
|
30
|
+
const parsed = Schema.decodeUnknownSync(ApiErrorResponse)(errorBody);
|
|
31
|
+
const ErrorClass = (HTTP_STATUS_MAP as any)[status];
|
|
32
|
+
if (ErrorClass) {
|
|
33
|
+
return Effect.fail(new ErrorClass({ message: parsed.message ?? "" }));
|
|
34
|
+
}
|
|
35
|
+
return Effect.fail(
|
|
36
|
+
new NeonApiError({
|
|
37
|
+
code: parsed.code,
|
|
38
|
+
message: parsed.message,
|
|
39
|
+
body: errorBody,
|
|
40
|
+
}),
|
|
41
|
+
);
|
|
42
|
+
} catch {
|
|
43
|
+
return Effect.fail(new NeonApiError({ body: errorBody }));
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Neon API client.
|
|
49
|
+
*/
|
|
50
|
+
export const API = makeAPI({
|
|
51
|
+
credentials: Credentials as any,
|
|
52
|
+
getBaseUrl: (creds: any) => creds.apiBaseUrl,
|
|
53
|
+
getAuthHeaders: (creds: any) => ({
|
|
54
|
+
Authorization: `Bearer ${creds.apiKey}`,
|
|
55
|
+
}),
|
|
56
|
+
matchError,
|
|
57
|
+
ParseError: NeonParseError as any,
|
|
58
|
+
});
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as Effect from "effect/Effect";
|
|
2
|
+
import * as Layer from "effect/Layer";
|
|
3
|
+
import * as ServiceMap from "effect/ServiceMap";
|
|
4
|
+
import { ConfigError } from "@distilled.cloud/core/errors";
|
|
5
|
+
|
|
6
|
+
export const DEFAULT_API_BASE_URL = "https://console.neon.tech/api/v2";
|
|
7
|
+
|
|
8
|
+
export interface Config {
|
|
9
|
+
readonly apiKey: string;
|
|
10
|
+
readonly apiBaseUrl: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export class Credentials extends ServiceMap.Service<Credentials, Config>()(
|
|
14
|
+
"NeonCredentials",
|
|
15
|
+
) {}
|
|
16
|
+
|
|
17
|
+
export const CredentialsFromEnv = Layer.effect(
|
|
18
|
+
Credentials,
|
|
19
|
+
Effect.gen(function* () {
|
|
20
|
+
const apiKey = process.env.NEON_API_KEY;
|
|
21
|
+
|
|
22
|
+
if (!apiKey) {
|
|
23
|
+
return yield* new ConfigError({
|
|
24
|
+
message: "NEON_API_KEY environment variable is required",
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
return { apiKey, apiBaseUrl: DEFAULT_API_BASE_URL };
|
|
29
|
+
}),
|
|
30
|
+
);
|
package/src/errors.ts
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Neon-specific error types.
|
|
3
|
+
*
|
|
4
|
+
* Re-exports common HTTP errors from sdk-core and adds Neon-specific
|
|
5
|
+
* error matching and API error types.
|
|
6
|
+
*/
|
|
7
|
+
export {
|
|
8
|
+
BadRequest,
|
|
9
|
+
Conflict,
|
|
10
|
+
ConfigError,
|
|
11
|
+
Forbidden,
|
|
12
|
+
InternalServerError,
|
|
13
|
+
Locked,
|
|
14
|
+
NotFound,
|
|
15
|
+
ServiceUnavailable,
|
|
16
|
+
TooManyRequests,
|
|
17
|
+
Unauthorized,
|
|
18
|
+
UnprocessableEntity,
|
|
19
|
+
HTTP_STATUS_MAP,
|
|
20
|
+
DEFAULT_ERRORS,
|
|
21
|
+
API_ERRORS,
|
|
22
|
+
} from "@distilled.cloud/core/errors";
|
|
23
|
+
export type { DefaultErrors } from "@distilled.cloud/core/errors";
|
|
24
|
+
|
|
25
|
+
import * as Schema from "effect/Schema";
|
|
26
|
+
import * as Category from "@distilled.cloud/core/category";
|
|
27
|
+
|
|
28
|
+
// Generic API Error - uncategorized fallback
|
|
29
|
+
export class NeonApiError extends Schema.TaggedErrorClass<NeonApiError>()(
|
|
30
|
+
"NeonApiError",
|
|
31
|
+
{
|
|
32
|
+
code: Schema.optional(Schema.String),
|
|
33
|
+
message: Schema.optional(Schema.String),
|
|
34
|
+
body: Schema.Unknown,
|
|
35
|
+
},
|
|
36
|
+
).pipe(Category.withServerError) {}
|
|
37
|
+
|
|
38
|
+
// Schema parse error wrapper
|
|
39
|
+
export class NeonParseError extends Schema.TaggedErrorClass<NeonParseError>()(
|
|
40
|
+
"NeonParseError",
|
|
41
|
+
{
|
|
42
|
+
body: Schema.Unknown,
|
|
43
|
+
cause: Schema.Unknown,
|
|
44
|
+
},
|
|
45
|
+
).pipe(Category.withParseError) {}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Neon SDK for Effect
|
|
3
|
+
*
|
|
4
|
+
* @example
|
|
5
|
+
* ```ts
|
|
6
|
+
* import * as Neon from "@distilled.cloud/neon";
|
|
7
|
+
* ```
|
|
8
|
+
*/
|
|
9
|
+
export * from "./credentials.ts";
|
|
10
|
+
export * as Category from "./category.ts";
|
|
11
|
+
export * as T from "./traits.ts";
|
|
12
|
+
export * as Retry from "./retry.ts";
|
|
13
|
+
export { API } from "./client.ts";
|
|
14
|
+
export * from "./errors.ts";
|
|
15
|
+
export { SensitiveString, SensitiveNullableString } from "./sensitive.ts";
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
|
|
5
|
+
// Input Schema
|
|
6
|
+
export const AcceptProjectTransferRequestInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
project_id: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
request_id: Schema.String.pipe(T.PathParam()),
|
|
10
|
+
org_id: Schema.optional(Schema.String),
|
|
11
|
+
}).pipe(
|
|
12
|
+
T.Http({
|
|
13
|
+
method: "PUT",
|
|
14
|
+
path: "/projects/{project_id}/transfer_requests/{request_id}",
|
|
15
|
+
}),
|
|
16
|
+
);
|
|
17
|
+
export type AcceptProjectTransferRequestInput =
|
|
18
|
+
typeof AcceptProjectTransferRequestInput.Type;
|
|
19
|
+
|
|
20
|
+
// Output Schema
|
|
21
|
+
export const AcceptProjectTransferRequestOutput =
|
|
22
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Void;
|
|
23
|
+
export type AcceptProjectTransferRequestOutput =
|
|
24
|
+
typeof AcceptProjectTransferRequestOutput.Type;
|
|
25
|
+
|
|
26
|
+
// The operation
|
|
27
|
+
/**
|
|
28
|
+
* Accept a project transfer request
|
|
29
|
+
*
|
|
30
|
+
* Accepts a transfer request for the specified project, transferring it to the specified organization
|
|
31
|
+
* or user. If org_id is not passed, the project will be transferred to the current user or organization account.
|
|
32
|
+
*
|
|
33
|
+
* @param project_id - The Neon project ID
|
|
34
|
+
* @param request_id - The Neon project transfer request ID
|
|
35
|
+
*/
|
|
36
|
+
export const acceptProjectTransferRequest =
|
|
37
|
+
/*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
38
|
+
inputSchema: AcceptProjectTransferRequestInput,
|
|
39
|
+
outputSchema: AcceptProjectTransferRequestOutput,
|
|
40
|
+
}));
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
|
|
5
|
+
// Input Schema
|
|
6
|
+
export const AddBranchNeonAuthOauthProviderInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
project_id: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
branch_id: Schema.String.pipe(T.PathParam()),
|
|
10
|
+
id: Schema.Literals(["google", "github", "microsoft", "vercel"]),
|
|
11
|
+
client_id: Schema.optional(Schema.String),
|
|
12
|
+
client_secret: Schema.optional(Schema.String),
|
|
13
|
+
microsoft_tenant_id: Schema.optional(Schema.String),
|
|
14
|
+
}).pipe(
|
|
15
|
+
T.Http({
|
|
16
|
+
method: "POST",
|
|
17
|
+
path: "/projects/{project_id}/branches/{branch_id}/auth/oauth_providers",
|
|
18
|
+
}),
|
|
19
|
+
);
|
|
20
|
+
export type AddBranchNeonAuthOauthProviderInput =
|
|
21
|
+
typeof AddBranchNeonAuthOauthProviderInput.Type;
|
|
22
|
+
|
|
23
|
+
// Output Schema
|
|
24
|
+
export const AddBranchNeonAuthOauthProviderOutput =
|
|
25
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
26
|
+
id: Schema.Literals(["google", "github", "microsoft", "vercel"]),
|
|
27
|
+
type: Schema.Literals(["standard", "shared"]),
|
|
28
|
+
client_id: Schema.optional(Schema.String),
|
|
29
|
+
client_secret: Schema.optional(Schema.String),
|
|
30
|
+
});
|
|
31
|
+
export type AddBranchNeonAuthOauthProviderOutput =
|
|
32
|
+
typeof AddBranchNeonAuthOauthProviderOutput.Type;
|
|
33
|
+
|
|
34
|
+
// The operation
|
|
35
|
+
/**
|
|
36
|
+
* Add a OAuth provider
|
|
37
|
+
*
|
|
38
|
+
* Adds a OAuth provider to the specified project.
|
|
39
|
+
*
|
|
40
|
+
* @param project_id - The Neon project ID
|
|
41
|
+
* @param branch_id - The Neon branch ID
|
|
42
|
+
*/
|
|
43
|
+
export const addBranchNeonAuthOauthProvider =
|
|
44
|
+
/*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
45
|
+
inputSchema: AddBranchNeonAuthOauthProviderInput,
|
|
46
|
+
outputSchema: AddBranchNeonAuthOauthProviderOutput,
|
|
47
|
+
}));
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
|
|
5
|
+
// Input Schema
|
|
6
|
+
export const AddBranchNeonAuthTrustedDomainInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
project_id: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
branch_id: Schema.String.pipe(T.PathParam()),
|
|
10
|
+
domain: Schema.String,
|
|
11
|
+
auth_provider: Schema.Literals([
|
|
12
|
+
"mock",
|
|
13
|
+
"stack",
|
|
14
|
+
"stack_v2",
|
|
15
|
+
"better_auth",
|
|
16
|
+
]),
|
|
17
|
+
}).pipe(
|
|
18
|
+
T.Http({
|
|
19
|
+
method: "POST",
|
|
20
|
+
path: "/projects/{project_id}/branches/{branch_id}/auth/domains",
|
|
21
|
+
}),
|
|
22
|
+
);
|
|
23
|
+
export type AddBranchNeonAuthTrustedDomainInput =
|
|
24
|
+
typeof AddBranchNeonAuthTrustedDomainInput.Type;
|
|
25
|
+
|
|
26
|
+
// Output Schema
|
|
27
|
+
export const AddBranchNeonAuthTrustedDomainOutput =
|
|
28
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Void;
|
|
29
|
+
export type AddBranchNeonAuthTrustedDomainOutput =
|
|
30
|
+
typeof AddBranchNeonAuthTrustedDomainOutput.Type;
|
|
31
|
+
|
|
32
|
+
// The operation
|
|
33
|
+
/**
|
|
34
|
+
* Add domain to redirect_uri whitelist
|
|
35
|
+
*
|
|
36
|
+
* Adds a domain to the redirect_uri whitelist for the specified project.
|
|
37
|
+
*
|
|
38
|
+
* @param project_id - The Neon project ID
|
|
39
|
+
* @param branch_id - The Neon branch ID
|
|
40
|
+
*/
|
|
41
|
+
export const addBranchNeonAuthTrustedDomain =
|
|
42
|
+
/*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
43
|
+
inputSchema: AddBranchNeonAuthTrustedDomainInput,
|
|
44
|
+
outputSchema: AddBranchNeonAuthTrustedDomainOutput,
|
|
45
|
+
}));
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
|
|
5
|
+
// Input Schema
|
|
6
|
+
export const AddProjectJWKSInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
project_id: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
jwks_url: Schema.String,
|
|
9
|
+
provider_name: Schema.String,
|
|
10
|
+
branch_id: Schema.optional(Schema.String),
|
|
11
|
+
jwt_audience: Schema.optional(Schema.String),
|
|
12
|
+
role_names: Schema.optional(Schema.Array(Schema.String)),
|
|
13
|
+
skip_role_creation: Schema.optional(Schema.Boolean),
|
|
14
|
+
}).pipe(T.Http({ method: "POST", path: "/projects/{project_id}/jwks" }));
|
|
15
|
+
export type AddProjectJWKSInput = typeof AddProjectJWKSInput.Type;
|
|
16
|
+
|
|
17
|
+
// Output Schema
|
|
18
|
+
export const AddProjectJWKSOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
19
|
+
jwks: Schema.Struct({
|
|
20
|
+
id: Schema.String,
|
|
21
|
+
project_id: Schema.String,
|
|
22
|
+
branch_id: Schema.optional(Schema.String),
|
|
23
|
+
jwks_url: Schema.String,
|
|
24
|
+
provider_name: Schema.String,
|
|
25
|
+
created_at: Schema.String,
|
|
26
|
+
updated_at: Schema.String,
|
|
27
|
+
jwt_audience: Schema.optional(Schema.String),
|
|
28
|
+
role_names: Schema.optional(Schema.Array(Schema.String)),
|
|
29
|
+
}),
|
|
30
|
+
operations: Schema.Array(
|
|
31
|
+
Schema.Struct({
|
|
32
|
+
id: Schema.String,
|
|
33
|
+
project_id: Schema.String,
|
|
34
|
+
branch_id: Schema.optional(Schema.String),
|
|
35
|
+
endpoint_id: Schema.optional(Schema.String),
|
|
36
|
+
action: Schema.Literals([
|
|
37
|
+
"create_compute",
|
|
38
|
+
"create_timeline",
|
|
39
|
+
"start_compute",
|
|
40
|
+
"suspend_compute",
|
|
41
|
+
"apply_config",
|
|
42
|
+
"check_availability",
|
|
43
|
+
"delete_timeline",
|
|
44
|
+
"create_branch",
|
|
45
|
+
"import_data",
|
|
46
|
+
"tenant_ignore",
|
|
47
|
+
"tenant_attach",
|
|
48
|
+
"tenant_detach",
|
|
49
|
+
"tenant_reattach",
|
|
50
|
+
"replace_safekeeper",
|
|
51
|
+
"disable_maintenance",
|
|
52
|
+
"apply_storage_config",
|
|
53
|
+
"prepare_secondary_pageserver",
|
|
54
|
+
"switch_pageserver",
|
|
55
|
+
"detach_parent_branch",
|
|
56
|
+
"timeline_archive",
|
|
57
|
+
"timeline_unarchive",
|
|
58
|
+
"start_reserved_compute",
|
|
59
|
+
"sync_dbs_and_roles_from_compute",
|
|
60
|
+
"apply_schema_from_branch",
|
|
61
|
+
"timeline_mark_invisible",
|
|
62
|
+
"prewarm_replica",
|
|
63
|
+
"promote_replica",
|
|
64
|
+
"set_storage_non_dirty",
|
|
65
|
+
"swap_binding_id",
|
|
66
|
+
]),
|
|
67
|
+
status: Schema.Literals([
|
|
68
|
+
"scheduling",
|
|
69
|
+
"running",
|
|
70
|
+
"finished",
|
|
71
|
+
"failed",
|
|
72
|
+
"error",
|
|
73
|
+
"cancelling",
|
|
74
|
+
"cancelled",
|
|
75
|
+
"skipped",
|
|
76
|
+
]),
|
|
77
|
+
error: Schema.optional(Schema.String),
|
|
78
|
+
failures_count: Schema.Number,
|
|
79
|
+
retry_at: Schema.optional(Schema.String),
|
|
80
|
+
created_at: Schema.String,
|
|
81
|
+
updated_at: Schema.String,
|
|
82
|
+
total_duration_ms: Schema.Number,
|
|
83
|
+
}),
|
|
84
|
+
),
|
|
85
|
+
});
|
|
86
|
+
export type AddProjectJWKSOutput = typeof AddProjectJWKSOutput.Type;
|
|
87
|
+
|
|
88
|
+
// The operation
|
|
89
|
+
/**
|
|
90
|
+
* Add JWKS URL
|
|
91
|
+
*
|
|
92
|
+
* Add a new JWKS URL to a project, such that it can be used for verifying JWTs used as the authentication mechanism for the specified project.
|
|
93
|
+
* The URL must be a valid HTTPS URL that returns a JSON Web Key Set.
|
|
94
|
+
* The `provider_name` field allows you to specify which authentication provider you're using (e.g., Clerk, Auth0, AWS Cognito, etc.).
|
|
95
|
+
* The `branch_id` can be used to specify on which branches the JWKS URL will be accepted. If not specified, then it will work on any branch.
|
|
96
|
+
* The `role_names` can be used to specify for which roles the JWKS URL will be accepted. If not specified, then default roles will be used (authenticator, authenticated and anonymous).
|
|
97
|
+
* The `jwt_audience` can be used to specify which "aud" values should be accepted by Neon in the JWTs that are used for authentication.
|
|
98
|
+
*
|
|
99
|
+
* @param project_id - The Neon project ID
|
|
100
|
+
*/
|
|
101
|
+
export const addProjectJWKS = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
102
|
+
inputSchema: AddProjectJWKSInput,
|
|
103
|
+
outputSchema: AddProjectJWKSOutput,
|
|
104
|
+
}));
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
|
|
5
|
+
// Input Schema
|
|
6
|
+
export const AssignOrganizationVPCEndpointInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
org_id: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
region_id: Schema.String.pipe(T.PathParam()),
|
|
10
|
+
vpc_endpoint_id: Schema.String.pipe(T.PathParam()),
|
|
11
|
+
label: Schema.String,
|
|
12
|
+
}).pipe(
|
|
13
|
+
T.Http({
|
|
14
|
+
method: "POST",
|
|
15
|
+
path: "/organizations/{org_id}/vpc/region/{region_id}/vpc_endpoints/{vpc_endpoint_id}",
|
|
16
|
+
}),
|
|
17
|
+
);
|
|
18
|
+
export type AssignOrganizationVPCEndpointInput =
|
|
19
|
+
typeof AssignOrganizationVPCEndpointInput.Type;
|
|
20
|
+
|
|
21
|
+
// Output Schema
|
|
22
|
+
export const AssignOrganizationVPCEndpointOutput =
|
|
23
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Void;
|
|
24
|
+
export type AssignOrganizationVPCEndpointOutput =
|
|
25
|
+
typeof AssignOrganizationVPCEndpointOutput.Type;
|
|
26
|
+
|
|
27
|
+
// The operation
|
|
28
|
+
/**
|
|
29
|
+
* Assign or update VPC endpoint
|
|
30
|
+
*
|
|
31
|
+
* Assigns a VPC endpoint to a Neon organization or updates its existing assignment.
|
|
32
|
+
*
|
|
33
|
+
* @param org_id - The Neon organization ID
|
|
34
|
+
* @param region_id - The Neon region ID.
|
|
35
|
+
Azure regions are currently not supported.
|
|
36
|
+
|
|
37
|
+
* @param vpc_endpoint_id - The VPC endpoint ID
|
|
38
|
+
*/
|
|
39
|
+
export const assignOrganizationVPCEndpoint =
|
|
40
|
+
/*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
41
|
+
inputSchema: AssignOrganizationVPCEndpointInput,
|
|
42
|
+
outputSchema: AssignOrganizationVPCEndpointOutput,
|
|
43
|
+
}));
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
|
|
5
|
+
// Input Schema
|
|
6
|
+
export const AssignProjectVPCEndpointInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
project_id: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
vpc_endpoint_id: Schema.String.pipe(T.PathParam()),
|
|
10
|
+
label: Schema.String,
|
|
11
|
+
}).pipe(
|
|
12
|
+
T.Http({
|
|
13
|
+
method: "POST",
|
|
14
|
+
path: "/projects/{project_id}/vpc_endpoints/{vpc_endpoint_id}",
|
|
15
|
+
}),
|
|
16
|
+
);
|
|
17
|
+
export type AssignProjectVPCEndpointInput =
|
|
18
|
+
typeof AssignProjectVPCEndpointInput.Type;
|
|
19
|
+
|
|
20
|
+
// Output Schema
|
|
21
|
+
export const AssignProjectVPCEndpointOutput =
|
|
22
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Void;
|
|
23
|
+
export type AssignProjectVPCEndpointOutput =
|
|
24
|
+
typeof AssignProjectVPCEndpointOutput.Type;
|
|
25
|
+
|
|
26
|
+
// The operation
|
|
27
|
+
/**
|
|
28
|
+
* Set VPC endpoint restriction
|
|
29
|
+
*
|
|
30
|
+
* Sets or updates a VPC endpoint restriction for a Neon project.
|
|
31
|
+
* When a VPC endpoint restriction is set, the project only accepts connections
|
|
32
|
+
* from the specified VPC.
|
|
33
|
+
* A VPC endpoint can be set as a restriction only after it is assigned to the
|
|
34
|
+
* parent organization of the Neon project.
|
|
35
|
+
*
|
|
36
|
+
* @param project_id - The Neon project ID
|
|
37
|
+
* @param vpc_endpoint_id - The VPC endpoint ID
|
|
38
|
+
*/
|
|
39
|
+
export const assignProjectVPCEndpoint = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
40
|
+
() => ({
|
|
41
|
+
inputSchema: AssignProjectVPCEndpointInput,
|
|
42
|
+
outputSchema: AssignProjectVPCEndpointOutput,
|
|
43
|
+
}),
|
|
44
|
+
);
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
|
|
5
|
+
// Input Schema
|
|
6
|
+
export const CountProjectBranchesInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
project_id: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
search: Schema.optional(Schema.String),
|
|
10
|
+
}).pipe(
|
|
11
|
+
T.Http({ method: "GET", path: "/projects/{project_id}/branches/count" }),
|
|
12
|
+
);
|
|
13
|
+
export type CountProjectBranchesInput = typeof CountProjectBranchesInput.Type;
|
|
14
|
+
|
|
15
|
+
// Output Schema
|
|
16
|
+
export const CountProjectBranchesOutput =
|
|
17
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
18
|
+
count: Schema.Number,
|
|
19
|
+
});
|
|
20
|
+
export type CountProjectBranchesOutput = typeof CountProjectBranchesOutput.Type;
|
|
21
|
+
|
|
22
|
+
// The operation
|
|
23
|
+
/**
|
|
24
|
+
* Retrieve number of branches
|
|
25
|
+
*
|
|
26
|
+
* Retrieves the total number of branches in the specified project.
|
|
27
|
+
* You can obtain a `project_id` by listing the projects for your Neon account.
|
|
28
|
+
*
|
|
29
|
+
* @param project_id - The Neon project ID
|
|
30
|
+
* @param search - Count branches matching the `name` in search query
|
|
31
|
+
*/
|
|
32
|
+
export const countProjectBranches = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
33
|
+
() => ({
|
|
34
|
+
inputSchema: CountProjectBranchesInput,
|
|
35
|
+
outputSchema: CountProjectBranchesOutput,
|
|
36
|
+
}),
|
|
37
|
+
);
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
|
|
5
|
+
// Input Schema
|
|
6
|
+
export const CreateApiKeyInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
key_name: Schema.String,
|
|
8
|
+
}).pipe(T.Http({ method: "POST", path: "/api_keys" }));
|
|
9
|
+
export type CreateApiKeyInput = typeof CreateApiKeyInput.Type;
|
|
10
|
+
|
|
11
|
+
// Output Schema
|
|
12
|
+
export const CreateApiKeyOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
13
|
+
id: Schema.Number,
|
|
14
|
+
key: Schema.String,
|
|
15
|
+
name: Schema.String,
|
|
16
|
+
created_at: Schema.String,
|
|
17
|
+
created_by: Schema.String,
|
|
18
|
+
});
|
|
19
|
+
export type CreateApiKeyOutput = typeof CreateApiKeyOutput.Type;
|
|
20
|
+
|
|
21
|
+
// The operation
|
|
22
|
+
/**
|
|
23
|
+
* Create API key
|
|
24
|
+
*
|
|
25
|
+
* Creates an API key.
|
|
26
|
+
* The `key_name` is a user-specified name for the key.
|
|
27
|
+
* This method returns an `id` and `key`. The `key` is a randomly generated, 64-bit token required to access the Neon API.
|
|
28
|
+
* API keys can also be managed in the Neon Console.
|
|
29
|
+
* See [Manage API keys](https://neon.tech/docs/manage/api-keys/).
|
|
30
|
+
*/
|
|
31
|
+
export const createApiKey = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
32
|
+
inputSchema: CreateApiKeyInput,
|
|
33
|
+
outputSchema: CreateApiKeyOutput,
|
|
34
|
+
}));
|