@distilled.cloud/neon 0.0.0-john
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +54 -0
- 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 +10 -0
- package/lib/client.d.ts.map +1 -0
- package/lib/client.js +52 -0
- package/lib/client.js.map +1 -0
- package/lib/credentials.d.ts +15 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +18 -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 +88 -0
- package/src/category.ts +4 -0
- package/src/client.ts +59 -0
- package/src/credentials.ts +31 -0
- package/src/errors.ts +47 -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
|
@@ -0,0 +1,127 @@
|
|
|
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 GetConsumptionHistoryPerProjectInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
cursor: Schema.optional(Schema.String),
|
|
9
|
+
limit: Schema.optional(Schema.Number),
|
|
10
|
+
project_ids: Schema.optional(Schema.String),
|
|
11
|
+
from: Schema.String,
|
|
12
|
+
to: Schema.String,
|
|
13
|
+
granularity: Schema.String,
|
|
14
|
+
org_id: Schema.optional(Schema.String),
|
|
15
|
+
include_v1_metrics: Schema.optional(Schema.Boolean),
|
|
16
|
+
metrics: Schema.optional(Schema.String),
|
|
17
|
+
}).pipe(T.Http({ method: "GET", path: "/consumption_history/projects" }));
|
|
18
|
+
export type GetConsumptionHistoryPerProjectInput =
|
|
19
|
+
typeof GetConsumptionHistoryPerProjectInput.Type;
|
|
20
|
+
|
|
21
|
+
// Output Schema
|
|
22
|
+
export const GetConsumptionHistoryPerProjectOutput =
|
|
23
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
24
|
+
projects: Schema.Array(
|
|
25
|
+
Schema.Struct({
|
|
26
|
+
project_id: Schema.String,
|
|
27
|
+
periods: Schema.Array(
|
|
28
|
+
Schema.Struct({
|
|
29
|
+
period_id: Schema.String,
|
|
30
|
+
period_plan: Schema.String,
|
|
31
|
+
period_start: Schema.String,
|
|
32
|
+
period_end: Schema.optional(Schema.String),
|
|
33
|
+
consumption: Schema.Array(
|
|
34
|
+
Schema.Struct({
|
|
35
|
+
timeframe_start: Schema.String,
|
|
36
|
+
timeframe_end: Schema.String,
|
|
37
|
+
active_time_seconds: Schema.Number,
|
|
38
|
+
compute_time_seconds: Schema.Number,
|
|
39
|
+
written_data_bytes: Schema.Number,
|
|
40
|
+
synthetic_storage_size_bytes: Schema.Number,
|
|
41
|
+
data_storage_bytes_hour: Schema.optional(Schema.Number),
|
|
42
|
+
logical_size_bytes: Schema.optional(Schema.Number),
|
|
43
|
+
logical_size_bytes_hour: Schema.optional(Schema.Number),
|
|
44
|
+
}),
|
|
45
|
+
),
|
|
46
|
+
}),
|
|
47
|
+
),
|
|
48
|
+
}),
|
|
49
|
+
),
|
|
50
|
+
pagination: Schema.optional(
|
|
51
|
+
Schema.Struct({
|
|
52
|
+
cursor: Schema.String,
|
|
53
|
+
}),
|
|
54
|
+
),
|
|
55
|
+
});
|
|
56
|
+
export type GetConsumptionHistoryPerProjectOutput =
|
|
57
|
+
typeof GetConsumptionHistoryPerProjectOutput.Type;
|
|
58
|
+
|
|
59
|
+
// The operation
|
|
60
|
+
/**
|
|
61
|
+
* Retrieve project consumption metrics (legacy plans)
|
|
62
|
+
*
|
|
63
|
+
* Retrieves consumption metrics for Scale, Business, and Enterprise plan projects. History begins at the time of upgrade.
|
|
64
|
+
* Results are ordered by time in ascending order (oldest to newest).
|
|
65
|
+
* Issuing a call to this API does not wake a project's compute endpoint.
|
|
66
|
+
*
|
|
67
|
+
* @param cursor - Specify the cursor value from the previous response to get the next batch of projects.
|
|
68
|
+
* @param limit - Specify a value from 1 to 100 to limit number of projects in the response.
|
|
69
|
+
* @param project_ids - Specify a list of project IDs to filter the response.
|
|
70
|
+
If omitted, the response will contain all projects.
|
|
71
|
+
A list of project IDs can be specified as an array of parameter values or as a comma-separated list in a single parameter value.
|
|
72
|
+
- As an array of parameter values: `project_ids=cold-poetry-09157238%20&project_ids=quiet-snow-71788278`
|
|
73
|
+
- As a comma-separated list in a single parameter value: `project_ids=cold-poetry-09157238,quiet-snow-71788278`
|
|
74
|
+
|
|
75
|
+
* @param from - Specify the start `date-time` for the consumption period.
|
|
76
|
+
The `date-time` value is rounded according to the specified `granularity`.
|
|
77
|
+
For example, `2024-03-15T15:30:00Z` for `daily` granularity will be rounded to `2024-03-15T00:00:00Z`.
|
|
78
|
+
The specified `date-time` value must respect the specified `granularity`:
|
|
79
|
+
- For `hourly`, consumption metrics are limited to the last 168 hours.
|
|
80
|
+
- For `daily`, consumption metrics are limited to the last 60 days.
|
|
81
|
+
- For `monthly`, consumption metrics are limited to the last year.
|
|
82
|
+
|
|
83
|
+
The consumption history is available starting from `March 1, 2024, at 00:00:00 UTC`.
|
|
84
|
+
|
|
85
|
+
* @param to - Specify the end `date-time` for the consumption period.
|
|
86
|
+
The `date-time` value is rounded according to the specified granularity.
|
|
87
|
+
For example, `2024-03-15T15:30:00Z` for `daily` granularity will be rounded to `2024-03-15T00:00:00Z`.
|
|
88
|
+
The specified `date-time` value must respect the specified `granularity`:
|
|
89
|
+
- For `hourly`, consumption metrics are limited to the last 168 hours.
|
|
90
|
+
- For `daily`, consumption metrics are limited to the last 60 days.
|
|
91
|
+
- For `monthly`, consumption metrics are limited to the last year.
|
|
92
|
+
|
|
93
|
+
* @param granularity - Specify the granularity of consumption metrics.
|
|
94
|
+
Hourly, daily, and monthly metrics are available for the last 168 hours, 60 days,
|
|
95
|
+
and 1 year, respectively.
|
|
96
|
+
|
|
97
|
+
* @param org_id - Specify the organization for which the project consumption metrics should be returned.
|
|
98
|
+
If this parameter is not provided, the endpoint will return the metrics for the
|
|
99
|
+
authenticated user's projects.
|
|
100
|
+
|
|
101
|
+
* @param include_v1_metrics - The field is deprecated. Please use `metrics` instead.
|
|
102
|
+
If `metrics` is specified, this field is ignored.
|
|
103
|
+
Include metrics utilized in previous pricing models.
|
|
104
|
+
- **data_storage_bytes_hour**: The sum of the maximum observed storage values for each hour,
|
|
105
|
+
which never decreases.
|
|
106
|
+
|
|
107
|
+
* @param metrics - Specify a list of metrics to include in the response.
|
|
108
|
+
If omitted, active_time, compute_time, written_data, synthetic_storage_size are returned.
|
|
109
|
+
Possible values:
|
|
110
|
+
- `active_time_seconds`
|
|
111
|
+
- `compute_time_seconds`
|
|
112
|
+
- `written_data_bytes`
|
|
113
|
+
- `synthetic_storage_size_bytes`
|
|
114
|
+
- `data_storage_bytes_hour`
|
|
115
|
+
- `logical_size_bytes`
|
|
116
|
+
- `logical_size_bytes_hour`
|
|
117
|
+
|
|
118
|
+
A list of metrics can be specified as an array of parameter values or as a comma-separated list in a single parameter value.
|
|
119
|
+
- As an array of parameter values: `metrics=cpu_seconds&metrics=ram_bytes`
|
|
120
|
+
- As a comma-separated list in a single parameter value: `metrics=cpu_seconds,ram_bytes`
|
|
121
|
+
|
|
122
|
+
*/
|
|
123
|
+
export const getConsumptionHistoryPerProject =
|
|
124
|
+
/*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
125
|
+
inputSchema: GetConsumptionHistoryPerProjectInput,
|
|
126
|
+
outputSchema: GetConsumptionHistoryPerProjectOutput,
|
|
127
|
+
}));
|
|
@@ -0,0 +1,120 @@
|
|
|
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 GetConsumptionHistoryPerProjectV2Input =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
cursor: Schema.optional(Schema.String),
|
|
9
|
+
limit: Schema.optional(Schema.Number),
|
|
10
|
+
project_ids: Schema.optional(Schema.String),
|
|
11
|
+
from: Schema.String,
|
|
12
|
+
to: Schema.String,
|
|
13
|
+
granularity: Schema.String,
|
|
14
|
+
org_id: Schema.String,
|
|
15
|
+
metrics: Schema.optional(Schema.String),
|
|
16
|
+
}).pipe(T.Http({ method: "GET", path: "/consumption_history/v2/projects" }));
|
|
17
|
+
export type GetConsumptionHistoryPerProjectV2Input =
|
|
18
|
+
typeof GetConsumptionHistoryPerProjectV2Input.Type;
|
|
19
|
+
|
|
20
|
+
// Output Schema
|
|
21
|
+
export const GetConsumptionHistoryPerProjectV2Output =
|
|
22
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
23
|
+
projects: Schema.Array(
|
|
24
|
+
Schema.Struct({
|
|
25
|
+
project_id: Schema.String,
|
|
26
|
+
periods: Schema.Array(
|
|
27
|
+
Schema.Struct({
|
|
28
|
+
period_id: Schema.String,
|
|
29
|
+
period_plan: Schema.String,
|
|
30
|
+
period_start: Schema.String,
|
|
31
|
+
period_end: Schema.optional(Schema.String),
|
|
32
|
+
consumption: Schema.Array(
|
|
33
|
+
Schema.Struct({
|
|
34
|
+
timeframe_start: Schema.optional(Schema.String),
|
|
35
|
+
timeframe_end: Schema.optional(Schema.String),
|
|
36
|
+
metrics: Schema.optional(
|
|
37
|
+
Schema.Array(
|
|
38
|
+
Schema.Struct({
|
|
39
|
+
metric_name: Schema.String,
|
|
40
|
+
value: Schema.Number,
|
|
41
|
+
}),
|
|
42
|
+
),
|
|
43
|
+
),
|
|
44
|
+
}),
|
|
45
|
+
),
|
|
46
|
+
}),
|
|
47
|
+
),
|
|
48
|
+
}),
|
|
49
|
+
),
|
|
50
|
+
pagination: Schema.optional(
|
|
51
|
+
Schema.Struct({
|
|
52
|
+
cursor: Schema.String,
|
|
53
|
+
}),
|
|
54
|
+
),
|
|
55
|
+
});
|
|
56
|
+
export type GetConsumptionHistoryPerProjectV2Output =
|
|
57
|
+
typeof GetConsumptionHistoryPerProjectV2Output.Type;
|
|
58
|
+
|
|
59
|
+
// The operation
|
|
60
|
+
/**
|
|
61
|
+
* Retrieve project consumption metrics
|
|
62
|
+
*
|
|
63
|
+
* Retrieves consumption metrics for Launch, Scale, Agent, and Enterprise plan projects. History begins at the time of upgrade.
|
|
64
|
+
* Results are ordered by time in ascending order (oldest to newest).
|
|
65
|
+
* Issuing a call to this API does not wake a project's compute endpoint.
|
|
66
|
+
*
|
|
67
|
+
* @param cursor - Specify the cursor value from the previous response to get the next batch of projects.
|
|
68
|
+
* @param limit - Specify a value from 1 to 100 to limit number of projects in the response.
|
|
69
|
+
* @param project_ids - Specify a list of project IDs to filter the response.
|
|
70
|
+
If omitted, the response will contain all projects.
|
|
71
|
+
A list of project IDs can be specified as an array of parameter values or as a comma-separated list in a single parameter value.
|
|
72
|
+
- As an array of parameter values: `project_ids=cold-poetry-09157238%20&project_ids=quiet-snow-71788278`
|
|
73
|
+
- As a comma-separated list in a single parameter value: `project_ids=cold-poetry-09157238,quiet-snow-71788278`
|
|
74
|
+
|
|
75
|
+
* @param from - Specify the start `date-time` for the consumption period.
|
|
76
|
+
The `date-time` value is rounded according to the specified `granularity`.
|
|
77
|
+
For example, `2024-03-15T15:30:00Z` for `daily` granularity will be rounded to `2024-03-15T00:00:00Z`.
|
|
78
|
+
The specified `date-time` value must respect the specified `granularity`:
|
|
79
|
+
- For `hourly`, consumption metrics are limited to the last 168 hours.
|
|
80
|
+
- For `daily`, consumption metrics are limited to the last 60 days.
|
|
81
|
+
- For `monthly`, consumption metrics are limited to the last year.
|
|
82
|
+
|
|
83
|
+
The consumption history is available starting from `March 1, 2024, at 00:00:00 UTC`.
|
|
84
|
+
|
|
85
|
+
* @param to - Specify the end `date-time` for the consumption period.
|
|
86
|
+
The `date-time` value is rounded according to the specified granularity.
|
|
87
|
+
For example, `2024-03-15T15:30:00Z` for `daily` granularity will be rounded to `2024-03-15T00:00:00Z`.
|
|
88
|
+
The specified `date-time` value must respect the specified `granularity`:
|
|
89
|
+
- For `hourly`, consumption metrics are limited to the last 168 hours.
|
|
90
|
+
- For `daily`, consumption metrics are limited to the last 60 days.
|
|
91
|
+
- For `monthly`, consumption metrics are limited to the last year.
|
|
92
|
+
|
|
93
|
+
* @param granularity - Specify the granularity of consumption metrics.
|
|
94
|
+
Hourly, daily, and monthly metrics are available for the last 168 hours, 60 days,
|
|
95
|
+
and 1 year, respectively.
|
|
96
|
+
|
|
97
|
+
* @param org_id - Specify the organization for which the project consumption metrics should be returned.
|
|
98
|
+
If this parameter is not provided, the endpoint will return the metrics for the
|
|
99
|
+
authenticated user's projects.
|
|
100
|
+
|
|
101
|
+
* @param metrics - Specify a list of metrics to include in the response.
|
|
102
|
+
Possible values:
|
|
103
|
+
- `compute_unit_seconds`
|
|
104
|
+
- `root_branch_bytes_month`
|
|
105
|
+
- `child_branch_bytes_month`
|
|
106
|
+
- `instant_restore_bytes_month`
|
|
107
|
+
- `public_network_transfer_bytes`
|
|
108
|
+
- `private_network_transfer_bytes`
|
|
109
|
+
- `extra_branches_month`
|
|
110
|
+
|
|
111
|
+
A list of metrics can be specified as an array of parameter values or as a comma-separated list in a single parameter value.
|
|
112
|
+
- As an array of parameter values: `metrics=compute_unit_seconds&metrics=extra_branches_month`
|
|
113
|
+
- As a comma-separated list in a single parameter value: `metrics=compute_unit_seconds,extra_branches_month`
|
|
114
|
+
|
|
115
|
+
*/
|
|
116
|
+
export const getConsumptionHistoryPerProjectV2 =
|
|
117
|
+
/*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
118
|
+
inputSchema: GetConsumptionHistoryPerProjectV2Input,
|
|
119
|
+
outputSchema: GetConsumptionHistoryPerProjectV2Output,
|
|
120
|
+
}));
|
|
@@ -0,0 +1,139 @@
|
|
|
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 GetCurrentUserInfoInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(
|
|
8
|
+
T.Http({ method: "GET", path: "/users/me" }),
|
|
9
|
+
);
|
|
10
|
+
export type GetCurrentUserInfoInput = typeof GetCurrentUserInfoInput.Type;
|
|
11
|
+
|
|
12
|
+
// Output Schema
|
|
13
|
+
export const GetCurrentUserInfoOutput =
|
|
14
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
15
|
+
active_seconds_limit: Schema.Number,
|
|
16
|
+
billing_account: Schema.optional(
|
|
17
|
+
Schema.Struct({
|
|
18
|
+
state: Schema.Literals([
|
|
19
|
+
"UNKNOWN",
|
|
20
|
+
"active",
|
|
21
|
+
"suspended",
|
|
22
|
+
"deactivated",
|
|
23
|
+
"deleted",
|
|
24
|
+
]),
|
|
25
|
+
payment_source: Schema.Struct({
|
|
26
|
+
type: Schema.String,
|
|
27
|
+
card: Schema.optional(
|
|
28
|
+
Schema.Struct({
|
|
29
|
+
last4: Schema.String,
|
|
30
|
+
brand: Schema.optional(
|
|
31
|
+
Schema.Literals([
|
|
32
|
+
"amex",
|
|
33
|
+
"diners",
|
|
34
|
+
"discover",
|
|
35
|
+
"jcb",
|
|
36
|
+
"mastercard",
|
|
37
|
+
"unionpay",
|
|
38
|
+
"unknown",
|
|
39
|
+
"visa",
|
|
40
|
+
]),
|
|
41
|
+
),
|
|
42
|
+
exp_month: Schema.optional(Schema.Number),
|
|
43
|
+
exp_year: Schema.optional(Schema.Number),
|
|
44
|
+
}),
|
|
45
|
+
),
|
|
46
|
+
}),
|
|
47
|
+
subscription_type: Schema.Literals([
|
|
48
|
+
"UNKNOWN",
|
|
49
|
+
"direct_sales",
|
|
50
|
+
"direct_sales_v3",
|
|
51
|
+
"aws_marketplace",
|
|
52
|
+
"free_v2",
|
|
53
|
+
"free_v3",
|
|
54
|
+
"launch",
|
|
55
|
+
"launch_v3",
|
|
56
|
+
"scale",
|
|
57
|
+
"scale_v3",
|
|
58
|
+
"business",
|
|
59
|
+
"vercel_pg_legacy",
|
|
60
|
+
]),
|
|
61
|
+
payment_method: Schema.Literals([
|
|
62
|
+
"UNKNOWN",
|
|
63
|
+
"none",
|
|
64
|
+
"stripe",
|
|
65
|
+
"direct_payment",
|
|
66
|
+
"aws_mp",
|
|
67
|
+
"azure_mp",
|
|
68
|
+
"vercel_mp",
|
|
69
|
+
"staff",
|
|
70
|
+
"trial",
|
|
71
|
+
"sponsorship",
|
|
72
|
+
]),
|
|
73
|
+
quota_reset_at_last: Schema.String,
|
|
74
|
+
name: Schema.String,
|
|
75
|
+
email: Schema.String,
|
|
76
|
+
address_city: Schema.String,
|
|
77
|
+
address_country: Schema.String,
|
|
78
|
+
address_country_name: Schema.optional(Schema.String),
|
|
79
|
+
address_line1: Schema.String,
|
|
80
|
+
address_line2: Schema.String,
|
|
81
|
+
address_postal_code: Schema.String,
|
|
82
|
+
address_state: Schema.String,
|
|
83
|
+
orb_portal_url: Schema.optional(Schema.String),
|
|
84
|
+
tax_id: Schema.optional(Schema.String),
|
|
85
|
+
tax_id_type: Schema.optional(Schema.String),
|
|
86
|
+
plan_details: Schema.optional(
|
|
87
|
+
Schema.Struct({
|
|
88
|
+
name: Schema.String,
|
|
89
|
+
version: Schema.optional(
|
|
90
|
+
Schema.Struct({
|
|
91
|
+
major: Schema.Number,
|
|
92
|
+
minor: Schema.Number,
|
|
93
|
+
}),
|
|
94
|
+
),
|
|
95
|
+
}),
|
|
96
|
+
),
|
|
97
|
+
}),
|
|
98
|
+
),
|
|
99
|
+
auth_accounts: Schema.Array(
|
|
100
|
+
Schema.Struct({
|
|
101
|
+
email: Schema.String,
|
|
102
|
+
image: Schema.String,
|
|
103
|
+
login: Schema.String,
|
|
104
|
+
name: Schema.String,
|
|
105
|
+
provider: Schema.Literals([
|
|
106
|
+
"github",
|
|
107
|
+
"google",
|
|
108
|
+
"hasura",
|
|
109
|
+
"microsoft",
|
|
110
|
+
"microsoftv2",
|
|
111
|
+
"vercelmp",
|
|
112
|
+
"keycloak",
|
|
113
|
+
]),
|
|
114
|
+
}),
|
|
115
|
+
),
|
|
116
|
+
email: Schema.String,
|
|
117
|
+
id: Schema.String,
|
|
118
|
+
image: Schema.String,
|
|
119
|
+
login: Schema.String,
|
|
120
|
+
name: Schema.String,
|
|
121
|
+
last_name: Schema.String,
|
|
122
|
+
projects_limit: Schema.Number,
|
|
123
|
+
branches_limit: Schema.Number,
|
|
124
|
+
max_autoscaling_limit: Schema.Number,
|
|
125
|
+
compute_seconds_limit: Schema.optional(Schema.Number),
|
|
126
|
+
plan: Schema.String,
|
|
127
|
+
});
|
|
128
|
+
export type GetCurrentUserInfoOutput = typeof GetCurrentUserInfoOutput.Type;
|
|
129
|
+
|
|
130
|
+
// The operation
|
|
131
|
+
/**
|
|
132
|
+
* Retrieve current user details
|
|
133
|
+
*
|
|
134
|
+
* Retrieves information about the current Neon user account.
|
|
135
|
+
*/
|
|
136
|
+
export const getCurrentUserInfo = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
137
|
+
inputSchema: GetCurrentUserInfoInput,
|
|
138
|
+
outputSchema: GetCurrentUserInfoOutput,
|
|
139
|
+
}));
|
|
@@ -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 GetCurrentUserOrganizationsInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(
|
|
8
|
+
T.Http({ method: "GET", path: "/users/me/organizations" }),
|
|
9
|
+
);
|
|
10
|
+
export type GetCurrentUserOrganizationsInput =
|
|
11
|
+
typeof GetCurrentUserOrganizationsInput.Type;
|
|
12
|
+
|
|
13
|
+
// Output Schema
|
|
14
|
+
export const GetCurrentUserOrganizationsOutput =
|
|
15
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
16
|
+
organizations: Schema.Array(
|
|
17
|
+
Schema.Struct({
|
|
18
|
+
id: Schema.String,
|
|
19
|
+
name: Schema.String,
|
|
20
|
+
handle: Schema.String,
|
|
21
|
+
plan: Schema.String,
|
|
22
|
+
created_at: Schema.String,
|
|
23
|
+
managed_by: Schema.String,
|
|
24
|
+
updated_at: Schema.String,
|
|
25
|
+
allow_hipaa_projects: Schema.optional(Schema.Boolean),
|
|
26
|
+
}),
|
|
27
|
+
),
|
|
28
|
+
});
|
|
29
|
+
export type GetCurrentUserOrganizationsOutput =
|
|
30
|
+
typeof GetCurrentUserOrganizationsOutput.Type;
|
|
31
|
+
|
|
32
|
+
// The operation
|
|
33
|
+
/**
|
|
34
|
+
* Retrieve current user organizations list
|
|
35
|
+
*
|
|
36
|
+
* Retrieves information about the current Neon user's organizations
|
|
37
|
+
*/
|
|
38
|
+
export const getCurrentUserOrganizations = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
39
|
+
() => ({
|
|
40
|
+
inputSchema: GetCurrentUserOrganizationsInput,
|
|
41
|
+
outputSchema: GetCurrentUserOrganizationsOutput,
|
|
42
|
+
}),
|
|
43
|
+
);
|
|
@@ -0,0 +1,48 @@
|
|
|
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 GetMaskingRulesInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
project_id: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
branch_id: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
}).pipe(
|
|
10
|
+
T.Http({
|
|
11
|
+
method: "GET",
|
|
12
|
+
path: "/projects/{project_id}/branches/{branch_id}/masking_rules",
|
|
13
|
+
}),
|
|
14
|
+
);
|
|
15
|
+
export type GetMaskingRulesInput = typeof GetMaskingRulesInput.Type;
|
|
16
|
+
|
|
17
|
+
// Output Schema
|
|
18
|
+
export const GetMaskingRulesOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
19
|
+
masking_rules: Schema.Array(
|
|
20
|
+
Schema.Struct({
|
|
21
|
+
database_name: Schema.String,
|
|
22
|
+
schema_name: Schema.String,
|
|
23
|
+
table_name: Schema.String,
|
|
24
|
+
column_name: Schema.String,
|
|
25
|
+
masking_function: Schema.optional(Schema.String),
|
|
26
|
+
masking_value: Schema.optional(Schema.String),
|
|
27
|
+
}),
|
|
28
|
+
),
|
|
29
|
+
});
|
|
30
|
+
export type GetMaskingRulesOutput = typeof GetMaskingRulesOutput.Type;
|
|
31
|
+
|
|
32
|
+
// The operation
|
|
33
|
+
/**
|
|
34
|
+
* Get masking rules
|
|
35
|
+
*
|
|
36
|
+
* Retrieves the masking rules for the specified anonymized branch.
|
|
37
|
+
* Masking rules define how sensitive data should be anonymized using PostgreSQL Anonymizer.
|
|
38
|
+
* You can obtain a `project_id` by listing the projects for your Neon account.
|
|
39
|
+
* You can obtain the `branch_id` by listing the project's branches.
|
|
40
|
+
* **Note**: This endpoint is currently in Beta.
|
|
41
|
+
*
|
|
42
|
+
* @param project_id - The Neon project ID
|
|
43
|
+
* @param branch_id - The branch ID
|
|
44
|
+
*/
|
|
45
|
+
export const getMaskingRules = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
46
|
+
inputSchema: GetMaskingRulesInput,
|
|
47
|
+
outputSchema: GetMaskingRulesOutput,
|
|
48
|
+
}));
|
|
@@ -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 GetNeonAuthInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
project_id: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
branch_id: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
}).pipe(
|
|
10
|
+
T.Http({
|
|
11
|
+
method: "GET",
|
|
12
|
+
path: "/projects/{project_id}/branches/{branch_id}/auth",
|
|
13
|
+
}),
|
|
14
|
+
);
|
|
15
|
+
export type GetNeonAuthInput = typeof GetNeonAuthInput.Type;
|
|
16
|
+
|
|
17
|
+
// Output Schema
|
|
18
|
+
export const GetNeonAuthOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
19
|
+
auth_provider: Schema.Literals(["mock", "stack", "stack_v2", "better_auth"]),
|
|
20
|
+
auth_provider_project_id: Schema.String,
|
|
21
|
+
branch_id: Schema.String,
|
|
22
|
+
db_name: Schema.String,
|
|
23
|
+
created_at: Schema.String,
|
|
24
|
+
owned_by: Schema.Literals(["user", "neon"]),
|
|
25
|
+
transfer_status: Schema.optional(Schema.Literals(["initiated", "finished"])),
|
|
26
|
+
jwks_url: Schema.String,
|
|
27
|
+
base_url: Schema.optional(Schema.String),
|
|
28
|
+
});
|
|
29
|
+
export type GetNeonAuthOutput = typeof GetNeonAuthOutput.Type;
|
|
30
|
+
|
|
31
|
+
// The operation
|
|
32
|
+
/**
|
|
33
|
+
* Get details of Neon Auth for the branch
|
|
34
|
+
*
|
|
35
|
+
* / Fetches the details of the Neon Auth for the specified branch. You can obtain the `project_id` and `branch_id` by listing the projects and branches for your Neon account.
|
|
36
|
+
*
|
|
37
|
+
* @param project_id - The Neon project ID
|
|
38
|
+
* @param branch_id - The Neon branch ID
|
|
39
|
+
*/
|
|
40
|
+
export const getNeonAuth = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
41
|
+
inputSchema: GetNeonAuthInput,
|
|
42
|
+
outputSchema: GetNeonAuthOutput,
|
|
43
|
+
}));
|
|
@@ -0,0 +1,41 @@
|
|
|
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 GetNeonAuthAllowLocalhostInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
project_id: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
branch_id: Schema.String.pipe(T.PathParam()),
|
|
10
|
+
}).pipe(
|
|
11
|
+
T.Http({
|
|
12
|
+
method: "GET",
|
|
13
|
+
path: "/projects/{project_id}/branches/{branch_id}/auth/allow_localhost",
|
|
14
|
+
}),
|
|
15
|
+
);
|
|
16
|
+
export type GetNeonAuthAllowLocalhostInput =
|
|
17
|
+
typeof GetNeonAuthAllowLocalhostInput.Type;
|
|
18
|
+
|
|
19
|
+
// Output Schema
|
|
20
|
+
export const GetNeonAuthAllowLocalhostOutput =
|
|
21
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
22
|
+
allow_localhost: Schema.Boolean,
|
|
23
|
+
});
|
|
24
|
+
export type GetNeonAuthAllowLocalhostOutput =
|
|
25
|
+
typeof GetNeonAuthAllowLocalhostOutput.Type;
|
|
26
|
+
|
|
27
|
+
// The operation
|
|
28
|
+
/**
|
|
29
|
+
* Get allow localhost
|
|
30
|
+
*
|
|
31
|
+
* Get the allow localhost configuration for the specified branch.
|
|
32
|
+
*
|
|
33
|
+
* @param project_id - The Neon project ID
|
|
34
|
+
* @param branch_id - The Neon branch ID
|
|
35
|
+
*/
|
|
36
|
+
export const getNeonAuthAllowLocalhost = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
37
|
+
() => ({
|
|
38
|
+
inputSchema: GetNeonAuthAllowLocalhostInput,
|
|
39
|
+
outputSchema: GetNeonAuthAllowLocalhostOutput,
|
|
40
|
+
}),
|
|
41
|
+
);
|
|
@@ -0,0 +1,46 @@
|
|
|
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 GetNeonAuthEmailAndPasswordConfigInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
project_id: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
branch_id: Schema.String.pipe(T.PathParam()),
|
|
10
|
+
}).pipe(
|
|
11
|
+
T.Http({
|
|
12
|
+
method: "GET",
|
|
13
|
+
path: "/projects/{project_id}/branches/{branch_id}/auth/email_and_password",
|
|
14
|
+
}),
|
|
15
|
+
);
|
|
16
|
+
export type GetNeonAuthEmailAndPasswordConfigInput =
|
|
17
|
+
typeof GetNeonAuthEmailAndPasswordConfigInput.Type;
|
|
18
|
+
|
|
19
|
+
// Output Schema
|
|
20
|
+
export const GetNeonAuthEmailAndPasswordConfigOutput =
|
|
21
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
22
|
+
enabled: Schema.Boolean,
|
|
23
|
+
email_verification_method: Schema.Literals(["link", "otp"]),
|
|
24
|
+
require_email_verification: Schema.Boolean,
|
|
25
|
+
auto_sign_in_after_verification: Schema.Boolean,
|
|
26
|
+
send_verification_email_on_sign_up: Schema.Boolean,
|
|
27
|
+
send_verification_email_on_sign_in: Schema.Boolean,
|
|
28
|
+
disable_sign_up: Schema.Boolean,
|
|
29
|
+
});
|
|
30
|
+
export type GetNeonAuthEmailAndPasswordConfigOutput =
|
|
31
|
+
typeof GetNeonAuthEmailAndPasswordConfigOutput.Type;
|
|
32
|
+
|
|
33
|
+
// The operation
|
|
34
|
+
/**
|
|
35
|
+
* Get email and password configuration
|
|
36
|
+
*
|
|
37
|
+
* Gets the email and password authentication configuration for Neon Auth
|
|
38
|
+
*
|
|
39
|
+
* @param project_id - The Neon project ID
|
|
40
|
+
* @param branch_id - The Neon branch ID
|
|
41
|
+
*/
|
|
42
|
+
export const getNeonAuthEmailAndPasswordConfig =
|
|
43
|
+
/*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
44
|
+
inputSchema: GetNeonAuthEmailAndPasswordConfigInput,
|
|
45
|
+
outputSchema: GetNeonAuthEmailAndPasswordConfigOutput,
|
|
46
|
+
}));
|
|
@@ -0,0 +1,39 @@
|
|
|
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 GetNeonAuthEmailProviderInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
project_id: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
branch_id: Schema.String.pipe(T.PathParam()),
|
|
10
|
+
}).pipe(
|
|
11
|
+
T.Http({
|
|
12
|
+
method: "GET",
|
|
13
|
+
path: "/projects/{project_id}/branches/{branch_id}/auth/email_provider",
|
|
14
|
+
}),
|
|
15
|
+
);
|
|
16
|
+
export type GetNeonAuthEmailProviderInput =
|
|
17
|
+
typeof GetNeonAuthEmailProviderInput.Type;
|
|
18
|
+
|
|
19
|
+
// Output Schema
|
|
20
|
+
export const GetNeonAuthEmailProviderOutput =
|
|
21
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
|
|
22
|
+
export type GetNeonAuthEmailProviderOutput =
|
|
23
|
+
typeof GetNeonAuthEmailProviderOutput.Type;
|
|
24
|
+
|
|
25
|
+
// The operation
|
|
26
|
+
/**
|
|
27
|
+
* Get email provider configuration
|
|
28
|
+
*
|
|
29
|
+
* Gets the email provider configuration for the specified branch.
|
|
30
|
+
*
|
|
31
|
+
* @param project_id - The Neon project ID
|
|
32
|
+
* @param branch_id - The Neon branch ID
|
|
33
|
+
*/
|
|
34
|
+
export const getNeonAuthEmailProvider = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
35
|
+
() => ({
|
|
36
|
+
inputSchema: GetNeonAuthEmailProviderInput,
|
|
37
|
+
outputSchema: GetNeonAuthEmailProviderOutput,
|
|
38
|
+
}),
|
|
39
|
+
);
|