@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,113 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const GetConsumptionHistoryPerProjectInput =
|
|
6
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
cursor: Schema.optional(Schema.String),
|
|
8
|
+
limit: Schema.optional(Schema.Number),
|
|
9
|
+
project_ids: Schema.optional(Schema.String),
|
|
10
|
+
from: Schema.String,
|
|
11
|
+
to: Schema.String,
|
|
12
|
+
granularity: Schema.String,
|
|
13
|
+
org_id: Schema.optional(Schema.String),
|
|
14
|
+
include_v1_metrics: Schema.optional(Schema.Boolean),
|
|
15
|
+
metrics: Schema.optional(Schema.String),
|
|
16
|
+
}).pipe(T.Http({ method: "GET", path: "/consumption_history/projects" }));
|
|
17
|
+
// Output Schema
|
|
18
|
+
export const GetConsumptionHistoryPerProjectOutput =
|
|
19
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
20
|
+
projects: Schema.Array(Schema.Struct({
|
|
21
|
+
project_id: Schema.String,
|
|
22
|
+
periods: Schema.Array(Schema.Struct({
|
|
23
|
+
period_id: Schema.String,
|
|
24
|
+
period_plan: Schema.String,
|
|
25
|
+
period_start: Schema.String,
|
|
26
|
+
period_end: Schema.optional(Schema.String),
|
|
27
|
+
consumption: Schema.Array(Schema.Struct({
|
|
28
|
+
timeframe_start: Schema.String,
|
|
29
|
+
timeframe_end: Schema.String,
|
|
30
|
+
active_time_seconds: Schema.Number,
|
|
31
|
+
compute_time_seconds: Schema.Number,
|
|
32
|
+
written_data_bytes: Schema.Number,
|
|
33
|
+
synthetic_storage_size_bytes: Schema.Number,
|
|
34
|
+
data_storage_bytes_hour: Schema.optional(Schema.Number),
|
|
35
|
+
logical_size_bytes: Schema.optional(Schema.Number),
|
|
36
|
+
logical_size_bytes_hour: Schema.optional(Schema.Number),
|
|
37
|
+
})),
|
|
38
|
+
})),
|
|
39
|
+
})),
|
|
40
|
+
pagination: Schema.optional(Schema.Struct({
|
|
41
|
+
cursor: Schema.String,
|
|
42
|
+
})),
|
|
43
|
+
});
|
|
44
|
+
// The operation
|
|
45
|
+
/**
|
|
46
|
+
* Retrieve project consumption metrics (legacy plans)
|
|
47
|
+
*
|
|
48
|
+
* Retrieves consumption metrics for Scale, Business, and Enterprise plan projects. History begins at the time of upgrade.
|
|
49
|
+
* Results are ordered by time in ascending order (oldest to newest).
|
|
50
|
+
* Issuing a call to this API does not wake a project's compute endpoint.
|
|
51
|
+
*
|
|
52
|
+
* @param cursor - Specify the cursor value from the previous response to get the next batch of projects.
|
|
53
|
+
* @param limit - Specify a value from 1 to 100 to limit number of projects in the response.
|
|
54
|
+
* @param project_ids - Specify a list of project IDs to filter the response.
|
|
55
|
+
If omitted, the response will contain all projects.
|
|
56
|
+
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.
|
|
57
|
+
- As an array of parameter values: `project_ids=cold-poetry-09157238%20&project_ids=quiet-snow-71788278`
|
|
58
|
+
- As a comma-separated list in a single parameter value: `project_ids=cold-poetry-09157238,quiet-snow-71788278`
|
|
59
|
+
|
|
60
|
+
* @param from - Specify the start `date-time` for the consumption period.
|
|
61
|
+
The `date-time` value is rounded according to the specified `granularity`.
|
|
62
|
+
For example, `2024-03-15T15:30:00Z` for `daily` granularity will be rounded to `2024-03-15T00:00:00Z`.
|
|
63
|
+
The specified `date-time` value must respect the specified `granularity`:
|
|
64
|
+
- For `hourly`, consumption metrics are limited to the last 168 hours.
|
|
65
|
+
- For `daily`, consumption metrics are limited to the last 60 days.
|
|
66
|
+
- For `monthly`, consumption metrics are limited to the last year.
|
|
67
|
+
|
|
68
|
+
The consumption history is available starting from `March 1, 2024, at 00:00:00 UTC`.
|
|
69
|
+
|
|
70
|
+
* @param to - Specify the end `date-time` for the consumption period.
|
|
71
|
+
The `date-time` value is rounded according to the specified granularity.
|
|
72
|
+
For example, `2024-03-15T15:30:00Z` for `daily` granularity will be rounded to `2024-03-15T00:00:00Z`.
|
|
73
|
+
The specified `date-time` value must respect the specified `granularity`:
|
|
74
|
+
- For `hourly`, consumption metrics are limited to the last 168 hours.
|
|
75
|
+
- For `daily`, consumption metrics are limited to the last 60 days.
|
|
76
|
+
- For `monthly`, consumption metrics are limited to the last year.
|
|
77
|
+
|
|
78
|
+
* @param granularity - Specify the granularity of consumption metrics.
|
|
79
|
+
Hourly, daily, and monthly metrics are available for the last 168 hours, 60 days,
|
|
80
|
+
and 1 year, respectively.
|
|
81
|
+
|
|
82
|
+
* @param org_id - Specify the organization for which the project consumption metrics should be returned.
|
|
83
|
+
If this parameter is not provided, the endpoint will return the metrics for the
|
|
84
|
+
authenticated user's projects.
|
|
85
|
+
|
|
86
|
+
* @param include_v1_metrics - The field is deprecated. Please use `metrics` instead.
|
|
87
|
+
If `metrics` is specified, this field is ignored.
|
|
88
|
+
Include metrics utilized in previous pricing models.
|
|
89
|
+
- **data_storage_bytes_hour**: The sum of the maximum observed storage values for each hour,
|
|
90
|
+
which never decreases.
|
|
91
|
+
|
|
92
|
+
* @param metrics - Specify a list of metrics to include in the response.
|
|
93
|
+
If omitted, active_time, compute_time, written_data, synthetic_storage_size are returned.
|
|
94
|
+
Possible values:
|
|
95
|
+
- `active_time_seconds`
|
|
96
|
+
- `compute_time_seconds`
|
|
97
|
+
- `written_data_bytes`
|
|
98
|
+
- `synthetic_storage_size_bytes`
|
|
99
|
+
- `data_storage_bytes_hour`
|
|
100
|
+
- `logical_size_bytes`
|
|
101
|
+
- `logical_size_bytes_hour`
|
|
102
|
+
|
|
103
|
+
A list of metrics can be specified as an array of parameter values or as a comma-separated list in a single parameter value.
|
|
104
|
+
- As an array of parameter values: `metrics=cpu_seconds&metrics=ram_bytes`
|
|
105
|
+
- As a comma-separated list in a single parameter value: `metrics=cpu_seconds,ram_bytes`
|
|
106
|
+
|
|
107
|
+
*/
|
|
108
|
+
export const getConsumptionHistoryPerProject =
|
|
109
|
+
/*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
110
|
+
inputSchema: GetConsumptionHistoryPerProjectInput,
|
|
111
|
+
outputSchema: GetConsumptionHistoryPerProjectOutput,
|
|
112
|
+
}));
|
|
113
|
+
//# sourceMappingURL=getConsumptionHistoryPerProject.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getConsumptionHistoryPerProject.js","sourceRoot":"","sources":["../../src/operations/getConsumptionHistoryPerProject.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,CAAC,MAAM,WAAW,CAAC;AAE/B,eAAe;AACf,MAAM,CAAC,MAAM,oCAAoC;AAC/C,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACtC,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACrC,WAAW,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAC3C,IAAI,EAAE,MAAM,CAAC,MAAM;IACnB,EAAE,EAAE,MAAM,CAAC,MAAM;IACjB,WAAW,EAAE,MAAM,CAAC,MAAM;IAC1B,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACtC,kBAAkB,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;IACnD,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CACxC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,+BAA+B,EAAE,CAAC,CAAC,CAAC;AAI5E,gBAAgB;AAChB,MAAM,CAAC,MAAM,qCAAqC;AAChD,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,QAAQ,EAAE,MAAM,CAAC,KAAK,CACpB,MAAM,CAAC,MAAM,CAAC;QACZ,UAAU,EAAE,MAAM,CAAC,MAAM;QACzB,OAAO,EAAE,MAAM,CAAC,KAAK,CACnB,MAAM,CAAC,MAAM,CAAC;YACZ,SAAS,EAAE,MAAM,CAAC,MAAM;YACxB,WAAW,EAAE,MAAM,CAAC,MAAM;YAC1B,YAAY,EAAE,MAAM,CAAC,MAAM;YAC3B,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;YAC1C,WAAW,EAAE,MAAM,CAAC,KAAK,CACvB,MAAM,CAAC,MAAM,CAAC;gBACZ,eAAe,EAAE,MAAM,CAAC,MAAM;gBAC9B,aAAa,EAAE,MAAM,CAAC,MAAM;gBAC5B,mBAAmB,EAAE,MAAM,CAAC,MAAM;gBAClC,oBAAoB,EAAE,MAAM,CAAC,MAAM;gBACnC,kBAAkB,EAAE,MAAM,CAAC,MAAM;gBACjC,4BAA4B,EAAE,MAAM,CAAC,MAAM;gBAC3C,uBAAuB,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;gBACvD,kBAAkB,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;gBAClD,uBAAuB,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;aACxD,CAAC,CACH;SACF,CAAC,CACH;KACF,CAAC,CACH;IACD,UAAU,EAAE,MAAM,CAAC,QAAQ,CACzB,MAAM,CAAC,MAAM,CAAC;QACZ,MAAM,EAAE,MAAM,CAAC,MAAM;KACtB,CAAC,CACH;CACF,CAAC,CAAC;AAIL,gBAAgB;AAChB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DG;AACH,MAAM,CAAC,MAAM,+BAA+B;AAC1C,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC1C,WAAW,EAAE,oCAAoC;IACjD,YAAY,EAAE,qCAAqC;CACpD,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const GetConsumptionHistoryPerProjectV2Input: Schema.Struct<{
|
|
3
|
+
readonly cursor: Schema.optional<Schema.String>;
|
|
4
|
+
readonly limit: Schema.optional<Schema.Number>;
|
|
5
|
+
readonly project_ids: Schema.optional<Schema.String>;
|
|
6
|
+
readonly from: Schema.String;
|
|
7
|
+
readonly to: Schema.String;
|
|
8
|
+
readonly granularity: Schema.String;
|
|
9
|
+
readonly org_id: Schema.String;
|
|
10
|
+
readonly metrics: Schema.optional<Schema.String>;
|
|
11
|
+
}>;
|
|
12
|
+
export type GetConsumptionHistoryPerProjectV2Input = typeof GetConsumptionHistoryPerProjectV2Input.Type;
|
|
13
|
+
export declare const GetConsumptionHistoryPerProjectV2Output: Schema.Struct<{
|
|
14
|
+
readonly projects: Schema.$Array<Schema.Struct<{
|
|
15
|
+
readonly project_id: Schema.String;
|
|
16
|
+
readonly periods: Schema.$Array<Schema.Struct<{
|
|
17
|
+
readonly period_id: Schema.String;
|
|
18
|
+
readonly period_plan: Schema.String;
|
|
19
|
+
readonly period_start: Schema.String;
|
|
20
|
+
readonly period_end: Schema.optional<Schema.String>;
|
|
21
|
+
readonly consumption: Schema.$Array<Schema.Struct<{
|
|
22
|
+
readonly timeframe_start: Schema.optional<Schema.String>;
|
|
23
|
+
readonly timeframe_end: Schema.optional<Schema.String>;
|
|
24
|
+
readonly metrics: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
25
|
+
readonly metric_name: Schema.String;
|
|
26
|
+
readonly value: Schema.Number;
|
|
27
|
+
}>>>;
|
|
28
|
+
}>>;
|
|
29
|
+
}>>;
|
|
30
|
+
}>>;
|
|
31
|
+
readonly pagination: Schema.optional<Schema.Struct<{
|
|
32
|
+
readonly cursor: Schema.String;
|
|
33
|
+
}>>;
|
|
34
|
+
}>;
|
|
35
|
+
export type GetConsumptionHistoryPerProjectV2Output = typeof GetConsumptionHistoryPerProjectV2Output.Type;
|
|
36
|
+
/**
|
|
37
|
+
* Retrieve project consumption metrics
|
|
38
|
+
*
|
|
39
|
+
* Retrieves consumption metrics for Launch, Scale, Agent, and Enterprise plan projects. History begins at the time of upgrade.
|
|
40
|
+
* Results are ordered by time in ascending order (oldest to newest).
|
|
41
|
+
* Issuing a call to this API does not wake a project's compute endpoint.
|
|
42
|
+
*
|
|
43
|
+
* @param cursor - Specify the cursor value from the previous response to get the next batch of projects.
|
|
44
|
+
* @param limit - Specify a value from 1 to 100 to limit number of projects in the response.
|
|
45
|
+
* @param project_ids - Specify a list of project IDs to filter the response.
|
|
46
|
+
If omitted, the response will contain all projects.
|
|
47
|
+
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.
|
|
48
|
+
- As an array of parameter values: `project_ids=cold-poetry-09157238%20&project_ids=quiet-snow-71788278`
|
|
49
|
+
- As a comma-separated list in a single parameter value: `project_ids=cold-poetry-09157238,quiet-snow-71788278`
|
|
50
|
+
|
|
51
|
+
* @param from - Specify the start `date-time` for the consumption period.
|
|
52
|
+
The `date-time` value is rounded according to the specified `granularity`.
|
|
53
|
+
For example, `2024-03-15T15:30:00Z` for `daily` granularity will be rounded to `2024-03-15T00:00:00Z`.
|
|
54
|
+
The specified `date-time` value must respect the specified `granularity`:
|
|
55
|
+
- For `hourly`, consumption metrics are limited to the last 168 hours.
|
|
56
|
+
- For `daily`, consumption metrics are limited to the last 60 days.
|
|
57
|
+
- For `monthly`, consumption metrics are limited to the last year.
|
|
58
|
+
|
|
59
|
+
The consumption history is available starting from `March 1, 2024, at 00:00:00 UTC`.
|
|
60
|
+
|
|
61
|
+
* @param to - Specify the end `date-time` for the consumption period.
|
|
62
|
+
The `date-time` value is rounded according to the specified granularity.
|
|
63
|
+
For example, `2024-03-15T15:30:00Z` for `daily` granularity will be rounded to `2024-03-15T00:00:00Z`.
|
|
64
|
+
The specified `date-time` value must respect the specified `granularity`:
|
|
65
|
+
- For `hourly`, consumption metrics are limited to the last 168 hours.
|
|
66
|
+
- For `daily`, consumption metrics are limited to the last 60 days.
|
|
67
|
+
- For `monthly`, consumption metrics are limited to the last year.
|
|
68
|
+
|
|
69
|
+
* @param granularity - Specify the granularity of consumption metrics.
|
|
70
|
+
Hourly, daily, and monthly metrics are available for the last 168 hours, 60 days,
|
|
71
|
+
and 1 year, respectively.
|
|
72
|
+
|
|
73
|
+
* @param org_id - Specify the organization for which the project consumption metrics should be returned.
|
|
74
|
+
If this parameter is not provided, the endpoint will return the metrics for the
|
|
75
|
+
authenticated user's projects.
|
|
76
|
+
|
|
77
|
+
* @param metrics - Specify a list of metrics to include in the response.
|
|
78
|
+
Possible values:
|
|
79
|
+
- `compute_unit_seconds`
|
|
80
|
+
- `root_branch_bytes_month`
|
|
81
|
+
- `child_branch_bytes_month`
|
|
82
|
+
- `instant_restore_bytes_month`
|
|
83
|
+
- `public_network_transfer_bytes`
|
|
84
|
+
- `private_network_transfer_bytes`
|
|
85
|
+
- `extra_branches_month`
|
|
86
|
+
|
|
87
|
+
A list of metrics can be specified as an array of parameter values or as a comma-separated list in a single parameter value.
|
|
88
|
+
- As an array of parameter values: `metrics=compute_unit_seconds&metrics=extra_branches_month`
|
|
89
|
+
- As a comma-separated list in a single parameter value: `metrics=compute_unit_seconds,extra_branches_month`
|
|
90
|
+
|
|
91
|
+
*/
|
|
92
|
+
export declare const getConsumptionHistoryPerProjectV2: any;
|
|
93
|
+
//# sourceMappingURL=getConsumptionHistoryPerProjectV2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getConsumptionHistoryPerProjectV2.d.ts","sourceRoot":"","sources":["../../src/operations/getConsumptionHistoryPerProjectV2.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,sCAAsC;;;;;;;;;EAU2B,CAAC;AAC/E,MAAM,MAAM,sCAAsC,GAChD,OAAO,sCAAsC,CAAC,IAAI,CAAC;AAGrD,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;;;;;;EAkChD,CAAC;AACL,MAAM,MAAM,uCAAuC,GACjD,OAAO,uCAAuC,CAAC,IAAI,CAAC;AAGtD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AACH,eAAO,MAAM,iCAAiC,KAIzC,CAAC"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const GetConsumptionHistoryPerProjectV2Input =
|
|
6
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
cursor: Schema.optional(Schema.String),
|
|
8
|
+
limit: Schema.optional(Schema.Number),
|
|
9
|
+
project_ids: Schema.optional(Schema.String),
|
|
10
|
+
from: Schema.String,
|
|
11
|
+
to: Schema.String,
|
|
12
|
+
granularity: Schema.String,
|
|
13
|
+
org_id: Schema.String,
|
|
14
|
+
metrics: Schema.optional(Schema.String),
|
|
15
|
+
}).pipe(T.Http({ method: "GET", path: "/consumption_history/v2/projects" }));
|
|
16
|
+
// Output Schema
|
|
17
|
+
export const GetConsumptionHistoryPerProjectV2Output =
|
|
18
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
19
|
+
projects: Schema.Array(Schema.Struct({
|
|
20
|
+
project_id: Schema.String,
|
|
21
|
+
periods: Schema.Array(Schema.Struct({
|
|
22
|
+
period_id: Schema.String,
|
|
23
|
+
period_plan: Schema.String,
|
|
24
|
+
period_start: Schema.String,
|
|
25
|
+
period_end: Schema.optional(Schema.String),
|
|
26
|
+
consumption: Schema.Array(Schema.Struct({
|
|
27
|
+
timeframe_start: Schema.optional(Schema.String),
|
|
28
|
+
timeframe_end: Schema.optional(Schema.String),
|
|
29
|
+
metrics: Schema.optional(Schema.Array(Schema.Struct({
|
|
30
|
+
metric_name: Schema.String,
|
|
31
|
+
value: Schema.Number,
|
|
32
|
+
}))),
|
|
33
|
+
})),
|
|
34
|
+
})),
|
|
35
|
+
})),
|
|
36
|
+
pagination: Schema.optional(Schema.Struct({
|
|
37
|
+
cursor: Schema.String,
|
|
38
|
+
})),
|
|
39
|
+
});
|
|
40
|
+
// The operation
|
|
41
|
+
/**
|
|
42
|
+
* Retrieve project consumption metrics
|
|
43
|
+
*
|
|
44
|
+
* Retrieves consumption metrics for Launch, Scale, Agent, and Enterprise plan projects. History begins at the time of upgrade.
|
|
45
|
+
* Results are ordered by time in ascending order (oldest to newest).
|
|
46
|
+
* Issuing a call to this API does not wake a project's compute endpoint.
|
|
47
|
+
*
|
|
48
|
+
* @param cursor - Specify the cursor value from the previous response to get the next batch of projects.
|
|
49
|
+
* @param limit - Specify a value from 1 to 100 to limit number of projects in the response.
|
|
50
|
+
* @param project_ids - Specify a list of project IDs to filter the response.
|
|
51
|
+
If omitted, the response will contain all projects.
|
|
52
|
+
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.
|
|
53
|
+
- As an array of parameter values: `project_ids=cold-poetry-09157238%20&project_ids=quiet-snow-71788278`
|
|
54
|
+
- As a comma-separated list in a single parameter value: `project_ids=cold-poetry-09157238,quiet-snow-71788278`
|
|
55
|
+
|
|
56
|
+
* @param from - Specify the start `date-time` for the consumption period.
|
|
57
|
+
The `date-time` value is rounded according to the specified `granularity`.
|
|
58
|
+
For example, `2024-03-15T15:30:00Z` for `daily` granularity will be rounded to `2024-03-15T00:00:00Z`.
|
|
59
|
+
The specified `date-time` value must respect the specified `granularity`:
|
|
60
|
+
- For `hourly`, consumption metrics are limited to the last 168 hours.
|
|
61
|
+
- For `daily`, consumption metrics are limited to the last 60 days.
|
|
62
|
+
- For `monthly`, consumption metrics are limited to the last year.
|
|
63
|
+
|
|
64
|
+
The consumption history is available starting from `March 1, 2024, at 00:00:00 UTC`.
|
|
65
|
+
|
|
66
|
+
* @param to - Specify the end `date-time` for the consumption period.
|
|
67
|
+
The `date-time` value is rounded according to the specified granularity.
|
|
68
|
+
For example, `2024-03-15T15:30:00Z` for `daily` granularity will be rounded to `2024-03-15T00:00:00Z`.
|
|
69
|
+
The specified `date-time` value must respect the specified `granularity`:
|
|
70
|
+
- For `hourly`, consumption metrics are limited to the last 168 hours.
|
|
71
|
+
- For `daily`, consumption metrics are limited to the last 60 days.
|
|
72
|
+
- For `monthly`, consumption metrics are limited to the last year.
|
|
73
|
+
|
|
74
|
+
* @param granularity - Specify the granularity of consumption metrics.
|
|
75
|
+
Hourly, daily, and monthly metrics are available for the last 168 hours, 60 days,
|
|
76
|
+
and 1 year, respectively.
|
|
77
|
+
|
|
78
|
+
* @param org_id - Specify the organization for which the project consumption metrics should be returned.
|
|
79
|
+
If this parameter is not provided, the endpoint will return the metrics for the
|
|
80
|
+
authenticated user's projects.
|
|
81
|
+
|
|
82
|
+
* @param metrics - Specify a list of metrics to include in the response.
|
|
83
|
+
Possible values:
|
|
84
|
+
- `compute_unit_seconds`
|
|
85
|
+
- `root_branch_bytes_month`
|
|
86
|
+
- `child_branch_bytes_month`
|
|
87
|
+
- `instant_restore_bytes_month`
|
|
88
|
+
- `public_network_transfer_bytes`
|
|
89
|
+
- `private_network_transfer_bytes`
|
|
90
|
+
- `extra_branches_month`
|
|
91
|
+
|
|
92
|
+
A list of metrics can be specified as an array of parameter values or as a comma-separated list in a single parameter value.
|
|
93
|
+
- As an array of parameter values: `metrics=compute_unit_seconds&metrics=extra_branches_month`
|
|
94
|
+
- As a comma-separated list in a single parameter value: `metrics=compute_unit_seconds,extra_branches_month`
|
|
95
|
+
|
|
96
|
+
*/
|
|
97
|
+
export const getConsumptionHistoryPerProjectV2 =
|
|
98
|
+
/*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
99
|
+
inputSchema: GetConsumptionHistoryPerProjectV2Input,
|
|
100
|
+
outputSchema: GetConsumptionHistoryPerProjectV2Output,
|
|
101
|
+
}));
|
|
102
|
+
//# sourceMappingURL=getConsumptionHistoryPerProjectV2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getConsumptionHistoryPerProjectV2.js","sourceRoot":"","sources":["../../src/operations/getConsumptionHistoryPerProjectV2.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,CAAC,MAAM,WAAW,CAAC;AAE/B,eAAe;AACf,MAAM,CAAC,MAAM,sCAAsC;AACjD,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACtC,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACrC,WAAW,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAC3C,IAAI,EAAE,MAAM,CAAC,MAAM;IACnB,EAAE,EAAE,MAAM,CAAC,MAAM;IACjB,WAAW,EAAE,MAAM,CAAC,MAAM;IAC1B,MAAM,EAAE,MAAM,CAAC,MAAM;IACrB,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CACxC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,kCAAkC,EAAE,CAAC,CAAC,CAAC;AAI/E,gBAAgB;AAChB,MAAM,CAAC,MAAM,uCAAuC;AAClD,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,QAAQ,EAAE,MAAM,CAAC,KAAK,CACpB,MAAM,CAAC,MAAM,CAAC;QACZ,UAAU,EAAE,MAAM,CAAC,MAAM;QACzB,OAAO,EAAE,MAAM,CAAC,KAAK,CACnB,MAAM,CAAC,MAAM,CAAC;YACZ,SAAS,EAAE,MAAM,CAAC,MAAM;YACxB,WAAW,EAAE,MAAM,CAAC,MAAM;YAC1B,YAAY,EAAE,MAAM,CAAC,MAAM;YAC3B,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;YAC1C,WAAW,EAAE,MAAM,CAAC,KAAK,CACvB,MAAM,CAAC,MAAM,CAAC;gBACZ,eAAe,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;gBAC/C,aAAa,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;gBAC7C,OAAO,EAAE,MAAM,CAAC,QAAQ,CACtB,MAAM,CAAC,KAAK,CACV,MAAM,CAAC,MAAM,CAAC;oBACZ,WAAW,EAAE,MAAM,CAAC,MAAM;oBAC1B,KAAK,EAAE,MAAM,CAAC,MAAM;iBACrB,CAAC,CACH,CACF;aACF,CAAC,CACH;SACF,CAAC,CACH;KACF,CAAC,CACH;IACD,UAAU,EAAE,MAAM,CAAC,QAAQ,CACzB,MAAM,CAAC,MAAM,CAAC;QACZ,MAAM,EAAE,MAAM,CAAC,MAAM;KACtB,CAAC,CACH;CACF,CAAC,CAAC;AAIL,gBAAgB;AAChB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AACH,MAAM,CAAC,MAAM,iCAAiC;AAC5C,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC1C,WAAW,EAAE,sCAAsC;IACnD,YAAY,EAAE,uCAAuC;CACtD,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const GetCurrentUserInfoInput: Schema.Struct<{}>;
|
|
3
|
+
export type GetCurrentUserInfoInput = typeof GetCurrentUserInfoInput.Type;
|
|
4
|
+
export declare const GetCurrentUserInfoOutput: Schema.Struct<{
|
|
5
|
+
readonly active_seconds_limit: Schema.Number;
|
|
6
|
+
readonly billing_account: Schema.optional<Schema.Struct<{
|
|
7
|
+
readonly state: Schema.Literals<readonly ["UNKNOWN", "active", "suspended", "deactivated", "deleted"]>;
|
|
8
|
+
readonly payment_source: Schema.Struct<{
|
|
9
|
+
readonly type: Schema.String;
|
|
10
|
+
readonly card: Schema.optional<Schema.Struct<{
|
|
11
|
+
readonly last4: Schema.String;
|
|
12
|
+
readonly brand: Schema.optional<Schema.Literals<readonly ["amex", "diners", "discover", "jcb", "mastercard", "unionpay", "unknown", "visa"]>>;
|
|
13
|
+
readonly exp_month: Schema.optional<Schema.Number>;
|
|
14
|
+
readonly exp_year: Schema.optional<Schema.Number>;
|
|
15
|
+
}>>;
|
|
16
|
+
}>;
|
|
17
|
+
readonly subscription_type: Schema.Literals<readonly ["UNKNOWN", "direct_sales", "direct_sales_v3", "aws_marketplace", "free_v2", "free_v3", "launch", "launch_v3", "scale", "scale_v3", "business", "vercel_pg_legacy"]>;
|
|
18
|
+
readonly payment_method: Schema.Literals<readonly ["UNKNOWN", "none", "stripe", "direct_payment", "aws_mp", "azure_mp", "vercel_mp", "staff", "trial", "sponsorship"]>;
|
|
19
|
+
readonly quota_reset_at_last: Schema.String;
|
|
20
|
+
readonly name: Schema.String;
|
|
21
|
+
readonly email: Schema.String;
|
|
22
|
+
readonly address_city: Schema.String;
|
|
23
|
+
readonly address_country: Schema.String;
|
|
24
|
+
readonly address_country_name: Schema.optional<Schema.String>;
|
|
25
|
+
readonly address_line1: Schema.String;
|
|
26
|
+
readonly address_line2: Schema.String;
|
|
27
|
+
readonly address_postal_code: Schema.String;
|
|
28
|
+
readonly address_state: Schema.String;
|
|
29
|
+
readonly orb_portal_url: Schema.optional<Schema.String>;
|
|
30
|
+
readonly tax_id: Schema.optional<Schema.String>;
|
|
31
|
+
readonly tax_id_type: Schema.optional<Schema.String>;
|
|
32
|
+
readonly plan_details: Schema.optional<Schema.Struct<{
|
|
33
|
+
readonly name: Schema.String;
|
|
34
|
+
readonly version: Schema.optional<Schema.Struct<{
|
|
35
|
+
readonly major: Schema.Number;
|
|
36
|
+
readonly minor: Schema.Number;
|
|
37
|
+
}>>;
|
|
38
|
+
}>>;
|
|
39
|
+
}>>;
|
|
40
|
+
readonly auth_accounts: Schema.$Array<Schema.Struct<{
|
|
41
|
+
readonly email: Schema.String;
|
|
42
|
+
readonly image: Schema.String;
|
|
43
|
+
readonly login: Schema.String;
|
|
44
|
+
readonly name: Schema.String;
|
|
45
|
+
readonly provider: Schema.Literals<readonly ["github", "google", "hasura", "microsoft", "microsoftv2", "vercelmp", "keycloak"]>;
|
|
46
|
+
}>>;
|
|
47
|
+
readonly email: Schema.String;
|
|
48
|
+
readonly id: Schema.String;
|
|
49
|
+
readonly image: Schema.String;
|
|
50
|
+
readonly login: Schema.String;
|
|
51
|
+
readonly name: Schema.String;
|
|
52
|
+
readonly last_name: Schema.String;
|
|
53
|
+
readonly projects_limit: Schema.Number;
|
|
54
|
+
readonly branches_limit: Schema.Number;
|
|
55
|
+
readonly max_autoscaling_limit: Schema.Number;
|
|
56
|
+
readonly compute_seconds_limit: Schema.optional<Schema.Number>;
|
|
57
|
+
readonly plan: Schema.String;
|
|
58
|
+
}>;
|
|
59
|
+
export type GetCurrentUserInfoOutput = typeof GetCurrentUserInfoOutput.Type;
|
|
60
|
+
/**
|
|
61
|
+
* Retrieve current user details
|
|
62
|
+
*
|
|
63
|
+
* Retrieves information about the current Neon user account.
|
|
64
|
+
*/
|
|
65
|
+
export declare const getCurrentUserInfo: any;
|
|
66
|
+
//# sourceMappingURL=getCurrentUserInfo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getCurrentUserInfo.d.ts","sourceRoot":"","sources":["../../src/operations/getCurrentUserInfo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,uBAAuB,mBAGjC,CAAC;AACJ,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAC,IAAI,CAAC;AAG1E,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkHjC,CAAC;AACL,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAC,IAAI,CAAC;AAG5E;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,KAG5B,CAAC"}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const GetCurrentUserInfoInput =
|
|
6
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({ method: "GET", path: "/users/me" }));
|
|
7
|
+
// Output Schema
|
|
8
|
+
export const GetCurrentUserInfoOutput =
|
|
9
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
10
|
+
active_seconds_limit: Schema.Number,
|
|
11
|
+
billing_account: Schema.optional(Schema.Struct({
|
|
12
|
+
state: Schema.Literals([
|
|
13
|
+
"UNKNOWN",
|
|
14
|
+
"active",
|
|
15
|
+
"suspended",
|
|
16
|
+
"deactivated",
|
|
17
|
+
"deleted",
|
|
18
|
+
]),
|
|
19
|
+
payment_source: Schema.Struct({
|
|
20
|
+
type: Schema.String,
|
|
21
|
+
card: Schema.optional(Schema.Struct({
|
|
22
|
+
last4: Schema.String,
|
|
23
|
+
brand: Schema.optional(Schema.Literals([
|
|
24
|
+
"amex",
|
|
25
|
+
"diners",
|
|
26
|
+
"discover",
|
|
27
|
+
"jcb",
|
|
28
|
+
"mastercard",
|
|
29
|
+
"unionpay",
|
|
30
|
+
"unknown",
|
|
31
|
+
"visa",
|
|
32
|
+
])),
|
|
33
|
+
exp_month: Schema.optional(Schema.Number),
|
|
34
|
+
exp_year: Schema.optional(Schema.Number),
|
|
35
|
+
})),
|
|
36
|
+
}),
|
|
37
|
+
subscription_type: Schema.Literals([
|
|
38
|
+
"UNKNOWN",
|
|
39
|
+
"direct_sales",
|
|
40
|
+
"direct_sales_v3",
|
|
41
|
+
"aws_marketplace",
|
|
42
|
+
"free_v2",
|
|
43
|
+
"free_v3",
|
|
44
|
+
"launch",
|
|
45
|
+
"launch_v3",
|
|
46
|
+
"scale",
|
|
47
|
+
"scale_v3",
|
|
48
|
+
"business",
|
|
49
|
+
"vercel_pg_legacy",
|
|
50
|
+
]),
|
|
51
|
+
payment_method: Schema.Literals([
|
|
52
|
+
"UNKNOWN",
|
|
53
|
+
"none",
|
|
54
|
+
"stripe",
|
|
55
|
+
"direct_payment",
|
|
56
|
+
"aws_mp",
|
|
57
|
+
"azure_mp",
|
|
58
|
+
"vercel_mp",
|
|
59
|
+
"staff",
|
|
60
|
+
"trial",
|
|
61
|
+
"sponsorship",
|
|
62
|
+
]),
|
|
63
|
+
quota_reset_at_last: Schema.String,
|
|
64
|
+
name: Schema.String,
|
|
65
|
+
email: Schema.String,
|
|
66
|
+
address_city: Schema.String,
|
|
67
|
+
address_country: Schema.String,
|
|
68
|
+
address_country_name: Schema.optional(Schema.String),
|
|
69
|
+
address_line1: Schema.String,
|
|
70
|
+
address_line2: Schema.String,
|
|
71
|
+
address_postal_code: Schema.String,
|
|
72
|
+
address_state: Schema.String,
|
|
73
|
+
orb_portal_url: Schema.optional(Schema.String),
|
|
74
|
+
tax_id: Schema.optional(Schema.String),
|
|
75
|
+
tax_id_type: Schema.optional(Schema.String),
|
|
76
|
+
plan_details: Schema.optional(Schema.Struct({
|
|
77
|
+
name: Schema.String,
|
|
78
|
+
version: Schema.optional(Schema.Struct({
|
|
79
|
+
major: Schema.Number,
|
|
80
|
+
minor: Schema.Number,
|
|
81
|
+
})),
|
|
82
|
+
})),
|
|
83
|
+
})),
|
|
84
|
+
auth_accounts: Schema.Array(Schema.Struct({
|
|
85
|
+
email: Schema.String,
|
|
86
|
+
image: Schema.String,
|
|
87
|
+
login: Schema.String,
|
|
88
|
+
name: Schema.String,
|
|
89
|
+
provider: Schema.Literals([
|
|
90
|
+
"github",
|
|
91
|
+
"google",
|
|
92
|
+
"hasura",
|
|
93
|
+
"microsoft",
|
|
94
|
+
"microsoftv2",
|
|
95
|
+
"vercelmp",
|
|
96
|
+
"keycloak",
|
|
97
|
+
]),
|
|
98
|
+
})),
|
|
99
|
+
email: Schema.String,
|
|
100
|
+
id: Schema.String,
|
|
101
|
+
image: Schema.String,
|
|
102
|
+
login: Schema.String,
|
|
103
|
+
name: Schema.String,
|
|
104
|
+
last_name: Schema.String,
|
|
105
|
+
projects_limit: Schema.Number,
|
|
106
|
+
branches_limit: Schema.Number,
|
|
107
|
+
max_autoscaling_limit: Schema.Number,
|
|
108
|
+
compute_seconds_limit: Schema.optional(Schema.Number),
|
|
109
|
+
plan: Schema.String,
|
|
110
|
+
});
|
|
111
|
+
// The operation
|
|
112
|
+
/**
|
|
113
|
+
* Retrieve current user details
|
|
114
|
+
*
|
|
115
|
+
* Retrieves information about the current Neon user account.
|
|
116
|
+
*/
|
|
117
|
+
export const getCurrentUserInfo = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
118
|
+
inputSchema: GetCurrentUserInfoInput,
|
|
119
|
+
outputSchema: GetCurrentUserInfoOutput,
|
|
120
|
+
}));
|
|
121
|
+
//# sourceMappingURL=getCurrentUserInfo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getCurrentUserInfo.js","sourceRoot":"","sources":["../../src/operations/getCurrentUserInfo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,CAAC,MAAM,WAAW,CAAC;AAE/B,eAAe;AACf,MAAM,CAAC,MAAM,uBAAuB;AAClC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,CAChD,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,CAC7C,CAAC;AAGJ,gBAAgB;AAChB,MAAM,CAAC,MAAM,wBAAwB;AACnC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,oBAAoB,EAAE,MAAM,CAAC,MAAM;IACnC,eAAe,EAAE,MAAM,CAAC,QAAQ,CAC9B,MAAM,CAAC,MAAM,CAAC;QACZ,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC;YACrB,SAAS;YACT,QAAQ;YACR,WAAW;YACX,aAAa;YACb,SAAS;SACV,CAAC;QACF,cAAc,EAAE,MAAM,CAAC,MAAM,CAAC;YAC5B,IAAI,EAAE,MAAM,CAAC,MAAM;YACnB,IAAI,EAAE,MAAM,CAAC,QAAQ,CACnB,MAAM,CAAC,MAAM,CAAC;gBACZ,KAAK,EAAE,MAAM,CAAC,MAAM;gBACpB,KAAK,EAAE,MAAM,CAAC,QAAQ,CACpB,MAAM,CAAC,QAAQ,CAAC;oBACd,MAAM;oBACN,QAAQ;oBACR,UAAU;oBACV,KAAK;oBACL,YAAY;oBACZ,UAAU;oBACV,SAAS;oBACT,MAAM;iBACP,CAAC,CACH;gBACD,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;gBACzC,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;aACzC,CAAC,CACH;SACF,CAAC;QACF,iBAAiB,EAAE,MAAM,CAAC,QAAQ,CAAC;YACjC,SAAS;YACT,cAAc;YACd,iBAAiB;YACjB,iBAAiB;YACjB,SAAS;YACT,SAAS;YACT,QAAQ;YACR,WAAW;YACX,OAAO;YACP,UAAU;YACV,UAAU;YACV,kBAAkB;SACnB,CAAC;QACF,cAAc,EAAE,MAAM,CAAC,QAAQ,CAAC;YAC9B,SAAS;YACT,MAAM;YACN,QAAQ;YACR,gBAAgB;YAChB,QAAQ;YACR,UAAU;YACV,WAAW;YACX,OAAO;YACP,OAAO;YACP,aAAa;SACd,CAAC;QACF,mBAAmB,EAAE,MAAM,CAAC,MAAM;QAClC,IAAI,EAAE,MAAM,CAAC,MAAM;QACnB,KAAK,EAAE,MAAM,CAAC,MAAM;QACpB,YAAY,EAAE,MAAM,CAAC,MAAM;QAC3B,eAAe,EAAE,MAAM,CAAC,MAAM;QAC9B,oBAAoB,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACpD,aAAa,EAAE,MAAM,CAAC,MAAM;QAC5B,aAAa,EAAE,MAAM,CAAC,MAAM;QAC5B,mBAAmB,EAAE,MAAM,CAAC,MAAM;QAClC,aAAa,EAAE,MAAM,CAAC,MAAM;QAC5B,cAAc,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QAC9C,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACtC,WAAW,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QAC3C,YAAY,EAAE,MAAM,CAAC,QAAQ,CAC3B,MAAM,CAAC,MAAM,CAAC;YACZ,IAAI,EAAE,MAAM,CAAC,MAAM;YACnB,OAAO,EAAE,MAAM,CAAC,QAAQ,CACtB,MAAM,CAAC,MAAM,CAAC;gBACZ,KAAK,EAAE,MAAM,CAAC,MAAM;gBACpB,KAAK,EAAE,MAAM,CAAC,MAAM;aACrB,CAAC,CACH;SACF,CAAC,CACH;KACF,CAAC,CACH;IACD,aAAa,EAAE,MAAM,CAAC,KAAK,CACzB,MAAM,CAAC,MAAM,CAAC;QACZ,KAAK,EAAE,MAAM,CAAC,MAAM;QACpB,KAAK,EAAE,MAAM,CAAC,MAAM;QACpB,KAAK,EAAE,MAAM,CAAC,MAAM;QACpB,IAAI,EAAE,MAAM,CAAC,MAAM;QACnB,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC;YACxB,QAAQ;YACR,QAAQ;YACR,QAAQ;YACR,WAAW;YACX,aAAa;YACb,UAAU;YACV,UAAU;SACX,CAAC;KACH,CAAC,CACH;IACD,KAAK,EAAE,MAAM,CAAC,MAAM;IACpB,EAAE,EAAE,MAAM,CAAC,MAAM;IACjB,KAAK,EAAE,MAAM,CAAC,MAAM;IACpB,KAAK,EAAE,MAAM,CAAC,MAAM;IACpB,IAAI,EAAE,MAAM,CAAC,MAAM;IACnB,SAAS,EAAE,MAAM,CAAC,MAAM;IACxB,cAAc,EAAE,MAAM,CAAC,MAAM;IAC7B,cAAc,EAAE,MAAM,CAAC,MAAM;IAC7B,qBAAqB,EAAE,MAAM,CAAC,MAAM;IACpC,qBAAqB,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACrD,IAAI,EAAE,MAAM,CAAC,MAAM;CACpB,CAAC,CAAC;AAGL,gBAAgB;AAChB;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC5E,WAAW,EAAE,uBAAuB;IACpC,YAAY,EAAE,wBAAwB;CACvC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const GetCurrentUserOrganizationsInput: Schema.Struct<{}>;
|
|
3
|
+
export type GetCurrentUserOrganizationsInput = typeof GetCurrentUserOrganizationsInput.Type;
|
|
4
|
+
export declare const GetCurrentUserOrganizationsOutput: Schema.Struct<{
|
|
5
|
+
readonly organizations: Schema.$Array<Schema.Struct<{
|
|
6
|
+
readonly id: Schema.String;
|
|
7
|
+
readonly name: Schema.String;
|
|
8
|
+
readonly handle: Schema.String;
|
|
9
|
+
readonly plan: Schema.String;
|
|
10
|
+
readonly created_at: Schema.String;
|
|
11
|
+
readonly managed_by: Schema.String;
|
|
12
|
+
readonly updated_at: Schema.String;
|
|
13
|
+
readonly allow_hipaa_projects: Schema.optional<Schema.Boolean>;
|
|
14
|
+
}>>;
|
|
15
|
+
}>;
|
|
16
|
+
export type GetCurrentUserOrganizationsOutput = typeof GetCurrentUserOrganizationsOutput.Type;
|
|
17
|
+
/**
|
|
18
|
+
* Retrieve current user organizations list
|
|
19
|
+
*
|
|
20
|
+
* Retrieves information about the current Neon user's organizations
|
|
21
|
+
*/
|
|
22
|
+
export declare const getCurrentUserOrganizations: any;
|
|
23
|
+
//# sourceMappingURL=getCurrentUserOrganizations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getCurrentUserOrganizations.d.ts","sourceRoot":"","sources":["../../src/operations/getCurrentUserOrganizations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,gCAAgC,mBAG1C,CAAC;AACJ,MAAM,MAAM,gCAAgC,GAC1C,OAAO,gCAAgC,CAAC,IAAI,CAAC;AAG/C,eAAO,MAAM,iCAAiC;;;;;;;;;;;EAc1C,CAAC;AACL,MAAM,MAAM,iCAAiC,GAC3C,OAAO,iCAAiC,CAAC,IAAI,CAAC;AAGhD;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,KAKvC,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const GetCurrentUserOrganizationsInput =
|
|
6
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({ method: "GET", path: "/users/me/organizations" }));
|
|
7
|
+
// Output Schema
|
|
8
|
+
export const GetCurrentUserOrganizationsOutput =
|
|
9
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
10
|
+
organizations: Schema.Array(Schema.Struct({
|
|
11
|
+
id: Schema.String,
|
|
12
|
+
name: Schema.String,
|
|
13
|
+
handle: Schema.String,
|
|
14
|
+
plan: Schema.String,
|
|
15
|
+
created_at: Schema.String,
|
|
16
|
+
managed_by: Schema.String,
|
|
17
|
+
updated_at: Schema.String,
|
|
18
|
+
allow_hipaa_projects: Schema.optional(Schema.Boolean),
|
|
19
|
+
})),
|
|
20
|
+
});
|
|
21
|
+
// The operation
|
|
22
|
+
/**
|
|
23
|
+
* Retrieve current user organizations list
|
|
24
|
+
*
|
|
25
|
+
* Retrieves information about the current Neon user's organizations
|
|
26
|
+
*/
|
|
27
|
+
export const getCurrentUserOrganizations = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
28
|
+
inputSchema: GetCurrentUserOrganizationsInput,
|
|
29
|
+
outputSchema: GetCurrentUserOrganizationsOutput,
|
|
30
|
+
}));
|
|
31
|
+
//# sourceMappingURL=getCurrentUserOrganizations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getCurrentUserOrganizations.js","sourceRoot":"","sources":["../../src/operations/getCurrentUserOrganizations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,CAAC,MAAM,WAAW,CAAC;AAE/B,eAAe;AACf,MAAM,CAAC,MAAM,gCAAgC;AAC3C,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,CAChD,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,yBAAyB,EAAE,CAAC,CAC3D,CAAC;AAIJ,gBAAgB;AAChB,MAAM,CAAC,MAAM,iCAAiC;AAC5C,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,aAAa,EAAE,MAAM,CAAC,KAAK,CACzB,MAAM,CAAC,MAAM,CAAC;QACZ,EAAE,EAAE,MAAM,CAAC,MAAM;QACjB,IAAI,EAAE,MAAM,CAAC,MAAM;QACnB,MAAM,EAAE,MAAM,CAAC,MAAM;QACrB,IAAI,EAAE,MAAM,CAAC,MAAM;QACnB,UAAU,EAAE,MAAM,CAAC,MAAM;QACzB,UAAU,EAAE,MAAM,CAAC,MAAM;QACzB,UAAU,EAAE,MAAM,CAAC,MAAM;QACzB,oBAAoB,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;KACtD,CAAC,CACH;CACF,CAAC,CAAC;AAIL,gBAAgB;AAChB;;;;GAIG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAC7E,GAAG,EAAE,CAAC,CAAC;IACL,WAAW,EAAE,gCAAgC;IAC7C,YAAY,EAAE,iCAAiC;CAChD,CAAC,CACH,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const GetMaskingRulesInput: Schema.Struct<{
|
|
3
|
+
readonly project_id: Schema.String;
|
|
4
|
+
readonly branch_id: Schema.String;
|
|
5
|
+
}>;
|
|
6
|
+
export type GetMaskingRulesInput = typeof GetMaskingRulesInput.Type;
|
|
7
|
+
export declare const GetMaskingRulesOutput: Schema.Struct<{
|
|
8
|
+
readonly masking_rules: Schema.$Array<Schema.Struct<{
|
|
9
|
+
readonly database_name: Schema.String;
|
|
10
|
+
readonly schema_name: Schema.String;
|
|
11
|
+
readonly table_name: Schema.String;
|
|
12
|
+
readonly column_name: Schema.String;
|
|
13
|
+
readonly masking_function: Schema.optional<Schema.String>;
|
|
14
|
+
readonly masking_value: Schema.optional<Schema.String>;
|
|
15
|
+
}>>;
|
|
16
|
+
}>;
|
|
17
|
+
export type GetMaskingRulesOutput = typeof GetMaskingRulesOutput.Type;
|
|
18
|
+
/**
|
|
19
|
+
* Get masking rules
|
|
20
|
+
*
|
|
21
|
+
* Retrieves the masking rules for the specified anonymized branch.
|
|
22
|
+
* Masking rules define how sensitive data should be anonymized using PostgreSQL Anonymizer.
|
|
23
|
+
* You can obtain a `project_id` by listing the projects for your Neon account.
|
|
24
|
+
* You can obtain the `branch_id` by listing the project's branches.
|
|
25
|
+
* **Note**: This endpoint is currently in Beta.
|
|
26
|
+
*
|
|
27
|
+
* @param project_id - The Neon project ID
|
|
28
|
+
* @param branch_id - The branch ID
|
|
29
|
+
*/
|
|
30
|
+
export declare const getMaskingRules: any;
|
|
31
|
+
//# sourceMappingURL=getMaskingRules.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getMaskingRules.d.ts","sourceRoot":"","sources":["../../src/operations/getMaskingRules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,oBAAoB;;;EAQhC,CAAC;AACF,MAAM,MAAM,oBAAoB,GAAG,OAAO,oBAAoB,CAAC,IAAI,CAAC;AAGpE,eAAO,MAAM,qBAAqB;;;;;;;;;EAWhC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC,IAAI,CAAC;AAGtE;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,eAAe,KAGzB,CAAC"}
|