@distilled.cloud/planetscale 0.0.0 → 0.2.3
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 +45 -6
- package/lib/category.d.ts +13 -0
- package/lib/category.d.ts.map +1 -0
- package/lib/category.js +13 -0
- package/lib/category.js.map +1 -0
- package/lib/client.d.ts +17 -0
- package/lib/client.d.ts.map +1 -0
- package/lib/client.js +49 -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 +23 -0
- package/lib/credentials.js.map +1 -0
- package/lib/errors.d.ts +36 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +28 -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/addOrganizationTeamMember.d.ts +91 -0
- package/lib/operations/addOrganizationTeamMember.d.ts.map +1 -0
- package/lib/operations/addOrganizationTeamMember.js +104 -0
- package/lib/operations/addOrganizationTeamMember.js.map +1 -0
- package/lib/operations/cancelBouncerResizeRequest.d.ts +20 -0
- package/lib/operations/cancelBouncerResizeRequest.d.ts.map +1 -0
- package/lib/operations/cancelBouncerResizeRequest.js +33 -0
- package/lib/operations/cancelBouncerResizeRequest.js.map +1 -0
- package/lib/operations/cancelBranchChangeRequest.d.ts +18 -0
- package/lib/operations/cancelBranchChangeRequest.d.ts.map +1 -0
- package/lib/operations/cancelBranchChangeRequest.js +31 -0
- package/lib/operations/cancelBranchChangeRequest.js.map +1 -0
- package/lib/operations/cancelDeployRequest.d.ts +148 -0
- package/lib/operations/cancelDeployRequest.d.ts.map +1 -0
- package/lib/operations/cancelDeployRequest.js +223 -0
- package/lib/operations/cancelDeployRequest.js.map +1 -0
- package/lib/operations/closeDeployRequest.d.ts +150 -0
- package/lib/operations/closeDeployRequest.d.ts.map +1 -0
- package/lib/operations/closeDeployRequest.js +225 -0
- package/lib/operations/closeDeployRequest.js.map +1 -0
- package/lib/operations/completeErroredDeploy.d.ts +148 -0
- package/lib/operations/completeErroredDeploy.d.ts.map +1 -0
- package/lib/operations/completeErroredDeploy.js +223 -0
- package/lib/operations/completeErroredDeploy.js.map +1 -0
- package/lib/operations/completeGatedDeployRequest.d.ts +148 -0
- package/lib/operations/completeGatedDeployRequest.d.ts.map +1 -0
- package/lib/operations/completeGatedDeployRequest.js +223 -0
- package/lib/operations/completeGatedDeployRequest.js.map +1 -0
- package/lib/operations/completeRevert.d.ts +148 -0
- package/lib/operations/completeRevert.d.ts.map +1 -0
- package/lib/operations/completeRevert.js +221 -0
- package/lib/operations/completeRevert.js.map +1 -0
- package/lib/operations/createBackup.d.ts +85 -0
- package/lib/operations/createBackup.d.ts.map +1 -0
- package/lib/operations/createBackup.js +103 -0
- package/lib/operations/createBackup.js.map +1 -0
- package/lib/operations/createBouncer.d.ts +79 -0
- package/lib/operations/createBouncer.d.ts.map +1 -0
- package/lib/operations/createBouncer.js +96 -0
- package/lib/operations/createBouncer.js.map +1 -0
- package/lib/operations/createBranch.d.ts +86 -0
- package/lib/operations/createBranch.d.ts.map +1 -0
- package/lib/operations/createBranch.js +103 -0
- package/lib/operations/createBranch.js.map +1 -0
- package/lib/operations/createDatabase.d.ts +87 -0
- package/lib/operations/createDatabase.d.ts.map +1 -0
- package/lib/operations/createDatabase.js +103 -0
- package/lib/operations/createDatabase.js.map +1 -0
- package/lib/operations/createDatabasePostgresCidr.d.ts +35 -0
- package/lib/operations/createDatabasePostgresCidr.d.ts.map +1 -0
- package/lib/operations/createDatabasePostgresCidr.js +48 -0
- package/lib/operations/createDatabasePostgresCidr.js.map +1 -0
- package/lib/operations/createDeployRequest.d.ts +156 -0
- package/lib/operations/createDeployRequest.d.ts.map +1 -0
- package/lib/operations/createDeployRequest.js +231 -0
- package/lib/operations/createDeployRequest.js.map +1 -0
- package/lib/operations/createKeyspace.d.ts +56 -0
- package/lib/operations/createKeyspace.d.ts.map +1 -0
- package/lib/operations/createKeyspace.js +71 -0
- package/lib/operations/createKeyspace.js.map +1 -0
- package/lib/operations/createOauthToken.d.ts +107 -0
- package/lib/operations/createOauthToken.d.ts.map +1 -0
- package/lib/operations/createOauthToken.js +119 -0
- package/lib/operations/createOauthToken.js.map +1 -0
- package/lib/operations/createOrganizationTeam.d.ts +59 -0
- package/lib/operations/createOrganizationTeam.d.ts.map +1 -0
- package/lib/operations/createOrganizationTeam.js +69 -0
- package/lib/operations/createOrganizationTeam.js.map +1 -0
- package/lib/operations/createPassword.d.ts +72 -0
- package/lib/operations/createPassword.d.ts.map +1 -0
- package/lib/operations/createPassword.js +84 -0
- package/lib/operations/createPassword.js.map +1 -0
- package/lib/operations/createQueryPatternsReport.d.ts +30 -0
- package/lib/operations/createQueryPatternsReport.d.ts.map +1 -0
- package/lib/operations/createQueryPatternsReport.js +43 -0
- package/lib/operations/createQueryPatternsReport.js.map +1 -0
- package/lib/operations/createRole.d.ts +64 -0
- package/lib/operations/createRole.d.ts.map +1 -0
- package/lib/operations/createRole.js +103 -0
- package/lib/operations/createRole.js.map +1 -0
- package/lib/operations/createServiceToken.d.ts +97 -0
- package/lib/operations/createServiceToken.d.ts.map +1 -0
- package/lib/operations/createServiceToken.js +111 -0
- package/lib/operations/createServiceToken.js.map +1 -0
- package/lib/operations/createWebhook.d.ts +33 -0
- package/lib/operations/createWebhook.d.ts.map +1 -0
- package/lib/operations/createWebhook.js +64 -0
- package/lib/operations/createWebhook.js.map +1 -0
- package/lib/operations/createWorkflow.d.ts +136 -0
- package/lib/operations/createWorkflow.d.ts.map +1 -0
- package/lib/operations/createWorkflow.js +167 -0
- package/lib/operations/createWorkflow.js.map +1 -0
- package/lib/operations/deleteBackup.d.ts +20 -0
- package/lib/operations/deleteBackup.d.ts.map +1 -0
- package/lib/operations/deleteBackup.js +31 -0
- package/lib/operations/deleteBackup.js.map +1 -0
- package/lib/operations/deleteBouncer.d.ts +20 -0
- package/lib/operations/deleteBouncer.d.ts.map +1 -0
- package/lib/operations/deleteBouncer.js +31 -0
- package/lib/operations/deleteBouncer.js.map +1 -0
- package/lib/operations/deleteBranch.d.ts +18 -0
- package/lib/operations/deleteBranch.d.ts.map +1 -0
- package/lib/operations/deleteBranch.js +29 -0
- package/lib/operations/deleteBranch.js.map +1 -0
- package/lib/operations/deleteDatabase.d.ts +16 -0
- package/lib/operations/deleteDatabase.d.ts.map +1 -0
- package/lib/operations/deleteDatabase.js +27 -0
- package/lib/operations/deleteDatabase.js.map +1 -0
- package/lib/operations/deleteDatabasePostgresCidr.d.ts +18 -0
- package/lib/operations/deleteDatabasePostgresCidr.d.ts.map +1 -0
- package/lib/operations/deleteDatabasePostgresCidr.js +31 -0
- package/lib/operations/deleteDatabasePostgresCidr.js.map +1 -0
- package/lib/operations/deleteKeyspace.d.ts +20 -0
- package/lib/operations/deleteKeyspace.d.ts.map +1 -0
- package/lib/operations/deleteKeyspace.js +31 -0
- package/lib/operations/deleteKeyspace.js.map +1 -0
- package/lib/operations/deleteOauthToken.d.ts +18 -0
- package/lib/operations/deleteOauthToken.d.ts.map +1 -0
- package/lib/operations/deleteOauthToken.js +29 -0
- package/lib/operations/deleteOauthToken.js.map +1 -0
- package/lib/operations/deleteOrganizationTeam.d.ts +16 -0
- package/lib/operations/deleteOrganizationTeam.d.ts.map +1 -0
- package/lib/operations/deleteOrganizationTeam.js +29 -0
- package/lib/operations/deleteOrganizationTeam.js.map +1 -0
- package/lib/operations/deletePassword.d.ts +20 -0
- package/lib/operations/deletePassword.d.ts.map +1 -0
- package/lib/operations/deletePassword.js +31 -0
- package/lib/operations/deletePassword.js.map +1 -0
- package/lib/operations/deleteQueryPatternsReport.d.ts +20 -0
- package/lib/operations/deleteQueryPatternsReport.d.ts.map +1 -0
- package/lib/operations/deleteQueryPatternsReport.js +33 -0
- package/lib/operations/deleteQueryPatternsReport.js.map +1 -0
- package/lib/operations/deleteRole.d.ts +22 -0
- package/lib/operations/deleteRole.d.ts.map +1 -0
- package/lib/operations/deleteRole.js +33 -0
- package/lib/operations/deleteRole.js.map +1 -0
- package/lib/operations/deleteServiceToken.d.ts +18 -0
- package/lib/operations/deleteServiceToken.d.ts.map +1 -0
- package/lib/operations/deleteServiceToken.js +30 -0
- package/lib/operations/deleteServiceToken.js.map +1 -0
- package/lib/operations/deleteWebhook.d.ts +18 -0
- package/lib/operations/deleteWebhook.d.ts.map +1 -0
- package/lib/operations/deleteWebhook.js +29 -0
- package/lib/operations/deleteWebhook.js.map +1 -0
- package/lib/operations/demoteBranch.d.ts +74 -0
- package/lib/operations/demoteBranch.d.ts.map +1 -0
- package/lib/operations/demoteBranch.js +91 -0
- package/lib/operations/demoteBranch.js.map +1 -0
- package/lib/operations/disableSafeMigrations.d.ts +72 -0
- package/lib/operations/disableSafeMigrations.d.ts.map +1 -0
- package/lib/operations/disableSafeMigrations.js +91 -0
- package/lib/operations/disableSafeMigrations.js.map +1 -0
- package/lib/operations/dismissSchemaRecommendation.d.ts +44 -0
- package/lib/operations/dismissSchemaRecommendation.d.ts.map +1 -0
- package/lib/operations/dismissSchemaRecommendation.js +67 -0
- package/lib/operations/dismissSchemaRecommendation.js.map +1 -0
- package/lib/operations/enableSafeMigrations.d.ts +72 -0
- package/lib/operations/enableSafeMigrations.d.ts.map +1 -0
- package/lib/operations/enableSafeMigrations.js +91 -0
- package/lib/operations/enableSafeMigrations.js.map +1 -0
- package/lib/operations/getBackup.d.ts +79 -0
- package/lib/operations/getBackup.d.ts.map +1 -0
- package/lib/operations/getBackup.js +97 -0
- package/lib/operations/getBackup.js.map +1 -0
- package/lib/operations/getBouncer.d.ts +73 -0
- package/lib/operations/getBouncer.d.ts.map +1 -0
- package/lib/operations/getBouncer.js +90 -0
- package/lib/operations/getBouncer.js.map +1 -0
- package/lib/operations/getBranch.d.ts +72 -0
- package/lib/operations/getBranch.d.ts.map +1 -0
- package/lib/operations/getBranch.js +89 -0
- package/lib/operations/getBranch.js.map +1 -0
- package/lib/operations/getBranchChangeRequest.d.ts +57 -0
- package/lib/operations/getBranchChangeRequest.d.ts.map +1 -0
- package/lib/operations/getBranchChangeRequest.js +76 -0
- package/lib/operations/getBranchChangeRequest.js.map +1 -0
- package/lib/operations/getBranchSchema.d.ts +28 -0
- package/lib/operations/getBranchSchema.d.ts.map +1 -0
- package/lib/operations/getBranchSchema.js +39 -0
- package/lib/operations/getBranchSchema.js.map +1 -0
- package/lib/operations/getCurrentUser.d.ts +32 -0
- package/lib/operations/getCurrentUser.d.ts.map +1 -0
- package/lib/operations/getCurrentUser.js +40 -0
- package/lib/operations/getCurrentUser.js.map +1 -0
- package/lib/operations/getDatabase.d.ts +77 -0
- package/lib/operations/getDatabase.d.ts.map +1 -0
- package/lib/operations/getDatabase.js +96 -0
- package/lib/operations/getDatabase.js.map +1 -0
- package/lib/operations/getDatabasePostgresCidr.d.ts +31 -0
- package/lib/operations/getDatabasePostgresCidr.d.ts.map +1 -0
- package/lib/operations/getDatabasePostgresCidr.js +44 -0
- package/lib/operations/getDatabasePostgresCidr.js.map +1 -0
- package/lib/operations/getDatabaseThrottler.d.ts +29 -0
- package/lib/operations/getDatabaseThrottler.d.ts.map +1 -0
- package/lib/operations/getDatabaseThrottler.js +42 -0
- package/lib/operations/getDatabaseThrottler.js.map +1 -0
- package/lib/operations/getDefaultRole.d.ts +54 -0
- package/lib/operations/getDefaultRole.d.ts.map +1 -0
- package/lib/operations/getDefaultRole.js +79 -0
- package/lib/operations/getDefaultRole.js.map +1 -0
- package/lib/operations/getDeployQueue.d.ts +118 -0
- package/lib/operations/getDeployQueue.d.ts.map +1 -0
- package/lib/operations/getDeployQueue.js +170 -0
- package/lib/operations/getDeployQueue.js.map +1 -0
- package/lib/operations/getDeployRequest.d.ts +148 -0
- package/lib/operations/getDeployRequest.d.ts.map +1 -0
- package/lib/operations/getDeployRequest.js +221 -0
- package/lib/operations/getDeployRequest.js.map +1 -0
- package/lib/operations/getDeployRequestThrottler.d.ts +31 -0
- package/lib/operations/getDeployRequestThrottler.d.ts.map +1 -0
- package/lib/operations/getDeployRequestThrottler.js +44 -0
- package/lib/operations/getDeployRequestThrottler.js.map +1 -0
- package/lib/operations/getDeployment.d.ts +113 -0
- package/lib/operations/getDeployment.d.ts.map +1 -0
- package/lib/operations/getDeployment.js +165 -0
- package/lib/operations/getDeployment.js.map +1 -0
- package/lib/operations/getInvoice.d.ts +23 -0
- package/lib/operations/getInvoice.d.ts.map +1 -0
- package/lib/operations/getInvoice.js +34 -0
- package/lib/operations/getInvoice.js.map +1 -0
- package/lib/operations/getInvoiceLineItems.d.ts +43 -0
- package/lib/operations/getInvoiceLineItems.d.ts.map +1 -0
- package/lib/operations/getInvoiceLineItems.js +56 -0
- package/lib/operations/getInvoiceLineItems.js.map +1 -0
- package/lib/operations/getKeyspace.d.ts +50 -0
- package/lib/operations/getKeyspace.d.ts.map +1 -0
- package/lib/operations/getKeyspace.js +65 -0
- package/lib/operations/getKeyspace.js.map +1 -0
- package/lib/operations/getKeyspaceRolloutStatus.d.ts +29 -0
- package/lib/operations/getKeyspaceRolloutStatus.d.ts.map +1 -0
- package/lib/operations/getKeyspaceRolloutStatus.js +42 -0
- package/lib/operations/getKeyspaceRolloutStatus.js.map +1 -0
- package/lib/operations/getKeyspaceVschema.d.ts +22 -0
- package/lib/operations/getKeyspaceVschema.d.ts.map +1 -0
- package/lib/operations/getKeyspaceVschema.js +35 -0
- package/lib/operations/getKeyspaceVschema.js.map +1 -0
- package/lib/operations/getOauthApplication.d.ts +31 -0
- package/lib/operations/getOauthApplication.d.ts.map +1 -0
- package/lib/operations/getOauthApplication.js +44 -0
- package/lib/operations/getOauthApplication.js.map +1 -0
- package/lib/operations/getOauthToken.d.ts +95 -0
- package/lib/operations/getOauthToken.d.ts.map +1 -0
- package/lib/operations/getOauthToken.js +107 -0
- package/lib/operations/getOauthToken.js.map +1 -0
- package/lib/operations/getOrganization.d.ts +35 -0
- package/lib/operations/getOrganization.d.ts.map +1 -0
- package/lib/operations/getOrganization.js +43 -0
- package/lib/operations/getOrganization.js.map +1 -0
- package/lib/operations/getOrganizationMembership.d.ts +42 -0
- package/lib/operations/getOrganizationMembership.d.ts.map +1 -0
- package/lib/operations/getOrganizationMembership.js +55 -0
- package/lib/operations/getOrganizationMembership.js.map +1 -0
- package/lib/operations/getOrganizationTeam.d.ts +57 -0
- package/lib/operations/getOrganizationTeam.d.ts.map +1 -0
- package/lib/operations/getOrganizationTeam.js +70 -0
- package/lib/operations/getOrganizationTeam.js.map +1 -0
- package/lib/operations/getOrganizationTeamMember.d.ts +91 -0
- package/lib/operations/getOrganizationTeamMember.d.ts.map +1 -0
- package/lib/operations/getOrganizationTeamMember.js +104 -0
- package/lib/operations/getOrganizationTeamMember.js.map +1 -0
- package/lib/operations/getPassword.d.ts +62 -0
- package/lib/operations/getPassword.d.ts.map +1 -0
- package/lib/operations/getPassword.js +74 -0
- package/lib/operations/getPassword.js.map +1 -0
- package/lib/operations/getQueryPatternsReport.d.ts +20 -0
- package/lib/operations/getQueryPatternsReport.d.ts.map +1 -0
- package/lib/operations/getQueryPatternsReport.js +33 -0
- package/lib/operations/getQueryPatternsReport.js.map +1 -0
- package/lib/operations/getQueryPatternsReportStatus.d.ts +32 -0
- package/lib/operations/getQueryPatternsReportStatus.d.ts.map +1 -0
- package/lib/operations/getQueryPatternsReportStatus.js +46 -0
- package/lib/operations/getQueryPatternsReportStatus.js.map +1 -0
- package/lib/operations/getRole.d.ts +56 -0
- package/lib/operations/getRole.d.ts.map +1 -0
- package/lib/operations/getRole.js +81 -0
- package/lib/operations/getRole.js.map +1 -0
- package/lib/operations/getSchemaRecommendation.d.ts +42 -0
- package/lib/operations/getSchemaRecommendation.d.ts.map +1 -0
- package/lib/operations/getSchemaRecommendation.js +65 -0
- package/lib/operations/getSchemaRecommendation.js.map +1 -0
- package/lib/operations/getServiceToken.d.ts +95 -0
- package/lib/operations/getServiceToken.d.ts.map +1 -0
- package/lib/operations/getServiceToken.js +107 -0
- package/lib/operations/getServiceToken.js.map +1 -0
- package/lib/operations/getWebhook.d.ts +29 -0
- package/lib/operations/getWebhook.d.ts.map +1 -0
- package/lib/operations/getWebhook.js +60 -0
- package/lib/operations/getWebhook.js.map +1 -0
- package/lib/operations/getWorkflow.d.ts +124 -0
- package/lib/operations/getWorkflow.d.ts.map +1 -0
- package/lib/operations/getWorkflow.js +155 -0
- package/lib/operations/getWorkflow.js.map +1 -0
- package/lib/operations/index.d.ts +149 -0
- package/lib/operations/index.d.ts.map +1 -0
- package/lib/operations/index.js +149 -0
- package/lib/operations/index.js.map +1 -0
- package/lib/operations/lintBranchSchema.d.ts +47 -0
- package/lib/operations/lintBranchSchema.d.ts.map +1 -0
- package/lib/operations/lintBranchSchema.js +58 -0
- package/lib/operations/lintBranchSchema.js.map +1 -0
- package/lib/operations/listAuditLogs.d.ts +38 -0
- package/lib/operations/listAuditLogs.d.ts.map +1 -0
- package/lib/operations/listAuditLogs.js +46 -0
- package/lib/operations/listAuditLogs.js.map +1 -0
- package/lib/operations/listBackups.d.ts +102 -0
- package/lib/operations/listBackups.d.ts.map +1 -0
- package/lib/operations/listBackups.js +127 -0
- package/lib/operations/listBackups.js.map +1 -0
- package/lib/operations/listBouncerResizeRequests.d.ts +68 -0
- package/lib/operations/listBouncerResizeRequests.d.ts.map +1 -0
- package/lib/operations/listBouncerResizeRequests.js +86 -0
- package/lib/operations/listBouncerResizeRequests.js.map +1 -0
- package/lib/operations/listBouncers.d.ts +82 -0
- package/lib/operations/listBouncers.d.ts.map +1 -0
- package/lib/operations/listBouncers.js +99 -0
- package/lib/operations/listBouncers.js.map +1 -0
- package/lib/operations/listBranchBouncerResizeRequests.d.ts +66 -0
- package/lib/operations/listBranchBouncerResizeRequests.d.ts.map +1 -0
- package/lib/operations/listBranchBouncerResizeRequests.js +85 -0
- package/lib/operations/listBranchBouncerResizeRequests.js.map +1 -0
- package/lib/operations/listBranchChangeRequests.d.ts +66 -0
- package/lib/operations/listBranchChangeRequests.d.ts.map +1 -0
- package/lib/operations/listBranchChangeRequests.js +85 -0
- package/lib/operations/listBranchChangeRequests.js.map +1 -0
- package/lib/operations/listBranches.d.ts +89 -0
- package/lib/operations/listBranches.d.ts.map +1 -0
- package/lib/operations/listBranches.js +106 -0
- package/lib/operations/listBranches.js.map +1 -0
- package/lib/operations/listClusterSizeSkus.d.ts +39 -0
- package/lib/operations/listClusterSizeSkus.d.ts.map +1 -0
- package/lib/operations/listClusterSizeSkus.js +52 -0
- package/lib/operations/listClusterSizeSkus.js.map +1 -0
- package/lib/operations/listDatabasePostgresCidrs.d.ts +40 -0
- package/lib/operations/listDatabasePostgresCidrs.d.ts.map +1 -0
- package/lib/operations/listDatabasePostgresCidrs.js +53 -0
- package/lib/operations/listDatabasePostgresCidrs.js.map +1 -0
- package/lib/operations/listDatabaseRegions.d.ts +36 -0
- package/lib/operations/listDatabaseRegions.d.ts.map +1 -0
- package/lib/operations/listDatabaseRegions.js +49 -0
- package/lib/operations/listDatabaseRegions.js.map +1 -0
- package/lib/operations/listDatabases.d.ts +88 -0
- package/lib/operations/listDatabases.d.ts.map +1 -0
- package/lib/operations/listDatabases.js +104 -0
- package/lib/operations/listDatabases.js.map +1 -0
- package/lib/operations/listDeployOperations.d.ts +51 -0
- package/lib/operations/listDeployOperations.d.ts.map +1 -0
- package/lib/operations/listDeployOperations.js +71 -0
- package/lib/operations/listDeployOperations.js.map +1 -0
- package/lib/operations/listDeployRequestReviews.d.ts +37 -0
- package/lib/operations/listDeployRequestReviews.d.ts.map +1 -0
- package/lib/operations/listDeployRequestReviews.js +50 -0
- package/lib/operations/listDeployRequestReviews.js.map +1 -0
- package/lib/operations/listDeployRequests.d.ts +169 -0
- package/lib/operations/listDeployRequests.d.ts.map +1 -0
- package/lib/operations/listDeployRequests.js +244 -0
- package/lib/operations/listDeployRequests.js.map +1 -0
- package/lib/operations/listExtensions.d.ts +54 -0
- package/lib/operations/listExtensions.d.ts.map +1 -0
- package/lib/operations/listExtensions.js +75 -0
- package/lib/operations/listExtensions.js.map +1 -0
- package/lib/operations/listGeneratedQueryPatternsReports.d.ts +36 -0
- package/lib/operations/listGeneratedQueryPatternsReports.d.ts.map +1 -0
- package/lib/operations/listGeneratedQueryPatternsReports.js +50 -0
- package/lib/operations/listGeneratedQueryPatternsReports.js.map +1 -0
- package/lib/operations/listInvoices.d.ts +34 -0
- package/lib/operations/listInvoices.d.ts.map +1 -0
- package/lib/operations/listInvoices.js +42 -0
- package/lib/operations/listInvoices.js.map +1 -0
- package/lib/operations/listKeyspaces.d.ts +59 -0
- package/lib/operations/listKeyspaces.d.ts.map +1 -0
- package/lib/operations/listKeyspaces.js +74 -0
- package/lib/operations/listKeyspaces.js.map +1 -0
- package/lib/operations/listOauthApplications.d.ts +40 -0
- package/lib/operations/listOauthApplications.d.ts.map +1 -0
- package/lib/operations/listOauthApplications.js +53 -0
- package/lib/operations/listOauthApplications.js.map +1 -0
- package/lib/operations/listOauthTokens.d.ts +106 -0
- package/lib/operations/listOauthTokens.d.ts.map +1 -0
- package/lib/operations/listOauthTokens.js +117 -0
- package/lib/operations/listOauthTokens.js.map +1 -0
- package/lib/operations/listOrganizationMembers.d.ts +53 -0
- package/lib/operations/listOrganizationMembers.d.ts.map +1 -0
- package/lib/operations/listOrganizationMembers.js +63 -0
- package/lib/operations/listOrganizationMembers.js.map +1 -0
- package/lib/operations/listOrganizationTeamMembers.d.ts +96 -0
- package/lib/operations/listOrganizationTeamMembers.d.ts.map +1 -0
- package/lib/operations/listOrganizationTeamMembers.js +109 -0
- package/lib/operations/listOrganizationTeamMembers.js.map +1 -0
- package/lib/operations/listOrganizationTeams.d.ts +64 -0
- package/lib/operations/listOrganizationTeams.d.ts.map +1 -0
- package/lib/operations/listOrganizationTeams.js +74 -0
- package/lib/operations/listOrganizationTeams.js.map +1 -0
- package/lib/operations/listOrganizations.d.ts +46 -0
- package/lib/operations/listOrganizations.d.ts.map +1 -0
- package/lib/operations/listOrganizations.js +55 -0
- package/lib/operations/listOrganizations.js.map +1 -0
- package/lib/operations/listParameters.d.ts +46 -0
- package/lib/operations/listParameters.d.ts.map +1 -0
- package/lib/operations/listParameters.js +67 -0
- package/lib/operations/listParameters.js.map +1 -0
- package/lib/operations/listPasswords.d.ts +73 -0
- package/lib/operations/listPasswords.d.ts.map +1 -0
- package/lib/operations/listPasswords.js +84 -0
- package/lib/operations/listPasswords.js.map +1 -0
- package/lib/operations/listPublicRegions.d.ts +33 -0
- package/lib/operations/listPublicRegions.d.ts.map +1 -0
- package/lib/operations/listPublicRegions.js +42 -0
- package/lib/operations/listPublicRegions.js.map +1 -0
- package/lib/operations/listReadOnlyRegions.d.ts +51 -0
- package/lib/operations/listReadOnlyRegions.d.ts.map +1 -0
- package/lib/operations/listReadOnlyRegions.js +64 -0
- package/lib/operations/listReadOnlyRegions.js.map +1 -0
- package/lib/operations/listRegionsForOrganization.d.ts +34 -0
- package/lib/operations/listRegionsForOrganization.d.ts.map +1 -0
- package/lib/operations/listRegionsForOrganization.js +44 -0
- package/lib/operations/listRegionsForOrganization.js.map +1 -0
- package/lib/operations/listRoles.d.ts +65 -0
- package/lib/operations/listRoles.d.ts.map +1 -0
- package/lib/operations/listRoles.js +90 -0
- package/lib/operations/listRoles.js.map +1 -0
- package/lib/operations/listSchemaRecommendations.d.ts +49 -0
- package/lib/operations/listSchemaRecommendations.d.ts.map +1 -0
- package/lib/operations/listSchemaRecommendations.js +72 -0
- package/lib/operations/listSchemaRecommendations.js.map +1 -0
- package/lib/operations/listServiceTokens.d.ts +104 -0
- package/lib/operations/listServiceTokens.d.ts.map +1 -0
- package/lib/operations/listServiceTokens.js +116 -0
- package/lib/operations/listServiceTokens.js.map +1 -0
- package/lib/operations/listWebhooks.d.ts +40 -0
- package/lib/operations/listWebhooks.d.ts.map +1 -0
- package/lib/operations/listWebhooks.js +71 -0
- package/lib/operations/listWebhooks.js.map +1 -0
- package/lib/operations/listWorkflows.d.ts +135 -0
- package/lib/operations/listWorkflows.d.ts.map +1 -0
- package/lib/operations/listWorkflows.js +166 -0
- package/lib/operations/listWorkflows.js.map +1 -0
- package/lib/operations/promoteBranch.d.ts +74 -0
- package/lib/operations/promoteBranch.d.ts.map +1 -0
- package/lib/operations/promoteBranch.js +91 -0
- package/lib/operations/promoteBranch.js.map +1 -0
- package/lib/operations/queueDeployRequest.d.ts +150 -0
- package/lib/operations/queueDeployRequest.d.ts.map +1 -0
- package/lib/operations/queueDeployRequest.js +225 -0
- package/lib/operations/queueDeployRequest.js.map +1 -0
- package/lib/operations/reassignRoleObjects.d.ts +22 -0
- package/lib/operations/reassignRoleObjects.d.ts.map +1 -0
- package/lib/operations/reassignRoleObjects.js +35 -0
- package/lib/operations/reassignRoleObjects.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 +33 -0
- package/lib/operations/removeOrganizationMember.js.map +1 -0
- package/lib/operations/removeOrganizationTeamMember.d.ts +20 -0
- package/lib/operations/removeOrganizationTeamMember.d.ts.map +1 -0
- package/lib/operations/removeOrganizationTeamMember.js +34 -0
- package/lib/operations/removeOrganizationTeamMember.js.map +1 -0
- package/lib/operations/renewPassword.d.ts +62 -0
- package/lib/operations/renewPassword.d.ts.map +1 -0
- package/lib/operations/renewPassword.js +74 -0
- package/lib/operations/renewPassword.js.map +1 -0
- package/lib/operations/renewRole.d.ts +56 -0
- package/lib/operations/renewRole.d.ts.map +1 -0
- package/lib/operations/renewRole.js +81 -0
- package/lib/operations/renewRole.js.map +1 -0
- package/lib/operations/resetDefaultRole.d.ts +54 -0
- package/lib/operations/resetDefaultRole.d.ts.map +1 -0
- package/lib/operations/resetDefaultRole.js +79 -0
- package/lib/operations/resetDefaultRole.js.map +1 -0
- package/lib/operations/resetRole.d.ts +56 -0
- package/lib/operations/resetRole.d.ts.map +1 -0
- package/lib/operations/resetRole.js +81 -0
- package/lib/operations/resetRole.js.map +1 -0
- package/lib/operations/reviewDeployRequest.d.ts +36 -0
- package/lib/operations/reviewDeployRequest.d.ts.map +1 -0
- package/lib/operations/reviewDeployRequest.js +49 -0
- package/lib/operations/reviewDeployRequest.js.map +1 -0
- package/lib/operations/skipRevertPeriod.d.ts +150 -0
- package/lib/operations/skipRevertPeriod.d.ts.map +1 -0
- package/lib/operations/skipRevertPeriod.js +223 -0
- package/lib/operations/skipRevertPeriod.js.map +1 -0
- package/lib/operations/testWebhook.d.ts +20 -0
- package/lib/operations/testWebhook.d.ts.map +1 -0
- package/lib/operations/testWebhook.js +31 -0
- package/lib/operations/testWebhook.js.map +1 -0
- package/lib/operations/updateAutoApply.d.ts +152 -0
- package/lib/operations/updateAutoApply.d.ts.map +1 -0
- package/lib/operations/updateAutoApply.js +225 -0
- package/lib/operations/updateAutoApply.js.map +1 -0
- package/lib/operations/updateAutoDeleteBranch.d.ts +152 -0
- package/lib/operations/updateAutoDeleteBranch.d.ts.map +1 -0
- package/lib/operations/updateAutoDeleteBranch.js +227 -0
- package/lib/operations/updateAutoDeleteBranch.js.map +1 -0
- package/lib/operations/updateBackup.d.ts +81 -0
- package/lib/operations/updateBackup.d.ts.map +1 -0
- package/lib/operations/updateBackup.js +99 -0
- package/lib/operations/updateBackup.js.map +1 -0
- package/lib/operations/updateBouncerResizeRequest.d.ts +63 -0
- package/lib/operations/updateBouncerResizeRequest.d.ts.map +1 -0
- package/lib/operations/updateBouncerResizeRequest.js +76 -0
- package/lib/operations/updateBouncerResizeRequest.js.map +1 -0
- package/lib/operations/updateBranch.d.ts +74 -0
- package/lib/operations/updateBranch.d.ts.map +1 -0
- package/lib/operations/updateBranch.js +91 -0
- package/lib/operations/updateBranch.js.map +1 -0
- package/lib/operations/updateBranchChangeRequest.d.ts +61 -0
- package/lib/operations/updateBranchChangeRequest.d.ts.map +1 -0
- package/lib/operations/updateBranchChangeRequest.js +80 -0
- package/lib/operations/updateBranchChangeRequest.js.map +1 -0
- package/lib/operations/updateBranchClusterConfig.d.ts +20 -0
- package/lib/operations/updateBranchClusterConfig.d.ts.map +1 -0
- package/lib/operations/updateBranchClusterConfig.js +33 -0
- package/lib/operations/updateBranchClusterConfig.js.map +1 -0
- package/lib/operations/updateDatabasePostgresCidr.d.ts +37 -0
- package/lib/operations/updateDatabasePostgresCidr.d.ts.map +1 -0
- package/lib/operations/updateDatabasePostgresCidr.js +50 -0
- package/lib/operations/updateDatabasePostgresCidr.js.map +1 -0
- package/lib/operations/updateDatabaseSettings.d.ts +99 -0
- package/lib/operations/updateDatabaseSettings.d.ts.map +1 -0
- package/lib/operations/updateDatabaseSettings.js +120 -0
- package/lib/operations/updateDatabaseSettings.js.map +1 -0
- package/lib/operations/updateDatabaseThrottler.d.ts +33 -0
- package/lib/operations/updateDatabaseThrottler.d.ts.map +1 -0
- package/lib/operations/updateDatabaseThrottler.js +46 -0
- package/lib/operations/updateDatabaseThrottler.js.map +1 -0
- package/lib/operations/updateDeployRequestThrottler.d.ts +35 -0
- package/lib/operations/updateDeployRequestThrottler.d.ts.map +1 -0
- package/lib/operations/updateDeployRequestThrottler.js +49 -0
- package/lib/operations/updateDeployRequestThrottler.js.map +1 -0
- package/lib/operations/updateKeyspace.d.ts +50 -0
- package/lib/operations/updateKeyspace.d.ts.map +1 -0
- package/lib/operations/updateKeyspace.js +65 -0
- package/lib/operations/updateKeyspace.js.map +1 -0
- package/lib/operations/updateKeyspaceVschema.d.ts +24 -0
- package/lib/operations/updateKeyspaceVschema.d.ts.map +1 -0
- package/lib/operations/updateKeyspaceVschema.js +37 -0
- package/lib/operations/updateKeyspaceVschema.js.map +1 -0
- package/lib/operations/updateOrganization.d.ts +41 -0
- package/lib/operations/updateOrganization.d.ts.map +1 -0
- package/lib/operations/updateOrganization.js +51 -0
- package/lib/operations/updateOrganization.js.map +1 -0
- package/lib/operations/updateOrganizationMembership.d.ts +44 -0
- package/lib/operations/updateOrganizationMembership.d.ts.map +1 -0
- package/lib/operations/updateOrganizationMembership.js +58 -0
- package/lib/operations/updateOrganizationMembership.js.map +1 -0
- package/lib/operations/updateOrganizationTeam.d.ts +61 -0
- package/lib/operations/updateOrganizationTeam.d.ts.map +1 -0
- package/lib/operations/updateOrganizationTeam.js +74 -0
- package/lib/operations/updateOrganizationTeam.js.map +1 -0
- package/lib/operations/updatePassword.d.ts +66 -0
- package/lib/operations/updatePassword.d.ts.map +1 -0
- package/lib/operations/updatePassword.js +78 -0
- package/lib/operations/updatePassword.js.map +1 -0
- package/lib/operations/updateRole.d.ts +62 -0
- package/lib/operations/updateRole.d.ts.map +1 -0
- package/lib/operations/updateRole.js +87 -0
- package/lib/operations/updateRole.js.map +1 -0
- package/lib/operations/updateWebhook.d.ts +35 -0
- package/lib/operations/updateWebhook.d.ts.map +1 -0
- package/lib/operations/updateWebhook.js +66 -0
- package/lib/operations/updateWebhook.js.map +1 -0
- package/lib/operations/verifyWorkflow.d.ts +124 -0
- package/lib/operations/verifyWorkflow.d.ts.map +1 -0
- package/lib/operations/verifyWorkflow.js +155 -0
- package/lib/operations/verifyWorkflow.js.map +1 -0
- package/lib/operations/workflowCancel.d.ts +124 -0
- package/lib/operations/workflowCancel.d.ts.map +1 -0
- package/lib/operations/workflowCancel.js +155 -0
- package/lib/operations/workflowCancel.js.map +1 -0
- package/lib/operations/workflowComplete.d.ts +124 -0
- package/lib/operations/workflowComplete.d.ts.map +1 -0
- package/lib/operations/workflowComplete.js +155 -0
- package/lib/operations/workflowComplete.js.map +1 -0
- package/lib/operations/workflowCutover.d.ts +124 -0
- package/lib/operations/workflowCutover.d.ts.map +1 -0
- package/lib/operations/workflowCutover.js +155 -0
- package/lib/operations/workflowCutover.js.map +1 -0
- package/lib/operations/workflowRetry.d.ts +124 -0
- package/lib/operations/workflowRetry.d.ts.map +1 -0
- package/lib/operations/workflowRetry.js +155 -0
- package/lib/operations/workflowRetry.js.map +1 -0
- package/lib/operations/workflowReverseCutover.d.ts +124 -0
- package/lib/operations/workflowReverseCutover.d.ts.map +1 -0
- package/lib/operations/workflowReverseCutover.js +157 -0
- package/lib/operations/workflowReverseCutover.js.map +1 -0
- package/lib/operations/workflowReverseTraffic.d.ts +124 -0
- package/lib/operations/workflowReverseTraffic.d.ts.map +1 -0
- package/lib/operations/workflowReverseTraffic.js +157 -0
- package/lib/operations/workflowReverseTraffic.js.map +1 -0
- package/lib/operations/workflowSwitchPrimaries.d.ts +124 -0
- package/lib/operations/workflowSwitchPrimaries.d.ts.map +1 -0
- package/lib/operations/workflowSwitchPrimaries.js +157 -0
- package/lib/operations/workflowSwitchPrimaries.js.map +1 -0
- package/lib/operations/workflowSwitchReplicas.d.ts +124 -0
- package/lib/operations/workflowSwitchReplicas.d.ts.map +1 -0
- package/lib/operations/workflowSwitchReplicas.js +157 -0
- package/lib/operations/workflowSwitchReplicas.js.map +1 -0
- package/lib/retry.d.ts +24 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +23 -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 +13 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +13 -0
- package/lib/traits.js.map +1 -0
- package/package.json +80 -5
- package/src/category.ts +12 -0
- package/src/client.ts +60 -0
- package/src/credentials.ts +38 -0
- package/src/errors.ts +52 -0
- package/src/index.ts +15 -0
- package/src/operations/addOrganizationTeamMember.ts +121 -0
- package/src/operations/cancelBouncerResizeRequest.ts +43 -0
- package/src/operations/cancelBranchChangeRequest.ts +41 -0
- package/src/operations/cancelDeployRequest.ts +243 -0
- package/src/operations/closeDeployRequest.ts +245 -0
- package/src/operations/completeErroredDeploy.ts +246 -0
- package/src/operations/completeGatedDeployRequest.ts +247 -0
- package/src/operations/completeRevert.ts +241 -0
- package/src/operations/createBackup.ts +115 -0
- package/src/operations/createBouncer.ts +104 -0
- package/src/operations/createBranch.ts +111 -0
- package/src/operations/createDatabase.ts +113 -0
- package/src/operations/createDatabasePostgresCidr.ts +58 -0
- package/src/operations/createDeployRequest.ts +251 -0
- package/src/operations/createKeyspace.ts +77 -0
- package/src/operations/createOauthToken.ts +145 -0
- package/src/operations/createOrganizationTeam.ts +88 -0
- package/src/operations/createPassword.ts +92 -0
- package/src/operations/createQueryPatternsReport.ts +53 -0
- package/src/operations/createRole.ts +115 -0
- package/src/operations/createServiceToken.ts +135 -0
- package/src/operations/createWebhook.ts +72 -0
- package/src/operations/createWorkflow.ts +175 -0
- package/src/operations/deleteBackup.ts +37 -0
- package/src/operations/deleteBouncer.ts +37 -0
- package/src/operations/deleteBranch.ts +35 -0
- package/src/operations/deleteDatabase.ts +33 -0
- package/src/operations/deleteDatabasePostgresCidr.ts +41 -0
- package/src/operations/deleteKeyspace.ts +37 -0
- package/src/operations/deleteOauthToken.ts +35 -0
- package/src/operations/deleteOrganizationTeam.ts +44 -0
- package/src/operations/deletePassword.ts +37 -0
- package/src/operations/deleteQueryPatternsReport.ts +43 -0
- package/src/operations/deleteRole.ts +39 -0
- package/src/operations/deleteServiceToken.ts +36 -0
- package/src/operations/deleteWebhook.ts +35 -0
- package/src/operations/demoteBranch.ts +99 -0
- package/src/operations/disableSafeMigrations.ts +102 -0
- package/src/operations/dismissSchemaRecommendation.ts +77 -0
- package/src/operations/enableSafeMigrations.ts +101 -0
- package/src/operations/getBackup.ts +107 -0
- package/src/operations/getBouncer.ts +98 -0
- package/src/operations/getBranch.ts +97 -0
- package/src/operations/getBranchChangeRequest.ts +86 -0
- package/src/operations/getBranchSchema.ts +47 -0
- package/src/operations/getCurrentUser.ts +48 -0
- package/src/operations/getDatabase.ts +106 -0
- package/src/operations/getDatabasePostgresCidr.ts +54 -0
- package/src/operations/getDatabaseThrottler.ts +52 -0
- package/src/operations/getDefaultRole.ts +87 -0
- package/src/operations/getDeployQueue.ts +192 -0
- package/src/operations/getDeployRequest.ts +243 -0
- package/src/operations/getDeployRequestThrottler.ts +56 -0
- package/src/operations/getDeployment.ts +185 -0
- package/src/operations/getInvoice.ts +40 -0
- package/src/operations/getInvoiceLineItems.ts +64 -0
- package/src/operations/getKeyspace.ts +71 -0
- package/src/operations/getKeyspaceRolloutStatus.ts +54 -0
- package/src/operations/getKeyspaceVschema.ts +41 -0
- package/src/operations/getOauthApplication.ts +50 -0
- package/src/operations/getOauthToken.ts +131 -0
- package/src/operations/getOrganization.ts +47 -0
- package/src/operations/getOrganizationMembership.ts +67 -0
- package/src/operations/getOrganizationTeam.ts +85 -0
- package/src/operations/getOrganizationTeamMember.ts +121 -0
- package/src/operations/getPassword.ts +80 -0
- package/src/operations/getQueryPatternsReport.ts +43 -0
- package/src/operations/getQueryPatternsReportStatus.ts +54 -0
- package/src/operations/getRole.ts +89 -0
- package/src/operations/getSchemaRecommendation.ts +75 -0
- package/src/operations/getServiceToken.ts +131 -0
- package/src/operations/getWebhook.ts +68 -0
- package/src/operations/getWorkflow.ts +161 -0
- package/src/operations/index.ts +148 -0
- package/src/operations/lintBranchSchema.ts +68 -0
- package/src/operations/listAuditLogs.ts +54 -0
- package/src/operations/listBackups.ts +141 -0
- package/src/operations/listBouncerResizeRequests.ts +98 -0
- package/src/operations/listBouncers.ts +109 -0
- package/src/operations/listBranchBouncerResizeRequests.ts +95 -0
- package/src/operations/listBranchChangeRequests.ts +97 -0
- package/src/operations/listBranches.ts +116 -0
- package/src/operations/listClusterSizeSkus.ts +60 -0
- package/src/operations/listDatabasePostgresCidrs.ts +65 -0
- package/src/operations/listDatabaseRegions.ts +57 -0
- package/src/operations/listDatabases.ts +116 -0
- package/src/operations/listDeployOperations.ts +81 -0
- package/src/operations/listDeployRequestReviews.ts +62 -0
- package/src/operations/listDeployRequests.ts +271 -0
- package/src/operations/listExtensions.ts +85 -0
- package/src/operations/listGeneratedQueryPatternsReports.ts +60 -0
- package/src/operations/listInvoices.ts +50 -0
- package/src/operations/listKeyspaces.ts +84 -0
- package/src/operations/listOauthApplications.ts +64 -0
- package/src/operations/listOauthTokens.ts +143 -0
- package/src/operations/listOrganizationMembers.ts +77 -0
- package/src/operations/listOrganizationTeamMembers.ts +128 -0
- package/src/operations/listOrganizationTeams.ts +94 -0
- package/src/operations/listOrganizations.ts +63 -0
- package/src/operations/listParameters.ts +75 -0
- package/src/operations/listPasswords.ts +92 -0
- package/src/operations/listPublicRegions.ts +50 -0
- package/src/operations/listReadOnlyRegions.ts +72 -0
- package/src/operations/listRegionsForOrganization.ts +56 -0
- package/src/operations/listRoles.ts +100 -0
- package/src/operations/listSchemaRecommendations.ts +84 -0
- package/src/operations/listServiceTokens.ts +144 -0
- package/src/operations/listWebhooks.ts +81 -0
- package/src/operations/listWorkflows.ts +174 -0
- package/src/operations/promoteBranch.ts +99 -0
- package/src/operations/queueDeployRequest.ts +245 -0
- package/src/operations/reassignRoleObjects.ts +41 -0
- package/src/operations/removeOrganizationMember.ts +43 -0
- package/src/operations/removeOrganizationTeamMember.ts +47 -0
- package/src/operations/renewPassword.ts +80 -0
- package/src/operations/renewRole.ts +89 -0
- package/src/operations/resetDefaultRole.ts +89 -0
- package/src/operations/resetRole.ts +89 -0
- package/src/operations/reviewDeployRequest.ts +55 -0
- package/src/operations/skipRevertPeriod.ts +245 -0
- package/src/operations/testWebhook.ts +37 -0
- package/src/operations/updateAutoApply.ts +245 -0
- package/src/operations/updateAutoDeleteBranch.ts +251 -0
- package/src/operations/updateBackup.ts +109 -0
- package/src/operations/updateBouncerResizeRequest.ts +86 -0
- package/src/operations/updateBranch.ts +99 -0
- package/src/operations/updateBranchChangeRequest.ts +90 -0
- package/src/operations/updateBranchClusterConfig.ts +43 -0
- package/src/operations/updateDatabasePostgresCidr.ts +60 -0
- package/src/operations/updateDatabaseSettings.ts +134 -0
- package/src/operations/updateDatabaseThrottler.ts +58 -0
- package/src/operations/updateDeployRequestThrottler.ts +59 -0
- package/src/operations/updateKeyspace.ts +71 -0
- package/src/operations/updateKeyspaceVschema.ts +46 -0
- package/src/operations/updateOrganization.ts +55 -0
- package/src/operations/updateOrganizationMembership.ts +68 -0
- package/src/operations/updateOrganizationTeam.ts +93 -0
- package/src/operations/updatePassword.ts +84 -0
- package/src/operations/updateRole.ts +95 -0
- package/src/operations/updateWebhook.ts +74 -0
- package/src/operations/verifyWorkflow.ts +161 -0
- package/src/operations/workflowCancel.ts +161 -0
- package/src/operations/workflowComplete.ts +163 -0
- package/src/operations/workflowCutover.ts +161 -0
- package/src/operations/workflowRetry.ts +161 -0
- package/src/operations/workflowReverseCutover.ts +167 -0
- package/src/operations/workflowReverseTraffic.ts +167 -0
- package/src/operations/workflowSwitchPrimaries.ts +167 -0
- package/src/operations/workflowSwitchReplicas.ts +167 -0
- package/src/retry.ts +39 -0
- package/src/sensitive.ts +4 -0
- package/src/traits.ts +12 -0
- package/bun.lock +0 -26
- package/index.ts +0 -1
- package/tsconfig.json +0 -29
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
import { Forbidden, NotFound } from "../errors";
|
|
5
|
+
|
|
6
|
+
// Input Schema
|
|
7
|
+
export const CompleteRevertInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
organization: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
database: Schema.String.pipe(T.PathParam()),
|
|
10
|
+
number: Schema.Number.pipe(T.PathParam()),
|
|
11
|
+
}).pipe(
|
|
12
|
+
T.Http({
|
|
13
|
+
method: "POST",
|
|
14
|
+
path: "/organizations/{organization}/databases/{database}/deploy-requests/{number}/revert",
|
|
15
|
+
}),
|
|
16
|
+
);
|
|
17
|
+
export type CompleteRevertInput = typeof CompleteRevertInput.Type;
|
|
18
|
+
|
|
19
|
+
// Output Schema
|
|
20
|
+
export const CompleteRevertOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
21
|
+
id: Schema.String,
|
|
22
|
+
number: Schema.Number,
|
|
23
|
+
actor: Schema.Struct({
|
|
24
|
+
id: Schema.String,
|
|
25
|
+
display_name: Schema.String,
|
|
26
|
+
avatar_url: Schema.String,
|
|
27
|
+
}),
|
|
28
|
+
closed_by: Schema.Struct({
|
|
29
|
+
id: Schema.String,
|
|
30
|
+
display_name: Schema.String,
|
|
31
|
+
avatar_url: Schema.String,
|
|
32
|
+
}),
|
|
33
|
+
branch: Schema.String,
|
|
34
|
+
branch_id: Schema.String,
|
|
35
|
+
branch_deleted: Schema.Boolean,
|
|
36
|
+
branch_deleted_by: Schema.Struct({
|
|
37
|
+
id: Schema.String,
|
|
38
|
+
display_name: Schema.String,
|
|
39
|
+
avatar_url: Schema.String,
|
|
40
|
+
}),
|
|
41
|
+
branch_deleted_at: Schema.String,
|
|
42
|
+
into_branch: Schema.String,
|
|
43
|
+
into_branch_sharded: Schema.Boolean,
|
|
44
|
+
into_branch_shard_count: Schema.Number,
|
|
45
|
+
approved: Schema.Boolean,
|
|
46
|
+
state: Schema.Literals(["open", "closed"]),
|
|
47
|
+
deployment_state: Schema.Literals([
|
|
48
|
+
"pending",
|
|
49
|
+
"ready",
|
|
50
|
+
"no_changes",
|
|
51
|
+
"queued",
|
|
52
|
+
"submitting",
|
|
53
|
+
"in_progress",
|
|
54
|
+
"pending_cutover",
|
|
55
|
+
"in_progress_vschema",
|
|
56
|
+
"in_progress_cancel",
|
|
57
|
+
"in_progress_cutover",
|
|
58
|
+
"complete",
|
|
59
|
+
"complete_cancel",
|
|
60
|
+
"complete_error",
|
|
61
|
+
"complete_pending_revert",
|
|
62
|
+
"in_progress_revert",
|
|
63
|
+
"in_progress_revert_vschema",
|
|
64
|
+
"complete_revert",
|
|
65
|
+
"complete_revert_error",
|
|
66
|
+
"cancelled",
|
|
67
|
+
"error",
|
|
68
|
+
]),
|
|
69
|
+
deployment: Schema.Struct({
|
|
70
|
+
id: Schema.String,
|
|
71
|
+
auto_cutover: Schema.Boolean,
|
|
72
|
+
auto_delete_branch: Schema.Boolean,
|
|
73
|
+
created_at: Schema.String,
|
|
74
|
+
cutover_at: Schema.String,
|
|
75
|
+
cutover_expiring: Schema.Boolean,
|
|
76
|
+
deploy_check_errors: Schema.String,
|
|
77
|
+
finished_at: Schema.String,
|
|
78
|
+
queued_at: Schema.String,
|
|
79
|
+
ready_to_cutover_at: Schema.String,
|
|
80
|
+
started_at: Schema.String,
|
|
81
|
+
state: Schema.Literals([
|
|
82
|
+
"pending",
|
|
83
|
+
"ready",
|
|
84
|
+
"no_changes",
|
|
85
|
+
"queued",
|
|
86
|
+
"submitting",
|
|
87
|
+
"in_progress",
|
|
88
|
+
"pending_cutover",
|
|
89
|
+
"in_progress_vschema",
|
|
90
|
+
"in_progress_cancel",
|
|
91
|
+
"in_progress_cutover",
|
|
92
|
+
"complete",
|
|
93
|
+
"complete_cancel",
|
|
94
|
+
"complete_error",
|
|
95
|
+
"complete_pending_revert",
|
|
96
|
+
"in_progress_revert",
|
|
97
|
+
"in_progress_revert_vschema",
|
|
98
|
+
"complete_revert",
|
|
99
|
+
"complete_revert_error",
|
|
100
|
+
"cancelled",
|
|
101
|
+
"error",
|
|
102
|
+
]),
|
|
103
|
+
submitted_at: Schema.String,
|
|
104
|
+
updated_at: Schema.String,
|
|
105
|
+
into_branch: Schema.String,
|
|
106
|
+
deploy_request_number: Schema.Number,
|
|
107
|
+
deployable: Schema.Boolean,
|
|
108
|
+
preceding_deployments: Schema.Array(
|
|
109
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
110
|
+
),
|
|
111
|
+
deploy_operations: Schema.Array(
|
|
112
|
+
Schema.Struct({
|
|
113
|
+
id: Schema.String,
|
|
114
|
+
state: Schema.Literals([
|
|
115
|
+
"pending",
|
|
116
|
+
"queued",
|
|
117
|
+
"in_progress",
|
|
118
|
+
"complete",
|
|
119
|
+
"cancelled",
|
|
120
|
+
"error",
|
|
121
|
+
]),
|
|
122
|
+
keyspace_name: Schema.String,
|
|
123
|
+
table_name: Schema.String,
|
|
124
|
+
operation_name: Schema.String,
|
|
125
|
+
eta_seconds: Schema.Number,
|
|
126
|
+
progress_percentage: Schema.Number,
|
|
127
|
+
deploy_error_docs_url: Schema.String,
|
|
128
|
+
ddl_statement: Schema.String,
|
|
129
|
+
syntax_highlighted_ddl: Schema.String,
|
|
130
|
+
created_at: Schema.String,
|
|
131
|
+
updated_at: Schema.String,
|
|
132
|
+
throttled_at: Schema.String,
|
|
133
|
+
can_drop_data: Schema.Boolean,
|
|
134
|
+
table_locked: Schema.Boolean,
|
|
135
|
+
table_recently_used: Schema.Boolean,
|
|
136
|
+
table_recently_used_at: Schema.String,
|
|
137
|
+
removed_foreign_key_names: Schema.Array(Schema.String),
|
|
138
|
+
deploy_errors: Schema.String,
|
|
139
|
+
}),
|
|
140
|
+
),
|
|
141
|
+
deploy_operation_summaries: Schema.Array(
|
|
142
|
+
Schema.Struct({
|
|
143
|
+
id: Schema.String,
|
|
144
|
+
created_at: Schema.String,
|
|
145
|
+
deploy_errors: Schema.String,
|
|
146
|
+
ddl_statement: Schema.String,
|
|
147
|
+
eta_seconds: Schema.Number,
|
|
148
|
+
keyspace_name: Schema.String,
|
|
149
|
+
operation_name: Schema.String,
|
|
150
|
+
progress_percentage: Schema.Number,
|
|
151
|
+
state: Schema.Literals([
|
|
152
|
+
"pending",
|
|
153
|
+
"in_progress",
|
|
154
|
+
"complete",
|
|
155
|
+
"cancelled",
|
|
156
|
+
"error",
|
|
157
|
+
]),
|
|
158
|
+
syntax_highlighted_ddl: Schema.String,
|
|
159
|
+
table_name: Schema.String,
|
|
160
|
+
table_recently_used_at: Schema.String,
|
|
161
|
+
throttled_at: Schema.String,
|
|
162
|
+
removed_foreign_key_names: Schema.Array(Schema.String),
|
|
163
|
+
shard_count: Schema.Number,
|
|
164
|
+
shard_names: Schema.Array(Schema.String),
|
|
165
|
+
can_drop_data: Schema.Boolean,
|
|
166
|
+
table_recently_used: Schema.Boolean,
|
|
167
|
+
sharded: Schema.Boolean,
|
|
168
|
+
operations: Schema.Array(
|
|
169
|
+
Schema.Struct({
|
|
170
|
+
id: Schema.String,
|
|
171
|
+
shard: Schema.String,
|
|
172
|
+
state: Schema.Literals([
|
|
173
|
+
"pending",
|
|
174
|
+
"queued",
|
|
175
|
+
"in_progress",
|
|
176
|
+
"complete",
|
|
177
|
+
"cancelled",
|
|
178
|
+
"error",
|
|
179
|
+
]),
|
|
180
|
+
progress_percentage: Schema.Number,
|
|
181
|
+
eta_seconds: Schema.Number,
|
|
182
|
+
}),
|
|
183
|
+
),
|
|
184
|
+
}),
|
|
185
|
+
),
|
|
186
|
+
lint_errors: Schema.Array(Schema.Record(Schema.String, Schema.Unknown)),
|
|
187
|
+
sequential_diff_dependencies: Schema.Array(
|
|
188
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
189
|
+
),
|
|
190
|
+
lookup_vindex_operations: Schema.Array(
|
|
191
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
192
|
+
),
|
|
193
|
+
throttler_configurations: Schema.Array(
|
|
194
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
195
|
+
),
|
|
196
|
+
deployment_revert_request: Schema.Record(Schema.String, Schema.Unknown),
|
|
197
|
+
actor: Schema.Struct({
|
|
198
|
+
id: Schema.String,
|
|
199
|
+
display_name: Schema.String,
|
|
200
|
+
avatar_url: Schema.String,
|
|
201
|
+
}),
|
|
202
|
+
cutover_actor: Schema.Struct({
|
|
203
|
+
id: Schema.String,
|
|
204
|
+
display_name: Schema.String,
|
|
205
|
+
avatar_url: Schema.String,
|
|
206
|
+
}),
|
|
207
|
+
cancelled_actor: Schema.Struct({
|
|
208
|
+
id: Schema.String,
|
|
209
|
+
display_name: Schema.String,
|
|
210
|
+
avatar_url: Schema.String,
|
|
211
|
+
}),
|
|
212
|
+
schema_last_updated_at: Schema.String,
|
|
213
|
+
table_locked: Schema.Boolean,
|
|
214
|
+
locked_table_name: Schema.String,
|
|
215
|
+
instant_ddl: Schema.Boolean,
|
|
216
|
+
instant_ddl_eligible: Schema.Boolean,
|
|
217
|
+
}),
|
|
218
|
+
num_comments: Schema.Number,
|
|
219
|
+
html_url: Schema.String,
|
|
220
|
+
notes: Schema.String,
|
|
221
|
+
html_body: Schema.String,
|
|
222
|
+
created_at: Schema.String,
|
|
223
|
+
updated_at: Schema.String,
|
|
224
|
+
closed_at: Schema.String,
|
|
225
|
+
deployed_at: Schema.String,
|
|
226
|
+
});
|
|
227
|
+
export type CompleteRevertOutput = typeof CompleteRevertOutput.Type;
|
|
228
|
+
|
|
229
|
+
// The operation
|
|
230
|
+
/**
|
|
231
|
+
* Complete a revert
|
|
232
|
+
*
|
|
233
|
+
* @param organization - The name of the deploy request's organization
|
|
234
|
+
* @param database - The name of the deploy request's database
|
|
235
|
+
* @param number - The number of the deploy request
|
|
236
|
+
*/
|
|
237
|
+
export const completeRevert = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
238
|
+
inputSchema: CompleteRevertInput,
|
|
239
|
+
outputSchema: CompleteRevertOutput,
|
|
240
|
+
errors: [Forbidden, NotFound] as const,
|
|
241
|
+
}));
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
import { Forbidden, NotFound } from "../errors";
|
|
5
|
+
|
|
6
|
+
// Input Schema
|
|
7
|
+
export const CreateBackupInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
organization: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
database: Schema.String.pipe(T.PathParam()),
|
|
10
|
+
branch: Schema.String.pipe(T.PathParam()),
|
|
11
|
+
name: Schema.optional(Schema.String),
|
|
12
|
+
retention_unit: Schema.optional(
|
|
13
|
+
Schema.Literals(["hour", "day", "week", "month", "year"]),
|
|
14
|
+
),
|
|
15
|
+
retention_value: Schema.optional(Schema.Number),
|
|
16
|
+
emergency: Schema.optional(Schema.Boolean),
|
|
17
|
+
}).pipe(
|
|
18
|
+
T.Http({
|
|
19
|
+
method: "POST",
|
|
20
|
+
path: "/organizations/{organization}/databases/{database}/branches/{branch}/backups",
|
|
21
|
+
}),
|
|
22
|
+
);
|
|
23
|
+
export type CreateBackupInput = typeof CreateBackupInput.Type;
|
|
24
|
+
|
|
25
|
+
// Output Schema
|
|
26
|
+
export const CreateBackupOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
27
|
+
id: Schema.String,
|
|
28
|
+
name: Schema.String,
|
|
29
|
+
state: Schema.Literals([
|
|
30
|
+
"pending",
|
|
31
|
+
"running",
|
|
32
|
+
"success",
|
|
33
|
+
"failed",
|
|
34
|
+
"canceled",
|
|
35
|
+
"ignored",
|
|
36
|
+
]),
|
|
37
|
+
size: Schema.Number,
|
|
38
|
+
estimated_storage_cost: Schema.Number,
|
|
39
|
+
created_at: Schema.String,
|
|
40
|
+
updated_at: Schema.String,
|
|
41
|
+
started_at: Schema.NullOr(Schema.String),
|
|
42
|
+
expires_at: Schema.NullOr(Schema.String),
|
|
43
|
+
completed_at: Schema.NullOr(Schema.String),
|
|
44
|
+
deleted_at: Schema.NullOr(Schema.String),
|
|
45
|
+
pvc_size: Schema.Number,
|
|
46
|
+
protected: Schema.Boolean,
|
|
47
|
+
required: Schema.Boolean,
|
|
48
|
+
restored_branches: Schema.Array(
|
|
49
|
+
Schema.Struct({
|
|
50
|
+
id: Schema.String,
|
|
51
|
+
name: Schema.String,
|
|
52
|
+
created_at: Schema.String,
|
|
53
|
+
updated_at: Schema.String,
|
|
54
|
+
deleted_at: Schema.NullOr(Schema.String),
|
|
55
|
+
}),
|
|
56
|
+
),
|
|
57
|
+
actor: Schema.Struct({
|
|
58
|
+
id: Schema.String,
|
|
59
|
+
display_name: Schema.String,
|
|
60
|
+
avatar_url: Schema.String,
|
|
61
|
+
}),
|
|
62
|
+
backup_policy: Schema.NullOr(
|
|
63
|
+
Schema.Struct({
|
|
64
|
+
id: Schema.String,
|
|
65
|
+
name: Schema.String,
|
|
66
|
+
target: Schema.Literals(["production", "development"]),
|
|
67
|
+
retention_value: Schema.Number,
|
|
68
|
+
retention_unit: Schema.String,
|
|
69
|
+
frequency_value: Schema.Number,
|
|
70
|
+
frequency_unit: Schema.String,
|
|
71
|
+
schedule_time: Schema.NullOr(Schema.String),
|
|
72
|
+
schedule_day: Schema.Number,
|
|
73
|
+
schedule_week: Schema.Number,
|
|
74
|
+
created_at: Schema.String,
|
|
75
|
+
updated_at: Schema.String,
|
|
76
|
+
last_ran_at: Schema.NullOr(Schema.String),
|
|
77
|
+
next_run_at: Schema.NullOr(Schema.String),
|
|
78
|
+
required: Schema.Boolean,
|
|
79
|
+
}),
|
|
80
|
+
),
|
|
81
|
+
schema_snapshot: Schema.Struct({
|
|
82
|
+
id: Schema.String,
|
|
83
|
+
name: Schema.String,
|
|
84
|
+
created_at: Schema.String,
|
|
85
|
+
updated_at: Schema.String,
|
|
86
|
+
linted_at: Schema.NullOr(Schema.String),
|
|
87
|
+
url: Schema.String,
|
|
88
|
+
}),
|
|
89
|
+
database_branch: Schema.Struct({
|
|
90
|
+
id: Schema.String,
|
|
91
|
+
name: Schema.String,
|
|
92
|
+
created_at: Schema.String,
|
|
93
|
+
updated_at: Schema.String,
|
|
94
|
+
deleted_at: Schema.NullOr(Schema.String),
|
|
95
|
+
}),
|
|
96
|
+
});
|
|
97
|
+
export type CreateBackupOutput = typeof CreateBackupOutput.Type;
|
|
98
|
+
|
|
99
|
+
// The operation
|
|
100
|
+
/**
|
|
101
|
+
* Create a backup
|
|
102
|
+
*
|
|
103
|
+
* @param organization - The name of the organization the branch belongs to
|
|
104
|
+
* @param database - The name of the database the branch belongs to
|
|
105
|
+
* @param branch - The name of the branch
|
|
106
|
+
* @param name - Name for the backup
|
|
107
|
+
* @param retention_unit - Unit for the retention period of the backup
|
|
108
|
+
* @param retention_value - Value between `1` and `1000` for the retention period of the backup (i.e retention_value `6` and retention_unit `hour` means 6 hours)
|
|
109
|
+
* @param emergency - Whether the backup is an immediate backup that may affect database performance. Emergency backups are only supported for PostgreSQL databases.
|
|
110
|
+
*/
|
|
111
|
+
export const createBackup = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
112
|
+
inputSchema: CreateBackupInput,
|
|
113
|
+
outputSchema: CreateBackupOutput,
|
|
114
|
+
errors: [Forbidden, NotFound] as const,
|
|
115
|
+
}));
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
import { Forbidden, NotFound } from "../errors";
|
|
5
|
+
|
|
6
|
+
// Input Schema
|
|
7
|
+
export const CreateBouncerInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
organization: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
database: Schema.String.pipe(T.PathParam()),
|
|
10
|
+
branch: Schema.String.pipe(T.PathParam()),
|
|
11
|
+
name: Schema.optional(Schema.String),
|
|
12
|
+
target: Schema.optional(Schema.String),
|
|
13
|
+
bouncer_size: Schema.optional(Schema.String),
|
|
14
|
+
replicas_per_cell: Schema.optional(Schema.Number),
|
|
15
|
+
}).pipe(
|
|
16
|
+
T.Http({
|
|
17
|
+
method: "POST",
|
|
18
|
+
path: "/organizations/{organization}/databases/{database}/branches/{branch}/bouncers",
|
|
19
|
+
}),
|
|
20
|
+
);
|
|
21
|
+
export type CreateBouncerInput = typeof CreateBouncerInput.Type;
|
|
22
|
+
|
|
23
|
+
// Output Schema
|
|
24
|
+
export const CreateBouncerOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
25
|
+
id: Schema.String,
|
|
26
|
+
name: Schema.String,
|
|
27
|
+
sku: Schema.Struct({
|
|
28
|
+
name: Schema.String,
|
|
29
|
+
display_name: Schema.String,
|
|
30
|
+
cpu: Schema.String,
|
|
31
|
+
ram: Schema.Number,
|
|
32
|
+
sort_order: Schema.Number,
|
|
33
|
+
}),
|
|
34
|
+
target: Schema.Literals(["primary", "replica", "replica_az_affinity"]),
|
|
35
|
+
replicas_per_cell: Schema.Number,
|
|
36
|
+
created_at: Schema.String,
|
|
37
|
+
updated_at: Schema.String,
|
|
38
|
+
deleted_at: Schema.String,
|
|
39
|
+
actor: Schema.Struct({
|
|
40
|
+
id: Schema.String,
|
|
41
|
+
display_name: Schema.String,
|
|
42
|
+
avatar_url: Schema.String,
|
|
43
|
+
}),
|
|
44
|
+
branch: Schema.Struct({
|
|
45
|
+
id: Schema.String,
|
|
46
|
+
name: Schema.String,
|
|
47
|
+
created_at: Schema.String,
|
|
48
|
+
updated_at: Schema.String,
|
|
49
|
+
deleted_at: Schema.String,
|
|
50
|
+
}),
|
|
51
|
+
parameters: Schema.Array(
|
|
52
|
+
Schema.Struct({
|
|
53
|
+
id: Schema.String,
|
|
54
|
+
namespace: Schema.Literals(["pgbouncer"]),
|
|
55
|
+
name: Schema.String,
|
|
56
|
+
display_name: Schema.String,
|
|
57
|
+
category: Schema.String,
|
|
58
|
+
description: Schema.String,
|
|
59
|
+
immutable: Schema.Boolean,
|
|
60
|
+
parameter_type: Schema.Literals([
|
|
61
|
+
"array",
|
|
62
|
+
"integer",
|
|
63
|
+
"seconds",
|
|
64
|
+
"select",
|
|
65
|
+
"string",
|
|
66
|
+
]),
|
|
67
|
+
default_value: Schema.String,
|
|
68
|
+
value: Schema.String,
|
|
69
|
+
required: Schema.Boolean,
|
|
70
|
+
created_at: Schema.String,
|
|
71
|
+
updated_at: Schema.String,
|
|
72
|
+
restart: Schema.Boolean,
|
|
73
|
+
max: Schema.Number,
|
|
74
|
+
min: Schema.Number,
|
|
75
|
+
step: Schema.Number,
|
|
76
|
+
url: Schema.String,
|
|
77
|
+
options: Schema.Array(Schema.String),
|
|
78
|
+
actor: Schema.Struct({
|
|
79
|
+
id: Schema.String,
|
|
80
|
+
display_name: Schema.String,
|
|
81
|
+
avatar_url: Schema.String,
|
|
82
|
+
}),
|
|
83
|
+
}),
|
|
84
|
+
),
|
|
85
|
+
});
|
|
86
|
+
export type CreateBouncerOutput = typeof CreateBouncerOutput.Type;
|
|
87
|
+
|
|
88
|
+
// The operation
|
|
89
|
+
/**
|
|
90
|
+
* Create a bouncer
|
|
91
|
+
*
|
|
92
|
+
* @param organization - Organization name slug from `list_organizations`. Example: `acme`.
|
|
93
|
+
* @param database - Database name slug from `list_databases`. Example: `app-db`.
|
|
94
|
+
* @param branch - Branch name from `list_branches`. Example: `main`.
|
|
95
|
+
* @param name - The bouncer name
|
|
96
|
+
* @param target - The type of server the bouncer targets
|
|
97
|
+
* @param bouncer_size - The size SKU for the bouncer
|
|
98
|
+
* @param replicas_per_cell - The number of replica servers per cell
|
|
99
|
+
*/
|
|
100
|
+
export const createBouncer = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
101
|
+
inputSchema: CreateBouncerInput,
|
|
102
|
+
outputSchema: CreateBouncerOutput,
|
|
103
|
+
errors: [Forbidden, NotFound] as const,
|
|
104
|
+
}));
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
import { Forbidden, NotFound } from "../errors";
|
|
5
|
+
|
|
6
|
+
// Input Schema
|
|
7
|
+
export const CreateBranchInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
organization: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
database: Schema.String.pipe(T.PathParam()),
|
|
10
|
+
name: Schema.String,
|
|
11
|
+
parent_branch: Schema.optional(Schema.String),
|
|
12
|
+
backup_id: Schema.optional(Schema.String),
|
|
13
|
+
region: Schema.optional(Schema.String),
|
|
14
|
+
restore_point: Schema.optional(Schema.String),
|
|
15
|
+
seed_data: Schema.optional(Schema.Literals(["last_successful_backup"])),
|
|
16
|
+
cluster_size: Schema.optional(Schema.String),
|
|
17
|
+
major_version: Schema.optional(Schema.String),
|
|
18
|
+
}).pipe(
|
|
19
|
+
T.Http({
|
|
20
|
+
method: "POST",
|
|
21
|
+
path: "/organizations/{organization}/databases/{database}/branches",
|
|
22
|
+
}),
|
|
23
|
+
);
|
|
24
|
+
export type CreateBranchInput = typeof CreateBranchInput.Type;
|
|
25
|
+
|
|
26
|
+
// Output Schema
|
|
27
|
+
export const CreateBranchOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
28
|
+
id: Schema.String,
|
|
29
|
+
name: Schema.String,
|
|
30
|
+
created_at: Schema.String,
|
|
31
|
+
updated_at: Schema.String,
|
|
32
|
+
deleted_at: Schema.NullOr(Schema.String),
|
|
33
|
+
restore_checklist_completed_at: Schema.NullOr(Schema.String),
|
|
34
|
+
schema_last_updated_at: Schema.String,
|
|
35
|
+
kind: Schema.Literals(["mysql", "postgresql"]),
|
|
36
|
+
mysql_address: Schema.String,
|
|
37
|
+
mysql_edge_address: Schema.String,
|
|
38
|
+
state: Schema.Literals([
|
|
39
|
+
"pending",
|
|
40
|
+
"sleep_in_progress",
|
|
41
|
+
"sleeping",
|
|
42
|
+
"awakening",
|
|
43
|
+
"ready",
|
|
44
|
+
]),
|
|
45
|
+
direct_vtgate: Schema.Boolean,
|
|
46
|
+
vtgate_size: Schema.String,
|
|
47
|
+
vtgate_count: Schema.Number,
|
|
48
|
+
cluster_name: Schema.String,
|
|
49
|
+
cluster_iops: Schema.NullOr(Schema.Number),
|
|
50
|
+
ready: Schema.Boolean,
|
|
51
|
+
schema_ready: Schema.Boolean,
|
|
52
|
+
metal: Schema.Boolean,
|
|
53
|
+
production: Schema.Boolean,
|
|
54
|
+
safe_migrations: Schema.Boolean,
|
|
55
|
+
sharded: Schema.Boolean,
|
|
56
|
+
shard_count: Schema.Number,
|
|
57
|
+
stale_schema: Schema.Boolean,
|
|
58
|
+
actor: Schema.Struct({
|
|
59
|
+
id: Schema.String,
|
|
60
|
+
display_name: Schema.String,
|
|
61
|
+
avatar_url: Schema.String,
|
|
62
|
+
}),
|
|
63
|
+
restored_from_branch: Schema.NullOr(
|
|
64
|
+
Schema.Struct({
|
|
65
|
+
id: Schema.String,
|
|
66
|
+
name: Schema.String,
|
|
67
|
+
created_at: Schema.String,
|
|
68
|
+
updated_at: Schema.String,
|
|
69
|
+
deleted_at: Schema.String,
|
|
70
|
+
}),
|
|
71
|
+
),
|
|
72
|
+
private_edge_connectivity: Schema.Boolean,
|
|
73
|
+
has_replicas: Schema.Boolean,
|
|
74
|
+
has_read_only_replicas: Schema.Boolean,
|
|
75
|
+
html_url: Schema.String,
|
|
76
|
+
url: Schema.String,
|
|
77
|
+
region: Schema.Struct({
|
|
78
|
+
id: Schema.String,
|
|
79
|
+
provider: Schema.String,
|
|
80
|
+
enabled: Schema.Boolean,
|
|
81
|
+
public_ip_addresses: Schema.Array(Schema.String),
|
|
82
|
+
display_name: Schema.String,
|
|
83
|
+
location: Schema.String,
|
|
84
|
+
slug: Schema.String,
|
|
85
|
+
current_default: Schema.Boolean,
|
|
86
|
+
}),
|
|
87
|
+
parent_branch: Schema.NullOr(Schema.String),
|
|
88
|
+
vtgate_options: Schema.Record(Schema.String, Schema.Unknown),
|
|
89
|
+
});
|
|
90
|
+
export type CreateBranchOutput = typeof CreateBranchOutput.Type;
|
|
91
|
+
|
|
92
|
+
// The operation
|
|
93
|
+
/**
|
|
94
|
+
* Create a branch
|
|
95
|
+
*
|
|
96
|
+
* @param organization - The name of the organization the branch belongs to
|
|
97
|
+
* @param database - The name of the database the branch belongs to
|
|
98
|
+
* @param name - The name of the branch to create
|
|
99
|
+
* @param parent_branch - The name of the parent branch. Defaults to the database's default branch if not provided.
|
|
100
|
+
* @param backup_id - If provided, restores the backup's schema and data to the new branch. Must have `restore_production_branch_backup(s)` or `restore_backup(s)` access to do this.
|
|
101
|
+
* @param region - The region to create the branch in. If not provided, the branch will be created in the default region for its database.
|
|
102
|
+
* @param restore_point - Restore from a point-in-time recovery timestamp (e.g. 2023-01-01T00:00:00Z). Available only for PostgreSQL databases.
|
|
103
|
+
* @param seed_data - If provided, restores the last successful backup's schema and data to the new branch. Must have `restore_production_branch_backup(s)` or `restore_backup(s)` access to do this, in addition to Data Branching™ being enabled for the branch.
|
|
104
|
+
* @param cluster_size - The database cluster size. Required if a backup_id is provided, optional otherwise. Options: PS_10, PS_20, PS_40, ..., PS_2800
|
|
105
|
+
* @param major_version - For PostgreSQL databases, the PostgreSQL major version to use for the branch. Defaults to the major version of the parent branch if it exists or the database's default branch major version. Ignored for branches restored from backups.
|
|
106
|
+
*/
|
|
107
|
+
export const createBranch = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
108
|
+
inputSchema: CreateBranchInput,
|
|
109
|
+
outputSchema: CreateBranchOutput,
|
|
110
|
+
errors: [Forbidden, NotFound] as const,
|
|
111
|
+
}));
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
import { Forbidden, NotFound, UnprocessableEntity } from "../errors";
|
|
5
|
+
|
|
6
|
+
// Input Schema
|
|
7
|
+
export const CreateDatabaseInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
organization: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
name: Schema.String,
|
|
10
|
+
region: Schema.optional(Schema.String),
|
|
11
|
+
cluster_size: Schema.String,
|
|
12
|
+
replicas: Schema.optional(Schema.Number),
|
|
13
|
+
kind: Schema.optional(Schema.Literals(["mysql", "postgresql"])),
|
|
14
|
+
major_version: Schema.optional(Schema.String),
|
|
15
|
+
}).pipe(
|
|
16
|
+
T.Http({ method: "POST", path: "/organizations/{organization}/databases" }),
|
|
17
|
+
);
|
|
18
|
+
export type CreateDatabaseInput = typeof CreateDatabaseInput.Type;
|
|
19
|
+
|
|
20
|
+
// Output Schema
|
|
21
|
+
export const CreateDatabaseOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
22
|
+
id: Schema.String,
|
|
23
|
+
url: Schema.String,
|
|
24
|
+
branches_url: Schema.String,
|
|
25
|
+
branches_count: Schema.optional(Schema.Number),
|
|
26
|
+
open_schema_recommendations_count: Schema.optional(Schema.Number),
|
|
27
|
+
development_branches_count: Schema.optional(Schema.Number),
|
|
28
|
+
production_branches_count: Schema.optional(Schema.Number),
|
|
29
|
+
issues_count: Schema.optional(Schema.Number),
|
|
30
|
+
multiple_admins_required_for_deletion: Schema.optional(Schema.Boolean),
|
|
31
|
+
ready: Schema.Boolean,
|
|
32
|
+
at_backup_restore_branches_limit: Schema.optional(Schema.Boolean),
|
|
33
|
+
at_development_branch_usage_limit: Schema.optional(Schema.Boolean),
|
|
34
|
+
data_import: Schema.optional(
|
|
35
|
+
Schema.NullOr(
|
|
36
|
+
Schema.Struct({
|
|
37
|
+
state: Schema.String,
|
|
38
|
+
import_check_errors: Schema.String,
|
|
39
|
+
started_at: Schema.String,
|
|
40
|
+
finished_at: Schema.String,
|
|
41
|
+
data_source: Schema.Struct({
|
|
42
|
+
hostname: Schema.String,
|
|
43
|
+
port: Schema.Number,
|
|
44
|
+
database: Schema.String,
|
|
45
|
+
}),
|
|
46
|
+
}),
|
|
47
|
+
),
|
|
48
|
+
),
|
|
49
|
+
region: Schema.Struct({
|
|
50
|
+
id: Schema.String,
|
|
51
|
+
provider: Schema.String,
|
|
52
|
+
enabled: Schema.Boolean,
|
|
53
|
+
public_ip_addresses: Schema.Array(Schema.String),
|
|
54
|
+
display_name: Schema.String,
|
|
55
|
+
location: Schema.String,
|
|
56
|
+
slug: Schema.String,
|
|
57
|
+
current_default: Schema.Boolean,
|
|
58
|
+
}),
|
|
59
|
+
html_url: Schema.String,
|
|
60
|
+
name: Schema.String,
|
|
61
|
+
state: Schema.Literals([
|
|
62
|
+
"pending",
|
|
63
|
+
"importing",
|
|
64
|
+
"sleep_in_progress",
|
|
65
|
+
"sleeping",
|
|
66
|
+
"awakening",
|
|
67
|
+
"import_ready",
|
|
68
|
+
"ready",
|
|
69
|
+
]),
|
|
70
|
+
sharded: Schema.optional(Schema.Boolean),
|
|
71
|
+
default_branch_shard_count: Schema.optional(Schema.Number),
|
|
72
|
+
default_branch_read_only_regions_count: Schema.optional(Schema.Number),
|
|
73
|
+
default_branch_table_count: Schema.optional(Schema.Number),
|
|
74
|
+
default_branch: Schema.optional(Schema.String),
|
|
75
|
+
require_approval_for_deploy: Schema.optional(Schema.Boolean),
|
|
76
|
+
resizing: Schema.optional(Schema.Boolean),
|
|
77
|
+
resize_queued: Schema.optional(Schema.Boolean),
|
|
78
|
+
config_changing: Schema.optional(Schema.Boolean),
|
|
79
|
+
config_change_queued: Schema.optional(Schema.Boolean),
|
|
80
|
+
allow_data_branching: Schema.optional(Schema.Boolean),
|
|
81
|
+
foreign_keys_enabled: Schema.optional(Schema.Boolean),
|
|
82
|
+
automatic_migrations: Schema.optional(Schema.NullOr(Schema.Boolean)),
|
|
83
|
+
restrict_branch_region: Schema.optional(Schema.Boolean),
|
|
84
|
+
insights_raw_queries: Schema.optional(Schema.Boolean),
|
|
85
|
+
plan: Schema.optional(Schema.String),
|
|
86
|
+
insights_enabled: Schema.optional(Schema.Boolean),
|
|
87
|
+
production_branch_web_console: Schema.optional(Schema.Boolean),
|
|
88
|
+
migration_table_name: Schema.optional(Schema.NullOr(Schema.String)),
|
|
89
|
+
migration_framework: Schema.optional(Schema.NullOr(Schema.String)),
|
|
90
|
+
created_at: Schema.String,
|
|
91
|
+
updated_at: Schema.String,
|
|
92
|
+
schema_last_updated_at: Schema.optional(Schema.String),
|
|
93
|
+
kind: Schema.Literals(["mysql", "postgresql"]),
|
|
94
|
+
});
|
|
95
|
+
export type CreateDatabaseOutput = typeof CreateDatabaseOutput.Type;
|
|
96
|
+
|
|
97
|
+
// The operation
|
|
98
|
+
/**
|
|
99
|
+
* Create a database
|
|
100
|
+
*
|
|
101
|
+
* @param organization - Organization name slug from `list_organizations`. Example: `acme`.
|
|
102
|
+
* @param name - Name of the database
|
|
103
|
+
* @param region - The region the database will be deployed in. If left blank, defaults to the organization's default region.
|
|
104
|
+
* @param cluster_size - The database cluster size name (e.g., 'PS_10', 'PS_80'). Use the 'List available cluster sizes' endpoint to get available options for your organization. /v1/organizations/:organization/cluster-size-skus
|
|
105
|
+
* @param replicas - The number of replicas for the database. 0 for non-HA, 2+ for HA.
|
|
106
|
+
* @param kind - The kind of database to create.
|
|
107
|
+
* @param major_version - For PostgreSQL databases, the PostgreSQL major version to use for the database. Defaults to the latest available major version.
|
|
108
|
+
*/
|
|
109
|
+
export const createDatabase = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
110
|
+
inputSchema: CreateDatabaseInput,
|
|
111
|
+
outputSchema: CreateDatabaseOutput,
|
|
112
|
+
errors: [Forbidden, NotFound, UnprocessableEntity] as const,
|
|
113
|
+
}));
|